:root {
  color-scheme: light;
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;

  --background: #fcfcfc;
  --ink: #080b0f;
  --muted: #4c5663;
  --accent: #1f5f9e;
  --accent-strong: #0f5597;
  --media-surface: #eef5fb;
  --media-border: #a8c8e4;
  --divider: #aeb8c2;
  --page-standard: 1080px;
  --page-wide: 1270px;
  --gutter: clamp(18px, 4vw, 48px);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --section-space: 64px;
  --focus: #e27220;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
}

body.dialog-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 36%, transparent);
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

.participant-ref {
  color: var(--accent-strong);
  font-family: "STIX Two Math", "Cambria Math", "Times New Roman", serif;
  font-weight: 500;
  white-space: nowrap;
}

.participant-ref var {
  font: inherit;
  font-style: italic;
}

.participant-ref sub {
  position: relative;
  bottom: -0.14em;
  font-size: 0.7em;
  font-style: normal;
  line-height: 0;
  vertical-align: baseline;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 75%, white);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 24px;
}

.page-standard,
.page-wide {
  width: min(calc(100% - (2 * var(--gutter))), var(--page-standard));
  margin-inline: auto;
}

.page-wide {
  width: min(calc(100% - (2 * var(--gutter))), var(--page-wide));
}

.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;
}

.home-corner {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #040404;
  background: rgba(252, 252, 252, 0.92);
  border: 1px solid rgba(4, 4, 4, 0.25);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.home-corner:hover {
  color: rgb(18, 109, 201);
  border-color: rgb(18, 109, 201);
}

.home-corner:focus-visible {
  outline: 3px solid rgb(18, 109, 201);
  outline-offset: 2px;
}

.project-header {
  padding-top: clamp(52px, 6vw, 78px);
  text-align: center;
}

.project-header h1 {
  max-width: 1000px;
  margin: 0 auto 22px;
  font-size: clamp(2.05rem, 3.1vw, 2.75rem);
  font-weight: 670;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.title-colon {
  color: var(--accent-strong);
}

.title-wordmark {
  display: inline-block;
  width: clamp(170px, 21vw, 235px);
  height: auto;
  margin-right: 0.02em;
  vertical-align: -0.28em;
}

.authors {
  max-width: 1240px;
  margin: 0 auto;
  font-size: clamp(0.96rem, 1.15vw, 1.1rem);
  line-height: 1.55;
}

.author-entry {
  display: inline-block;
  white-space: nowrap;
}

.authors a,
.resource-nav a {
  text-decoration: none;
}

sup {
  margin-left: 0.08em;
  font-size: 0.66em;
  line-height: 0;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 14px auto 0;
  color: #1d2229;
  font-size: clamp(0.9rem, 1.35vw, 1.04rem);
}

.resource-block {
  margin-top: var(--space-md);
}

.resource-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12%;
  border-top: 1px solid #040404;
  border-bottom: 1px solid #040404;
}

.resource-nav a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: #040404;
  font-size: 1rem;
}

.intro {
  padding-top: var(--space-lg);
}

.wide-figure {
  margin: 0;
}

.scope-frame {
  position: relative;
  overflow: hidden;
  background: var(--media-surface);
  border: 0;
}

.figure-media {
  padding: 0;
}

.paper-figure-frame {
  overflow: visible;
  background: transparent;
  border: 0;
}

.figure-image {
  width: 100%;
  height: auto;
}

.video-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed iframe[hidden],
.video-embed-fallback[hidden] {
  display: none;
}

.video-embed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  color: #fff;
  background: #252525;
  text-align: left;
  text-decoration: none;
}

.video-embed-fallback:hover {
  color: #fff;
}

.video-embed-fallback > i {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  place-items: center;
}

.video-embed-fallback span {
  display: grid;
  gap: 2px;
}

.video-embed-fallback strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.video-embed-fallback small {
  color: #c9c9c9;
  font-size: 0.82rem;
}

.prose,
.section-body {
  margin-inline: auto;
}

.intro-copy {
  max-width: 900px;
  padding-top: var(--space-md);
}

.intro-copy > p:first-child {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.62;
}

.content-section {
  margin-top: var(--section-space);
}

.content-section .section-body {
  padding: 0;
}

.content-section h2 {
  margin: 0;
  padding-top: var(--space-xs);
  font-size: clamp(1.32rem, 1.8vw, 1.48rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  border-top: 1px solid var(--divider);
}

.content-section h2 + .wide-figure {
  margin-top: var(--space-sm);
}

.section-description {
  max-width: 900px;
  margin: var(--space-sm) 0 0;
  font-size: clamp(1.01rem, 1.55vw, 1.17rem);
  line-height: 1.62;
}

.section-lede {
  max-width: 900px;
  margin: var(--space-xs) 0 var(--space-md);
  font-size: 1rem;
  line-height: 1.62;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--divider);
}

.results-toolbar h2 {
  padding-top: 0;
  border-top: 0;
}

.gallery-filter {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.gallery-filter-button {
  min-height: 28px;
  padding: 0.14rem 0.5rem;
  color: #5f6974;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 450;
  line-height: 1.3;
  background: #eef0f2;
  border: 0;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.gallery-filter-button:hover:not(:disabled) {
  color: var(--accent-strong);
  background: #e6eef5;
}

.gallery-filter-button.is-selected {
  color: var(--accent-strong);
  font-weight: 600;
  background: #dce9f4;
}

.gallery-filter-button:disabled {
  opacity: 1;
  cursor: default;
}

.evaluation-lede {
  max-width: 900px;
  margin: var(--space-xs) 0 var(--space-lg);
  font-size: clamp(1.02rem, 1.55vw, 1.15rem);
  line-height: 1.62;
}

.evaluation-figure {
  margin: 0;
}

.figure-caption {
  max-width: 900px;
  margin: var(--space-sm) 0 0;
  color: #2f3740;
  font-size: 0.93rem;
  line-height: 1.55;
}

.figure-caption strong {
  color: var(--ink);
}

.evaluation-pattern-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
}

.figure-media--usage-patterns {
  align-self: start;
  padding: 0;
}

.patterns-copy {
  padding: 0;
}

.patterns-copy h3 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.12rem, 1.8vw, 1.3rem);
}

.patterns-intro {
  margin: 0 0 var(--space-sm);
  color: #2f3740;
  font-size: 0.9rem;
  line-height: 1.5;
}

.evaluation-figure--patterns {
  margin-top: var(--space-lg);
}

.pattern-list {
  margin: 0;
}

.pattern-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  column-gap: 18px;
  padding: 0;
}

.pattern-item + .pattern-item {
  margin-top: var(--space-sm);
}

.pattern-item dt {
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 650;
}

.pattern-name {
  display: block;
}

.pattern-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem 0.62rem;
  margin-top: 0.28rem;
}

.pattern-participants .participant-ref {
  font-size: 1rem;
}

.pattern-item dd {
  margin: 0;
  color: #2f3740;
  font-size: 0.86rem;
  line-height: 1.45;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md) 20px;
}

.gallery-item,
.gallery-item figure {
  min-width: 0;
  margin: 0;
}

.gallery-media {
  aspect-ratio: 4 / 3;
}

.gallery-media-button {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  appearance: none;
  border: 0;
  cursor: zoom-in;
}

.gallery-media picture,
.gallery-media img {
  width: 100%;
  height: 100%;
}

.gallery-media img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  padding: 8px;
  transition: transform 180ms ease;
}

.gallery-media-button:hover img {
  transform: scale(1.015);
}

.gallery-participant-label {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  place-items: center;
  pointer-events: none;
}

.gallery-media.is-missing img {
  visibility: hidden;
}

.gallery-media.is-missing::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  color: var(--muted);
  content: "Image unavailable";
  text-align: center;
}

.gallery-caption {
  padding-top: 6px;
}

.query-count {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 560;
}

.query-list {
  display: grid;
  gap: var(--space-xs);
  margin: var(--space-xs) 0 0;
  padding: 0;
  list-style: none;
}

.query-list li {
  font-size: 0.88rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.query-list .query-index {
  color: var(--accent-strong);
  font-weight: 620;
}

.gallery-groups {
  padding: 0;
}

.gallery-group + .gallery-group {
  margin-top: var(--space-lg);
}

.gallery-group-header {
  display: grid;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.gallery-group-header h3 {
  margin: 0;
  font-size: 1.13rem;
}

.gallery-group-header p {
  max-width: 780px;
  margin: 0;
  color: #2f3740;
  font-size: 0.92rem;
  line-height: 1.5;
}

.gallery-group .gallery-grid {
  gap: var(--space-md) 18px;
}

.gallery-group .query-list li {
  font-size: 0.82rem;
}

.gallery-dialog {
  width: min(94vw, 1380px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--background);
  border: 0;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.gallery-dialog::backdrop {
  background: rgba(4, 8, 12, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.gallery-dialog-shell {
  position: relative;
}

.gallery-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(290px, 0.75fr);
  height: min(86dvh, 860px);
  max-height: calc(100dvh - 32px);
}

.gallery-dialog-media {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: var(--media-surface);
  overflow: hidden;
}

.gallery-dialog-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.gallery-dialog-copy {
  min-width: 0;
  max-height: 100%;
  padding: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px);
  overflow-y: auto;
}

.gallery-dialog-copy h2 {
  margin: 0;
  padding-right: 42px;
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gallery-dialog-meta {
  margin: 5px 0 var(--space-lg);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 560;
}

.gallery-dialog-queries h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 620;
}

.gallery-dialog-query-list {
  gap: 14px;
  margin: 0;
}

.gallery-dialog-query-list li {
  color: #2f3740;
  font-size: 0.94rem;
  line-height: 1.55;
}

.gallery-dialog-query-list .query-index {
  margin-right: 4px;
}

.gallery-dialog-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #20262d;
  background: rgba(252, 252, 252, 0.92);
  border: 1px solid rgba(32, 38, 45, 0.2);
  border-radius: 999px;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.gallery-dialog-close:hover {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent-strong) 55%, transparent);
}

.gallery-dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
}

.noscript-note {
  padding: 20px;
  color: var(--muted);
  background: var(--media-surface);
  border: 1px solid var(--media-border);
}

footer {
  margin-top: var(--section-space);
  padding: var(--space-md) var(--gutter);
  color: #58626d;
  background: #f0f2f4;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .project-header {
    padding-inline: 34px;
  }

}

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

  .gallery-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .gallery-dialog-shell {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }

  .gallery-dialog-layout {
    display: block;
    height: auto;
    max-height: none;
  }

  .gallery-dialog-media {
    height: min(54dvh, 480px);
    padding: var(--space-sm);
  }

  .gallery-dialog-copy {
    max-height: none;
    padding: var(--space-md) 20px var(--space-lg);
    overflow: visible;
  }
}

@media (min-width: 1200px) {
  .authors {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .project-header {
    padding: 72px 0 0;
  }

  .project-header h1 {
    font-size: clamp(1.86rem, 8vw, 2.45rem);
  }

  .authors {
    font-size: 0.98rem;
  }

  .affiliations {
    display: grid;
    gap: 4px;
  }

  .resource-block {
    margin-top: var(--space-md);
  }

  .resource-nav {
    padding-inline: 9%;
  }

  .resource-nav a {
    gap: 6px;
    font-size: 0.95rem;
  }

  .content-section {
    margin-top: var(--space-xl);
  }

  .evaluation-pattern-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .figure-media--usage-patterns {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .gallery-grid {
    gap: 20px 14px;
  }

}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-nav a {
    gap: 4px;
    min-height: 34px;
    padding-block: 2px;
    font-size: 0.88rem;
  }

  .title-wordmark {
    width: 170px;
  }

  .pattern-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .intro-copy > p:first-child,
  .section-description {
    font-size: 1rem;
  }

  .gallery-media {
    aspect-ratio: 4 / 3;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .gallery-filter {
    gap: 4px;
    margin-left: auto;
  }

  .gallery-filter-button {
    min-height: 28px;
    padding: 0.14rem 0.44rem;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
