:root {
    --bg: #f5f4ef;
    --surface: #ffffff;
    --ink: #15171c;
    --text: #15171c;
    --text-secondary: #565b64;
    --text-tertiary: #8b8f98;
    --accent: #3a52c4;
    --accent-deep: #2a3a93;
    --accent-soft: #eaedf9;
    --warn: #c0492f;
    --border: #e6e4dd;
    --border-light: #eeece6;
    --shadow-sm: 0 1px 3px rgba(20,23,40,0.04), 0 1px 2px rgba(20,23,40,0.06);
    --shadow-md: 0 6px 24px rgba(20,23,40,0.07), 0 1px 3px rgba(20,23,40,0.05);
    --radius: 12px;
    --font-display: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Manrope', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    font-weight: 400;
}

.page-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

section { margin-bottom: 64px; }

/* ───────── Header ───────── */
.site-header {
    padding: 80px 0 0;
    text-align: center;
}

/* Prominent acceptance badge */
.venue-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(58,82,196,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
    margin-bottom: 28px;
}
.venue-badge .vb-strong { font-weight: 700; letter-spacing: 0.16em; }
.venue-badge .vb-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.75);
    animation: vbPulse 2.6s ease-out infinite;
}
@keyframes vbPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.site-header h1 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.18;
    color: var(--ink);
    margin: 0 auto 14px;
    letter-spacing: -0.015em;
    max-width: 22ch;
}
.site-header h1 .gx { color: var(--accent); font-style: italic; }

.tagline {
    font-size: 1.06rem;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 28px;
    line-height: 1.62;
}

.authors {
    font-size: 0.98rem;
    color: var(--text);
    margin-bottom: 4px;
}
.authors a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s;
}
.authors a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.affiliations {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 26px;
}

.header-buttons {
    display: flex;
    gap: 11px;
    justify-content: center;
    flex-wrap: wrap;
}
.header-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.18s ease, background 0.2s;
}
.header-buttons a:hover { background: var(--accent-deep); transform: translateY(-1px); }
.header-buttons a.ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
}
.header-buttons a.ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.header-buttons svg { width: 16px; height: 16px; }
.btn-soon {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--accent-soft);
    color: var(--accent);
}

/* Generous separation between header and the teaser */
.teaser-section { margin-top: 76px; }

/* ───────── Section titles ───────── */
.section-head {
    margin-bottom: 24px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.section-title::after {
    content: '';
    display: block;
    width: 38px;
    height: 2px;
    background: var(--accent);
    margin-top: 10px;
}

/* ───────── Figures ───────── */
.full-figure { text-align: center; }
.figure-frame {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 14px;
    overflow: hidden;
}
.figure-frame img {
    width: 100%;
    border-radius: 6px;
    display: block;
    cursor: zoom-in;
}
/* hover affordance for the lightbox */
.figure-frame::after {
    content: '\2922  Enlarge';
    position: absolute;
    top: 22px; right: 22px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(20,23,40,0.62);
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.figure-frame:hover::after { opacity: 1; }

.full-figure figcaption {
    margin: 16px auto 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.62;
    text-align: left;
    max-width: 920px;
}
figcaption strong { color: var(--ink); font-weight: 700; }
.figure-stack > * + * { margin-top: 28px; }

/* ───────── Contributions ───────── */
.contributions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.contrib-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 26px 24px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contrib-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contrib-index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
    display: block;
    margin-bottom: 14px;
}
.contrib-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 9px;
    color: var(--ink);
    line-height: 1.3;
}
.contrib-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.62;
}

/* ───────── Abstract ───────── */
.abstract-text {
    font-size: 1.04rem;
    line-height: 1.85;
    color: var(--text-secondary);
    max-width: 880px;
}
.abstract-text .lead::first-letter {
    font-family: var(--font-display);
    font-size: 3.1rem;
    font-weight: 700;
    float: left;
    line-height: 0.82;
    padding: 6px 12px 0 0;
    color: var(--accent);
}

/* ───────── Method phases ───────── */
.phase-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}
.phase {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 22px 20px;
    border-top: 3px solid var(--accent);
}
.phase .pnum {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.phase h4 {
    font-size: 0.96rem;
    font-weight: 700;
    margin: 8px 0 7px;
    color: var(--ink);
}
.phase p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.58;
}

/* ───────── Tables ───────── */
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    margin-bottom: 14px;
}
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 640px;
}
table.data caption {
    text-align: left;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 16px 18px 4px;
    line-height: 1.55;
}
table.data caption b { color: var(--ink); }
table.data th, table.data td {
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap;
}
table.data thead th {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
}
table.data thead tr.grouphead th {
    color: var(--ink);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding-bottom: 4px;
}
table.data tbody td:first-child, table.data tbody th:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--ink);
}
table.data tbody td { font-family: var(--font-mono); color: var(--text-secondary); }
table.data tbody tr { border-bottom: 1px solid var(--border-light); }
table.data tbody tr:last-child { border-bottom: none; }
table.data tr.ours { background: var(--accent-soft); }
table.data tr.ours td:first-child {
    color: var(--accent-deep);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--accent);
}
table.data tr.divider td { border-top: 1px solid var(--border); }
table.data .vcol { color: var(--text-tertiary); font-family: var(--font-mono); }
.table-note {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 6px;
    line-height: 1.5;
}

/* ───────── Multi-view consistency strips ───────── */
.consistency-intro {
    font-size: 0.96rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    max-width: 860px;
}
.drag-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 26px;
}

.scene-block {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.scene-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.scene-name { font-weight: 700; font-size: 1rem; color: var(--ink); }
.badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 11px;
    border-radius: 20px;
}

/* one row per modality, full width */
.strip-row + .strip-row { margin-top: 16px; }
.strip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 7px;
}
.strip-modality {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink);
}
.strip-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.strip-sub .o { color: var(--accent); font-weight: 500; }

/* input strip (no slider) */
.input-strip {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.input-strip img { display: block; width: 100%; }
.input-strip .strip-tag,
.ba-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(20,23,40,0.62);
    padding: 2px 8px;
    border-radius: 5px;
}
.input-strip .strip-tag { bottom: 8px; left: 8px; }
.strip-divider {
    position: absolute; inset: 0; pointer-events: none; z-index: 4;
    background: repeating-linear-gradient(to right,
        transparent 0,
        transparent calc(100% / var(--views) - 1.5px),
        rgba(255,255,255,0.45) calc(100% / var(--views) - 1.5px),
        rgba(255,255,255,0.45) calc(100% / var(--views)));
}

/* the wipe slider — a full-width filmstrip */
.ba-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    background: #11131a;
}
.ba-slider .ba-before {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    z-index: 1;
}
.ba-slider .ba-after {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
    clip-path: inset(0 0 0 50%);
    pointer-events: none;
}
.ba-slider .ba-handle {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: #fff;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(0,0,0,0.35);
}
.ba-slider .ba-handle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 32px; height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.ba-slider .ba-handle::before {
    content: '\25C2  \25B8';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    font-size: 11px;
    color: var(--accent-deep);
    white-space: nowrap;
}
.ba-label { bottom: 8px; z-index: 6; }
.ba-label-before { left: 8px; }
.ba-label-after { right: 8px; background: var(--accent-deep); }

/* ───────── BibTeX ───────── */
.bibtex-block {
    background: #14161d;
    border-radius: var(--radius);
    padding: 22px 24px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    color: #c9cede;
    overflow-x: auto;
    position: relative;
}
.bibtex-block .k { color: #8aa0ff; }
.bibtex-block .f { color: #e0a878; }
.bibtex-block pre { margin: 0; white-space: pre; }
.copy-btn {
    position: absolute; top: 12px; right: 12px;
    font-family: var(--font-mono);
    font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: #c9cede; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px; padding: 5px 10px; cursor: pointer;
    transition: background 0.18s;
}
.copy-btn:hover { background: rgba(255,255,255,0.16); }

.site-footer {
    text-align: center;
    padding: 40px 0 56px;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border);
    margin-top: 16px;
}
.site-footer .sep { color: var(--border); margin: 0 8px; }

/* ───────── Lightbox ───────── */
.lightbox {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(15,16,22,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox .lb-stage {
    max-width: 96vw;
    max-height: 92vh;
    overflow: auto;
    border-radius: 8px;
}
.lightbox img {
    display: block;
    max-width: 96vw;
    max-height: 92vh;
    width: auto; height: auto;
    cursor: zoom-in;
    border-radius: 8px;
}
.lightbox img.zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}
.lightbox-close {
    position: fixed;
    top: 18px; right: 22px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-hint {
    position: fixed;
    bottom: 18px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
}

/* ───────── Responsive ───────── */
@media (max-width: 820px) {
    .contributions-grid, .phase-strip { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .site-header { padding-top: 56px; }
    .site-header h1 { font-size: 1.9rem; }
    .section-title { font-size: 1.3rem; }
    .venue-badge { font-size: 0.76rem; padding: 9px 16px; }
    .strip-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
