:root {
  --ink: #242220;
  --muted: #6f6a63;
  --paper: #faf8f3;
  --paper-2: #f2efe8;
  --line: #ded9cf;
  --orange: #f2612f;
  --amber: #faae43;
  --yellow: #ede05e;
  --mint: #6cbc96;
  --teal: #0c917c;
  --shadow: 0 18px 50px rgba(42, 38, 31, .09);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans', sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
video,
object {
  max-width: 100%;
}

.project-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 248, 243, .88);
  border-bottom: 1px solid rgba(36, 34, 32, .08);
}

.nav-inner {
  max-width: 1180px;
  margin: auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 25px;
  display: inline-block;
}

.brand-mark i {
  position: absolute;
  display: block;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--ink);
}

.brand-mark i:nth-child(1) {
  left: 0;
  top: 5px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 12%, 86% 100%, 18% 80%);
  transform: rotate(-13deg);
}

.brand-mark i:nth-child(2) {
  left: 10px;
  top: 0;
  background: var(--yellow);
  clip-path: polygon(17% 0, 100% 20%, 82% 100%, 0 82%);
  transform: rotate(11deg);
}

.brand-mark i:nth-child(3) {
  right: 0;
  bottom: 0;
  background: var(--teal);
  clip-path: polygon(5% 16%, 94% 0, 100% 81%, 24% 100%);
  transform: rotate(-4deg);
}

.nav-links {
  display: flex;
  gap: 26px;
  font: 500 .9rem 'Google Sans', sans-serif;
}

.nav-links a {
  color: #5e5a55;
  text-decoration: none;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.project-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: 48px 24px 36px;
  text-align: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(36, 34, 32, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 34, 32, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
}

.hero-shape {
  position: absolute;
  filter: saturate(.95);
  opacity: .96;
  border: 2px solid var(--ink);
  box-shadow: 10px 12px 0 rgba(36, 34, 32, .06);
}

.shape-a {
  width: 170px;
  height: 190px;
  left: -28px;
  top: 115px;
  background: var(--teal);
  clip-path: polygon(14% 1%, 87% 8%, 100% 39%, 76% 54%, 86% 97%, 34% 89%, 0 58%);
  transform: rotate(15deg);
}

.shape-b {
  width: 155px;
  height: 145px;
  right: -17px;
  top: 195px;
  background: var(--orange);
  clip-path: polygon(23% 0, 95% 18%, 83% 58%, 100% 83%, 42% 100%, 0 69%, 12% 24%);
  transform: rotate(-11deg);
}

.shape-c {
  width: 105px;
  height: 112px;
  right: 8%;
  bottom: -32px;
  background: var(--yellow);
  clip-path: polygon(5% 16%, 72% 0, 100% 43%, 82% 100%, 19% 89%, 0 49%);
  transform: rotate(18deg);
}

.paper-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font: 700 .72rem 'Google Sans', sans-serif;
  letter-spacing: .11em;
  color: #59554f;
}

.paper-kicker span {
  color: var(--orange);
}

.publication-title {
  margin: 26px auto 0 !important;
  max-width: 1000px;
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(3.8rem, 8vw, 7rem) !important;
  line-height: .94 !important;
  letter-spacing: -.065em;
  color: var(--ink);
}

.publication-title>span {
  display: block;
}

.publication-title small {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 500;
}

.hero-deck {
  margin: 16px auto 18px;
  font-family: 'Castoro', serif;
  font-size: 1.2rem;
  color: var(--muted);
}

.publication-authors {
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
}

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

.publication-authors a {
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--mint);
  transition: box-shadow .2s ease;
}

.publication-authors a:hover {
  box-shadow: inset 0 -5px 0 rgba(108, 188, 150, .45);
}

.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 18px;
  margin: 8px auto 26px;
  max-width: 940px;
  font-size: .8rem;
  color: var(--muted);
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.project-button {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #cac5bc;
  border-radius: 999px;
  color: var(--ink);
  font: 600 .9rem 'Google Sans', sans-serif;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(36, 34, 32, .09);
  border-color: #a6a198;
}

.project-button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.project-button em {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: .65rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.teaser-section {
  padding: 78px 24px 100px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  display: block;
}

.teaser-section .media-frame {
  padding: 18px;
  border-radius: 28px;
}

.lead-caption {
  max-width: 820px;
  margin: 30px auto 0;
  font-family: 'Castoro', serif;
  font-size: 1.17rem;
  line-height: 1.72;
  color: #55514b;
  text-align: center;
}

.lead-caption strong {
  color: var(--ink);
  font-family: 'Google Sans', sans-serif;
}

.zoomable {
  cursor: zoom-in;
}

.zoomable::after {
  content: '↗';
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(250, 248, 243, .93);
  border: 1px solid var(--line);
  font-weight: 700;
  opacity: 0;
  transform: translateY(5px);
  transition: .2s ease;
}

.zoomable:hover::after {
  opacity: 1;
  transform: none;
}

.story-section {
  padding: 105px 24px;
  border-top: 1px solid var(--line);
}

.wide-container {
  max-width: 1280px !important;
}

.results-section {
  background: var(--paper-2);
}

.section-heading {
  display: grid;
  grid-template-columns: 58px minmax(340px, 1fr) minmax(260px, .7fr);
  gap: 28px;
  align-items: end;
  margin: 0 auto 48px;
}

.section-index {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: 700 .78rem 'Google Sans', sans-serif;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font: 700 1.5rem 'Google Sans', sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-heading h2,
.citation-heading h2 {
  margin: 0;
  font: 700 clamp(2rem, 4vw, 3.55rem)/1.03 'Google Sans', sans-serif;
  letter-spacing: -.05em;
}

.section-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.result-card {
  overflow: hidden;
  border: 1px solid #d5d0c7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(36, 34, 32, .055);
  transition: transform .25s ease, box-shadow .25s ease;
}

.result-card:hover {
  transform: translateY(-5px) rotate(-.15deg);
  box-shadow: var(--shadow);
}

.result-card:nth-child(2):hover {
  transform: translateY(-5px) rotate(.15deg);
}

.result-visual {
  height: 360px;
  padding: 8px;
  background: linear-gradient(135deg, #fff, #f6f3ed);
  border-bottom: 1px solid var(--line);
}

.result-visual object {
  width: 100%;
  height: 100%;
  display: block;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 18px;
}

.result-number {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 700 .7rem 'Google Sans', sans-serif;
}

.result-meta h3 {
  margin: 0;
  font: 700 1rem 'Google Sans', sans-serif;
}

.result-meta h3 span {
  color: var(--orange);
  margin: 0 .15em;
}

.feature-figure,
.gallery-panel {
  margin: 0 0 45px;
}

.figure-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 25px 10px;
  color: var(--muted);
  font: 600 .73rem 'Google Sans', sans-serif;
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.feature-figure .media-frame,
.gallery-panel .media-frame {
  border-radius: 22px;
  padding: 16px;
}

.feature-figure figcaption,
.gallery-panel figcaption,
.video-card figcaption {
  max-width: 860px;
  margin: 19px auto 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7;
  text-align: center;
}

.video-card {
  margin: 60px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #034d63;
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  display: block;
  border-radius: 14px;
  background: #000;
}

.video-card figcaption {
  color: #ffffff;
  padding: 0 18px 14px;
}

.video-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 7px;
  color: #fdfdfd;
  font: 600 .73rem 'Google Sans', sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(242, 97, 47, .16);
}

.gallery-section {
  background: #fff;
}

.gallery-panel {
  position: relative;
  padding-top: 15px;
}

.panel-tag {
  position: relative;
  z-index: 2;
  display: table;
  margin: 0 0 -14px 22px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font: 700 .72rem 'Google Sans', sans-serif;
  letter-spacing: .04em;
}


.panel-tag-oneleftmost-in-two {
  position: relative;
  z-index: 2;
  display: table;
  margin: 0 0 -30px 30px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font: 700 .72rem 'Google Sans', sans-serif;
  letter-spacing: .04em;
}

.panel-tag-one-in-two {
  position: relative;
  z-index: 2;
  display: table;
  margin: 0 0 -30px 175px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font: 700 .72rem 'Google Sans', sans-serif;
  letter-spacing: .04em;
}

.panel-tag-two-in-two {
  position: relative;
  z-index: 2;
  display: table;
  margin: 0 0 -14px 575px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font: 700 .72rem 'Google Sans', sans-serif;
  letter-spacing: .04em;
}


.application-section {
  background: #f5f3ed;
}

.comparison-panel {
  margin-top: 65px;
}

.comparison-panel .panel-tag {
  background: var(--mint);
}

.citation-section {
  padding: 105px 24px;
  background: var(--ink);
}

.citation-card {
  overflow: hidden;
  border: 1px solid #4a4743;
  border-radius: 26px;
  background: #2b2926;
  color: #fff;
}

.citation-heading {
  padding: 27px 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid #46423e;
}

.citation-heading .eyebrow {
  color: var(--amber);
}

.citation-heading h2 {
  font-size: 2.2rem;
}

.citation-card pre {
  margin: 0;
  padding: 30px;
  background: transparent;
  color: #dedad2;
  overflow-x: auto;
  font-size: .9rem;
  line-height: 1.65;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #5e5953;
  border-radius: 999px;
  background: #36332f;
  color: #fff;
  cursor: pointer;
  font: 600 .8rem 'Google Sans', sans-serif;
}

.copy-button:hover {
  background: #403c37;
}

.project-footer {
  padding: 70px 24px;
  background: #ece8df;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .65fr;
  gap: 70px;
}

.footer-grid p {
  color: #5f5a54;
  line-height: 1.7;
}

.footer-note {
  color: #777169;
  font-size: .82rem;
  line-height: 1.65;
  text-align: right;
  align-self: end;
}

.footer-note a {
  color: var(--ink);
}

.image-dialog {
  max-width: min(94vw, 1500px);
  max-height: 92vh;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
}

.image-dialog::backdrop {
  background: rgba(22, 21, 20, .82);
  backdrop-filter: blur(4px);
}

.image-dialog img {
  max-width: 90vw;
  max-height: 86vh;
  display: block;
}

.dialog-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: rgba(30, 29, 27, .85);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .project-hero {
    min-height: 630px;
  }

  .publication-title {
    font-size: clamp(3.2rem, 14vw, 5.2rem) !important;
  }

  .desktop-break {
    display: none;
  }

  .shape-a {
    width: 115px;
    height: 130px;
    opacity: .5;
  }

  .shape-b {
    width: 110px;
    height: 100px;
    opacity: .5;
  }

  .section-heading {
    grid-template-columns: 48px 1fr;
    gap: 16px 18px;
    align-items: start;
  }

  .section-summary {
    grid-column: 2;
  }

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

  .result-visual {
    height: min(520px, 75vw);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    height: 56px;
    padding: 0 16px;
  }

  .hero-content {
    padding: 75px 18px 65px;
  }

  .project-hero {
    min-height: 600px;
  }

  .publication-title small {
    font-size: 1.35rem;
  }

  .hero-deck {
    font-size: 1rem;
  }

  .publication-affiliations {
    display: block;
    line-height: 1.75;
  }

  .publication-affiliations span {
    display: block;
  }

  .teaser-section,
  .story-section,
  .citation-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .teaser-section {
    padding-top: 52px;
    padding-bottom: 70px;
  }

  .story-section,
  .citation-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .teaser-section .media-frame,
  .feature-figure .media-frame,
  .gallery-panel .media-frame {
    padding: 8px;
    border-radius: 16px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: 2.2rem;
  }

  .section-summary {
    font-size: .9rem;
  }

  .result-card {
    border-radius: 17px;
  }

  .figure-labels {
    font-size: .59rem;
    padding: 0 5px 7px;
  }

  .citation-heading {
    padding: 20px;
  }

  .citation-card pre {
    padding: 20px;
    font-size: .74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.hero-shape {
  opacity: .9;
  filter: none !important;
  transform: none !important
}

.hero-badge {
  box-shadow: none !important
}

.button,
.publication-links .link-block a {
  box-shadow: none !important
}

.medium-title {
  font-size: 0.6em;
  /* Adjust as needed */
  font-weight: 600;
}

figcaption a {
  color: #1a73e8;
  /* blue */
  text-decoration: underline;
  font-weight: 600;
}

figcaption a:hover {
  color: #0b57d0;
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------
   Voronoi process video
-------------------------------------------------- */

.voronoi-video {
  width: min(960px, 95%);
  margin: 2.5rem auto 0;
}


/* Small label above video */

.video-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  margin-bottom: 0.8rem;

  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  color: var(--text);
}


/* Small animated dot */

.live-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--accent, #149b87);

  box-shadow:
    0 0 0 4px rgba(20, 155, 135, 0.12);
}


/* Video container */

.voronoi-video-frame {
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 18px;

  background: #fff;

  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.06);
}


/* Actual video */

.voronoi-video-frame video {
  display: block;

  width: 100%;
  height: auto;
}


/* Caption */

.voronoi-video figcaption {
  max-width: 980px;

  margin: 0.9rem auto 0;

  text-align: center;

  font-size: 0.95rem;
  line-height: 1.6;

  color: var(--muted);
}


/* Mobile */

@media (max-width: 768px) {
  .voronoi-video {
    width: 100%;
    margin-top: 2rem;
  }
}

/* Reduce empty space above hero title */

.hero-content {
  padding-top: 0 !important;
}