:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface-1: #fcfcfb;
  --surface-2: #f3f2ee;
  --surface-3: #ebeae4;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #6e6c66;
  --border: rgba(11, 11, 11, .10);
  --border-strong: rgba(11, 11, 11, .18);
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--page);
  color: var(--text-primary);
  font: 16px/1.6 var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, p, figure { margin: 0; }
body {
  min-width: 320px;
  background: var(--page);
  color: var(--text-primary);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: fixed;
  top: -90px;
  left: 15px;
  z-index: 100;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text-primary);
  padding: 10px 13px;
}
.skip-link:focus { top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 11px 30px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}
.brand img {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 7px;
}
.site-header nav { display: flex; align-items: center; gap: 10px; }
.site-header button {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: .87rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-header button:not(:disabled):hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
  color: var(--text-primary);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 28px 48px;
  text-align: center;
}
.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-primary);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.hero-logo {
  position: relative;
  display: block;
  height: clamp(90px, 12vw, 150px);
  aspect-ratio: 8 / 5;
  flex-shrink: 0;
  background: #f9f9f7;
}
.hero-logo video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #f9f9f7; transition: none; }
.hero-subtitle {
  max-width: 1000px;
  margin: -6px auto 0;
  color: var(--text-secondary);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.01em;
}


/* Paper credits follow the reference order and reflow as one group on mobile. */
.paper-authors { margin-top: 24px; }
.author-names { display: grid; gap: 1px; }
.author-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; }
.author-name { white-space: nowrap; font-size: 1.16rem; font-weight: 600; line-height: 1.45; }
.author-name a:hover, .author-name a:focus-visible { color: var(--accent-ink); text-decoration: underline; text-underline-offset: .18em; }
.paper-authors sup { position: relative; top: -.45em; margin-left: 2px; font-size: .7em; font-weight: 400; line-height: 0; vertical-align: baseline; }
.author-affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; max-width: 920px; margin: 14px auto 0; color: var(--text-secondary); font-size: 1rem; line-height: 1.5; }
.author-affiliations span { white-space: nowrap; }
.author-affiliations sup { margin-left: 0; margin-right: 3px; }
.author-contribution { margin-top: 12px; color: var(--text-muted); font-size: 1rem; }
@media (max-width: 760px) {
  .paper-authors { margin-top: 22px; }
  .author-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
  .author-row { display: contents; }
  .author-name { font-size: 1rem; }
  .author-affiliations { margin-top: 14px; gap: 3px 14px; font-size: .9rem; }
  .author-contribution { font-size: .9rem; }
}


.project-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.resource-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 21px; border: 1px solid #272727; border-radius: 999px; background: #272727; color: #fff; font-size: 1rem; font-weight: 500; line-height: 1.5; transition: background .15s, border-color .15s; }
.resource-link svg, .resource-link img { display: block; width: 21px; height: 21px; flex-shrink: 0; object-fit: contain; }
.resource-link:hover { border-color: #454545; background: #454545; }
.resource-link:focus-visible { outline-offset: 4px; }
@media (max-width: 440px) {
  .project-links { gap: 10px; margin-top: 22px; }
  .resource-link { gap: 7px; padding-inline: 16px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .resource-link { transition: none; } }

.teaser-section {
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  background: var(--surface-1);
}
.teaser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.teaser-tile { position: relative; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #080a0f; }
.teaser-tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Poster shows instantly (tile background); the video fades in once it is actually playing. */
.teaser-tile { background-size: cover; background-position: center; }
.teaser-tile video { opacity: 0; transition: opacity .35s ease; }
.teaser-tile.is-ready video { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .teaser-tile video { transition: none; } }
.teaser-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  color: #fff;
  font-size: .875rem;
  line-height: 1.45;
  text-shadow: 0 1px 5px #000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s;
}
.teaser-tile figcaption span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.clip-src {
  position: absolute;
  left: 9px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(13, 13, 13, .62);
  color: #fff;
  font: 500 10.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .01em;
  white-space: nowrap;
  opacity: .55;
  cursor: copy;
  backdrop-filter: blur(4px);
  transition: opacity .15s, background .15s;
}
.teaser-tile:hover .clip-src, .clip-src:focus-visible { opacity: 1; }
.clip-src:hover { background: rgba(13, 13, 13, .85); }
.clip-src:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.clip-src.is-copied { opacity: 1; background: var(--accent); border-color: transparent; }
.teaser-tile:has(.clip-src) figcaption { padding-bottom: 34px; }
.teaser-category {
  position: absolute;
  top: 10px;
  left: 11px;
  max-width: calc(100% - 64px);
  overflow: hidden;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(13, 13, 13, .72);
  color: #f0efec;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(5px);
}
.sample-audio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-align: inherit;
  touch-action: manipulation;
}
.sample-audio:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.audio-badge {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(13, 13, 13, .72);
  pointer-events: none;
  backdrop-filter: blur(5px);
}
.audio-badge svg { width: 20px; height: 20px; }
.sound-playing { display: none; }
.sample-audio[aria-pressed=true] .sound-playing { display: block; }
.sample-audio[aria-pressed=true] .sound-muted { display: none; }
.sample-audio[aria-pressed=true] .audio-badge { background: var(--accent); color: #fff; }
.sample-audio:hover .audio-badge { background: var(--accent-ink); }
.teaser-tile:has(.sample-audio:focus-visible) figcaption { opacity: 1; transform: none; }
@media (hover: hover) { .teaser-tile:hover figcaption { opacity: 1; transform: none; } }
@media (hover: none) { .teaser-tile:has(.sample-audio[aria-pressed=true]) figcaption { opacity: 1; transform: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript { padding: 20px; background: var(--surface-2); color: var(--text-secondary); }

@media (min-width: 1600px) { .hero { padding-block: 12px 52px; } }
@media (max-width: 1100px) {
  .site-header { padding-inline: 22px; gap: 15px; }
  .site-header nav { gap: 8px; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding: 10px 18px; gap: 8px; }
  .site-header nav { width: 100%; flex-wrap: wrap; gap: 8px; }
  .site-header button { min-height: 32px; padding: 5px 10px; }
  .hero { padding: 10px 18px 34px; }
  .hero h1 { gap: 12px; }
  .hero-subtitle { margin-top: 2px; }
  .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teaser-tile figcaption { padding: 30px 11px 10px; font-size: .8rem; }
  .teaser-tile:has(.clip-src) figcaption { padding-bottom: 28px; }
  .clip-src { left: 6px; bottom: 6px; padding: 1px 6px; font-size: 9.5px; }
  .teaser-category { max-width: calc(100% - 56px); }
  .audio-badge { right: 7px; width: 30px; height: 30px; }
}
@media (max-width: 440px) {
  .brand { font-size: .95rem; }
  .hero h1 { flex-direction: column; gap: 6px; font-size: 2.75rem; }
  .hero-logo { height: 82px; }
  .hero-subtitle { font-size: 1.2rem; }
  .teaser-tile figcaption { font-size: .75rem; }
  .teaser-category { top: 7px; left: 7px; }
  .audio-badge { top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .teaser-tile figcaption { transition: none; }
}
