/* Four camera-matched demonstrations share one decoded video timeline. */
#real-table { --corl-width: min(calc(2 * clamp(420px, 40vw, 1000px)), calc((100svh - 240px) * 16 / 9)); }
#real-table > .lab-shell { padding-top: clamp(38px, 4vw, 60px); }
#real-table .corl-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: var(--lab-heading-gap); }
#real-table .corl-tools .lab-hover-hint { font-size: 14px; }
#real-table .corl-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: var(--corl-width);
  max-width: calc(100% - 2 * var(--content-padding));
  margin: 0 auto;
  padding-bottom: var(--lab-section-space);
}
#real-table .corl-composite { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#real-table .has-compositor .corl-tile { z-index: 1; }
#real-table .has-compositor .corl-stage { background: transparent; }
#real-table .has-compositor .corl-lens { left: 0; top: 0; will-change: transform; }
#real-table .corl-tile { position: relative; min-width: 0; margin: 0; border: 1px solid var(--lab-line); }
#real-table .corl-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  touch-action: pan-y;
}
#real-table .corl-stage:focus-visible { outline: 1px solid var(--lab-accent); outline-offset: 5px; }
#real-table .corl-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
#real-table .has-frames .corl-poster { visibility: hidden; }
#real-table .corl-guide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
#real-table .corl-lens {
  position: absolute;
  left: 0;
  top: 0;
  width: 230px;
  height: 230px;
  border: 1px solid #eee9dc70;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms ease;
}
#real-table .has-frames.is-hovering .corl-lens { opacity: 1; }
#real-table .is-key-revealing .corl-lens { opacity: 0; }
#real-table .corl-source { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#real-table .corl-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* The opening demonstration shares the original hero's width and rhythm. */
.paper-hero #real-table { --corl-width: 100%; border: 0; }
.paper-hero #real-table > .lab-shell { width: 100%; max-width: none; padding: 0; }
.paper-hero #real-table .corl-heading, .paper-hero #real-table .corl-tools { width: 100%; max-width: none; }
.paper-hero #real-table .lab-hover-hint { padding: 0; }
.paper-hero #real-table .corl-grid { width: 100%; max-width: none; padding-bottom: 0; }
@media (max-width: 767px) {
  #real-table .corl-grid { gap: 12px; }
}
@media (max-width: 540px) {
  #real-table .corl-grid { grid-template-columns: 1fr; gap: 26px; }
  #real-table .corl-tools { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
  #real-table .lab-hover-hint { max-width: 170px; font-size: 14px; }
}
@media (hover: none) { .paper-hero #real-table .lab-hover-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #real-table .corl-lens { transition: none; }
}

/* Mobile browsers can require an explicit gesture after suspending playback. */
#real-table .corl-resume { position: absolute; z-index: 3; top: 12px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border: 1px solid #e8e2d3; border-radius: 6px; background: #242127; color: #fff; font: 14px/1.4 'Geist Wght', sans-serif; cursor: pointer; white-space: nowrap; }
#real-table .corl-resume[hidden] { display: none; }
#real-table .corl-resume:focus-visible { outline: 2px solid #e99a7c; outline-offset: 3px; }
