/* Uni3D supplementary page. Layout and typography follow the Nerfies template (Bulma); the font is bundled. */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/NotoSans-latin.woff2) format('woff2');
}

:root {
  --ours: #c8551f;
  --muted: #5f6672;
  --line: #dcdfe4;
  --panel: #f6f7f9;
}

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans', sans-serif; color: #363636; background: #fff; position: relative; isolation: isolate; }

/* Page background (chosen 2026-12-02, "C3b"): a soft orange / green wash at the top (the Uni3D logo colours), a
   perspective floor grid whose horizon sits behind the title and which is masked out around the title, authors and
   buttons, and light grey bands behind every other section below the abstract. */
body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1150px; z-index: -2; pointer-events: none;
  background: radial-gradient(760px 520px at 10% 0%, rgba(222, 112, 52, .17), transparent 70%),
              radial-gradient(760px 520px at 90% 6%, rgba(52, 150, 80, .15), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
/* outer element: screen-space mask (clear ellipse around the header text, fade in from the horizon, out beside the
   teaser); inner element: the tilted plane */
.bg-grid { position: absolute; top: 0; left: 0; right: 0; height: 1000px; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 600px 250px at 50% 175px, transparent 55%, #000 100%),
                      linear-gradient(transparent 140px, #000 300px, #000 420px, transparent 565px);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 600px 250px at 50% 175px, transparent 55%, #000 100%),
              linear-gradient(transparent 140px, #000 300px, #000 420px, transparent 565px);
  mask-composite: intersect; }
.bg-grid i { position: absolute; top: 150px; left: -60%; right: -60%; height: 430px;
  background-image: linear-gradient(rgba(70, 80, 100, .22) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(70, 80, 100, .22) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  transform: perspective(620px) rotateX(70deg); transform-origin: 50% 0; }
#method, #more-recon, #more-nvs { background: #f4f4f6; }

.project-logo { display: block; width: clamp(3.25rem, 5vw, 4.5rem); height: auto; margin: 0 auto .65rem; }
.publication-title { font-family: 'Noto Sans', sans-serif; font-weight: 600; line-height: 1.25; }
/* Two lines (forced break after "View Synthesis"): the first line is 29.8 em wide, so the size follows the container. */
.title.publication-title { font-size: 2.25rem; }
@media screen and (max-width: 1215px) { .title.publication-title { font-size: 1.95rem; } }
@media screen and (max-width: 1023px) { .title.publication-title { font-size: calc((100vw - 96px) / 30.5); } }
@media screen and (max-width: 768px) { .title.publication-title { font-size: 1.6rem; } }
.publication-authors { font-family: 'Noto Sans', sans-serif; }
.author-block { display: inline-block; }
.publication-authors + .publication-authors { margin-top: 0.25rem; }
.publication-authors a { color: #3273dc; }
.publication-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.25rem; }
.publication-links .button .icon svg { width: 1.05em; height: 1.05em; display: block; }
.method { font-weight: 700; }

.teaser .hero-body { padding-top: 0; padding-bottom: 3rem; }
.teaser video { width: 100%; height: auto; display: block; border-radius: 10px; background: #000; }
.teaser .subtitle { margin-top: 1.25rem; font-size: 1.4rem; line-height: 1.45; }

.section { padding: 3rem 1.5rem; }
/* Result sections (reconstruction / NVS comparisons and more results): between the 960px text sections and Bulma's
   1152px widescreen container. Below 1216px Bulma's own 960px limit applies. */
@media screen and (min-width: 1216px) { .container.is-max-widescreen.is-results { max-width: 1000px; } }
.method-video { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); background: #f4f4f6; }
.method-caption { margin-top: 1.25rem; }
.section-intro { max-width: 820px; margin: 0 auto 1.5rem; color: var(--muted); }
.note { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.group-title { margin: 2rem 0 1rem !important; text-align: center; color: #4a4a4a; }

/* input view strips */
.input-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 0 auto 1rem; max-width: 980px; }
.input-strip img { display: block; width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); }
.input-strip.is-small { gap: 4px; margin-top: 0.5rem; margin-bottom: 0; max-width: none; }
.input-strip.is-small.is-portrait { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* point-cloud viewers */
.pc-viewer { position: relative; width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 10px;
             overflow: hidden; background: #fff; touch-action: none; }
.pc-viewer.is-wide { aspect-ratio: 4 / 3; }
/* absolute, so the canvas never adds to the box's height (the box gets it from aspect-ratio or, below, from its grid row) */
.pc-viewer canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.pc-viewer canvas:active { cursor: grabbing; }
.pc-status { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center;
             padding: 1rem; color: var(--muted); font-size: 0.9rem; background: rgba(255, 255, 255, 0.75); pointer-events: none; }
.pc-label { text-align: center; font-weight: 600; margin-top: 0.4rem; }
.pc-label.is-ours, .nvs-rowlabel.is-ours { color: var(--ours); }
.comp-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 1.25rem; }
.comp-picker .thumb { width: 160px; }
.comp-picker .thumb img { border-radius: 3px; }
.comp-viewers { margin-top: 0.25rem; }
.viewer-controls { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: center;
                   color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }
.viewer-controls label { display: inline-flex; align-items: center; gap: 0.5rem; }
.viewer-controls input[type=range] { width: 160px; }

/* NVS comparison: four method videos in lockstep */
.nvs-comp-video { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; background: #000; }
.frame-count { display: inline-block; min-width: 4.5em; font-variant-numeric: tabular-nums; }

/* more reconstructions: scene picker */
.thumb-group { margin-bottom: 1rem; }
.thumb-group-label { font-weight: 600; margin-bottom: 0.4rem; color: #4a4a4a; }
/* Desktop: thumbnails left, viewer right and stretched to the thumbnail grid's height, controls under the viewer.
   Narrower: one column (thumbnails, 4:3 viewer, controls). */
.more-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.thumbs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
@media screen and (min-width: 1024px) {
  .more-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.25rem 2rem; }
  .more-layout .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .more-layout .pc-viewer { aspect-ratio: auto; min-height: 300px; }
  .more-layout .more-below { grid-column: 2; }
}
.thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; line-height: 0; }
.thumb img { width: 100%; height: auto; border-radius: 4px; display: block; }
.thumbs .thumb img { aspect-ratio: 1 / 1; object-fit: cover; }   /* square inputs; reserves the space before lazy load */
.thumb:hover { border-color: var(--line); }
.thumb.is-active { border-color: var(--ours); }
.thumb:focus-visible { outline: 2px solid var(--ours); outline-offset: 2px; }
.more-title { font-weight: 600; margin-bottom: 0.5rem; text-align: center; }
#more-inputs .input-strip { max-width: none; margin-bottom: 0.75rem; }

/* NVS vs ground truth */
.nvs-block { background: var(--panel); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.nvs-dataset { font-weight: 600; margin-bottom: 0.5rem; }
.nvs-row { display: grid; grid-template-columns: 110px repeat(8, minmax(0, 1fr)); gap: 6px; align-items: center; margin-bottom: 6px; }
.nvs-row .nvs-tgt { grid-column: span 2; }
.nvs-row img { width: 100%; height: auto; display: block; border-radius: 4px; }
.nvs-rowlabel { font-size: 0.9rem; font-weight: 600; color: #4a4a4a; }

/* NVS videos: one mixed masonry; cards are assigned to the four columns at build time */
.video-masonry { display: flex; gap: 1rem; align-items: flex-start; }
.video-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
@media screen and (max-width: 768px) { .video-masonry { flex-direction: column; } .video-col { width: 100%; } }
.video-card { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem; background: #fff; }
.video-card video { width: 100%; height: auto; display: block; border-radius: 6px; background: #000; }
.video-caption { font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }

/* BibTeX (public page only) */
.bibtex-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.bibtex-head .title { margin-bottom: 0 !important; }
pre.bibtex { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem;
             font-size: 0.85rem; line-height: 1.6; color: #363636; overflow-x: auto; }
pre.bibtex code { background: none; color: inherit; padding: 0; font-size: inherit; }

.footer { padding: 2rem 1.5rem 3rem; background: #fff; }
.footer .content { color: var(--muted); font-size: 0.85rem; }

@media screen and (max-width: 768px) {
  .input-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nvs-row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .nvs-rowlabel { grid-column: 1 / -1; }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
