.canvas-shots a[aria-current="true"] {
  box-shadow: 0 0 0 2px #a6c5ff, 0 0 0 4px #90b5ff18;
}

/* Place these layers over the timeline and output nodes of the project canvas. */
.canvas-timeline, .canvas-output {
  position: absolute;
  pointer-events: none;
}

.canvas-timeline {
  inset: 82.65% 39.85% auto 31.72%;
  height: 1.5%;
  display: flex;
  opacity: 0;
}
.canvas-timeline[data-active] { opacity: 1; }
.canvas-timeline i {
  position: relative;
  width: calc(100% / 6);
  height: 100%;
  margin-inline-start: calc(var(--shot-index, 0) * 100% / 6);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px #dcebff;
  background: #96baf1;
}
.canvas-timeline i::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -300%;
  height: 440%;
  border-left: 1px solid #dcebff;
}

.canvas-output {
  inset: 67.50% 7.68% auto 64.60%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  /* Keep the canvas controls overlapping the lower right corner visible. */
  clip-path: polygon(0 0, 100% 0, 100% 87.5%, 80% 87.5%, 80% 100%, 0 100%);
}
.canvas-output :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (prefers-reduced-motion: no-preference) {
  .canvas-shots a { transition: box-shadow 180ms ease-out; }
  .canvas-timeline { transition: opacity 180ms ease-out; }
  .canvas-output video:not([hidden]) { animation: reveal-shot 180ms ease-out; }
}
@keyframes reveal-shot {
  from { opacity: 0; }
  to { opacity: 1; }
}

.workflow.shell,
.install.shell {
  padding-block: clamp(64px, 9vw, 136px);
}

.workflow {
  scroll-margin-top: 52px;
}

.workflow h2,
.install h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.film-heading {
  max-width: 38rem;
  margin: 0 auto clamp(32px, 5vw, 64px);
  text-align: center;
}

.film-heading p,
.install-methods p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.film-heading p {
  margin: 16px auto 0;
}

.screening {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}

.film-player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: black;
  border-radius: 10px;
}

.film-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-block-start: 11px;
  color: var(--muted);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.shot-board h3,
.install-methods h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 500;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 10px;
  margin-block-start: 20px;
}

.film-shot {
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: start;
  color: var(--muted);
}

.film-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
  opacity: .72;
}

.film-shot[aria-pressed="true"],
.film-shot:hover,
.film-shot:focus-visible {
  color: white;
}

.film-shot[aria-pressed="true"] img,
.film-shot:hover img,
.film-shot:focus-visible img {
  opacity: 1;
}

.film-shot[aria-pressed="true"] img {
  outline: 1px solid #ebdfc7;
  outline-offset: 2px;
}

.shot-caption {
  display: block;
  margin-block-start: 6px;
  font-size: .82rem;
  line-height: 1.4;
}

.shot-caption time {
  display: block;
  font-size: .75rem;
  color: #a7a5a1;
  font-variant-numeric: tabular-nums;
}

.install-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-block-start: clamp(26px, 4vw, 48px);
}

.install-methods article {
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid #ffffff18;
  border-radius: 16px;
  background: #161617;
}

.install-methods p {
  margin: 10px 0 20px;
}

.install-snippet {
  display: flex;
  gap: .75rem;
  align-items: start;
  padding: 12px;
  border: 1px solid #ffffff12;
  background: #212122;
  border-radius: 8px;
}

.install-snippet code {
  flex: 1;
  min-width: 0;
  color: #dfdfe2;
  font: .82rem/1.6 ui-monospace, "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}

.install-snippet button {
  border: 0;
  border-radius: 4px;
  padding: 4px;
  background: transparent;
  color: #c4c3c2;
  font-size: .8rem;
}

.install-snippet button:hover {
  background: #ffffff12;
  color: white;
}

.install-methods a {
  display: inline-block;
  margin-block-start: 14px;
  color: var(--muted);
  font-size: .875rem;
  text-underline-offset: .23em;
}

@media (max-width: 900px) {
  .screening { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .install-methods { grid-template-columns: 1fr; }
  .film-heading { text-align: start; }
}
