body {
  font-family: 'Noto Sans', sans-serif;
}

:root {
  --drift-orange: #e97822;
  --drift-blue: #2e6fe6;
  --drift-red: #ed1b2f;
  --drift-ink: #111;
  --drift-muted: #555;
  --drift-line: #e6e6e6;
}


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

.publication-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.link-block {
  display: inline-flex;
  align-items: center;
}

.link-block .button {
  margin-top: 5px;
  margin-bottom: 5px;
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
}

.unavailable-link {
  background: #efefef !important;
  border-color: #d9d9d9 !important;
  color: #777 !important;
  cursor: default;
  pointer-events: none;
}

.unavailable-link .icon {
  color: #999 !important;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(3.15rem, 6.6vw, 4.45rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.05rem;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
  margin: 0 0.28rem;
}

.author-line {
  margin-bottom: 0.25rem;
  font-size: 1.28rem;
  line-height: 1.35;
}

.author-line-secondary {
  margin-top: 0.1rem;
  font-size: 1.18rem;
}

.author-note {
  color: #666;
  margin-top: 0.5rem;
  font-size: 0.8rem !important;
  font-weight: 700;
  line-height: 1.45;
}

.affiliation-block {
  color: #333;
  margin-top: 0.55rem;
  font-size: 1.08rem !important;
}

.equal-contrib {
  font-size: 0.72em;
  vertical-align: super;
}

.equal-author a {
  font-weight: 700;
}

.affiliation-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.17503rem;
  margin-top: 0.65rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.affiliation-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0;
}

.affiliation-logo:hover {
  opacity: 0.78;
}

.affiliation-logo img {
  display: block;
  width: auto;
  max-height: 100%;
  object-fit: contain;
}

.mcgill-logo {
  height: 58.5px;
}

.mila-logo {
  height: 41.25px;
  background: transparent;
  mix-blend-mode: multiply;
}

.corresponding-block {
  display: inline-flex;
  gap: 0.3rem;
  align-items: baseline;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 0 0.28rem;
  white-space: nowrap;
}

.email-separator {
  color: #aaa;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

#abstract-section .content p {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

#abstract-section .intuition-list {
  margin: 0.4rem 0 1.1rem 1.5rem;
  font-size: 1.1rem;
  line-height: 1.65;
}

#abstract-section .intuition-list li {
  margin-bottom: 0.45rem;
}

#driftql-animation-section {
  background: #fff;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.driftql-top-animation {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.driftql-top-caption {
  margin-bottom: 1.1rem;
  color: var(--drift-ink);
  font-size: 1.15rem;
  line-height: 1.75;
  text-align: center;
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

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

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

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

.results-carousel video {
  margin: 0;
}

.results-carousel img {
  display: block;
  width: 100%;
  margin: 0;
}

.equation-panel {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

.equation-block {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: #f7f7f7;
  overflow-x: auto;
}

#method-section #anim-section {
  margin-top: 1rem;
}

#method-section .how-it-works-math-intro .content {
  margin-top: 0.25rem;
}

#method-section .how-it-works-math-intro .content p {
  margin-bottom: 0.85rem;
}

#method-section .columns {
  margin-bottom: 0.5rem;
}

#method-section .column {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

#method-section .equation-panel {
  padding: 1rem 1.05rem;
}

#method-section .equation-panel .title.is-4 {
  margin-bottom: 0.6rem;
}

#method-section .equation-panel .content {
  margin-bottom: 0.4rem;
}

#method-section .equation-panel .content p {
  margin-bottom: 0.7rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

#method-section .equation-block {
  margin: 0.75rem 0;
  padding: 0.8rem 1rem;
}

.method-overview {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.method-overview .paper-figure {
  border: 0;
  border-radius: 0;
}

.figure-caption {
  margin-top: 0.75rem;
  color: var(--drift-muted);
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
}

.method-lede {
  margin-bottom: 1.15rem;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.65;
}

.method-overview-lede {
  margin-top: 0.85rem;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.65;
}

.method-outro {
  margin-top: 1rem;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.7;
}

.term-blue {
  color: var(--drift-blue);
  font-weight: 700;
}

.term-red {
  color: var(--drift-red);
  font-weight: 700;
}

.term-orange {
  color: var(--drift-orange);
  font-weight: 700;
}

.equation-panel.method-accent-blue {
  border-top: 4px solid var(--drift-blue);
}

.equation-panel.method-accent-red {
  border-top: 4px solid var(--drift-red);
}

.equation-panel.method-accent-orange {
  border-top: 4px solid var(--drift-orange);
}

/* ── Experiments section ────────────────────────────────── */

.exp-section {
  margin-bottom: 2.75rem;
}

.exp-section-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.55rem;
}

.exp-section-desc {
  color: #444;
  font-size: 1.04rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: none;
}

.exp-setup-table {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.exp-setup-row {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}

.exp-setup-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 96px;
  flex-shrink: 0;
}

.exp-setup-value {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

.exp-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.75rem;
}

.exp-columns-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.75rem;
}

@media screen and (max-width: 768px) {
  .exp-columns,
  .exp-columns-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.benchmark-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.benchmark-video-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.benchmark-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}

.benchmark-video-body {
  padding: 0.9rem 1rem 1rem;
}

.benchmark-video-title {
  margin-bottom: 0.3rem;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.05rem;
  color: #111 !important;
}

.benchmark-video-caption {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.experiment-note {
  margin-top: 0.85rem;
  margin-bottom: 2.4rem;
  color: #666;
  font-size: 0.98rem;
}

.experiments-intro {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
  text-align: left;
}

.benchmark-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem 0.95rem;
  margin-top: 0.7rem;
  margin-bottom: 0.8rem;
}

.benchmark-clip video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}

.benchmark-clip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}

.benchmark-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 1px dashed #cfcfcf;
  background: #fafafa;
  color: #777;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.benchmark-clip p {
  margin-top: 0.65rem;
  margin-bottom: 0;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.04rem;
  color: #111;
}

.results-table-wrap {
  margin-top: 2.2rem;
  margin-bottom: 3.4rem;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.results-table th,
.results-table td {
  padding: 0.68rem 0.7rem;
  border-bottom: 1px solid #e9e9e9;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.results-table th:first-child,
.results-table td:first-child {
  text-align: left;
}

.results-table thead th {
  font-family: 'Google Sans', sans-serif;
  color: #111;
  font-weight: 600;
  background: #fff;
}

.results-table thead tr:first-child th {
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
}

.results-table thead tr:nth-child(2) th {
  font-size: 0.9rem;
}

.results-table tbody tr:hover {
  background: #fafafa;
}

.results-table .section-row td {
  padding-top: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #dcdcdc;
  background: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #777;
}

.results-table-note {
  margin-top: 0.8rem;
  color: #666;
  font-size: 0.98rem;
}

.results-table .ours-best,
.results-table .ours-best strong {
  color: var(--drift-orange);
  font-weight: 700;
}

.results-table .ours-near,
.results-table .ours-near strong {
  font-weight: 700;
}

.paper-figure-wrap {
  margin: 1.6rem 0 2rem;
}

.paper-figure-wrap.compact {
  margin-top: 1rem;
}

.paper-figure-wrap img {
  background: #fff;
}

.experiment-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.full-table-button {
  border-color: var(--drift-orange) !important;
  color: var(--drift-orange) !important;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
}

.latency-table {
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  overflow: visible;
}

.latency-table table {
  table-layout: fixed;
  font-size: 0.86rem;
}

.latency-table .results-table th,
.latency-table .results-table td {
  padding: 0.52rem 0.45rem;
  line-height: 1.35;
  white-space: normal;
}

.latency-table .results-table th:nth-child(1),
.latency-table .results-table td:nth-child(1) {
  width: 32%;
}

.latency-table .results-table th:nth-child(2),
.latency-table .results-table td:nth-child(2) {
  width: 42%;
}

.latency-table .results-table th:nth-child(3),
.latency-table .results-table td:nth-child(3) {
  width: 26%;
}

.full-results-page {
  padding: 2rem 1rem 4rem;
}

.full-results-header {
  margin-bottom: 1.5rem;
}

.full-results-table {
  font-size: 0.84rem;
}

.full-results-table th,
.full-results-table td {
  padding: 0.48rem 0.55rem;
}

@media screen and (max-width: 1023px) {
  .benchmark-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .benchmark-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-table {
    font-size: 0.88rem;
  }
}

.experiment-placeholder {
  margin-top: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px dashed #cfcfcf;
  border-radius: 10px;
  background: #fafafa;
  color: #666;
  font-size: 1rem;
}

@media screen and (max-width: 1023px) {
  .benchmark-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .benchmark-video-grid {
    grid-template-columns: 1fr;
  }
}


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

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

.interpolation-video-column {
}

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

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

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

#teaser-image {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.paper-figure {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #bbb;
}

#method-section .method-overview .paper-figure {
  border: 0;
  border-radius: 0;
}

.method-figure-video {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

#drift-demo-caption {
  margin-top: 0.75rem;
  color: #555;
}

#back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  border-color: var(--drift-orange);
  color: var(--drift-orange);
}
