/* ------------------------------------------------------------------ font */

/* Inter (latin subset, variable weight 400-800), served with the page and
   preloaded, so every platform shows the same font. Until it arrives, Arial
   scaled to Inter's metrics stands in, so the swap does not move the text. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ tokens */

:root {
  --font: "Inter", "Inter Fallback", sans-serif;
  /* BibTeX only: its fields are aligned with spaces. */
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --bg: #ffffff;
  --bg-tint: #f5f5f5;
  --surface: #ffffff;
  --border: #e3e6ea;
  --text: #16191d;
  --text-muted: #5d6670;
  --accent: #2f6a86;          /* deepened paper token blue */
  --accent-soft: rgba(47, 106, 134, 0.10);
  --tok: #3b6e8a;             /* paper colours (method figure), deepened for text */
  --word: #b56d12;
  --t: #8a5368;
  --best-bg: rgba(47, 106, 134, 0.12);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 20px rgba(16, 24, 40, 0.06);
  --role-skin: #a87b5a;       /* original sequences (body colour of the renders) */
  --role-red: #c9574c;        /* right hand */
  --role-blue: #4f78c2;       /* left hand */
  --role-purple: #6f5a8e;     /* both hands */
  --role-compose: #2f8a4c;    /* composed sequences: a hue no body part of the renders uses */
  --role-gray: #757c85;       /* captures whose render has no hand colour */
  /* Baselines: the hue of each method's body in the comparison renders,
     deepened for text like --accent is for the rendered body. */
  --method-himo: #a54a5e;     /* pink body */
  --method-prior-mdm: #8659a6; /* lavender body */
  --method-mdm: #866c3c;      /* khaki body */
  /* One colour per letter of the wordmark: brown, red, blue, blue-violet, purple.
     Red turns to blue between O and S, and blue to purple only at the end,
     so purple appears once. The acronym letters of the subtitle use the
     same colours. */
  --iw-c: var(--role-skin);
  --iw-o: var(--role-red);
  --iw-s: var(--role-blue);
  --iw-m: color-mix(in srgb, var(--role-blue) 50%, var(--role-purple));
  --iw-i: var(--role-purple);
  --gradient: linear-gradient(90deg, var(--iw-c) 10%, var(--iw-o) 30%, var(--iw-s) 50%, var(--iw-m) 70%, var(--iw-i) 90%);
  --radius: 14px;
  --radius-sm: 9px;
  --narrow: 820px;
  --wide: 1180px;
  --content: 1080px;        /* one width for every block: navbar, teaser, text, figures */
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: only light;
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17.5px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.06rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Browsers give form controls their own system font: use the page font. */
button,
input,
select,
textarea {
  font-family: inherit;
}

pre,
code {
  font-family: var(--font-mono);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

/* No lone word on the last line of a paragraph or caption. */
p,
figcaption,
dd,
.card p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: wrap;
}

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

img {
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.icon-fill {
  fill: currentColor !important;
  stroke: none !important;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ------------------------------------------------------------------ layout */

.narrow,
.wide {
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(var(--narrow) + 2 * var(--gutter));
}

.wide {
  max-width: calc(var(--content) + 2 * var(--gutter));
}

.section {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(32px, 4vw, 48px);
  scroll-margin-top: 60px;
}

.subsection {
  margin-top: clamp(48px, 6vw, 72px);
  scroll-margin-top: 72px;
}

.section-tinted {
  background: var(--bg-tint);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section .narrow > p:not(.eyebrow) {
  color: var(--text-muted);
}

/* Section intros: main.js narrows each column to its fitted paragraph width. */
.narrow.prose {
  max-width: calc(var(--content) + 2 * var(--gutter));
}

.narrow.prose > p:not(.eyebrow) {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* A phone column is too narrow for justified text: the word gaps become
   holes. Left-align and drop hyphenation below the tablet width. */
@media (max-width: 640px) {
  .narrow.prose > p:not(.eyebrow) {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

.section .narrow + .wide {
  margin-top: 2.25rem;
}

h3.sub {
  margin: 2.5rem 0 1rem;
}

h3.sub:first-child {
  margin-top: 0;
}

/* ------------------------------------------------------------------ navbar */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.navbar.visible,
.navbar:focus-within {
  transform: none;
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: calc(var(--content) + 2 * var(--gutter));
  height: 60px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0;
  flex: none;
}

.navbar-brand strong {
  color: var(--accent);
  font-weight: 700;
}

.navbar-brand:hover {
  text-decoration: none;
}

.navbar-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.navbar-links::-webkit-scrollbar {
  display: none;
}

.navbar-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.navbar-links a:hover {
  color: var(--text);
  background: var(--bg-tint);
}

.navbar-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.navbar-links a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -11px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.navbar-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
}

.navbar-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  opacity: 0.55;
}

@media (max-width: 760px) {
  .navbar-inner {
    gap: 12px;
    height: 52px;
  }

  .navbar-links a.active::after {
    bottom: -7px;
  }
}

/* ------------------------------------------------------------------ buttons */

.button,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.button {
  padding: 0.75em 1.2em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--text);
  color: var(--bg);
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Links that do not exist yet: same colour, no hover. */
.button[aria-disabled="true"] {
  cursor: default;
  transform: none;
}

.button[aria-disabled="true"]:hover {
  background: var(--text);
}

.button.small {
  padding: 0.55em 0.95em;
  font-size: 0.85rem;
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.button.small:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button.icon-only {
  padding: 0.6em;
}

/* A small badge for links that do not exist yet. */
.soon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.1em;
  /* The letter spacing also follows the last letter: the extra left padding
     balances it, so the word sits in the horizontal middle. */
  padding: 0.4em 0.6em 0.4em 0.68em;
  line-height: 1;
  border-radius: 999px;
  background: #fff;             /* white on the dark button: reads at a glance */
  color: var(--text);
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Trim the text box to the capitals, so equal padding centres them exactly
   at any zoom (the padding makes up the same total height). */
@supports (text-box: trim-both cap alphabetic) {
  .soon {
    text-box: trim-both cap alphabetic;
    padding-top: 0.577em;      /* capitals read slightly high when exactly centred */
    padding-bottom: 0.497em;
  }
}

.pill {
  padding: 0.7em 1.25em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.pill .icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--accent);
}

.pill:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

.pill.icon-only {
  padding: 0.7em;
}

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: calc(1180px + 2 * var(--gutter));
  margin-inline: auto;
  padding: 72px var(--gutter) 52px;
  text-align: center;
}

.title {
  max-width: 1180px;
  margin: 0 auto;
  color: #343b42;
  font-family: var(--font);
  font-size: clamp(2rem, 2.85vw, 36px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.125;
  text-wrap: balance;
}

.title-name {
  display: block;
  color: inherit;
  font-family: inherit;
  font-size: clamp(3.2rem, 5.1vw, 64px);
  font-weight: 650;
  line-height: 1;
  margin-bottom: 16px;
  text-wrap: nowrap;
}

.title-rest {
  color: #343b42;
}

.title-term {
  white-space: nowrap;
}

.title-break {
  display: block;
}

.interweave-word > span {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.interweave-word > :nth-child(1) { background-image: linear-gradient(90deg, var(--iw-c), var(--iw-c)); }
.interweave-word > :nth-child(2) { background-image: linear-gradient(90deg, var(--iw-c), var(--iw-o)); }
.interweave-word > :nth-child(3) { background-image: linear-gradient(90deg, var(--iw-o), var(--iw-o)); }
.interweave-word > :nth-child(4) { background-image: linear-gradient(90deg, var(--iw-o), var(--iw-s)); }
.interweave-word > :nth-child(5) { background-image: linear-gradient(90deg, var(--iw-s), var(--iw-s)); }
.interweave-word > :nth-child(6) { background-image: linear-gradient(90deg, var(--iw-s), var(--iw-s)); }
.interweave-word > :nth-child(7) { background-image: linear-gradient(90deg, var(--iw-s), var(--iw-m)); }
.interweave-word > :nth-child(8) { background-image: linear-gradient(90deg, var(--iw-m), var(--iw-m)); }
.interweave-word > :nth-child(9) { background-image: linear-gradient(90deg, var(--iw-m), var(--iw-i)); }
.interweave-word > :nth-child(10) { background-image: linear-gradient(90deg, var(--iw-i), var(--iw-i)); }

@media (max-width: 560px) {
  .title {
    font-size: 2.05rem;
    line-height: 1.2;
  }

  .title-break {
    display: none;
  }

  .title-name {
    font-size: 3rem;
    margin-bottom: 14px;
  }
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3em 1.4em;
  font-size: 1.12rem;
  font-weight: 500;
  margin: 30px 0 0.5rem;
}

@media (max-width: 560px) {
  .authors {
    margin-top: 20px;
  }
}

.author {
  white-space: nowrap;
}

/* Force the remaining authors onto a second line; narrow screens wrap naturally. */
.author-break {
  flex-basis: 100%;
  height: 0;
}

@media (max-width: 700px) {
  .author-break {
    display: none;
  }
}

.authors a {
  color: var(--text);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.authors a:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

.authors sup,
.affiliations sup {
  color: var(--text-muted);
  font-size: 0.65em;
  margin-left: 1px;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em 1.2em;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 1.4em;
  margin-top: 0.6rem;
  padding: 0.3em 0.85em;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.note-star {
  color: var(--text-muted);
  font-weight: 700;
}

.note-item .note-star {
  margin-right: 4px;
}

/* Equal-contribution asterisk: Inter's asterisk is small and sits high, so
   it is enlarged, bolded, and lowered to the middle of the numbers. */
.star-mark {
  display: inline-block;
  font-size: 1.45em;
  font-weight: 700;
  line-height: 0;
  vertical-align: -0.28em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 36px;
}

/* dropdown */

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, -4px);
  min-width: 260px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 60;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
}

.dropdown-menu a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.dropdown-menu span {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ teaser + stats */

.teaser {
  padding-bottom: clamp(36px, 5vw, 56px);
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.media video,
.media img {
  width: 100%;
  height: auto;
}

/* A click pauses or resumes a video (main.js). */
.media video {
  cursor: pointer;
}

.teaser-media {
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.teaser-media video {
  height: 100%;
  object-fit: cover;
}

figcaption {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0.9rem;
  text-align: center;
}

figure {
  margin: 0;
}

.stats {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 44px auto 0;
  padding-inline: var(--gutter);
  display: flex;
}

/* Columns take their content width plus an equal share of the rest, so no
   label wraps on wide screens. */
.stats div {
  position: relative;
  flex: 1 1 auto;
  padding: 8px 18px;
  text-align: center;
}

.stats div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--border);
}

.stats dt {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Range dash: a hyphen at its natural width (tabular figures widen it),
   raised to the middle of the digits. Inter's en dash is too long here. */
.stats dt .dash {
  font-variant-numeric: normal;
  font-feature-settings: "case";
}

.stats dt small {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 0.12em;
  color: var(--accent);
}

.stats dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
}


@media (max-width: 980px) {
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
  }

  .stats div:nth-child(4)::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats dd {
    white-space: normal;
  }

  .stats div:nth-child(odd)::before {
    display: none;
  }
}

/* ------------------------------------------------------------------ figures */

.figure {
  margin-top: 56px;
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--radius);
  background: #fff;             /* paper figures are drawn on white */
}

.figure img {
  width: 100%;
}

/* Figures without a caption: a thin frame, so the figure gets the full width. */
.figure-tight {
  margin-top: 0;
  padding: 10px;
}

.dataset-construction-figure { grid-area: construction; align-self: end; min-width: 0; margin: 0; scroll-margin-top: 96px; }
.dataset-construction-figure > a { display: block; }
.dataset-construction-figure img { display: block; width: 100%; height: auto; }
.dataset-construction-figure figcaption { text-align: center; }

/* Subsection titles inside a section intro. */
.prose h3.sub {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.3rem;
}

.wide h3.sub {
  scroll-margin-top: 80px;
  margin: 56px 0 18px;
  font-size: 1.3rem;
}

.figure figcaption {
  max-width: 900px;
  margin: 1.25rem auto 0;
  color: #3d454e;
  font-size: 1.02rem;
}

/* Conditions share one style; each generation level has its own text accent. */
#method .generation-description { text-align: left; line-height: 1.85; hyphens: none; -webkit-hyphens: none; }
#method .method-highlight { font-weight: 600; }
#method .method-highlight.condition { color: #59636f; }
#method .method-highlight.scene { color: #326b80; }
#method .method-highlight.contact { color: #805d80; }
#method .method-highlight.level { font-weight: 700; }

/* ------------------------------------------------------------------ clips */

.clip {
  margin: 0;
}

.clip .media {
  border: 1px solid var(--border);
  background: #fff;
}

.clip figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;
  color: var(--text);
}

/* ------------------------------------------------------------------ composition diagram */

/* A full-width introduction above the construction figure and interactive scene. */
.dataset-overview { scroll-margin-top: 80px; }
#dataset > .stats { margin: 44px auto 56px; }
.compose { max-width: 1080px; margin: 0 auto; }
.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 500fr) minmax(0, 536fr);
  grid-template-areas: "intro intro" "construction spotlight";
  column-gap: clamp(28px, 3.4vw, 44px);
  row-gap: 32px;
  align-items: start;
  container-type: inline-size;
}
.idea-intro { grid-area: intro; }
.idea-intro h3 { font-size: clamp(24px, 2.5vw, 30px); line-height: 1.25; letter-spacing: -0.035em; margin: 0 0 14px; }
.idea-intro h3 span { color: #446b7b; }
.construction-description { margin: 0 0 18px; color: #6c767d; font-size: 0.88rem; line-height: 1.7; }
.idea-intro > p:last-child { color: #6c767d; font-size: 0.96rem; line-height: 1.75; margin: 0; }
.idea-inputs { grid-area: inputs; align-self: end; border-top: 1px solid #e6ebee; padding-top: 14px; }
.idea-input-heading { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8b969d; margin: 0 0 6px; }
.idea-input-pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.idea-spotlight { grid-area: spotlight; align-self: end; position: relative; min-height: 0; }
[data-role="skin"] { --role: var(--role-skin); }
[data-role="scene"] { --role: var(--accent); }
[data-role="hoi"] { --role: var(--role-red); }
[data-role="red"] { --role: var(--role-red); }
[data-role="blue"] { --role: var(--role-blue); }
[data-role="purple"] { --role: var(--role-purple); }
[data-role="compose"] { --role: var(--role-compose); }
[data-role="gray"] { --role: var(--role-gray); }

/* Method comparison labels retain their existing treatment. */
.panel-head .tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  color: var(--role);
  background: color-mix(in srgb, var(--role) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--role) 38%, transparent);
}

.node { min-width: 0; text-align: center; }
.node .media { width: 100%; border-radius: 0; border: 0; background: transparent; overflow: hidden; }
.node .media video, .node .media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.idea-source { appearance: none; border: 0; border-radius: 0; padding: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.idea-source .media { height: clamp(86px, 10.5cqw, 114px); }
.idea-source .media video, .idea-source .media img { pointer-events: none; }
.node .tag { display: block; }
.idea-source .tag {
  margin-top: 10px; font-size: 0.72rem; line-height: 1.4; color: #74848d;
  transition: color 160ms;
}
.idea-source:hover .tag, .idea-source[aria-pressed="true"] .tag { color: #2f6a86; }
.idea-source:focus-visible, .idea-view-switcher button:focus-visible { outline: 2px solid #2f6a86; outline-offset: 4px; }
.idea-source .label { display: none; }
.node-composed { width: 100%; margin: 0 auto; }
.node-composed .media { height: auto; aspect-ratio: 1.25 / 1; }
.node-composed .media video, .node-composed .media img { object-fit: cover; }
/* The framed HOI clip is square: letterbox it instead of cropping the motion. */
.node-composed .media video[src*="hoi-framed"] { object-fit: contain; }
.node-composed .media video, .node-composed .media img { min-height: 0; }
.dataset-construction-figure figcaption,
.node-composed .tag { margin-top: 18px; font-size: 0.85rem; line-height: 1.5; color: #314953; font-weight: 600; }
.idea-view-switcher {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: calc(100% - 24px);
  margin: 0;
  padding: 4px;
  border: 1px solid #ffffffd9;
  border-radius: 11px;
  background: #fffffff2;
  box-shadow: 0 6px 20px rgba(20, 30, 35, 0.14);
  backdrop-filter: blur(8px);
}
.idea-view-switcher button {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 0; min-height: 34px; padding: 6px 8px;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  font: inherit; font-size: 0.8rem; font-weight: 600; line-height: 1.4; color: #6b757e; cursor: pointer;
  white-space: nowrap; transition: color 160ms, background 160ms, border-color 160ms, box-shadow 160ms;
}
.idea-view-switcher svg {
  width: 19px; height: 19px; flex: 0 0 19px; padding: 0;
  border: 0; background: transparent;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.idea-view-switcher [data-view="mirror_to"] svg { fill: currentColor; stroke: none; }
.idea-view-switcher button:hover { color: #16191d; }
.idea-view-switcher button[aria-pressed="true"] {
  background: #2f6a86;
  border-color: #2f6a86;
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .idea-view-switcher button, .idea-view-switcher svg { transition: none; }
  .idea-view-switcher button:hover { transform: none; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .idea-view-switcher { gap: 5px; }
  .idea-view-switcher button { padding: 7px 5px; gap: 5px; font-size: 0.74rem; }
  .idea-view-switcher svg { width: 17px; height: 17px; flex-basis: 17px; }
}
@media (max-width: 700px) {
  .compose-grid { row-gap: 28px; grid-template-columns: 1fr; grid-template-areas: "intro" "construction" "spotlight"; }
  .dataset-construction-figure { margin-top: 0; }
  .idea-intro { padding-top: 0; }
  .idea-intro h3 { font-size: 26px; margin-bottom: 14px; }
  .idea-intro h3 br { display: none; }
  .idea-intro > p:last-child { font-size: 0.9rem; }
  .construction-description { font-size: 0.9rem; }
  .node-composed { height: auto; }
  .node-composed .media { flex: none; height: auto; aspect-ratio: 1028 / 1072; }
  .dataset-construction-figure figcaption,
  .node-composed .tag { margin-top: 10px; }
  .idea-inputs { display: none; }
  .idea-view-switcher { gap: 4px; width: calc(100% - 24px); }
  .idea-view-switcher button { min-height: 32px; padding: 6px 4px; gap: 5px; font-size: 0.74rem; border-radius: 8px; }
  .idea-view-switcher svg { width: 16px; height: 16px; flex-basis: 16px; }
  .idea-input-pair { gap: 28px; }
  .idea-source .media { height: 112px; }
}

/* ------------------------------------------------------------------ chart */

.table-card {
  padding: clamp(16px, 3vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

/* ------------------------------------------------------------------ tabs + chips */

.tabs,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs button,
.chips button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5em 1em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tabs button:hover,
.chips button:hover {
  color: var(--text);
}

.tabs button[aria-selected="true"],
.chips button[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.chips .count {
  opacity: 0.6;
  margin-left: 0.35em;
  font-weight: 500;
}

/* ------------------------------------------------------------------ segmented control */

.segmented {
  display: flex;
  width: fit-content;
  margin: 0 auto 28px;
  gap: 4px;
  padding: 4px;
  border-radius: calc(var(--radius-sm) + 4px);   /* concentric with the options inside */
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

/* Options have the corners and type of the labels above the videos; the
   selected one is filled slate grey. */
.segmented button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.segmented button:hover {
  color: var(--text);
}

.segmented button[aria-pressed="true"] {
  color: #fff;
  background: #4a525c;
  border-color: #4a525c;
}

/* ------------------------------------------------------------------ carousel */

.carousel-stage {
  position: relative;
}

/* Arrows beside the video; inside its edges when the screen has no room. */
.carousel-stage .arrow {
  position: absolute;
  top: var(--arrow-top, 50%);
  transform: translateY(-50%);
  z-index: 2;
}

.carousel-stage .arrow.prev {
  left: -64px;
}

.carousel-stage .arrow.next {
  right: -64px;
}

@media (max-width: 1240px) {
  .carousel-stage .arrow.prev {
    left: 8px;
  }

  .carousel-stage .arrow.next {
    right: 8px;
  }

  .carousel-stage .arrow {
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(6px);
  }
}

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius);
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  margin: 0;
}

/* Every slide stretches to the tallest one; the caption box absorbs the
   difference, so all caption boxes share one height. */
.slide-body {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.panel-heads {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  align-items: stretch;       /* main.js gives every row of a carousel one height */
}

/* Labels of one row share one height, text centred. */
.panel-head {
  display: flex;
  align-items: stretch;
}

.panel-head .tag {
  margin-bottom: 0;
}

.panel-caption .short {
  display: none;
}

/* Phones: panels are narrow, so the capsules show the short tag
   ("Original", "Mirrored", "Composed"); the caption below has the details. */
@media (max-width: 560px) {
  .panel-caption .long {
    display: none;
  }

  .panel-caption .short {
    display: inline;
  }

  .panel-head .tag {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .panel-heads {
    gap: 6px;
  }

  /* Slides with fewer panels use the full width instead of shrinking. */
  .slide-body {
    max-width: 100% !important;
  }

  .slide-caption {
    padding: 12px 14px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Method names: same column gap as the videos below, each name inside its column. */
  .compare-row {
    gap: 6px;
  }

  .panel-heads.method-heads .tag {
    display: block;             /* lets a long name end in an ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* The framed video already marks ours. */
  .ours-note {
    display: none;
  }

  .result-card figcaption {
    font-size: 0.88rem;
  }
}

/* Hand phrases and held objects in captions. */
.hand-word {
  color: var(--role);
  font-weight: 700;
}

.slide .media {
  border: 1px solid var(--border);
  background: #fff;
}

.slide .media video {
  height: 100%;
  object-fit: cover;
}

/* The composed panel is marked by its tag alone, without a frame. */

.slide-caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.carousel-stage .arrow,
.carousel-nav .arrow {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.carousel-stage .arrow:hover,
.carousel-nav .arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.dots button[aria-current="true"] {
  width: 22px;
  background: var(--accent);
}

/* ------------------------------------------------------------------ grids + cards */

/* Key ideas of the method: raised cards, a shadow instead of a border. */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.card {
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 10px 28px rgba(16, 24, 40, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 36px rgba(16, 24, 40, 0.13);
}

.card h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.card h3::before {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  margin: 0 auto 10px;
  border-radius: 2px;
  background: var(--gradient);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ results carousel */

.card-track {
  --per-page: 4;
  --gap: 18px;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.card-track::-webkit-scrollbar {
  display: none;
}

.result-card {
  flex: 0 0 calc((100% - (var(--per-page) - 1) * var(--gap)) / var(--per-page));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.result-card .media {
  aspect-ratio: 640 / 872;
  border-radius: 0;
  background: #fff;
}

.result-card .media video {
  height: 100%;
  object-fit: cover;
}

/* The whole caption, centred in the space below the video. */
.result-card figcaption {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .card-track {
    --per-page: 2;
  }
}

@media (max-width: 520px) {
  .card-track {
    --per-page: 1;
  }
}

/* ------------------------------------------------------------------ comparisons */

[data-role="accent"] { --role: var(--accent); }

/* The label is a flex box, which drops the space before "(ours)". */
.ours-note { margin-left: 0.3em; }
[data-role="himo"] { --role: var(--method-himo); }
[data-role="prior_mdm"] { --role: var(--method-prior-mdm); }
[data-role="mdm"] { --role: var(--method-mdm); }


.compare-row {
  display: grid;
  gap: 10px;
}

.compare-row .media {
  aspect-ratio: 640 / 872;
  border: 1px solid var(--border);
  background: #fff;
}

.compare-row .media video {
  height: 100%;
  object-fit: cover;
}

.compare-row .media.ours {
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}


/* ------------------------------------------------------------------ bibtex */

/* BibTeX in the title colours: entry type blue, key red, field names purple. */
.bib-type { color: var(--role-blue); font-weight: 700; }
.bib-key { color: var(--role-red); }
.bib-field { color: var(--role-purple); }

.code-block {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-tint);
}

.code-block pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.code-block .copy {
  position: absolute;
  top: 12px;
  right: 12px;
}

.code-block .copy.done {
  border-color: #2f9e6e;
  color: #2f9e6e;
}

/* ------------------------------------------------------------------ acknowledgements */

/* Funding and affiliation logos, as on the DAMA page. Each logo sets its
   own height (--h) in the HTML, to even out the padding inside the images. */
.logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
}

.logo-row img {
  width: auto;
  height: var(--h);
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-row img {
    height: 30px;
  }
}

/* ------------------------------------------------------------------ footer */

.footer {
  padding: 36px var(--gutter);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
}

/* ------------------------------------------------------------------ motion */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

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

/* ------------------------------------------------------------------ comparison */

/* The comparison: a capsule above each clip, the clips in one row, a
   caption box below, the arrows beside the row and the dots underneath. */

.comparison-preview {
  --compare-accent: #5b6a9c;
  --compare-accent-deep: #3f4c7d;
  --compare-accent-soft: #eef1f8;
}

.comparison-preview .compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-cell {
  min-width: 0;
}

/* The three conditions of the comparison, each with its own colour. */
.comparison-preview .cond {
  display: inline-block;
  margin: 0 1px;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.comparison-preview .cond-prompt {
  background: #eaedf8;
  color: #4a5a92;
}

.comparison-preview .cond-scene {
  background: #e6f1ec;
  color: #2f6b5f;
}

.comparison-preview .cond-objects {
  background: #f6eee3;
  color: #8a5a24;
}

.compare-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #f3f5f6;
  color: #4b5560;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.compare-cell.is-ours .compare-tag {
  background: var(--compare-accent-soft);
  color: var(--compare-accent-deep);
}

.ours-note {
  font-weight: 600;
}

.compare-cell .media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  background: #fff;
}

.compare-cell .media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.compare-cell.is-ours .media {
  border-color: var(--compare-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--compare-accent) 25%, transparent);
}

@media (hover: hover) {
  .compare-cell .media {
    transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s ease;
  }

  .compare-cell:hover .media {
    border-color: #c3ccd3;
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.12);
    transform: translateY(-2px);
  }

  .compare-cell:hover .media video {
    transform: scale(1.07);
  }

  .compare-cell.is-ours:hover .media {
    border-color: var(--compare-accent);
  }
}

/* The side arrows sit at the vertical centre of the whole board. */
#compare-gallery .carousel-stage .arrow {
  top: var(--compare-arrow-top, 50%);
  width: 40px;
  height: 40px;
  border: 1px solid #e3e6ea;
  background: #fff;
  color: #4b5560;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

#compare-gallery .carousel-stage .arrow:hover {
  border-color: var(--compare-accent);
  background: #fff;
  color: var(--compare-accent);
  box-shadow: 0 6px 18px rgba(91, 106, 156, 0.18);
}

#compare-gallery .carousel-stage .arrow .icon {
  width: 17px;
  height: 17px;
}

/* On one column the board is tall, so side arrows would land in the middle of
   the clip list; dots and swipe are enough there. */
@media (max-width: 760px) {
  #compare-gallery .carousel-stage .arrow {
    display: none;
  }
}

/* The whole board fades and rises as it scrolls in, then the clips land one
   after another. Same language as the rest of the page, a little slower. */
#compare-gallery.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#compare-gallery.reveal.in {
  opacity: 1;
  transform: none;
}

#compare-gallery.reveal .compare-cell {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}

#compare-gallery.reveal.in .compare-cell {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  #compare-gallery.reveal,
  #compare-gallery.reveal .compare-cell {
    opacity: 1;
    transform: none;
  }
}

.compare-caption-title {
  max-width: 900px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.compare-caption-title .prompt-verb {
  display: inline-block;
  margin: 0 1px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--compare-accent-soft);
  color: var(--compare-accent-deep);
  font-weight: 600;
  line-height: 1.4;
}


#compare-gallery .dots button[aria-current="true"] {
  background: var(--compare-accent);
}

@media (min-width: 761px) {
  .comparison-preview .compare-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  .compare-cell {
    grid-column: span 2;
  }

  .compare-grid[data-count="5"] .compare-cell:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .compare-grid[data-count="5"] .compare-cell:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 760px) {
  .compare-tag {
    height: 28px;
    font-size: 0.78rem;
  }

  /* Method order reads Ours, 1, 2, 3, 4 on narrow screens. */
  .compare-cell:nth-child(1) { order: 1; }
  .compare-cell:nth-child(2) { order: 5; }
  .compare-cell:nth-child(3) { order: 4; }
  .compare-cell:nth-child(4) { order: 6; }
  .compare-cell:nth-child(5) { order: 2; }
  .compare-cell:nth-child(6) { order: 3; }
}

@media (max-width: 520px) {
  .comparison-preview .compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-tag {
    height: 26px;
  }
}

/* ------------------------------------------------------------------ G1 demo */
.demo-section .prose { margin-bottom: 26px; }
.g1-embed {
  position: relative;
  width: 100%;
  height: 560px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(20, 32, 30, 0.06);
}
.g1-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.g1-fallback {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  padding: 32px; text-align: center;
  background: #f7f8f4; color: #5f6a70;
}
.g1-fallback[hidden] { display: none; }
.g1-fallback p { margin: 0; max-width: 620px; font-size: 0.98rem; line-height: 1.8; }
.g1-fallback code { padding: 2px 6px; border-radius: 4px; background: #e9eeec; color: #34443e; font-size: 0.86em; }
.g1-note { margin: 12px 0 0; text-align: center; color: #8a949a; font-size: 0.8rem; }
@media (max-width: 760px) {
  .g1-embed { height: 470px; border-radius: 12px; }
  .g1-fallback { padding: 20px; }
}
.g1-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.g1-poster[hidden], .g1-launch[hidden] { display: none; }
.g1-launch {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: #ffffff;
}
.g1-launch button {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 16px;
  border: 0; border-radius: 999px;
  background: #fff; color: #1f2a33; cursor: pointer;
  font: inherit; box-shadow: 0 10px 30px rgba(10, 20, 30, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}
.g1-launch button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(10, 20, 30, 0.28); }
.g1-play {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #2f6a86; color: #fff; font-size: 12px; line-height: 1;
}
.g1-launch-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.g1-launch-text strong { font-size: 0.92rem; font-weight: 600; }
.g1-launch-text small { font-size: 0.74rem; color: #7b858c; }
#interactive .iw-key { color: #2f6a86; font-weight: 600; }
#interactive .iw-cap {
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
#interactive .iw-cap.cap-scene { background: #e6f1ec; color: #2f6b5f; }
#interactive .iw-cap.cap-object { background: #f6eee3; color: #8a5a24; }
#interactive .iw-cap.cap-hand { background: #f1ecf4; color: #6b5570; }

/* ------------------------------------------------------------------ dataset examples */
.dataset-examples { margin-top: 8px; }
.dataset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dataset-grid .clip .media { aspect-ratio: 4 / 3; }
.dataset-grid .clip figcaption { font-size: 0.88rem; color: #5f6a70; }
@media (max-width: 900px) {
  .dataset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dataset-grid { grid-template-columns: 1fr; }
}
.dataset-grid .example-caption { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.example-id {
  font: 0.72rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #2f6a86;
  letter-spacing: 0.01em;
}
.example-en { font-size: 0.84rem; line-height: 1.5; color: #3d454e; }
.example-zh { font-size: 0.8rem; line-height: 1.6; color: #7c878e; }

/* Hugging Face emoji used as the Dataset button icon. */
.hf-emoji { font-size: 1.15em; line-height: 1; display: inline-block; }
