:root {
  --paper: #fdfaf4;
  --ink: #22221f;
  --muted: #61605b;
  --line: #d9d4c9;
  --accent: #a64730;
  --accent-soft: #f3e8df;
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 20px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
figure,
p,
h1,
h2,
h3 {
  margin: 0;
}
p + p {
  margin-top: 18px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: #ead1bf;
  color: var(--ink);
}
.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;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 250, 244, 0.96);
  backdrop-filter: blur(14px);
}
.header-inner {
  height: 72px;
  max-width: 1440px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  font: 600 18px var(--sans);
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  font: 36px/0.7 var(--serif);
  color: var(--accent);
  margin-top: -4px;
}
.header-links {
  display: flex;
  gap: 24px;
  font: 17px/1.5 var(--mono);
}
.header-links a {
  text-decoration: none;
}
.header-links a:hover {
  color: var(--accent);
}
.page-shell {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
}
.page-toc {
  position: fixed;
  right: max(24px, calc((100vw - 1520px) / 2));
  top: 150px;
  width: 210px;
  z-index: 10;
  font: 16px/1.5 var(--sans);
  display: none;
}
.page-toc > a {
  display: flex;
  gap: 13px;
  padding: 11px 12px;
  border-left: 1px solid var(--line);
  text-decoration: none;
  color: var(--muted);
}
.page-toc > a:hover,
.page-toc > a[aria-current="location"] {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 11px;
}
.mobile-toc {
  display: none;
}
.hero {
  padding-top: 64px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font: 16px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.venue {
  color: var(--accent);
  border: 1px solid #c8a995;
  border-radius: 3px;
  padding: 6px 9px;
  letter-spacing: 1px;
}
.project-name {
  display: block;
  font: normal clamp(62px, 6.7vw, 92px)/1.13 var(--serif);
  letter-spacing: -4px;
  margin-top: 24px;
}
.title-period {
  color: var(--accent);
}
.project-subtitle {
  display: block;
  font: normal clamp(30px, 2.9vw, 42px)/1.25 var(--serif);
  letter-spacing: -0.7px;
  max-width: 950px;
  margin-top: 12px;
}
.authors {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 23px;
  font-size: 18px;
}
.authors sup {
  font-size: 0.68em;
  margin-left: 2px;
  color: var(--accent);
}
.affiliations {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}
.affiliations sup {
  margin-right: 3px;
}
.author-notes {
  margin-top: 12px;
  font: 16px/1.6 var(--sans);
  color: var(--muted);
}
.author-notes span {
  margin: 0 10px;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 27px;
  margin-top: 25px;
  font: 18px/1.6 var(--mono);
}
.project-links a {
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s;
}
.project-links a:hover {
  color: var(--accent);
}
.hero-figure {
  margin-top: 40px;
}
.figure-zoom {
  position: relative;
  display: block;
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  overflow: hidden;
  cursor: zoom-in;
}
.figure-zoom img {
  width: 100%;
}
figcaption {
  margin-top: 13px;
  font: 18px/1.65 var(--sans);
  color: var(--muted);
}
.section {
  margin-top: 62px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading h2 {
  font: normal 32px/1.35 var(--serif);
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-heading h2:before {
  content: "";
  height: 8px;
  width: 8px;
  background: var(--ink);
  flex: none;
}
.lead {
  font: normal 31px/1.4 var(--serif);
  letter-spacing: -0.4px;
  margin-bottom: 22px;
  color: var(--accent);
}
.overview-copy {
  max-width: 920px;
  color: #49483f;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 34px;
}
.principles > div {
  border-top: 2px solid var(--ink);
  padding-top: 17px;
}
.principles h3 {
  font: normal 26px/1.35 var(--serif);
  margin: 10px 0;
}
.principles p {
  font-size: 18px;
  line-height: 1.65;
  color: #4c4b46;
}
.demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 27px;
  border-bottom: 1px solid var(--line);
}
.demo-tabs button {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  text-align: left;
  font: 18px/1.5 var(--sans);
  padding: 16px 14px;
  color: var(--muted);
  margin-bottom: -1px;
  min-height: 58px;
}
.demo-tabs button span {
  font: inherit;
}
.demo-tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.demo-tabs button:hover {
  color: var(--accent);
}
.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  background: #f7f2e9;
}
.comparison {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  overflow: hidden;
  background: #e5dfd6;
  touch-action: pan-y;
}
.compare-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.before-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  pointer-events: none;
}
.image-label {
  position: absolute;
  top: 16px;
  padding: 4px 9px;
  background: rgba(253, 250, 244, 0.9);
  border-radius: 3px;
  font: 16px/1.5 var(--sans);
  pointer-events: none;
}
.before-label {
  left: 16px;
}
.after-label {
  right: 16px;
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: white;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 0 4px #0004;
}
.compare-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  background: rgba(34, 34, 31, 0.7);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font: 20px var(--sans);
  letter-spacing: 2px;
}
.comparison input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}
.comparison:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.demo-description {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  gap: 28px;
}
.demo-description h3 {
  font: normal 32px/1.3 var(--serif);
  letter-spacing: -0.5px;
  margin: 0;
}
.demo-description p {
  font-size: 18px;
  line-height: 1.65;
  color: #4c4b46;
}
.prompt {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.prompt p {
  font: 18px/1.7 var(--mono);
  margin-top: 9px;
  color: var(--ink);
}
.demo-foot {
  margin-top: auto;
  font: 16px/1.6 var(--sans);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}
.demo-foot a {
  color: var(--accent);
}
.figure-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 30px;
}
.figure-details summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  cursor: pointer;
  font-size: 18px;
}
.figure-details summary::-webkit-details-marker {
  display: none;
}
.figure-details summary > span {
  font: 22px var(--sans);
  color: var(--accent);
}
.figure-details[open] summary > span {
  transform: rotate(45deg);
}
.figure-details figure {
  padding-bottom: 18px;
}
.figure-details .figure-zoom {
  max-width: 950px;
  margin: auto;
}
.method-stage {
  margin-top: 30px;
}
.method-stage + .method-stage {
  margin-top: 38px;
}
.stage-heading {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-bottom: 19px;
}
.stage-index {
  font: italic 36px var(--serif);
  width: 39px;
  color: var(--accent);
}
.stage-heading h3 {
  font: normal 26px/1.4 var(--serif);
  margin-top: 0;
}
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 19px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: #4c4b46;
}
.method-steps strong {
  color: var(--ink);
}
.method-stage > p {
  font-size: 18px;
  color: #4c4b46;
  margin-top: 18px;
}
.result-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 0 33px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.result-highlights > div {
  padding: 0 25px;
  border-right: 1px solid var(--line);
}
.result-highlights > div:first-child {
  padding-left: 0;
}
.result-highlights > div:last-child {
  border: 0;
}
.result-value {
  display: block;
  font: normal 47px/1.1 var(--serif);
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.result-value > span {
  font: normal 17px var(--serif);
  letter-spacing: 0;
  margin-left: 5px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-color: #c2b6a5 var(--paper);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1050px;
  font: 18px/1.6 var(--sans);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e8e2d8;
}
thead th {
  font-weight: 500;
}
thead tr:last-child {
  background: #f4efe5;
}
th:first-child {
  text-align: left;
}
th small {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.table-groups th {
  font-size: 16px;
  text-align: center;
  padding: 12px 5px 8px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
tbody th {
  font-weight: 400;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
.ours {
  background: var(--accent-soft);
  color: #7e3423;
  font-weight: 700;
}
.ours th {
  font-weight: 700;
}
.table-note {
  font: 16px/1.7 var(--sans);
  color: var(--muted);
  margin-top: 11px;
}
.result-figure {
  margin-top: 28px;
}
.resource-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.resource-list > a {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 24px 3px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.resource-list > a > span:first-child {
  flex: 1;
}
.resource-list strong {
  display: block;
  font: normal 25px/1.4 var(--serif);
  margin-bottom: 0;
}
.resource-list > a > span:last-child {
  font-size: 24px;
  transition: transform 0.15s;
}
.resource-list > a:hover {
  color: var(--accent);
}
.resource-list > a:hover > span:last-child {
  transform: translate(3px, -3px);
}
.citation-box {
  background: #f1ebe0;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 23px;
  overflow: hidden;
}
.code-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 17px;
  border-bottom: 1px solid var(--line);
  font: 16px/1.5 var(--sans);
  color: var(--muted);
}
.code-toolbar button {
  border: 0;
  background: none;
  padding: 7px 0;
  font: 16px/1.5 var(--sans);
  color: var(--accent);
  min-height: 44px;
}
pre {
  margin: 0;
  padding: 23px;
  overflow: auto;
  font: 16px/1.8 var(--mono);
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre code {
  font: inherit;
}
.site-footer {
  margin-top: 58px;
  padding: 28px 0 35px;
  border-top: 1px solid var(--line);
  font: 16px/1.6 var(--sans);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.image-dialog {
  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 36px);
  padding: 54px 18px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
}
.image-dialog::backdrop {
  background: rgba(22, 22, 19, 0.83);
  backdrop-filter: blur(5px);
}
.image-dialog img {
  max-height: calc(100dvh - 150px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: auto;
}
.dialog-close {
  position: absolute;
  right: 18px;
  top: 12px;
  border: 0;
  background: none;
  padding: 6px 8px;
  font: 16px/1.5 var(--sans);
  color: var(--accent);
}
.dialog-caption {
  font: 16px/1.6 var(--sans);
  text-align: center;
  color: var(--muted);
  max-width: 900px;
  margin: 14px auto 0;
}

[hidden] {
  display: none !important;
}
.authors > span {
  white-space: nowrap;
}
.metric-label {
  display: block;
  font: 18px/1.5 var(--sans);
  color: var(--ink);
}
.prompt-label {
  display: block;
  font: 600 16px/1.5 var(--sans);
}
#demo-mode {
  margin-top: 14px;
}
.demo-status {
  margin-top: 16px;
  font-size: 18px;
}
.figure-zoom::after {
  content: "↗";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(253, 250, 244, 0.94);
  font: 22px/1 var(--sans);
  opacity: 0;
}
.figure-zoom:hover::after,
.figure-zoom:focus-visible::after {
  opacity: 1;
}

@media (min-width: 1500px) {
  .page-toc {
    display: block;
  }
  .page-shell {
    transform: translateX(-70px);
  }
}
@media (max-width: 1499px) {
  .mobile-toc {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-top: 32px;
    padding: 16px 0;
    font: 16px/1.5 var(--sans);
  }
  .mobile-toc a {
    text-decoration: none;
  }
}
@media (max-width: 900px) {
  .demo-panel {
    grid-template-columns: 1fr;
  }
  .demo-description {
    gap: 24px;
  }
  .demo-foot {
    margin-top: 0;
  }
  .principles,
  .method-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero {
    padding-top: 44px;
  }
  .project-subtitle {
    font-size: 36px;
  }
  .demo-tabs button {
    font-size: 17px;
  }
}
@media (max-width: 760px) {
  .result-highlights {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
  }
  .result-highlights > div,
  .result-highlights > div:first-child {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 0;
    border: 0;
  }
  .result-highlights > div + div {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .result-value {
    margin: 0;
  }
  .wide-break {
    display: none;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 18px;
  }
  .page-shell {
    width: calc(100% - 36px);
  }
  .header-inner {
    min-height: 64px;
    height: auto;
    padding: 12px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .header-links {
    gap: 16px;
    font-size: 16px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    font-size: 30px;
  }
  .hero {
    padding-top: 32px;
  }
  .project-name {
    font-size: clamp(54px, 15vw, 72px);
    letter-spacing: -3px;
    margin-top: 20px;
  }
  .project-subtitle {
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.4px;
  }
  .authors {
    font-size: 16px;
    gap: 10px 16px;
    margin-top: 25px;
  }
  .affiliations {
    flex-direction: column;
    gap: 6px;
  }
  .author-notes {
    font-size: 16px;
  }
  .project-links {
    font-size: 16px;
    gap: 14px 22px;
  }
  .hero-figure {
    margin-top: 30px;
  }
  .figure-zoom {
    padding: 7px;
    border-radius: 6px;
  }
  .figure-zoom::after {
    opacity: 1;
    right: 8px;
    bottom: 8px;
  }
  .section {
    margin-top: 42px;
    padding-top: 32px;
  }
  .section-heading h2 {
    font-size: 28px;
    gap: 10px;
  }
  .lead {
    font-size: 30px;
  }
  .principles h3 {
    margin: 0 0 10px;
  }
  .demo-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 10px;
  }
  .demo-tabs button {
    flex: 1 1 140px;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
  }
  .demo-description {
    padding: 24px 20px;
  }
  .demo-description h3 {
    font-size: 30px;
  }
  .prompt p {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  .stage-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .stage-index {
    font-size: 30px;
    width: 30px;
    flex-shrink: 0;
  }
  .stage-heading h3 {
    font-size: 25px;
  }
  .result-highlights > div,
  .result-highlights > div:first-child {
    grid-template-columns: 125px minmax(0, 1fr);
  }
  .result-value {
    font-size: 42px;
  }
  .result-value > span {
    font-size: 18px;
  }
  table {
    font-size: 16px;
  }
  .resource-list > a {
    padding: 22px 2px;
    gap: 16px;
  }
  .resource-list strong {
    font-size: 23px;
  }
  .code-toolbar {
    padding: 8px 16px;
  }
  pre {
    padding: 18px;
    font-size: 16px;
  }
  .site-footer {
    margin-top: 42px;
    flex-direction: column;
  }
  .image-dialog {
    padding: 55px 12px 16px;
    max-width: calc(100vw - 20px);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
