:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #1c1c1e;
  --muted: #59595e;
  --rule: #e2e2e5;
  --control-border: #88888d;
  --surface: #f5f5f6;
  --display: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --measure: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
::selection { background: #e2e2e5; color: var(--ink); }
a { color: inherit; text-underline-offset: .19em; }
:where(a, button, select, [tabindex]):focus-visible { outline: 2px solid var(--muted); outline-offset: 4px; }
:where(h1,h2,p,figure,dl,dd) { margin: 0; }
img, video { display: block; width: 100%; height: auto; }
button, select { font: inherit; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: .6rem; left: .6rem; z-index: 3;
  padding: .6rem 1rem; background: var(--paper); color: var(--ink);
}
.section, .footer {
  width: min(var(--measure), calc(100% - 3.5rem));
  margin-inline: auto;
}
.wordmark {
  display: flex; justify-content: center; align-items: center; gap: .45rem;
  margin-bottom: clamp(.75rem, 2vw, 1.4rem);
  font: 700 1.22rem/1.2 var(--display);
}
.wordmark img { width: 3.4rem; height: 3.4rem; }

.affiliations {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  margin-top: .68rem; gap: .35rem 1.15rem;
  font-size: .9rem;
}
.university, .lab { display: inline-flex; align-items: center; gap: .42rem; }
.university img { width: 2.125rem; height: 2.125rem; flex: none; }
.lab > span { color: #eee; font-size: .85em; }
.contribution { margin-top: .24rem; }
.contribution small { font-size: .86em; }
.hero-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .65rem; margin-top: 1rem;
}
.hero-links a {
  display: inline-grid; place-items: center;
  min-width: 5.5rem; min-height: 2.75rem; padding: .35rem .85rem;
  border: 1px solid #ffffff88; border-radius: .25rem;
  background: #0004; color: #fff;
  font-size: .9rem; font-weight: 650; text-decoration: none;
}
.hero-links a:hover { background: #fff; color: var(--ink); }
.hero-links a:focus-visible { outline-color: #fff; }
.hero {
  position: relative;
  isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  min-height: 100svh;
  background: #202020; color: #fff;
}
.hero-background { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero-background img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-background::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #0006, #000a 17%, #000a 82%, #0009);
}
.hero-inner {
  width: min(63rem, calc(100% - 3.5rem));
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  padding-block-end: clamp(4.5rem, 7vw, 6.5rem);
  text-align: center;
}
.hero-scroll {
  position: absolute; inset-block-end: .85rem; left: 50%; translate: -50%;
  display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem;
  border-radius: 50%; color: #fff;
}
.hero-scroll::after {
  content: ""; inline-size: .95rem; block-size: .95rem;
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translateY(-20%) rotate(45deg);
}
.hero-scroll:hover { background: #ffffff24; }
.hero-scroll:focus-visible { outline-color: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  html:has(#abstract:target) { scroll-behavior: smooth; }
}
.hero h1 {
  max-width: 19ch;
  margin-inline: auto;
  font: 500 clamp(2.6rem, 6.65vw, 6rem)/.99 var(--display);
  letter-spacing: -.038em;
  text-wrap: balance;
}
.hero h1 em { color: #c6deef; font-weight: inherit; }
.subtitle {
  margin-top: 1.15rem;
  font: 500 clamp(1.15rem, 2.5vw, 1.8rem)/1.28 var(--display);
  text-wrap: balance;
}
.byline {
  max-width: 43rem;
  margin: 1.45rem auto 0;
  color: #eee;
  font-size: .92rem;
  line-height: 1.62;
  text-wrap: balance;
}
.section { border-bottom: 1px solid var(--rule); padding-block: clamp(2.7rem, 5.6vw, 5.1rem); scroll-margin-top: .5rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1.2rem 2.5rem; align-items: end; margin-bottom: 1.5rem; }
.section h2 {
  font: 500 clamp(1.85rem, 3.7vw, 3.15rem)/1.06 var(--display);
  letter-spacing: -.025em; text-wrap: balance;
}
.section-heading p { color: var(--muted); margin-top: .62rem; max-width: 63ch; }
.protocol-section .section-heading p { max-width: none; }
.task-label { display: grid; gap: .28rem; font-weight: 680; font-size: .78rem; min-width: min(100%, 11rem); }
.task-label select {
  min-height: 2.6rem; width: 100%; padding: .42rem .58rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--control-border); border-radius: 3px; font-size: .93rem; font-weight: 500;
}
.scene-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.72rem, 2vw, 1.4rem) clamp(.65rem, 1.5vw, 1.1rem);
}
.scene-grid img { aspect-ratio: 8/5; object-fit: cover; background: var(--surface); }
.scene-grid [data-condition="dual_mirror"] { position: relative; }
.scene-grid [data-condition="dual_mirror"]::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; pointer-events: none;
  background: linear-gradient(105deg, #a1a4aa, #f2f3f4 36%, #c0c3c8 52%, #a1a4aa);
}
.scene-grid figcaption {
  padding-block: .55rem; border-bottom: 1px solid var(--rule);
  font-weight: 650; font-size: .89rem;
}
.caption { color: var(--muted); font-size: .84rem; margin-top: .83rem; }
.metric-control { display: flex; gap: 2px; padding: 2px; background: var(--surface); border-radius: 4px; flex: none; }
.metric-control button {
  cursor: pointer; min-height: 2.4rem; border: 0; border-radius: 3px; padding: .35rem .8rem;
  background: transparent; color: var(--ink); font-size: .82rem; white-space: nowrap;
}
.metric-control button[aria-pressed="true"] { background: var(--paper); font-weight: 670; }
.metric-control button:hover { text-decoration: underline; }
.table-hint { display: none; }
.table-wrap { overflow-x: auto; border-bottom: 1px solid var(--rule); }
table { width: 100%; min-width: 37rem; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
th, td { text-align: right; padding: .77rem .65rem; border-top: 1px solid var(--rule); }
th:first-child, td:first-child { text-align: left; padding-left: .4rem; }
thead th { font-size: .82rem; color: var(--muted); font-weight: 650; }
tbody th { font-weight: 650; }
tbody td:last-child { font-weight: 700; }
tbody tr:hover { background: var(--surface); }
.protocol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; margin-top: 1.9rem; }
.protocol > div { border-top: 1px solid var(--rule); padding-top: .85rem; }
.protocol dt { font: 600 1.35rem/1.2 var(--display); }
.protocol dd { color: var(--muted); margin-top: .45rem; }
.video-grid { display: grid; gap: 2.3rem; }
.video-row {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 9fr);
  gap: 2.3rem 1.4rem;
}
.video-row + .video-row { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.video-grid video { object-fit: contain; }
.diagnostic-media { position: relative; }
.video-outcome {
  position: absolute; inset-block-start: clamp(.4rem, 1vw, .75rem); left: 50%;
  translate: -50%; align-items: center; gap: .45rem; padding: .35rem .65rem;
  border-radius: .25rem; background: #303030dc; color: #fff;
  font-size: .82rem; font-weight: 650; line-height: 1.2; white-space: nowrap;
  pointer-events: none;
}
.video-outcome:not([hidden]) { display: flex; }
.video-outcome-left { left: 25%; }
.video-outcome-right { left: 75%; }
.video-outcome::before {
  content: ""; inline-size: .36rem; block-size: .63rem;
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-10%);
}
.video-grid figcaption { padding-top: .63rem; }
.video-grid figcaption h3 { margin: 0; font: 600 1.32rem/1.2 var(--display); }
.video-grid figcaption p { color: var(--muted); margin-top: .3rem; font-size: .89rem; }
.footer { display: flex; gap: 1rem; justify-content: space-between; padding-block: 1.5rem 2.2rem; font-size: .84rem; color: var(--muted); }

@media (max-width: 850px) {
  .section, .footer { width: calc(100% - 2.5rem); }
}
@media (max-width: 690px) {
  .hero-inner { width: calc(100% - 2rem); padding-block-start: 3.4rem; }
  .hero h1 { max-width: 19ch; font-size: clamp(2.5rem, 8.2vw, 3.35rem); }
  .subtitle { margin-top: .62rem; }
  .byline { margin-top: .85rem; font-size: .82rem; }
}
@media (max-width: 590px) {
  .section, .footer { width: calc(100% - 2rem); }
  .wordmark { font-size: 1.08rem; }
  .wordmark img { width: 2.75rem; height: 2.75rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .85rem; margin-bottom: 1rem; }
  .table-hint { display: block; margin-bottom: .32rem; color: var(--muted); font-size: .78rem; }
  .table-wrap th:first-child { position: sticky; left: 0; background: var(--paper); }
  .protocol { grid-template-columns: 1fr; margin-top: 1.2rem; }
  .video-grid .video-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .wordmark { gap: .25rem; font-size: .94rem; }
  .wordmark img { width: 2.35rem; height: 2.35rem; }
}

.paper-figure {
  display: grid;
  gap: .62rem;
}
.paper-figure > a {
  display: block;
  cursor: zoom-in;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.paper-figure figcaption { color: var(--muted); font-size: .86rem; }
.paper-figure figcaption strong { color: var(--ink); }
#abstract .section-heading, .abstract-copy {
  max-width: 84ch;
  margin-inline: auto;
}
.abstract-copy { line-height: 1.7; }
.abstract-copy p + p { margin-top: .85rem; }
.copy-citation {
  cursor: pointer;
  align-self: center;
  min-height: 2.5rem;
  padding: .32rem .72rem;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 650;
}
.copy-citation:hover { background: var(--surface); }
.citation-code {
  margin: 0;
  padding: clamp(.9rem, 2.5vw, 1.45rem);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.citation-status { margin-top: .52rem; min-height: 1.35em; }
@media (max-width: 590px) {
  .copy-citation { align-self: flex-start; }
}
