/* ========================= */
/* GLOBAL */
/* ========================= */

body {
  font-family: 'Inter', sans-serif;
  color: #222;
}

html {
  scroll-behavior: smooth;
}

section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-divider {
  border-top: 1px solid #ddd;
  margin: 0 auto;
  max-width: 960px;
}

/* Uniform vertical spacing for all sections */
section.section,
section.hero .hero-body {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ========================= */
/* SECTION NAV */
/* ========================= */

.section-nav {
  position: fixed;
  top: 96px;
  left: 18px;
  z-index: 40;
  display: grid;
  gap: 30px;
}

.section-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px auto;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 28px;
  padding: 3px 10px 3px 0;
  color: var(--basil-dark, #3d5c1f);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.section-nav-item::before {
  content: "";
  position: absolute;
  inset: -6px -12px -6px -8px;
}

.section-nav-dot {
  grid-column: 1;
  justify-self: center;
  width: 21px;
  height: 21px;
  background: var(--nav-accent, #c8c8c8);
  opacity: 0.45;
  clip-path: polygon(18% 8%, 76% 0%, 100% 36%, 82% 92%, 28% 100%, 0% 58%);
  transition: background 0.2s ease, filter 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.section-nav-item.active .section-nav-dot,
.section-nav-item:hover .section-nav-dot {
  opacity: 1;
}

.section-nav-label {
  grid-column: 2;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  text-align: left;
  transform: translateX(-4px);
  transition: max-width 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.section-nav-item.active .section-nav-dot {
  width: 24px;
  height: 24px;
  background: var(--nav-accent, #a3c72a);
  filter: drop-shadow(0 0 0 var(--nav-glow, rgba(107, 142, 35, 0.2))) drop-shadow(0 0 8px var(--nav-glow, rgba(107, 142, 35, 0.42)));
  transform: rotate(-8deg);
}

/* Per-nav-item accent colors */
.section-nav-item[data-section-target="hero"] {
  --nav-accent: #ffadad;
  --nav-glow: rgba(232, 160, 160, 0.5);
  color: #8b4049;
}

.section-nav-item[data-section-target="method"] {
  --nav-accent: #a2d2ff;
  --nav-glow: rgba(123, 184, 224, 0.5);
  color: #2d6a8a;
}

.section-nav-item[data-section-target="results"] {
  --nav-accent: #b8f0b8;
  --nav-glow: rgba(139, 196, 139, 0.5);
  color: #3d6b3d;
}

.section-nav-item[data-section-target="acknowledgements"] {
  --nav-accent: #c4b5e0;
  --nav-glow: rgba(164, 142, 200, 0.5);
  color: #5a4480;
}

.section-nav-item[data-section-target="bibtex"] {
  --nav-accent: #f0c8a0;
  --nav-glow: rgba(212, 165, 116, 0.5);
  color: #7a5530;
}

.section-nav-item:nth-child(2n) .section-nav-dot {
  clip-path: polygon(8% 28%, 38% 0%, 88% 14%, 100% 70%, 58% 100%, 0% 82%);
}

.section-nav-item:nth-child(3n) .section-nav-dot {
  clip-path: polygon(28% 0%, 90% 10%, 100% 48%, 68% 100%, 12% 86%, 0% 30%);
}

.section-nav-item.active .section-nav-label,
.section-nav-item:hover .section-nav-label {
  max-width: 140px;
  opacity: 1;
  transform: translateX(0);
}

.section-nav-item:hover .section-nav-dot {
  transform: scale(1.15);
}

@media (max-width: 980px) {
  .section-nav {
    display: none;
  }
}

/* ========================= */
/* TYPOGRAPHY */
/* ========================= */

.publication-title {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: 3rem;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 10px;
}

.publication-authors,
.publication-affiliations,
.publication-venue {
  font-family: 'Inter', sans-serif;
}

.publication-authors {
  margin: 10px 0;
}

.author-block {
  display: inline-block;
  margin: 0 5px;
}

/* ========================= */
/* VENUE + AFFILIATIONS */
/* ========================= */

.publication-venue {
  display: flex;
  justify-content: center;
  margin: 24px 0 30px;
  width: 100%;
}

.publication-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 28px;
  background: none;
  color: #c41e1e;
  box-shadow: none;
}

.publication-tag .confetti {
  font-size: 2.2rem;
  display: inline-block;
  animation: confetti-bounce 2s ease-in-out infinite;
}

.publication-tag .confetti:last-child {
  animation-delay: 0.3s;
}

@keyframes confetti-bounce {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.1); }
  50% { transform: rotate(0deg) scale(1); }
  75% { transform: rotate(8deg) scale(1.05); }
}

.publication-affiliations {
  margin-top: 10px;
  margin-bottom: 20px;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}

.publication-affiliations span {
  white-space: nowrap;
}

/* ========================= */
/* ABSTRACT */
/* ========================= */

section pre {
  text-align: left;
  display: block;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9 !important;
  padding: 20px !important;
  overflow-x: auto;
  max-width: 100%;
  margin: 20px auto;
}

.abstract-box {
  margin-top: 30px;
  padding: 25px;
  text-align: center;
}

.abstract-box p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================= */
/* VIDEO COMPARE */
/* ========================= */

.video-compare-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-compare-container video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rgb-video {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.seg-video {
  z-index: 1;
}

.compare-slider {
  position: absolute;
  bottom: 10px;
  left: 10%;
  width: 80%;
  z-index: 3;
}

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: white;
  left: 50%;
  z-index: 4;
}

/* ========================= */
/* CAROUSEL */
/* ========================= */

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  border: 1px solid #bbb;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

/* ========================= */
/* VIDEO EMBED */
/* ========================= */

.publication-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px;
}

.publication-video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* ========================= */
/* INTERPOLATION */
/* ========================= */

.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image,
#interpolation-image-wrapper img {
  width: 100%;
  border-radius: 5px;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

/* ========================= */
/* LINKS (BUTTONS) */
/* ========================= */

.publication-links .button {
  border-radius: 22px;
  padding: 10px 20px;
  border: none;
  transition: all 0.2s ease;
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.1),
    -2px -2px 6px rgba(255, 255, 255, 0.5);
}

.publication-links .button:hover {
  transform: translateY(-2px) scale(1.03);
}

.publication-links .button:active {
  transform: scale(0.97);
}

/* ========================= */
/* CUSTOM CELLS */
/* ========================= */

.publication-links .cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  margin: 0 10px;
  color: #333;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  position: relative;
}

.publication-links .cell-1 {
  background: linear-gradient(145deg, #ffc4c4, #ffadad);
}

.publication-links .cell-2 {
  background: linear-gradient(145deg, #bde0fe, #a2d2ff);
}

.publication-links .cell-3 {
  background: linear-gradient(145deg, #b8f0b8, #a0e4a0);
}

.publication-links .cell:hover {
  transform: translateY(-3px) scale(1.05);
}

.publication-links .cell:active {
  transform: scale(0.95);
}

.publication-links .cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Shape variants */
.cell-1 {
  clip-path: polygon(10% 0%, 90% 5%, 100% 40%, 85% 100%, 15% 95%, 0% 50%);
}

.cell-2 {
  clip-path: polygon(5% 20%, 60% 0%, 100% 30%, 90% 85%, 40% 100%, 0% 70%);
}

.cell-3 {
  clip-path: polygon(0% 30%, 30% 0%, 80% 10%, 100% 60%, 70% 100%, 20% 90%);
}

/* ========================= */
/* PAPER TITLE SUBTEXT */
/* ========================= */

.paper-name {
  display: block;
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 0;
  margin: 0;
}

.paper-subtitle {
  display: block;
  font-weight: 300;
  font-size: 2rem;
  line-height: 0.3;
  margin: 0;
  color: #666;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a {
  margin: 5px 0;
}


/* ========================= */
/* METHOD SECTION */
/* ========================= */

.publication-links {
  margin-bottom: 50px;
}

.method-figure {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.method-figure img {
  width: 100%;
  max-width: 960px;   /* keeps it readable */
  border-radius: 12px;
}

/* Description under figure */
.method-description {
  max-width: 960;
  margin: 20px auto 0 auto;
  text-align: center;
}

.method-description p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.method-section .title {
  text-align: center;
}

/* Description under figure */

.scene-tabs {
  text-align: center;
  margin-bottom: 20px;
}

.scene-btn {
  padding: 8px 16px;
  margin: 4px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 6px;
}

.scene-btn.active {
  border: 2px solid black;
  font-weight: bold;
}

.comparison-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RIGHT VIDEO CLIP */
.video-right {
  clip-path: inset(0 0 0 50%);
}

/* SLIDER */
.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: white;
  cursor: ew-resize;
  z-index: 5;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.slider-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* LABELS */
.label,
.ui-label {
  position: absolute;
  top: 12px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  font-size: 14px;
}

.label.left { left: 12px; }
.label.right { right: 12px; }





.scene-gallery {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.scene-thumb {
  width: 120px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.scene-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.scene-thumb.active {
  opacity: 1;
  border: 2px solid black;
}


.result-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-top: 20px;
  align-items: center;
}

.gt-image {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.insertion-reference {
  display: grid;
  gap: 10px;
  align-content: center;
}

.inserted-object-card {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(107, 142, 35, 0.22);
  border-radius: 8px;
  background: #fff;
  justify-self: center;
}

.inserted-object-card span {
  color: #333;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  order: 2;
}

.inserted-object-thumb {
  width: min(110px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  order: 1;
}

/* thumbnails - consolidated with main gallery */



.cell {
  stroke: white;
  stroke-width: 1.5px;
  cursor: pointer;
}

.arrow {
  stroke: black;
  fill: none;
  marker-end: url(#arrowhead);
  stroke-dasharray: 4,4;
}

.ui-label {
  position: absolute;
  top: 12px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  font-size: 14px;
}


svg {
  background: white;
}

/* =========================
   VORONOI SECTION STYLE
========================= */

#voronoi-section {
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
  color: #444;
}

/* Title */
#voronoi-section h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Generate Button (matches hero cells) */
#generateBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Google Sans', sans-serif;
  padding: 12px 22px;
  margin: 0 10px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0;
  cursor: pointer;
  clip-path: polygon(10% 0%, 90% 5%, 100% 40%, 85% 100%, 15% 95%, 0% 50%);

  background: linear-gradient(145deg, #b8f0b8, #a0e4a0);
  color: #333;
  font-weight: 500;

  transition: all 0.2s ease;
  position: relative;
}

#generateBtn:hover {
  transform: translateY(-3px) scale(1.05);
}

#generateBtn:active {
  transform: scale(0.95);
}
#slider {
  width: 260px;
  margin-top: 10px;
  appearance: none;
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, #059669, #10b981);
  outline: none;
}

/* Slider thumb */
#slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #059669;
  cursor: pointer;
  transition: 0.2s;
}

#slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ========================= */
/* CARD-BASED LAYOUT SYSTEM */
/* ========================= */

:root {
  --basil-dark: #3d5c1f;
  --basil-medium: #6B8E23;
  --basil-light: #a3c72a;
  --basil-pale: #f0f6e5;
}

/* Main content card wrapper */
.card-block {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 20px auto;
  max-width: 960px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-left: 5px solid var(--basil-medium);
  transition: all 0.3s ease;
}

.card-block:hover {
  box-shadow: 0 8px 22px rgba(107, 142, 35, 0.12);
  transform: translateY(-2px);
}

/* Section header styling with basil accent */
.card-block .title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

/* Content sections within cards */
.card-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9f7;
  border-radius: 8px;
  border: 1px solid rgba(107, 142, 35, 0.08);
  transition: all 0.2s ease;
}

.card-section:hover {
  background: #ffffff;
  border-color: rgba(107, 142, 35, 0.15);
  box-shadow: 0 4px 14px rgba(107, 142, 35, 0.08);
}

.card-section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.card-section h4 {
  color: var(--accent-dark, #3d5c1f);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Subsection cards */
.subsection {
  background: white;
  padding: 30px;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid rgba(107, 142, 35, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.subsection:hover {
  box-shadow: 0 8px 22px rgba(107, 142, 35, 0.12);
  transform: translateY(-2px);
}

.subsection h3 {
  color: var(--accent-dark, #3d5c1f);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.subsection h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--basil-medium);
  margin-right: 8px;
  border-radius: 2px;
  vertical-align: middle;
}

/* Method overview: figure + description grouped */
.method-overview {
  background: white;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(123, 184, 224, 0.2);
  border-left: 4px solid var(--accent, #7bb8e0);
  margin-bottom: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.method-overview:hover {
  border-color: rgba(123, 184, 224, 0.3);
  box-shadow: 0 4px 14px rgba(123, 184, 224, 0.1);
}

.method-figure {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  margin-bottom: 20px;
}

.method-figure img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(45, 106, 138, 0.1);
}

.method-description {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  border-left: none;
}

/* Voronoi section card */
#voronoi-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-top: 30px;
  border: 2px solid rgba(123, 184, 224, 0.25);
  box-shadow: inset 0 0 0 1px rgba(123, 184, 224, 0.1);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#voronoi-section:hover {
  box-shadow:
    inset 0 0 0 1px rgba(123, 184, 224, 0.1),
    0 8px 22px rgba(123, 184, 224, 0.12);
  transform: translateY(-2px);
}

#voronoi-section h3 {
  color: var(--accent-dark, #2d6a8a);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

#voronoi-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #7bb8e0), var(--accent-light, #a2d2ff));
  border-radius: 2px;
}
/* TV Control styling */
.tv-control {
  background: #f8f9f7;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(107, 142, 35, 0.1);
  text-align: center;
}

.tv-control label {
  color: var(--accent-dark, #3d5c1f);
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}

/* Results section cards */
#seg-section,
#insertion-section,
#removal-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin: 25px 0;
  border: 1px solid rgba(107, 142, 35, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Scene gallery with card styling */
.scene-gallery {
  background: #f8f9f7;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  border: 1px solid rgba(107, 142, 35, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.scene-gallery:hover {
  background: #ffffff;
  border-color: rgba(107, 142, 35, 0.15);
  box-shadow: 0 4px 14px rgba(107, 142, 35, 0.08);
}

.scene-thumb {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 3px solid transparent;
}

.scene-thumb:hover {
  border-color: var(--basil-medium);
  box-shadow: 0 6px 16px rgba(107, 142, 35, 0.2);
}

.scene-thumb.active {
  border: 3px solid var(--basil-medium);
  box-shadow: 0 6px 16px rgba(107, 142, 35, 0.3);
}

/* Comparison containers with card styling */
.comparison-container {
  background: white;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(107, 142, 35, 0.1);
  margin: 20px 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.comparison-container:hover {
  border-color: rgba(107, 142, 35, 0.15);
  box-shadow: 0 4px 14px rgba(107, 142, 35, 0.08);
}

.video-wrapper {
  box-shadow: inset 0 0 0 1px rgba(107, 142, 35, 0.15);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.slider-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 9px;
  color: #333;
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(145deg, #b8f0b8, #a0e4a0);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0;
  clip-path: polygon(10% 0%, 90% 5%, 100% 40%, 85% 100%, 15% 95%, 0% 50%);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-control-button:hover {
  transform: translateY(-1px) scale(1.03);
}

.slider-control-button:active {
  transform: scale(0.95);
}

/* Acknowledgements & BibTeX sections */
.section {
  border-top: 1px solid rgba(107, 142, 35, 0.08);
}

.section .title {
  color: var(--accent-dark, #3d5c1f);
  position: relative;
  padding-bottom: 10px;
}

/* Code/Preformatted text cards */
section pre {
  border: 2px solid rgba(107, 142, 35, 0.15);
  background: #f8f9f7 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 25px !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

section pre:hover {
  border-color: rgba(107, 142, 35, 0.2);
  box-shadow: 0 4px 14px rgba(107, 142, 35, 0.08);
}

/* Publication links with enhanced styling */
.publication-links {
  margin: 30px 0;
}

.publication-links .button,
.publication-links .cell {
  box-shadow: 0 4px 12px rgba(107, 142, 35, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.publication-links .button:hover,
.publication-links .cell:hover {
  box-shadow: 0 8px 24px rgba(107, 142, 35, 0.25);
}

/* Responsive card layout */
@media screen and (max-width: 768px) {
  .card-block {
    padding: 25px;
    margin: 15px;
  }

  .card-section {
    padding: 15px;
  }

  .subsection {
    padding: 20px;
  }

  .method-figure {
    padding: 15px;
  }

  .result-row {
    grid-template-columns: 1fr;
  }
}

/* ========================= */
/* PER-SECTION ACCENT COLORS */
/* ========================= */

div#hero {
  --accent: #e8a0a0;
  --accent-light: #ffadad;
  --accent-dark: #8b4049;
  --accent-glow: rgba(232, 160, 160, 0.4);
  display: block;
}

div#method {
  --accent: #7bb8e0;
  --accent-light: #a2d2ff;
  --accent-dark: #2d6a8a;
  --accent-glow: rgba(123, 184, 224, 0.4);
  display: block;
}

div#results {
  --accent: #8bc48b;
  --accent-light: #b8f0b8;
  --accent-dark: #3d6b3d;
  --accent-glow: rgba(139, 196, 139, 0.4);
  display: block;
}

section#acknowledgements {
  --accent: #a48ec8;
  --accent-light: #c4b5e0;
  --accent-dark: #5a4480;
  --accent-glow: rgba(164, 142, 200, 0.4);
}

section#bibtex {
  --accent: #d4a574;
  --accent-light: #f0c8a0;
  --accent-dark: #7a5530;
  --accent-glow: rgba(212, 165, 116, 0.4);
}

/* Apply accent to card-block trim */
div#hero .card-block,
div#method .card-block,
div#results .card-block,
section#acknowledgements .card-block,
section#bibtex .card-block {
  border-left-color: var(--accent);
}

/* Apply accent to title underlines */
div#hero .card-block .title::after,
div#method .card-block .title::after,
div#results .card-block .title::after,
section#acknowledgements .card-block .title::after,
section#bibtex .card-block .title::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* Apply accent to subsection h3 bars */
div#results .subsection h3::before {
  background: var(--accent);
}

/* Apply accent to abstract box */
div#hero .box.abstract-box {
  border-left-color: var(--accent);
}

div#hero .box.abstract-box h2::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* Apply accent to method description border */
div#method .method-description {
  border-left-color: var(--accent);
}

/* Section title underlines for acknowledgements/bibtex */
section#acknowledgements .title::after,
section#bibtex .title::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* ========================= */
/* HERO SECTION CARD STYLING */
/* ========================= */

section.hero {
  padding: 40px 0;
}

section.hero .hero-body {
  padding: 60px 20px;
}

.teaser-shift {
  margin-top: 40px;
  background: white;
  padding: 30px !important;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.box.abstract-box {
  background: white;
  border: 2px solid rgba(232, 160, 160, 0.2);
  border-left: 5px solid #e8a0a0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-top: 30px;
  padding: 40px !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.box.abstract-box:hover {
  box-shadow: 0 8px 22px rgba(232, 160, 160, 0.15);
  transform: translateY(-2px);
}

.box.abstract-box h2 {
  color: var(--accent-dark, #8b4049);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.box.abstract-box p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 1em;
}

/* SVG container */
#voronoi-svg {
  border-radius: 18px;
  background: #fafafa;
  box-shadow: inset 0 0 0 1px #eee;
}


.subsection {
  margin-top: 30px;
  text-align: center;
}

.subsection p {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px auto;
  text-align: justify;
}

.subsection h3 {
  margin-bottom: 10px;
}

hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #eee;
}

.scene-gallery {
  display: flex;
  justify-content: center;
  gap: 10px;
}





/* make image + video identical */
.gt-img,
.asset-video {
  width: 100%;
  height: 220px; /* 🔥 keeps everything aligned */
  object-fit: cover;
  border-radius: 6px;
  background: black;
}

/* labels */
.extraction-item span {
  font-size: 12px;
  color: #777;
  text-align: center;
}


.gt-img {
  border: 1px solid #eee;
}

.asset-video {
  border: 1px solid #eee;
}


/* GRID CONTAINER */
.extraction-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 20px;
}

/* HEADER (must match row grid exactly) */
.extraction-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.extraction-header span {
  text-align: center;
  font-size: 20px;
  color: #666;
  font-weight: 500;
}

/* ROWS */
.scene-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* MEDIA */
.gt-img,
.asset-video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: black;
}




#voronoi-section {
  text-align: center;
  margin-top: 2rem;
}

.voronoi-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

#generateBtn {
  border: none;
  padding: 0.7rem 1.4rem;
  background: #a8efb5;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
  margin-bottom: 1rem;
  transition: 0.2s ease;
}

#generateBtn:hover {
  transform: scale(1.05);
}

.tv-control {
  margin: 0.75rem auto 1.5rem auto;
  max-width: 420px;
  font-size: 0.95rem;
  font-weight: 600;
}

.tv-control input {
  width: 100%;
  margin-top: 0.5rem;
  cursor: pointer;
}

#voronoi-svg {
  width: 100%;
  max-width: 700px;
  height: auto;
  background: white;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
}



.publication-authors a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,0,0,0.3);
}

.publication-authors a:hover {
  color: #3273dc; /* Bulma primary */
  border-bottom: 1px solid #3273dc;
}


.voronoi-instructions {
  max-width: 620px;
  margin: 0.5rem auto 1rem auto;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}


.teaser-shift {
  display: flex;
  justify-content: center;
  transform: translateX(30px); /* adjust value (20–80px) as needed */
}
