:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --line: rgba(31, 41, 35, 0.14);
  --line-strong: rgba(31, 41, 35, 0.22);
  --text: #202836;
  --muted: #3f4a5a;
  --accent: #0f9f6e;
  --accent-2: #2457ff;
  --shadow: 0 16px 42px rgba(31, 41, 35, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --max: 960px;
  --wide: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    linear-gradient(rgba(32, 40, 54, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 40, 54, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 42%, #ffffff 100%);
  background-size: 76px 76px, 76px 76px, auto;
  color: var(--text);
  letter-spacing: -0.01em;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.82;
}

.page-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  width: min(calc(100% - 32px), var(--wide));
  margin: 16px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(31, 41, 35, 0.06);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 750;
  letter-spacing: -0.035em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #32d399);
  color: white;
  box-shadow: 0 10px 28px rgba(15, 159, 110, 0.22);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 159, 110, 0.08);
}

.section-pad {
  width: min(calc(100% - 32px), var(--wide));
  margin: 0 auto;
  padding: 78px 0;
}


.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-copy {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-copy h1 {
  margin: 20px auto 20px;
  max-width: 980px;
  color: var(--text);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}


.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(15, 159, 110, 0.1), 0 0 20px rgba(15, 159, 110, 0.42);
}

.author-block {
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 0;
  padding: 0;
  background: transparent;
}

.author-block p {
  margin: 0;
  color: var(--text);
}

.author-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.author-link:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(36, 87, 255, 0.45);
}

.affiliations {
  color: var(--muted) !important;
  font-size: 0.98rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  min-width: 100px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 720;
  box-shadow: 0 6px 18px rgba(31, 41, 35, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 255, 0.34);
  box-shadow: 0 12px 26px rgba(31, 41, 35, 0.1);
}

.button-primary {
  border-color: transparent;
  background: #172016;
  color: white;
}

.paper-section,
.citation {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 64px 0;
}


.paper-section h2,
.citation h2 {
  margin: 56px auto 28px;
  max-width: 900px;
  color: var(--text);
  text-align: center;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.paper-section h2,
.citation h2 {
  margin-top: 0;
}

.paper-section p {
  max-width: 900px;
  margin: 0 auto 18px;
  text-align: left;
  text-wrap: pretty;
}

.project-figure {
  width: 100%;
  margin: 0 auto 58px;
}

.project-figure:last-child {
  margin-bottom: 0;
}

.project-figure img {
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow);
}


.project-figure figcaption {
  max-width: 920px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.78;
  text-align: left;
}

.project-figure figcaption strong {
  color: var(--text);
  font-weight: 780;
}

.citation pre {
  margin: 0 auto;
  max-width: 900px;
  overflow-x: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8faf9;
  color: #172016;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.65;
  box-shadow: 0 10px 28px rgba(31, 41, 35, 0.06);
}

.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 28px;
  padding: 28px 0 44px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.footer p,
.footer a {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a:hover {
  color: var(--accent-2);
}

@media (max-width: 700px) {
  body {
    background-size: 56px 56px, 56px 56px, auto;
  }

  .nav {
    position: relative;
    top: auto;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    border-radius: 24px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }

  .nav-links a {
    padding: 8px 7px;
    font-size: 0.82rem;
  }

  .section-pad {
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
  }

  .paper-section,
  .citation {
    padding: 46px 0;
  }

  .paper-section h2,
  .citation h2 {
    margin-bottom: 22px;
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .paper-section p {
    text-align: left;
    font-size: 1.14rem;
  }

  .project-figure {
    margin-bottom: 42px;
  }


  .project-figure figcaption {
    font-size: 1.1rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.zoomable-figure {
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.zoomable-figure:hover,
.zoomable-figure:focus-visible {
  border-color: rgba(36, 87, 255, 0.32);
  box-shadow: 0 20px 50px rgba(31, 41, 35, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(12, 18, 27, 0.72);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.image-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-card {
  width: min(1180px, 94vw);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: scale(0.985) translateY(8px);
  transition: transform 180ms ease;
}

.image-modal.is-open .image-modal-card {
  transform: scale(1) translateY(0);
}

.image-modal-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  background: white;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.image-modal-caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.04rem;
  line-height: 1.55;
  text-align: center;
}

.image-modal-close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.image-modal-close:hover,
.image-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

@media (max-width: 700px) {
  .image-modal {
    padding: 18px;
  }

  .image-modal-card {
    width: 96vw;
  }

  .image-modal-img {
    max-height: 72vh;
    border-radius: 14px;
  }

  .image-modal-caption {
    font-size: 0.96rem;
    text-align: left;
  }
}

/* Keep transparent paper figures readable inside the expanded preview. */
.image-modal-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.image-modal-img {
  box-shadow: none;
}

.image-modal-caption {
  color: #1f2937;
}

@media (max-width: 700px) {
  .image-modal-card {
    padding: 12px;
  }
}

.project-figure-wide {
  width: min(1180px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.project-figure-wide img {
  border-radius: 10px;
}

.table-capture img {
  border-radius: 8px;
  background: #ffffff;
}

.button-disabled {
  cursor: default;
  opacity: 0.74;
}

.button-disabled:hover {
  transform: none;
  box-shadow: 0 6px 18px rgba(31, 41, 35, 0.07);
}

/* Hero corner assets: institution/lab logos on the left, mascot on the right. */
.hero {
  position: relative;
}

.hero-corner-logos {
  position: absolute;
  top: 22px;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-corner-logos img {
  display: block;
  width: auto;
  object-fit: contain;
}

.hero-corner-logos img:first-child {
  height: 93px;
}

.hero-corner-logos img:last-child {
  height: 96px;
  max-width: 315px;
}

.hero-corner-mascot {
  position: absolute;
  top: 18px;
  right: 0;
  z-index: 2;
  width: 158px;
  height: 158px;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
}

@media (max-width: 700px) {
  .hero-corner-logos {
    top: 18px;
    left: 0;
    gap: 12px;
  }

  .hero-corner-logos img:first-child {
    height: 52px;
  }

  .hero-corner-logos img:last-child {
    height: 56px;
    max-width: 168px;
  }

  .hero-corner-mascot {
    top: 18px;
    right: 0;
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }
}

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.02em;
}

.paper-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(32, 116, 96, 0.36);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.paper-link:hover,
.paper-link:focus-visible {
  color: #207460;
  text-decoration-color: rgba(32, 116, 96, 0.82);
}

.paper-link,
.paper-link strong {
  font-weight: 800;
}

body.modal-open {
  overflow: hidden;
}

.image-modal-controls {
  position: fixed;
  top: 18px;
  right: 76px;
  z-index: 102;
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.image-modal-control {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #172016;
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}

.image-modal-control:hover,
.image-modal-control:focus-visible {
  background: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.image-modal-control:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.image-modal-viewport {
  width: 100%;
  max-height: 78vh;
  overflow: auto;
  border: 1px solid rgba(31, 41, 55, 0.14);
  border-radius: 18px;
  background: #ffffff;
  cursor: zoom-in;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  touch-action: none;
}

.image-modal-viewport.is-zoomed {
  cursor: grab;
}

.image-modal-viewport.is-panning {
  cursor: grabbing;
  user-select: none;
}

.image-modal-viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.image-modal-viewport::-webkit-scrollbar-thumb {
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.34);
}

.image-modal-viewport::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.06);
}

.image-modal-img {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 700px) {
  .image-modal-controls {
    top: 14px;
    right: 68px;
  }

  .image-modal-control {
    width: 36px;
    height: 36px;
    font-size: 1.28rem;
  }

  .image-modal-viewport {
    max-height: 72vh;
    border-radius: 14px;
  }
}

.project-figure {
  position: relative;
}

.project-figure::after {
  content: "⌕ Inspect";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(31, 41, 35, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(31, 41, 35, 0.68);
  box-shadow: 0 10px 24px rgba(31, 41, 35, 0.08);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 0.72;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.project-figure:hover::after,
.project-figure:focus-within::after {
  background: rgba(255, 255, 255, 0.94);
  color: rgba(31, 41, 35, 0.92);
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .project-figure::after {
    top: 10px;
    right: 10px;
    padding: 6px 9px;
    font-size: 0.74rem;
    opacity: 0.86;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

.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;
}

.hero-copy h1 {
  max-width: 920px;
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.nav-links a {
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a.is-active {
  background: rgba(15, 159, 110, 0.1);
  color: #0f6f50;
}

.paper-section + .paper-section,
.paper-section + .section-pad,
.section-pad + .paper-section {
  border-top: 1px solid rgba(31, 41, 35, 0.08);
}

.author-link {
  text-decoration: underline;
  text-decoration-color: rgba(15, 159, 110, 0.22);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.author-link:hover,
.author-link:focus-visible {
  color: #0f6f50;
  text-decoration-color: rgba(15, 159, 110, 0.78);
  outline: none;
}

.zoomable-figure:focus-visible {
  outline: 3px solid rgba(15, 159, 110, 0.42);
  outline-offset: 4px;
}

.project-figure img {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-figure:hover img,
.project-figure:focus-within img {
  border-color: rgba(15, 159, 110, 0.2);
  box-shadow: 0 24px 60px rgba(31, 41, 35, 0.13);
}

.bibtex-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.copy-bibtex {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  transition: background 160ms ease, transform 160ms ease;
}

.copy-bibtex:hover,
.copy-bibtex:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.copy-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-align: right;
}

.back-to-top-floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(31, 41, 35, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #172016;
  box-shadow: 0 14px 36px rgba(31, 41, 35, 0.12);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, background 160ms ease;
}

.back-to-top-floating:hover,
.back-to-top-floating:focus-visible {
  background: #ffffff;
  outline: none;
  transform: translateY(-2px);
}

.image-modal-controls {
  right: 76px;
}

.image-modal-reset {
  width: auto;
  min-width: 58px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.image-modal-hint {
  margin: 0 0 8px;
  color: rgba(31, 41, 35, 0.62);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: center;
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 76px;
  }

  .hero-copy h1 {
    line-height: 1.04;
    letter-spacing: -0.055em;
  }

  .copy-bibtex {
    top: 10px;
    right: 10px;
  }

  .back-to-top-floating {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .image-modal-controls {
    right: 68px;
  }

  .image-modal-reset {
    min-width: 52px;
    padding: 0 10px;
    font-size: 0.82rem;
  }
}

/* Make the BibTeX copy action visually discoverable on the light code block. */
.bibtex-card pre {
  padding-top: 58px;
}

.copy-bibtex {
  top: 16px;
  right: 16px;
  padding: 9px 14px;
  border: 1px solid rgba(15, 111, 80, 0.26);
  background: #172016;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 41, 35, 0.18);
  font-size: 0.9rem;
}

.copy-bibtex:hover,
.copy-bibtex:focus-visible {
  background: #0f6f50;
  box-shadow: 0 14px 30px rgba(15, 111, 80, 0.22);
}

.copy-status {
  color: #0f6f50;
  font-weight: 700;
}

@media (max-width: 700px) {
  .bibtex-card pre {
    padding-top: 54px;
  }

  .copy-bibtex {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}
