@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/fonts/source-sans-3-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/fonts/source-sans-3-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/fonts/source-sans-3-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("./assets/fonts/source-serif-4-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("./assets/fonts/source-serif-4-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Academicons";
  src: url("./assets/fonts/academicons.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --ink-strong: #111111;
  --ink-soft: #415364;
  --line-soft: #d8e0e6;
  --brand: #1c587c;
  --brand-bright: #1a73b8;
  --panel-top: #f3f8fb;
  --panel-mid: #edf4f9;
  --panel-bottom: #f8fbfd;
  --shadow-soft: 0 14px 34px rgba(23, 45, 66, 0.09);
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink-strong);
  font-family: "Source Sans 3", var(--font-sans);
  line-height: 1.5;
}

a {
  color: #1a73b8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero {
  text-align: center;
  margin-bottom: 36px;
  padding: 32px 28px 26px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background:
    radial-gradient(140% 100% at 50% 0%, #f7fbfe 0%, var(--panel-mid) 46%, #ffffff 100%);
  box-shadow: var(--shadow-soft);
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 16px;
  max-width: 45ch;
  font-family: "Source Serif 4", var(--font-serif);
  font-size: clamp(1.9rem, 4.1vw, 3.2rem);
  font-weight: 300;
  line-height: 1.05;
}

.hero-summary {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: 1.14rem;
  color: var(--ink-soft);
  text-align: center;
}

.authors,
.affiliations {
  margin: 10px auto;
  max-width: 900px;
  font-size: 1.05rem;
}

.authors {
  max-width: 1040px;
  line-height: 1.9;
  font-size: 1.1rem;
}

.author-chip {
  display: inline;
  color: var(--ink-strong);
  font-weight: 600;
  white-space: nowrap;
}

.author-chip:hover {
  color: var(--brand-bright);
}

.author-item {
  display: inline-block;
  white-space: nowrap;
}

.author-item + .author-item::before {
  content: " \00B7  ";
  color: #7c8d9b;
}

sup {
  position: relative;
  top: -0.3em;
  font-size: 0.68em;
  line-height: 0;
  vertical-align: baseline;
  color: var(--brand);
  font-weight: 700;
}

.affiliations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-soft);
}

.affiliation-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0;
}

.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #232a31;
  background: #232a31;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.quick-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.92rem;
  height: 0.92rem;
  flex: 0 0 auto;
  color: currentColor;
}

.quick-link-icon img {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(0) invert(1);
}

.quick-links a:hover {
  text-decoration: none;
  border-color: #2d3741;
  background: #2d3741;
}

.ai {
  font-family: "Academicons";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ai-arxiv::before {
  content: "\e974";
}

.section {
  margin: 0 auto 34px;
  text-align: center;
}

.section-highlight {
  background: #f4f8fb;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 12px 20px;
}

.section-group-top {
  margin-bottom: 0;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 12px;
}

.section-group-middle {
  margin-bottom: 0;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  padding-top: 12px;
  padding-bottom: 12px;
}

.section-group-bottom {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-top: 12px;
}

.section h2 {
  margin: 0 0 12px;
  font-family: "Source Serif 4", var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.section p,
.section-text {
  max-width: 1020px;
  margin: 0 auto 16px;
  font-size: 1.08rem;
  text-align: justify;
}

.section-callout {
  max-width: 900px;
  margin: 18px auto 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand-bright);
  background: #f7fbfe;
  text-align: left;
}

.section-callout p {
  margin-bottom: 0;
  text-align: left;
}

.teaser img,
.section > img {
  margin: 0 auto;
  width: 100%;
  max-width: 720px;
}

.framed-figure {
  border: 1px solid #cfd6dc;
}

.stacked-image {
  margin-top: 18px;
}

.gaussian-teaser-flow {
  --teaser-gap: 16px;
  --teaser-strip-height: 100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: 4px 4px 0;
  background: transparent;
  box-shadow: none;
}

.input-flow-banner {
  width: auto;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1c587c;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  box-sizing: border-box;
  box-shadow: none;
}

.input-flow-subtitle {
  margin: 10px auto 0;
  max-width: 68ch;
  text-align: center !important;
  font-size: 0.97rem;
  color: #31526b;
}

.input-flow-arrow {
  position: relative;
  display: block;
  flex: 0 0 24px;
  width: 2px;
  height: 24px;
  margin: 8px auto 12px;
  background: #5b8cae;
  animation: flowPulse 1.9s ease-in-out infinite;
}

.input-flow-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #5b8cae;
}

.input-flow-arrow-right {
  animation-delay: 0.22s;
}

.flow-stage-label {
  margin: 16px auto 10px;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  box-shadow: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #1c587c;
}

.gaussian-teaser-row {
  width: 100%;
  max-width: 980px;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--teaser-gap);
}

.gaussian-teaser {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #d0dbe3;
  border-radius: 14px;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 10px 24px rgba(25, 35, 46, 0.15);
}

.teaser-object {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.teaser-input-strip {
  position: relative;
  height: var(--teaser-strip-height);
  background: #ffffff;
  border-bottom: 1px solid #d4dce3;
  border: 1px solid #d0dbe3;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.teaser-input-image {
  width: 95%;
  height: 95%;
  object-fit: contain;
  display: block;
}

.teaser-input-image-smaller {
  width: 90%;
  height: 90%;
}

.gaussian-teaser iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gaussian-teaser-note {
  max-width: 980px;
  margin: 10px auto 0;
  font-size: 0.95rem;
  text-align: center !important;
}

@media (max-width: 900px) {
  .gaussian-teaser-row {
    grid-template-columns: 1fr;
  }

  .gaussian-teaser-flow {
    --teaser-strip-height: 92px;
  }
}

.comparison-widget {
  max-width: 980px;
  margin: 0 auto;
}

.scene-group {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: start;
  gap: 8px;
  margin-bottom: 10px;
}

.scene-group-title {
  font-weight: 600;
  text-align: right;
  padding-top: 6px;
}

.comparison-scenes {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.scene-tab {
  border: 1px solid #cbcbcb;
  background: #ffffff;
  color: #2d2d2d;
  padding: 6px 10px;
  border-radius: 999px;
  font: inherit;
  width: 100%;
  min-height: 36px;
  font-size: 0.92rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.scene-tab.is-active {
  border-color: #1a73b8;
  background: #1a73b8;
  color: #ffffff;
}

.comparison-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(64px, 104px) 1fr;
  gap: 10px;
  align-items: stretch;
}

.input-block {
  position: relative;
  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  overflow: hidden;
}

.comparison-input-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.results-block {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
}

.groundtruth-block,
.comparison-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2060 / 512;
  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
}

.comparison-stage {
  touch-action: none;
}

.viewer-label {
  position: absolute;
  top: 10px;
  z-index: 4;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.viewer-label-left {
  left: 10px;
}

.viewer-label-right {
  right: 10px;
}

.viewer-label-input {
  top: 8px;
  left: 0;
  right: 0;
  width: auto;
  padding: 6px 8px;
  border-radius: 0;
  text-align: center;
  white-space: nowrap;
}

.viewer-label-gt {
  left: 10px;
}

.viewer-label-input-full {
  top: 8px;
  left: 0;
  right: 0;
  width: auto;
  border-radius: 0;
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
}

.comparison-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.comparison-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.comparison-right {
  clip-path: inset(0 0 0 var(--split, 50%));
}

.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: #8a8a8a;
  transform: translateX(-1px);
  z-index: 5;
}

.comparison-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 2px solid #f3f3f3;
  border-radius: 999px;
  background: rgba(122, 122, 122, 0.98);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(30, 30, 30, 0.28);
}

.comparison-handle::before {
  content: "< >";
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}

.method-controls {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.method-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.method-title {
  min-width: 44px;
  font-weight: 600;
}

.method-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.method-btn {
  border: 1px solid #d0d0d0;
  background: #ffffff;
  padding: 5px 10px;
  border-radius: 999px;
  color: #2d2d2d;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.method-btn.is-active {
  border-color: #1a73b8;
  background: #e9f3fb;
  color: #114f7e;
}

.comparison-subsection {
  margin-top: 20px;
}

.comparison-subsection h3 {
  margin: 0 0 8px;
  font-family: "Source Serif 4", var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: left;
}

.trellis-widget {
  max-width: 860px;
  margin: 0 auto;
}

.trellis-scenes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.trellis-tab {
  border: 1px solid #cbcbcb;
  background: #ffffff;
  color: #2d2d2d;
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.trellis-tab.is-active {
  border-color: #1a73b8;
  background: #1a73b8;
  color: #ffffff;
}

.trellis-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(52px, 110px) 1fr;
  gap: 10px;
  align-items: stretch;
}

.trellis-input-block,
.trellis-row {
  position: relative;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  background: #ffffff;
}

.trellis-results {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
}

.trellis-row {
  aspect-ratio: 2060 / 512;
}

.trellis-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@media (max-width: 780px) {
  .scene-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .scene-group-title {
    text-align: left;
    padding-top: 0;
  }

  .comparison-scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-layout {
    grid-template-columns: minmax(56px, 84px) 1fr;
    gap: 8px;
  }

  .trellis-layout {
    grid-template-columns: minmax(56px, 84px) 1fr;
    gap: 8px;
  }

  .trellis-input-block {
    aspect-ratio: auto;
    max-height: none;
    margin: 0;
    width: 100%;
  }

  .input-block {
    aspect-ratio: auto;
    max-height: none;
    margin: 0;
    width: 100%;
  }

  .method-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 24px 16px 20px;
    border-radius: 18px;
  }

  .hero-summary {
    font-size: 1.02rem;
  }

  .gaussian-teaser-flow {
    padding: 0;
    border-radius: 0;
  }

  .input-flow-banner {
    font-size: 0.88rem;
    min-width: min(100%, 320px);
    padding: 9px 14px;
  }

  .input-flow-subtitle {
    font-size: 0.9rem;
    margin-top: 8px;
  }

  .input-flow-arrow {
    top: 1px;
    height: 19px;
  }

  .input-flow-arrow::after {
    top: 100%;
  }

  .flow-stage-label {
    font-size: 0.88rem;
    margin: 12px auto 6px;
    min-width: min(100%, 320px);
    padding: 9px 14px;
  }

  .teaser-input-strip {
    height: var(--teaser-strip-height);
  }

  .viewer-label {
    font-size: 0.74rem;
    padding: 3px 8px;
  }
}

@keyframes flowPulse {
  0% {
    opacity: 0.42;
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0.52;
  }
}

pre {
  max-width: 1020px;
  margin: 0 auto 16px;
  padding: 18px;
  overflow-x: auto;
  text-align: left;
  background: #f7f7f7;
  border: 1px solid #e2e2e2;
}

.copy-button {
  padding: 8px 14px;
  border: 1px solid #cfcfcf;
  background: #ffffff;
  color: #111111;
  font: inherit;
  cursor: pointer;
}

.copy-button[data-copied="true"] {
  background: #1a73b8;
  border-color: #1a73b8;
  color: #ffffff;
}

@media (max-width: 700px) {
  .container {
    width: min(100vw - 20px, 1100px);
    padding-top: 20px;
  }

  .authors,
  .affiliations,
  .section p,
  .section-text {
    font-size: 1rem;
  }

  .authors {
    line-height: 1.8;
  }

  .quick-links a {
    width: 100%;
    justify-content: center;
  }

  .section-callout {
    padding: 14px 14px 14px 16px;
  }
}
