:root {
  --page-width: 1160px;
  --text: #252525;
  --muted: #595959;
  --rule: #d3d3d3;
  --blue: #168ce5;
  --paper: #ef476f;
  --supplementary: #00ad91;
  --video: #2f64d6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Libertinus Serif", "Linux Libertine", Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.header-shell {
  width: min(94%, 1540px);
  margin: 0 auto;
}

.content-shell {
  width: min(calc(100% - 40px), var(--page-width));
  margin-right: auto;
  margin-left: auto;
}

.publication-header {
  padding: 54px 0 36px;
  text-align: center;
}

.publication-header h1 {
  max-width: 1300px;
  margin: 0 auto;
  color: #303030;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.5;
}

.venue {
  margin: 15px 0 15px;
  color: #111;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  font-weight: 700;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  justify-content: center;
  margin: 0 auto 10px;
  color: #414141;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
}

.authors a {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: 0.14em;
  transition: color 220ms ease, text-decoration-color 220ms ease;
}

.authors a:hover {
  color: #0874c5;
  text-decoration: underline;
}

.authors a:focus-visible {
  border-radius: 2px;
  outline: 2px solid rgb(22 140 229 / 35%);
  outline-offset: 3px;
}

.authors span:not(:last-child)::after {
  content: ",";
  color: #414141;
}

.corresponding-mark {
  position: relative;
  top: -0.01em;
  margin-left: 2px;
  color: #555;
  font-size: 1em;
  line-height: 0;
}

.affiliation {
  margin: 4px auto 0;
  color: #4e4e4e;
  font-size: clamp(0.94rem, 1.1vw, 1.08rem);
}

.corresponding-note {
  margin: 4px 0 25px;
  color: #626262;
  font-size: 0.9rem;
}

.corresponding-icon {
  display: inline-block;
  margin-right: 2px;
  font-size: 1.05em;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.resource-button {
  display: inline-flex;
  min-width: 0;
  height: 2.5em;
  padding: 0 1.25em;
  border: 1px solid #dbdbdb;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: #fff;
  color: #363636;
  font-family: "Libertinus Serif", "Linux Libertine", Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

a.resource-button:hover {
  border-color: #b5b5b5;
  color: #363636;
  background: #fff;
}

.resource-button i,
.resource-button svg {
  width: 1.1em;
  height: 1.1em;
  font-size: 1.1em;
  flex: 0 0 auto;
}
.resource-button .ai { width: auto; }
.resource-button.arxiv,
.resource-button.paper,
.resource-button.supplementary,
.resource-button.video,
.resource-button.code { color: #363636; }
.resource-button.is-disabled { cursor: default; }

main { padding-bottom: 72px; }

.teaser-section { padding-top: 14px; }

.teaser-video {
  display: block;
  width: 100%;
  max-height: 76vh;
  border-radius: 4px;
  background: #0d0d0d;
  box-shadow: 0 8px 28px rgb(0 0 0 / 10%);
}

.lead-caption {
  max-width: 1040px;
  margin: 20px auto 0;
  color: #333;
  font-size: clamp(0.96rem, 1.25vw, 1.12rem);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  text-align-last: center;
}

.key-insight-section > .key-insight-intro {
  width: 100%;
  max-width: none;
  margin: 24px auto 0;
  color: #333;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  text-align-last: center;
}

.key-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  align-items: stretch;
}

.insight-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.insight-panel h3 {
  margin: 0 0 18px;
  color: #222;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 700;
  line-height: 1.3;
}

.semantic-prior h3,
.physical-prior h3 { text-align: center; }

.insight-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.insight-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.semantic-prior .insight-labels { transform: translateX(-13px); }
.physical-prior .insight-labels { transform: translateX(6px); }

.insight-labels span {
  color: var(--label-color);
  font-size: clamp(0.7rem, 0.92vw, 0.9rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.paper-section { padding-top: 54px; }

.section-heading {
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  color: #222;
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: left;
}

.paper-section > p {
  margin: 0;
  color: #333;
  font-size: 1.055rem;
  line-height: 1.78;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

.method-figure { margin: 0; }

.method-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

.method-figure figcaption {
  margin-top: 17px;
  color: #454545;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

.results-subheading {
  margin: 0 0 18px;
  color: #222;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.results-subsection + .results-subsection {
  margin-top: 16px;
  padding-top: 0;
}

.results-carousel {
  position: relative;
  padding: 0 0 24px;
}

.carousel-results-subsection .results-carousel {
  padding: 16px 16px 20px;
  border: 1px solid #eceeef;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #fbfcfc 100%);
  box-shadow: 0 4px 14px rgb(35 45 52 / 4.5%);
}

.carousel-results-subsection .video-result figcaption { background: transparent; }

.carousel-slides { overflow: hidden; }

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-track.is-jumping { transition: none; }

.comparison-slide {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 0;
  align-items: start;
}

.comparison-slide[hidden] { display: none; }

.video-result {
  display: grid;
  grid-template-rows: auto minmax(36px, auto);
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.slide-videos-up .video-result { transform: translateY(-6px); }
.slide-videos-down .video-result { transform: translateY(6px); }

.prompt-card {
  grid-column: 1 / -1;
  margin: 0;
}

.prompt-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 12px 3px;
  color: #292929;
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  line-height: 1.35;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.video-result figcaption {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 0;
  color: #292929;
  font-size: clamp(0.86rem, 1.05vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  position: relative;
  z-index: 1;
  background: #fff;
}

.video-result video,
.video-placeholder {
  grid-row: 1;
  display: block;
  width: 100%;
  aspect-ratio: auto;
  border-radius: 3px;
  background: transparent;
  object-fit: cover;
}

.video-result video {
  transform: none;
}

.video-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed #c8c8c8;
  color: #888;
  font-size: 0.84rem;
  text-align: center;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 24px);
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  place-items: center;
  background: #fff;
  box-shadow: 0 2px 5px rgb(50 50 50 / 10%);
  color: #3d3d3d;
  font: inherit;
  font-size: 0;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 300ms ease, opacity 300ms ease;
}

.carousel-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 16px;
  background: #424242;
}

.carousel-arrow-prev::before {
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  transform: translate(-67%, -50%);
}

.carousel-arrow-next::before {
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-33%, -50%);
}

.carousel-arrow:hover { transform: translateY(-50%) scale(1.2); }

.carousel-arrow-prev { left: -52px; }
.carousel-arrow-next { right: -52px; }

.carousel-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 2px 5px rgb(50 50 50 / 10%);
  cursor: pointer;
  opacity: 0.35;
  transition: transform 300ms ease, opacity 300ms ease;
}

.carousel-dot.is-active,
.carousel-dot:hover {
  opacity: 1;
  transform: scale(1.4);
}

.behavior-subsection { margin-top: 28px !important; }

.behavior-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.behavior-card {
  display: grid;
  grid-template-columns: minmax(150px, 35%) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 10px 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4e7e9;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #fcfcfc 100%);
  box-shadow: 0 9px 26px rgb(35 45 52 / 9%), 0 2px 7px rgb(35 45 52 / 5%);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.behavior-card:hover {
  box-shadow: 0 13px 32px rgb(35 45 52 / 12%), 0 3px 9px rgb(35 45 52 / 6%);
  transform: translateY(-2px);
}

.behavior-options {
  display: grid;
  grid-row: 1 / 3;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.behavior-option {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 7px 9px;
  border: 1px solid #d5d9dc;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f7f8f8 100%);
  color: #343434;
  font: inherit;
  font-size: clamp(0.78rem, 0.94vw, 0.9rem);
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 2px 5px rgb(31 37 41 / 7%),
    inset 0 1px 0 rgb(255 255 255 / 90%);
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease, color 240ms ease, transform 240ms ease;
}

.behavior-option:hover {
  border-color: #b5bcc1;
  background: #f2f4f5;
  box-shadow:
    0 4px 9px rgb(31 37 41 / 11%),
    inset 0 1px 0 rgb(255 255 255 / 90%);
  transform: translateY(-1px);
}

.behavior-option.is-active {
  border-color: #aeb6bc;
  background: #d8dde1;
  box-shadow:
    inset 0 2px 5px rgb(45 50 54 / 12%),
    0 1px 3px rgb(45 50 54 / 10%);
  color: #292d30;
  transform: translateY(0);
}

.behavior-option.is-active img.vector-icon { filter: none; }

.behavior-option:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}

.behavior-option img {
  display: block;
  width: 42px;
  height: 42px;
  margin: auto;
  object-fit: contain;
}

.behavior-option img.vector-icon {
  width: 42px;
  height: 42px;
  margin: auto;
}

.object-card .behavior-option img {
  width: 46px;
  height: 46px;
}

.motion-card .behavior-option {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 3px;
}

.species-card .behavior-option {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  padding-inline: 6px;
  letter-spacing: 0em;
}

.species-card .behavior-option span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

.species-card .behavior-option img {
  width: 40px;
  height: 46px;
}

.behavior-options[aria-label="Select a trajectory"] .behavior-option:nth-child(-n + 2) img {
  transform: translateY(-3px);
}

.behavior-video-frame {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: center;
  height: auto;
  min-height: 0;
  align-self: end;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #fff;
}

.behavior-video-frame video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: opacity;
  transition: opacity 500ms ease-in-out;
}

.behavior-video-frame video.is-visible {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.behavior-prompt {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  margin: 0;
  padding: 18px 0 5px;
  color: #3c3c3c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.68rem, 0.74vw, 0.77rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.adaptive-behavior .behavior-prompt {
  width: 84%;
  max-width: 218px;
  margin-inline: auto;
}

.trajectory-card .behavior-prompt {
  width: 92%;
  margin-inline: auto;
}

.extended-subsection { margin-top: 28px !important; }

.extended-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 20px;
}

.extended-example {
  display: grid;
  grid-template-rows: minmax(56px, auto) auto;
  min-width: 0;
  margin: 0;
}

.extended-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px 9px;
  color: #333;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.86rem, 1.05vw, 1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.38;
  text-align: center;
}

.human-canine-subsection .extended-prompt {
  width: 72%;
  margin-inline: auto;
}

.human-canine-subsection .extended-example:nth-child(2) .extended-prompt { width: 84%; }

.cross-species-subsection .extended-example:first-child video {
  transform: translateY(-16px);
}

.human-canine-subsection .extended-example:nth-child(2) video {
  transform: rotate(3deg);
  transform-origin: center;
}

.extended-example video,
.scene-example video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #fff;
}

.extended-card {
  position: relative;
  border: 1px solid #e4e7e9;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #fcfcfc 100%);
  box-shadow: 0 9px 26px rgb(35 45 52 / 9%), 0 2px 7px rgb(35 45 52 / 5%);
}

.interactive-extended-card {
  overflow: hidden;
  padding: 20px 14px 14px;
  transition: box-shadow 1000ms ease, transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.interactive-extended-card .extended-example {
  transition:
    filter 1050ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1000ms ease;
}

.extended-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  visibility: hidden;
  padding: clamp(24px, 5vw, 64px);
  place-items: center;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgb(255 255 255 / 22%), transparent 70%);
  transition:
    opacity 900ms ease,
    visibility 0s linear 1100ms;
}

.extended-hover-overlay p {
  width: min(88%, 820px);
  max-width: 820px;
  margin: 0;
  padding: clamp(20px, 2.6vw, 30px) clamp(24px, 4vw, 46px);
  border: 2px solid #a7adaf;
  border-radius: 10px;
  background: linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(248 249 249 / 80%));
  box-shadow:
    0 18px 48px rgb(30 35 38 / 16%),
    inset 0 1px 0 rgb(255 255 255 / 90%);
  color: #292929;
  font-size: clamp(0.95rem, 1.3vw, 1.18rem);
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(22px) scale(0.975);
  backdrop-filter: blur(7px);
  transition:
    opacity 850ms ease,
    filter 1050ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1050ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .interactive-extended-card:hover {
    box-shadow: 0 14px 34px rgb(35 45 52 / 13%), 0 3px 9px rgb(35 45 52 / 6%);
    transform: translateY(-2px);
  }

  .interactive-extended-card:hover .extended-example {
    filter: blur(8px);
    opacity: 0.42;
  }

  .interactive-extended-card:hover .extended-hover-overlay {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .interactive-extended-card:hover .extended-hover-overlay p {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
    transition-delay: 140ms;
  }
}

.scene-example {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f4;
  box-shadow: 0 8px 22px rgb(35 45 52 / 8%);
}

.static-extended-card { user-select: none; }

.scene-example video { border-radius: inherit; }

.scene-prompt-overlay {
  position: absolute;
  top: 16px;
  right: 18px;
  max-width: 42%;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 8px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 3px 12px rgb(30 35 38 / 10%);
  color: #292929;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.76rem, 0.92vw, 0.9rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(4px);
}

.bibtex-section { padding-bottom: 58px; }

.bibtex-code-wrap { position: relative; }

.bibtex-copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  min-width: 88px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d5d9dc;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  box-shadow: 0 2px 7px rgb(35 45 52 / 6%);
  color: #45494c;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.bibtex-copy-button:hover {
  border-color: #bfc5c8;
  background: #f8f9f9;
  transform: translateY(-1px);
}

.bibtex-copy-button.is-copied {
  border-color: #a8c8b2;
  background: #f1f8f3;
  color: #39704a;
}

.bibtex-copy-button:focus-visible {
  outline: 2px solid rgb(22 140 229 / 35%);
  outline-offset: 3px;
}

.paper-section > .bibtex-intro {
  margin: 0 0 16px;
  font-size: 1.08rem;
  line-height: 1.6;
  text-align: left;
}

.bibtex-block {
  margin: 0;
  overflow-x: auto;
  padding: 18px 20px;
  border: 1px solid #e3e5e7;
  border-radius: 7px;
  background: #f6f7f8;
  color: #303336;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(0.76rem, 0.86vw, 0.86rem);
  line-height: 1.65;
  white-space: pre;
}

.bibtex-block code { font-family: inherit; }

footer {
  padding: 28px 0;
  border-top: 1px solid #e7e7e7;
  background: #fafafa;
  color: #777;
  font-size: 0.82rem;
  text-align: center;
}

footer p { margin: 0; }
footer a { color: #555; }

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1300px) {
  .carousel-arrow-prev { left: -18px; }
  .carousel-arrow-next { right: -18px; }
}

@media (max-width: 720px) {
  .publication-header { padding: 34px 0 27px; }

  .publication-header h1 {
    font-size: clamp(1.75rem, 7.7vw, 2.3rem);
    letter-spacing: -0.035em;
  }

  .venue { margin: 22px 0 14px; }

  .authors {
    gap: 0 8px;
    font-size: 1.08rem;
  }

  .affiliation {
    max-width: 92%;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .resource-links {
    max-width: 390px;
    margin: 0 auto;
    gap: 9px;
  }

  .resource-button {
    min-width: 0;
    height: 2.5em;
    padding: 0 1.25em;
    font-size: 0.94rem;
  }

  .content-shell { width: min(calc(100% - 28px), var(--page-width)); }
  .teaser-section { padding-top: 5px; }
  .teaser-video { border-radius: 3px; }

  .lead-caption {
    margin-top: 15px;
    font-size: 1rem;
    text-align: left;
  }

  .key-insight-section > .key-insight-intro {
    margin-top: 18px;
    font-size: 0.96rem;
    text-align: center;
  }

  .key-insight-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .insight-panel h3 { margin-bottom: 12px; }
  .insight-labels { margin-top: 12px; }
  .semantic-prior .insight-labels,
  .physical-prior .insight-labels { transform: none; }
  .insight-labels span { white-space: normal; }

  .paper-section { padding-top: 42px; }

  .section-heading {
    margin-bottom: 18px;
    font-size: 1.6rem;
  }

  .paper-section > p,
  .method-figure figcaption {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .results-subheading {
    margin-bottom: 14px;
    font-size: 1.05rem;
  }

  .results-subsection + .results-subsection {
    margin-top: 14px;
    padding-top: 0;
  }

  .results-carousel { padding: 0 18px 24px; }

  .carousel-results-subsection .results-carousel {
    padding: 12px 18px 20px;
    border-radius: 10px;
  }
  .carousel-slides { overflow-x: auto; }

  .comparison-slide {
    grid-template-columns: repeat(4, minmax(165px, 1fr));
    gap: 10px;
  }

  .prompt-card figcaption { font-size: 0.78rem; }
  .video-result figcaption { font-size: 0.86rem; }

  .carousel-arrow {
    top: calc(50% - 16px);
    width: 36px;
    height: 36px;
  }

  .carousel-arrow-prev { left: -4px; }
  .carousel-arrow-next { right: -4px; }

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

  .extended-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 14px;
  }

  .interactive-extended-card { padding: 16px 10px 12px; }

  .extended-example { grid-template-rows: auto auto; }

  .extended-prompt {
    min-height: 0;
    padding: 0 10px 8px;
    font-size: 0.88rem;
  }

  .human-canine-subsection .extended-prompt { width: 90%; }
  .human-canine-subsection .extended-example:nth-child(2) .extended-prompt { width: 96%; }

  .species-card .behavior-option span {
    min-width: 0;
    white-space: normal;
  }

  .scene-prompt-overlay {
    top: 9px;
    right: 9px;
    max-width: 62%;
    padding: 6px 8px;
    font-size: 0.68rem;
  }

  .extended-hover-overlay { padding: 20px; }

  .extended-hover-overlay p {
    width: 92%;
    padding: 15px 17px;
    font-size: 0.86rem;
  }

  .bibtex-block {
    padding: 14px;
    font-size: 0.7rem;
  }

  .bibtex-copy-button {
    top: 10px;
    right: 10px;
    min-width: 80px;
    height: 34px;
    padding: 0 11px;
    font-size: 0.84rem;
  }

  .behavior-card {
    grid-template-columns: minmax(138px, 38%) minmax(0, 1fr);
    padding: 9px;
  }

  .behavior-option {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 55px;
    padding: 6px 7px;
    font-size: 0.78rem;
  }

  .behavior-option img {
    width: 40px;
    height: 36px;
  }

  .behavior-option img.vector-icon {
    width: 40px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
