/* VecTile project page: additions on top of the NeRFies template (bulma + index.css).
   Same structure as the UniTac-VAE page; accent is the FPC copper instead of PLA red. */

:root {
  --ink: #1d1d1f;
  --muted: #5f6368;
  --line: #e4e2dd;
  --paper: #ffffff;
  --tint: #f7f6f3;
  --night: #121212;
  --accent: #b4600c;          /* FPC copper */
  --accent-dark: #8a4908;
  --accent-soft: #fbf0e4;
  --h06: #e0201b;             /* nub-height colours used across the paper figures */
  --h10: #f07818;
  --h20: #2fae2f;
  --h30: #3a8be0;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--paper); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ---------- navbar ---------- */
.navbar { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); }
.navbar-item { font-family: 'Google Sans', sans-serif; }

/* ---------- hero ---------- */
.hero.top-hero .hero-body { padding-bottom: 1.5rem; }
.publication-title.vectile-name {
  font-size: clamp(3rem, 9vw, 5.4rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 0.7rem !important;
}
.vectile-name span { color: var(--accent); }
.publication-subtitle {
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 1.4rem;
}
.publication-authors a { color: var(--accent) !important; }
.publication-venue-line {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1rem;
  margin-top: 0.4rem;
  color: var(--muted);
}
.publication-venue-line b { color: var(--ink); }
.publication-links { margin-top: 1.2rem; }
.publication-links .button { font-family: 'Google Sans', sans-serif; }
.button.is-soon { background: var(--paper); color: var(--muted); border: 1px dashed #c9c6bf; cursor: default; }
.button.is-soon:hover, .button.is-soon:focus { background: var(--paper); color: var(--muted); border-color: #c9c6bf; box-shadow: none; }
.button.is-soon small { font-size: 0.72em; margin-left: 0.35em; }

/* teaser figure */
.teaser-figure {
  max-width: 680px; margin: 0 auto;
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 18px 50px -18px rgba(0, 0, 0, 0.28);
}
.teaser-figure img { display: block; width: 100%; }
.teaser-lead {
  font-family: 'Google Sans', sans-serif; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.45;
  text-align: center; max-width: 820px; margin: 1.6rem auto 0;
}
.teaser-lead b { color: var(--accent); }

/* headline numbers */
.headline-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; margin: 2.2rem 0 0.4rem; }
.headline-stats > div { text-align: center; padding: 0.6rem 0.2rem; border-top: 2px solid var(--ink); }
.headline-stats .num { font: 2.1rem/1.05 'Google Sans', sans-serif; letter-spacing: -0.02em; color: var(--accent); }
.headline-stats .num small { font-size: 0.5em; color: var(--ink); margin-left: 0.1em; }
.headline-stats .lbl { color: var(--muted); font-size: 0.8rem; margin-top: 0.25rem; line-height: 1.3; }

/* highlight reel: equal-height row, each clip shown uncropped at its own aspect ratio */
.reel { display: flex; gap: 1rem; align-items: flex-start; }
.reel-item { min-width: 0; flex-basis: 0; }
.reel-card {
  position: relative; border-radius: 14px; overflow: hidden; background: #222;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.45); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.reel-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5); }
.reel-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* captions sit under the clip so nothing in the video is covered */
.reel-cap { padding: 0.75rem 0.1rem 0; }
.reel-cap .k {
  display: inline-block; font: 600 0.74rem 'Google Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.08em;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 0.2rem 0.65rem;
}
.reel-cap .t { font: 1.05rem/1.25 'Google Sans', sans-serif; margin-top: 0.45rem; }
.reel-cap .s { color: var(--muted); font-size: 0.84rem; margin-top: 0.25rem; line-height: 1.35; }
/* speed label, bottom right; sized in % so it fully covers the burned-in "real time" tag in the calibration clip */
.reel-card .rt {
  position: absolute; right: 2%; bottom: 1.5%; width: 30%; height: 5.5%;
  display: flex; align-items: center; justify-content: center;
  background: #000; color: #fff; border-radius: 4px;
  font: 600 clamp(0.62rem, 1.1vw, 0.82rem) 'Google Sans', sans-serif; letter-spacing: 0.02em;
}
.reel-card .speed {
  position: absolute; top: 0.6rem; right: 0.6rem; font: 600 0.7rem 'Google Sans', sans-serif; color: #fff;
  background: rgba(0, 0, 0, 0.45); border-radius: 999px; padding: 0.15rem 0.5rem;
}

/* ---------- generic sections ---------- */
.section.tinted { background: var(--tint); }
.section.night { background: var(--night); color: #e8e8e8; }
.section.night .title { color: #fff; }
.section.night .section-lead { color: #a8a8a8; }
.kicker {
  font: 600 0.78rem 'Google Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); text-align: center; margin-bottom: 0.5rem;
}
.section.night .kicker { color: #f3b878; }
.section .title.is-3 { font-family: 'Google Sans', sans-serif; letter-spacing: -0.02em; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.section .title.is-4 { font-family: 'Google Sans', sans-serif; letter-spacing: -0.01em; margin-top: 2.6rem; }
.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 760px;
  margin: -0.6rem auto 1.8rem;
}
.figure-caption { color: var(--muted); font-size: 0.92rem; margin-top: 0.6rem; }
.rounded-media { border-radius: 10px; display: block; width: 100%; }
.framed { border: 1px solid var(--line); background: #fff; }
.video-frame { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8); }
.video-frame video { display: block; width: 100%; }

/* click-to-enlarge figures */
img.zoomable { cursor: zoom-in; transition: box-shadow 0.2s ease; }
img.zoomable:hover { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.3); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, 0.88); padding: 2rem; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.lightbox .close {
  position: absolute; top: 0.8rem; right: 1rem; color: #fff; font-size: 1.6rem; background: none; border: 0; cursor: pointer;
}

.method-steps { counter-reset: step; }
.method-steps li { list-style: none; position: relative; padding-left: 2.4rem; margin-bottom: 0.9rem; }
.method-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0.05rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  font: 600 0.9rem/1.6rem 'Google Sans', sans-serif; text-align: center;
}

table.paper-table { font-size: 0.92rem; margin: 0 auto; }
.table.paper-table th, .table.paper-table td { text-align: center; vertical-align: middle; white-space: nowrap; }
.table.paper-table td:first-child, .table.paper-table th:first-child { text-align: left; }
.table.paper-table td.left, .table.paper-table th.left { text-align: left; }
table.paper-table td.ours, table.paper-table th.ours { background: var(--accent-soft); }
table.paper-table tr.total td { font-weight: 600; border-top: 2px solid var(--ink); }
.table-wrap { overflow-x: auto; }
.table-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; text-align: center; }

.h-dot { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; margin-right: 0.3em; vertical-align: 0.02em; }

/* ---------- result cards ---------- */
.result-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0.4rem 0 1.4rem; }
.result-card { border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; background: var(--paper); }
.result-card .big { font: 1.9rem/1.1 'Google Sans', sans-serif; color: var(--accent); letter-spacing: -0.01em; }
.result-card .big small { font-size: 0.95rem; color: var(--muted); }
.result-card .lbl { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }

.bar-compare { max-width: 560px; margin: 0.6rem auto 0; }
.bar-compare .row { display: grid; grid-template-columns: 9.5rem 1fr 3.6rem; align-items: center; gap: 0.6rem; margin-bottom: 0.55rem; font-size: 0.95rem; }
.bar-compare .track { background: var(--line); border-radius: 999px; height: 0.9rem; overflow: hidden; }
.bar-compare .fill { height: 100%; border-radius: 999px; background: #9aa0a6; }
.bar-compare .row.ours .fill { background: var(--accent); }
.bar-compare .row.ours { font-weight: 600; }
.bar-compare .val { font-family: 'Google Sans', sans-serif; text-align: right; }

/* ---------- open-source release (nothing is public until acceptance, so no links) ---------- */
.release-note {
  display: flex; gap: 0.9rem; align-items: flex-start; max-width: 760px; margin: 0 auto 1.4rem;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 0.9rem 1.1rem;
}
.release-note > i { color: var(--accent); font-size: 1.2rem; margin-top: 0.2rem; }
.release-note p { margin: 0; }
.kit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.kit-grid > div {
  border: 1px dashed #c9c6bf; border-radius: 10px; padding: 0.8rem 0.9rem;
  color: var(--ink); background: var(--paper);
}
.kit-grid b { display: block; font-family: 'Google Sans', sans-serif; }
.kit-grid i { color: var(--accent); margin-right: 0.35rem; }
.kit-grid span { font-size: 0.86rem; color: var(--muted); }
.kit-grid .soon {
  display: block; margin-top: 0.45rem; font: 600 0.7rem 'Google Sans', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent);
}

/* ---------- BibTeX, footer ---------- */
.bibtex-box { position: relative; }
.bibtex-box pre { background: var(--tint); border-radius: 10px; font-size: 0.85rem; }
.copy-btn { position: absolute; top: 0.6rem; right: 0.6rem; }
.footer { background: var(--tint); }

/* ---------- small screens ---------- */
@media (max-width: 1023px) {
  .headline-stats { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
  .kit-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .reel { flex-direction: column; align-items: center; }
  .reel-item { flex: none; }
  .reel-item { width: 100%; max-width: 300px; }
  .result-row { grid-template-columns: 1fr; }
  .headline-stats .num { font-size: 1.7rem; }
  .bar-compare .row { grid-template-columns: 7.5rem 1fr 3.2rem; font-size: 0.84rem; }
  .lightbox { padding: 0.6rem; }
}
@media (max-width: 480px) {
  .kit-grid { grid-template-columns: 1fr; }
  .headline-stats { grid-template-columns: repeat(2, 1fr); }
}
