:root {
  --ink: #242424;
  --muted: #5d5d5d;
  --soft: #f7f8f8;
  --line: #dedede;
  --accent: #0e756d;
  --accent-2: #cb512e;
  --button: #333333;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.hero,
.section {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 42px 0 40px;
  text-align: center;
}

.venue {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin: 0;
  letter-spacing: 0.5px;
}

.publication-title {
  text-align: center;
}

.hero .logo-title {
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
}

.hero .publication-title.is-3 {
  width: min(1200px, 100%);
  margin: 26px auto 0;
  color: #333333;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

.publication-authors {
  width: min(1180px, 100%);
  margin: 12px auto 0;
  color: #555555;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.publication-authors .author-block {
  display: inline-block;
  margin: 0 2px;
}

.hero .publication-authors:first-of-type {
  margin-top: 30px;
  color: #f28c18;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.45;
}

.publication-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 14px;
  margin: 8px auto 0;
  color: #666666;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
}

sup {
  font-size: 0.62em;
  line-height: 0;
}

.conference-line {
  margin-top: 16px;
  margin-bottom: 0;
  color: #4a4a4a;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.has-text-weight-bold {
  font-weight: 700;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 0;
}

.link-block {
  display: inline-flex;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 9px 28px;
  background: #282828;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus,
.copy-button:hover,
.copy-button:focus {
  transform: translateY(-1px);
  background: #1f1f1f;
}

.tldr {
  width: min(1040px, 100%);
  margin: 46px auto 0;
  color: #444444;
  font-size: clamp(18px, 1.6vw, 22px);
  font-style: italic;
  font-weight: 520;
  line-height: 1.48;
  text-align: center;
}

.tldr-label {
  color: #9b1c1c;
  font-style: normal;
  font-weight: 800;
}

.teaser-figure,
.wide-figure,
.application-stack figure {
  margin: 0;
}

.teaser-figure {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.teaser-figure img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
}

.section {
  padding: 58px 0;
}

.section-heading {
  width: min(980px, 100%);
  margin-bottom: 26px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #252525;
  font-size: clamp(26px, 2.35vw, 34px);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0;
}

.section-subtitle {
  width: min(780px, 100%);
  margin: 9px 0 0;
  color: #565656;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.42;
  font-weight: 400;
}

.section-heading.centered .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-copy {
  width: min(760px, 100%);
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
}

.video-frame {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #050d0c;
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.large-video {
  width: min(1240px, 100%);
}

.robot-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.robot-slot {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
}

.slot-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #061210;
}

.slot-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 26px;
  color: #ffffff;
  text-align: center;
  background: #061210;
}

.slot-placeholder span {
  color: #8fe0d6;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.slot-placeholder strong {
  font-size: 24px;
}

.slot-placeholder p {
  max-width: 360px;
  margin-bottom: 0;
  color: #d6e5e2;
}

.slot-placeholder code {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.robot-slot.is-ready .slot-placeholder {
  display: none;
}

.robot-slot h3 {
  margin: 14px 0 0;
  font-size: 18px;
}

.visual-section:nth-of-type(odd) {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100% - 1320px) / 2));
  padding-right: max(24px, calc((100% - 1320px) / 2));
  background: var(--soft);
}

.wide-figure {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.wide-figure img {
  width: 100%;
  border-radius: 4px;
  background: #ffffff;
}

.application-stack {
  display: grid;
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.application-stack figure {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
}

.application-stack img {
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.citation-section {
  border-top: 1px solid var(--line);
}

.citation-box {
  position: relative;
  width: min(1040px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #101817;
  color: #eff8f5;
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 0 16px;
  background: #ffffff;
  color: #174d47;
  font-size: 14px;
  font-weight: 700;
}

pre {
  margin: 0;
  padding: 30px;
  overflow-x: auto;
  white-space: pre-wrap;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .section {
    width: min(100% - 28px, 1320px);
  }

  .hero {
    padding-top: 34px;
  }

  .button {
    min-height: 38px;
    padding: 8px 22px;
    font-size: 16px;
  }

  .robot-video-grid {
    grid-template-columns: 1fr;
  }

  .visual-section:nth-of-type(odd) {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 560px) {
  .hero .logo-title {
    font-size: 58px;
  }

  .hero .publication-title.is-3 {
    font-size: 30px;
  }

  .publication-authors {
    font-size: 17px;
  }

  .tldr {
    font-size: 18px;
    line-height: 1.45;
  }

  .section {
    padding: 54px 0;
  }

  .wide-figure,
  .robot-slot,
  .application-stack figure {
    padding: 10px;
  }

  pre {
    padding: 72px 18px 22px;
  }
}
