/* Site theme: profile page and academic project pages. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
:root {
  --ink: #171717;
  --soft-ink: #343434;
  --muted: #666666;
  --line: #e8e8e8;
  --paper: #ffffff;
  --wash: #f8fbff;
  --accent: #3d73b7;
  --accent-2: #3d73b7;
  --warm: #8fb6df;
  --accent-hover: #2f5f99;
  --accent-soft: #f3f7fc;
  --accent-line: #c8dbf1;
  --accent-border: #b8d0eb;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}
.site-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 22px;
}
.hero {
  padding: 52px 0 28px;
  border-bottom: 1px solid var(--accent-line);
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.portrait-wrap {
  width: 142px;
  height: 142px;
  padding: 4px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: var(--paper);
}
.user-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  font-weight: 750;
  line-height: 1.12;
}
.lead {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--soft-ink);
  font-size: 1rem;
}
.bio-copy p {
  margin-bottom: 0.72rem;
  text-align: left;
  hyphens: manual;
}
.bio-copy p:last-child {
  margin-bottom: 0;
}
.research-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}
.research-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--soft-ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(61, 115, 183, 0.06);
}
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  color: var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-soft) 100%);
  box-shadow: 0 5px 14px rgba(61, 115, 183, 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.social-icons a:hover,
.social-icons a:focus-visible {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(61, 115, 183, 0.22);
  transform: translateY(-2px);
  outline: none;
}
.social-icons i {
  font-size: 1rem;
  line-height: 1;
}
.tabs-section {
  padding: 24px 0 56px;
}
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--accent-line);
  border-radius: 0;
  background: transparent;
}
.nav-pills .nav-link {
  min-height: auto;
  padding: 0 0 7px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}
.section-intro {
  margin-bottom: 14px;
}
.section-intro h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 750;
}
.section-intro h2::after {
  content: "";
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-border);
}
.section-intro p {
  margin-bottom: 0;
  color: var(--muted);
}
.publication-list {
  display: grid;
  gap: 12px;
}
.publication-item,
.timeline-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(31, 51, 78, 0.04);
}
.publication-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.publication-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: var(--accent);
  opacity: 0.72;
}
.publication-item:hover {
  border-color: var(--accent-line);
  box-shadow: 0 12px 30px rgba(61, 115, 183, 0.1);
  transform: translateY(-1px);
}
.pub-thumb {
  width: 124px;
  height: 72px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: #ffffff;
}
.pub-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.pub-title {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}
.pub-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.pub-meta span,
.timeline-lines span {
  display: block;
}
.author-self {
  color: #111111;
  font-weight: 800;
}
.author-link {
  color: var(--soft-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 2px;
}
.author-link:hover {
  color: var(--accent);
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 1px;
}
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
}
.btn-custom i,
.paper-links i {
  width: 1.05em;
  text-align: center;
}
.btn-custom:hover {
  color: var(--accent-hover);
  background: transparent;
}
.btn-custom.is-disabled,
.btn-custom.is-disabled:hover {
  color: #9ca3af;
  cursor: default;
  pointer-events: none;
}
.timeline-container {
  display: grid;
  gap: 10px;
}
.timeline-block {
  position: relative;
  padding: 16px 18px 16px 30px;
}
.timeline-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
}
.timeline-h3 {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 700;
}
.timeline-span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 650;
}
.timeline-date {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}
.timeline-p {
  margin-bottom: 0;
  padding-left: 1.1rem;
  color: var(--soft-ink);
  font-size: 0.94rem;
}
.timeline-p li {
  margin-bottom: 0.25rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.site-footer .site-shell {
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.paper-page {
  counter-reset: paper-figure;
  background:
    linear-gradient(180deg, #f7faff 0, #ffffff 380px),
    #ffffff;
}
.paper-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 26px 22px 64px;
}
.paper-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  font-size: 0.82rem;
}
.paper-topline a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-soft) 100%);
  box-shadow: 0 6px 16px rgba(61, 115, 183, 0.08);
  font-weight: 750;
  line-height: 1;
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.paper-topline a:hover,
.paper-topline a:focus-visible {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 9px 20px rgba(61, 115, 183, 0.18);
  transform: translateY(-1px);
  outline: none;
}
.paper-topline i {
  font-size: 0.82rem;
}
.paper-header {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}
.paper-header h1 {
  margin-bottom: 12px;
  font-size: clamp(1.52rem, 2.35vw, 2.08rem);
  font-weight: 750;
  line-height: 1.12;
}
.paper-authors,
.paper-affiliations,
.paper-venue {
  margin-bottom: 7px;
  color: var(--soft-ink);
}
.paper-authors {
  font-size: 0.94rem;
  line-height: 1.5;
}
.affiliation-mark {
  margin-left: 2px;
  color: var(--accent);
  font-size: 0.68em;
  font-weight: 800;
  line-height: 0;
}
.paper-header .author-link {
  color: var(--ink);
  text-decoration-color: var(--accent-line);
}
.paper-affiliations {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  color: var(--soft-ink);
  font-size: 0.86rem;
  font-weight: 600;
}
.paper-affiliations span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.paper-affiliations .affiliation-mark {
  margin-left: 0;
}
.paper-venue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(243, 247, 252, 0.82);
  font-size: 0.82rem;
  font-weight: 750;
}
.paper-affiliations i,
.paper-venue i {
  font-size: 0.82rem;
}
.paper-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 700;
}
.paper-links > a,
.paper-links > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}
.paper-links .is-disabled {
  color: #9ca3af;
}
.paper-links .coming-soon {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 2px 6px;
  border: 0;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.paper-figure {
  margin: 26px auto 36px;
}
.paper-figure.hero-figure {
  max-width: 880px;
  padding: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(61, 115, 183, 0.08);
}
.paper-shell .pipeline-section {
  max-width: 920px;
}
.pipeline-stack {
  display: grid;
  gap: 20px;
}
.paper-figure.pipeline-figure {
  margin: 0;
}
.pipeline-figure h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  text-align: center;
}
.pipeline-figure img {
  border: 1px solid var(--accent-line);
  border-radius: 6px;
}
.paper-figure.video-figure {
  max-width: 920px;
}
.paper-figure.video-figure video {
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: #0f172a;
}
.paper-figure.wide-figure.direct-light-video {
  max-width: 920px;
  margin-top: 20px;
  margin-bottom: 28px;
}
.direct-light-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.direct-light-video-grid figure {
  margin: 0;
}
.direct-light-video-grid figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.paper-figure.direct-light-video video {
  max-height: 360px;
  object-fit: contain;
}
.paper-figure.wide-figure {
  max-width: 920px;
}
.paper-figure.plot-figure {
  max-width: 660px;
}
.intrinsic-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: center;
  gap: 20px;
  margin: 0 auto 24px;
}
.intrinsic-summary p {
  max-width: none;
}
.intrinsic-summary p + p {
  margin-top: 12px;
}
.intrinsic-summary .paper-figure {
  justify-self: end;
  margin: 0;
}
.intrinsic-summary .compact-plot {
  max-width: 340px;
}
.intrinsic-summary .paper-figure.compact-plot img {
  max-height: 220px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
}
.intrinsic-summary .compact-plot figcaption {
  max-width: none;
  text-align: left;
}
.paper-figure img,
.paper-figure video {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #ffffff;
}
.paper-page figure {
  position: relative;
}
.paper-page figure img {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.paper-page figure img[role="button"] {
  cursor: zoom-in;
}
.paper-page figure:hover > img,
.paper-page figure img:focus-visible {
  border-color: var(--accent-border);
  box-shadow: 0 10px 26px rgba(61, 115, 183, 0.13);
  filter: saturate(1.04);
  transform: translateY(-2px) scale(1.01);
  outline: none;
}
.paper-figure.wide-figure img {
  border: 1px solid var(--accent-line);
  border-radius: 6px;
}
.paper-figure.plot-figure img {
  max-height: 360px;
}
.paper-figure > figcaption {
  max-width: 760px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}
.paper-figure > figcaption::before {
  counter-increment: paper-figure;
  content: "Figure " counter(paper-figure) ". ";
  color: var(--accent);
  font-weight: 800;
}
.paper-shell section {
  max-width: 820px;
  margin: 40px auto 0;
}
.paper-shell h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 1.04rem;
  font-weight: 750;
}
.paper-shell h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--accent-line);
}
.paper-shell p {
  color: var(--soft-ink);
  font-size: 0.93rem;
  line-height: 1.55;
  text-align: left;
  hyphens: manual;
}
.paper-header p,
.paper-figure > figcaption,
.paper-gallery figcaption,
.comparison-grid figcaption {
  text-align: center;
}
.method-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.method-cards article {
  padding: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: #ffffff;
}
.method-cards h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 750;
}
.method-cards p {
  margin-bottom: 0;
  font-size: 0.84rem;
}
.bibtex-title {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}
.bibtex-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(61, 115, 183, 0.06);
}
.paper-shell pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.78rem;
}
.bibtex-card pre {
  padding-top: 44px;
}
.copy-bibtex {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}
.copy-bibtex:hover,
.copy-bibtex:focus-visible {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
  outline: none;
}
.paper-shell pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.paper-table {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: #ffffff;
}
.paper-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--soft-ink);
  font-size: 0.78rem;
}
.paper-table th,
.paper-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--accent-line);
  text-align: center;
}
.paper-table th:first-child,
.paper-table td:first-child {
  text-align: left;
}
.paper-table thead th {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 750;
}
.paper-table tbody th {
  color: var(--ink);
}
.paper-table tr:last-child th,
.paper-table tr:last-child td {
  border-bottom: 0;
}
.paper-table .is-best th,
.paper-table .is-best td {
  background: #f7fbff;
  color: var(--accent);
  font-weight: 750;
}
.paper-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.paper-gallery figure {
  margin: 0;
}
.paper-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}
.demo-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.demo-video-grid figure {
  margin: 0;
}
.demo-video-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: #0f172a;
}
.demo-video-grid figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.paper-gallery figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}
.comparison-stack {
  display: grid;
  gap: 28px;
}
#object-results,
#scene-results {
  max-width: 980px;
}
#object-results > h2,
#object-results > p,
#scene-results > h2,
#scene-results > p {
  max-width: 820px;
}
.comparison-set h3,
.comparison-set h4,
.figure-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}
.comparison-set h3::before,
.figure-group-title::before {
  counter-increment: paper-figure;
  content: "Figure " counter(paper-figure);
  padding: 3px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}
.aegir-page .figure-group-title::before,
.nopose-page .figure-group-title::before {
  display: none;
  counter-increment: none;
  content: none;
}
.aegir-page .grouped-figure,
.aegir-page .matrix-figure,
.aegir-page .table-figure,
.aegir-page .gallery-figure,
.nopose-page .grouped-figure,
.nopose-page .table-figure,
.nopose-page .result-figure {
  max-width: 920px;
}
.aegir-page .table-figure,
.aegir-page .gallery-figure,
.nopose-page .table-figure,
.nopose-page .result-figure {
  margin-top: 14px;
}
.aegir-page .matrix-figure {
  margin-top: 12px;
}
.comparison-grid {
  display: grid;
  gap: 14px;
}
.comparison-grid.six-col {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.comparison-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.comparison-grid figure {
  margin: 0;
}
.comparison-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: #ffffff;
  padding: 4px;
}
.figure-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 12px;
  padding: 44px 22px 28px;
  background: rgba(10, 22, 38, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.figure-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.figure-lightbox img {
  display: block;
  max-width: min(1100px, 96vw);
  max-height: 78vh;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  object-fit: contain;
}
.figure-lightbox p {
  max-width: min(860px, 92vw);
  margin: 0;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}
.figure-lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.figure-lightbox-close:hover,
.figure-lightbox-close:focus-visible {
  background: var(--accent);
  outline: none;
}
.comparison-grid.two-col img {
  aspect-ratio: 16 / 9;
}
.comparison-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.comparison-grid.three-col img {
  aspect-ratio: 16 / 9;
}
.comparison-grid.six-col figcaption {
  font-size: 0.68rem;
  line-height: 1.25;
}
.comparison-grid.landscape-grid img {
  aspect-ratio: 16 / 9;
}
.comparison-grid figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}
.result-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}
.result-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.78rem;
}
.result-table th,
.result-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--accent-line);
  color: var(--soft-ink);
  text-align: left;
  vertical-align: middle;
}
.result-table th {
  color: var(--ink);
  background: var(--accent-soft);
  font-weight: 800;
}
.result-table tr:last-child td {
  border-bottom: 0;
}
.result-table td:not(:first-child),
.result-table th:not(:first-child) {
  text-align: center;
}
.result-table .best {
  color: var(--ink);
  font-weight: 800;
}
.result-table .second {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.matrix-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}
.lighting-matrix {
  display: grid;
  gap: 8px;
  min-width: 760px;
  align-items: center;
}
.lighting-matrix {
  grid-template-columns: 96px repeat(4, minmax(0, 1fr));
}
.matrix-head,
.matrix-row-label {
  color: var(--soft-ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.matrix-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 8px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
}
.lighting-matrix figure {
  position: relative;
  margin: 0;
}
.lighting-matrix img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: #ffffff;
}
.inset-figure .lighting-inset {
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 34%;
  border: 1px solid #ef4444;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.paper-page .inset-figure:hover .lighting-inset,
.paper-page .inset-figure .lighting-inset:focus-visible {
  filter: none;
  transform: none;
}
.intrinsic-comparisons {
  display: grid;
  gap: 28px;
  min-width: 0;
}
.intrinsic-comparisons article {
  margin: 0;
  min-width: 0;
}
.intrinsic-comparisons h4 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}
.intrinsic-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 6px;
  table-layout: fixed;
}
.intrinsic-table th,
.intrinsic-table td {
  padding: 0;
  vertical-align: middle;
  text-align: center;
}
.intrinsic-table thead th {
  padding: 8px 6px;
  border-bottom: 1px solid var(--accent-line);
  border-radius: 6px;
  color: var(--soft-ink);
  background: var(--accent-soft);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}
.intrinsic-table thead th:first-child,
.intrinsic-table tbody th[scope="row"] {
  width: 88px;
}
.intrinsic-table tbody th[scope="row"] {
  padding: 8px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}
.intrinsic-table figure {
  margin: 0;
}
.intrinsic-table img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: #ffffff;
}
.intrinsic-table .reference-cell {
  width: 144px;
}
.intrinsic-table .reference-cell img {
  box-shadow: 0 10px 24px rgba(42, 84, 137, 0.08);
}
.intrinsic-table .na-cell {
  border: 1px dashed var(--accent-line);
  border-radius: 6px;
  color: var(--muted);
  background: #f8fbff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}
.caption {
  padding: 11px 14px;
  color: #d0d5dd;
  font-size: 0.84rem;
  background: #111827;
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    text-align: center;
  }
  .portrait-wrap,
  .social-icons,
  .research-strip {
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
  }
  .publication-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px 12px;
  }
  .pub-thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 92px;
    height: 60px;
  }
  .publication-item > div:first-of-type,
  .publication-item .action-row {
    grid-column: 2;
  }
  .action-row {
    justify-content: flex-start;
  }
  .paper-gallery,
  .intrinsic-summary,
  .method-cards,
  .comparison-grid.six-col,
  .comparison-grid.three-col,
  .comparison-grid.two-col,
  .direct-light-video-grid,
  .demo-video-grid {
    grid-template-columns: 1fr;
  }
  .intrinsic-summary .paper-figure {
    justify-self: center;
  }
  .intrinsic-summary .compact-plot {
    max-width: 420px;
  }
  .intrinsic-summary .compact-plot figcaption {
    text-align: center;
  }
}
@media (max-width: 560px) {
  .site-shell {
    padding-right: 16px;
    padding-left: 16px;
  }
  .hero {
    padding-top: 38px;
  }
  .section-intro {
    display: block;
  }
  .publication-item {
    grid-template-columns: 1fr;
  }
  .pub-thumb,
  .publication-item > div:first-of-type,
  .publication-item .action-row {
    grid-column: 1;
  }
  .pub-thumb {
    grid-row: auto;
    width: 100%;
    height: 96px;
  }
  .paper-topline {
    align-items: stretch;
    flex-direction: column;
  }
  .paper-topline a {
    justify-content: center;
  }
  .paper-shell h2::after {
    display: none;
  }
}

/* Shared presentation layer for the profile and academic project pages. */
:root {
  --ink: #202124;
  --soft-ink: #3e4247;
  --muted: #686d73;
  --line: #e2e4e7;
  --paper: #fff;
  --wash: #fafafa;
  --accent: #3d73b7;
  --accent-2: #3d73b7;
  --accent-hover: #28558e;
  --accent-soft: #f6f7f8;
  --accent-line: #e2e4e7;
  --accent-border: #b8c3cf;
}
body { font-size: 15px; line-height: 1.7; }
body,
h1,
h2,
h3,
h4,
a,
span { letter-spacing: 0; }
a:focus-visible,
button:focus-visible,
img[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.hero,
.paper-page { background: var(--paper); }
.site-shell { max-width: 1000px; }
.hero { padding: 64px 0 30px; border-bottom: 0; }
.hero-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.portrait-wrap {
  width: 220px; height: 220px; aspect-ratio: 1;
  margin-top: 8px; border: 0; border-radius: 0; padding: 0; overflow: hidden;
}
.user-image { border-radius: 0; }
h1,
.paper-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.25;
}
.hero h1 { margin-bottom: 20px; }
h1,
h2,
.pub-title { text-wrap: balance; }
.lead { font-size: 0.94rem; font-weight: 400; line-height: 1.8; }
.bio-copy p { margin-bottom: 14px; text-align: left; }
.bio-copy strong { font-weight: 600; }
.research-strip { gap: 8px 16px; margin: 20px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.research-strip span {
  min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; color: var(--muted);
  font-size: 0.79rem; font-weight: 400;
}
.social-icons { gap: 8px; }
.social-icons a {
  width: 32px; height: 32px; border: 0; border-radius: 3px;
  background: none; box-shadow: none; color: var(--soft-ink);
}
.social-icons a:hover,
.social-icons a:focus-visible {
  color: var(--accent); background: var(--accent-soft);
  box-shadow: none; transform: none;
}
.tabs-section { padding-top: 12px; }
.nav-pills { gap: 28px; padding-bottom: 0; margin-bottom: 30px; }
.nav-pills .nav-link { padding: 12px 0; font-weight: 500; }
.section-intro { margin-bottom: 6px; }
.section-intro h2,
.paper-shell h2 {
  color: var(--ink); font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem; font-weight: 400; line-height: 1.35;
}
.section-intro h2::after,
.paper-shell h2::after { display: none; }
.publication-list { gap: 0; }
.publication-item {
  grid-template-columns: 150px minmax(0, 1fr); gap: 8px 26px;
  padding: 24px 0; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; box-shadow: none; transition: none;
}
.publication-item::before { display: none; }
.publication-item:hover { border-color: var(--line); box-shadow: none; transform: none; }
.pub-thumb {
  grid-column: 1; grid-row: 1 / span 2; align-self: center;
  width: 150px; height: 100px; border: 1px solid var(--line); border-radius: 2px;
}
.pub-thumb img { padding: 0; object-fit: cover; }
.publication-item > div:first-of-type,
.publication-item .action-row { grid-column: 2; }
.pub-title { font-size: 1rem; line-height: 1.5; font-weight: 600; text-wrap: pretty; }
.pub-meta { font-size: 0.83rem; line-height: 1.75; }
.pub-meta > span:last-child { color: var(--muted); font-style: italic; }
.author-self { color: #111; font-weight: 700; }
.author-link { text-decoration-color: #d2d6dc; }
.action-row { justify-content: flex-start; gap: 18px; }
.btn-custom { font-size: 0.79rem; font-weight: 500; }
.timeline-container { gap: 0; }
.timeline-block {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px;
  padding: 24px 0; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; box-shadow: none;
}
.timeline-block::before { display: none; }
.timeline-h3 { grid-column: 1; font-weight: 600; }
.timeline-span { grid-column: 1; color: var(--soft-ink); font-weight: 400; }
.timeline-date { grid-column: 2; grid-row: 1 / span 2; font-weight: 400; text-align: right; }
.timeline-p { grid-column: 1 / -1; margin-top: 8px; font-size: 0.9rem; }
.site-footer .site-shell { font-size: 0.78rem; }
.paper-page .site-footer { margin-top: 64px; }
.paper-page .site-footer .site-shell { max-width: 1000px; }
.paper-shell { max-width: 1000px; padding-top: 24px; }
.paper-topline { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 42px; }
.paper-topline a {
  padding: 6px 0; border: 0; border-radius: 0; background: none;
  box-shadow: none; font-weight: 500; color: var(--muted); line-height: 1.5;
}
.paper-topline a:hover,
.paper-topline a:focus-visible {
  color: var(--accent); background: none; box-shadow: none; transform: none;
}
.paper-header { max-width: 850px; margin-bottom: 36px; }
.paper-header h1 { font-size: 1.9rem; line-height: 1.3; margin-bottom: 22px; }
.paper-header h1 strong { font-weight: 700; }
.paper-shell .paper-authors { font-size: 0.9rem; line-height: 1.8; }
.paper-shell .paper-affiliations { font-size: 0.8rem; font-weight: 400; gap: 6px 16px; }
.paper-shell .paper-venue {
  font-size: 0.8rem; font-weight: 400; font-style: italic;
  border: 0; border-radius: 0; padding: 0; background: none; color: var(--muted);
}
.paper-affiliations i,
.paper-venue i { display: none; }
.paper-links { gap: 12px; font-size: 0.82rem; font-weight: 500; margin-top: 22px; }
.paper-links > a,
.paper-links > span {
  border-radius: 3px; background: #fff; padding: 7px 12px;
}
.paper-links > a:hover { border-color: var(--accent); background: var(--accent-soft); }
.paper-links .coming-soon {
  padding: 0; background: none; color: var(--muted);
  font-weight: 400; text-transform: none; letter-spacing: 0;
}
.paper-shell section { margin-top: 48px; scroll-margin-top: 24px; }
.paper-shell h2 { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.paper-shell p { font-size: 0.92rem; line-height: 1.8; text-align: left; }
.paper-header p { text-align: center; }
.paper-figure.hero-figure { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.paper-page figure img,
.paper-page figure video,
.intrinsic-summary .paper-figure.compact-plot img {
  border: 0; border-radius: 0; box-shadow: none; transition: none;
}
.paper-page figure:hover > img,
.paper-page figure img:focus-visible {
  transform: none; filter: none; box-shadow: none;
}
.paper-page figure img:focus-visible { outline: 2px solid var(--accent); }
.paper-figure > figcaption { max-width: 820px; text-align: left; line-height: 1.65; font-size: 0.8rem; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.paper-figure > figcaption::before { color: var(--ink); font-weight: 600; }
.method-cards { gap: 24px; }
.method-cards article { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0 0; }
.method-cards h3 { color: var(--ink); font-weight: 600; }
.copy-bibtex { border-radius: 3px; background: #fff; font-weight: 500; }
.bibtex-card { border-color: var(--line); border-radius: 3px; box-shadow: none; }
.paper-shell pre { background: #fafafa; font-size: 0.75rem; line-height: 1.65; }
.paper-table,
.result-table { border: 0; border-top: 2px solid #72777d; border-bottom: 1px solid #72777d; border-radius: 0; }
.paper-table thead th,
.result-table th { background: #f6f7f8; color: var(--ink); }
.paper-table .is-best th,
.paper-table .is-best td { background: #f6f7f8; color: var(--ink); }
.matrix-row-label,
.intrinsic-table tbody th[scope="row"],
.intrinsic-table thead th {
  border: 0; border-radius: 0; background: #f6f7f8; color: var(--soft-ink);
}
.intrinsic-table .reference-cell img { box-shadow: none; }
.intrinsic-table .na-cell { background: #fafafa; border-radius: 0; }
.paper-page .inset-figure .lighting-inset { border: 1px solid #b34c4c; }
.comparison-grid img { padding: 0; }
.result-table,
.paper-table { font-variant-numeric: tabular-nums; }
.result-table .second { text-decoration-color: currentColor; }
.paper-gallery figcaption,
.comparison-grid figcaption { line-height: 1.5; }
/* Prose is set ragged-right; automatic hyphenation is off. */
.bio-copy p,
.timeline-p,
.timeline-p li,
.paper-shell section p,
.paper-figure > figcaption,
.intrinsic-summary .compact-plot figcaption {
  text-align: left;
  hyphens: manual;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; text-align: left; }
  .portrait-wrap { width: 180px; height: 180px; }
  .social-icons,
  .research-strip { justify-content: flex-start; }
  .comparison-grid.six-col,
  .comparison-grid.three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .portrait-wrap { margin: 0; width: 190px; height: 190px; max-width: 100%; }
  .timeline-block { display: block; }
  .timeline-date { text-align: left; }
  h1 { font-size: 1.8rem; }
  .paper-header h1 { font-size: 1.6rem; }
  .publication-item { grid-template-columns: 96px minmax(0, 1fr); gap: 8px 16px; }
  .pub-thumb { width: 96px; height: 64px; grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
  .publication-item > div:first-of-type,
  .publication-item .action-row { grid-column: 2; }
  .action-row { gap: 14px; }
  .paper-shell { padding-right: 18px; padding-left: 18px; }
  .paper-topline { flex-direction: row; align-items: center; gap: 16px; margin-bottom: 30px; }
  .paper-topline a { justify-content: flex-start; font-size: 0.73rem; }
  .paper-topline i { display: none; }
  .paper-header { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
}
