.visitor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.opening-copy .visitor-start {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-wrap: balance;
}

.visitor-example {
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 5vw, 4.5rem);
  background: #f5f5f7;
  color: #1d1d1f;
  border-block: 1px solid #e2e2e5;
  scroll-margin-top: 4rem;
}

.visitor-example .wrap {
  max-width: 56rem;
}

.visitor-example .eyebrow,
.visitor-example dt {
  color: #714778;
}

.visitor-example h2 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-block: 0.75rem clamp(1.5rem, 3vw, 2.5rem);
}

.visitor-example dl {
  padding: clamp(1rem, 2vw, 1.75rem);
  margin: 0 0 1.5rem;
  background: transparent;
  padding-inline: 0;
  border-top: 1px solid #d6d5da;
  border-bottom: 1px solid #d6d5da;
}

.visitor-example dt {
  font-size: 0.9rem;
  font-weight: 650;
}

.visitor-example dt:not(:first-child) {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d6d5da;
}

.visitor-example dd {
  color: inherit;
  max-width: 36ch;
  margin: 0.4rem 0 0;
  font-size: clamp(1.25rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.visitor-example dd:last-child {
  font-weight: 650;
}

.visitor-example .wrap > p:not(.eyebrow) {
  color: #56545e;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.visitor-example a {
  color: #1d1d1f;
}

.visitor-example a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.visitor-example-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.visitor-example-identity img {
  display: block;
  border-radius: 50%;
}

.visitor-example-identity .eyebrow {
  margin: 0;
}

.film-dismiss {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  /* White disc with a dark outer ring. Against any film frame one of the two is at least 3:1: the ring when the frame
     is lighter than about 12% luminance, the white when it is darker than about 30%, and those ranges overlap. */
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #171317;
  border-radius: 50%;
  background: #fff;
  color: #171317;
  font: 26px/1 system-ui, sans-serif;
  cursor: pointer;
}

.film-dismiss:focus-visible {
  outline: 3px solid #8a2a88;
  outline-offset: 3px;
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .film-page .opening-v31 {
    min-height: 36rem;
  }
}

.film-page:not(.film-finished) .film-controls {
  display: none;
}

/* Film captions: one anchor, ivory ink, a scrim instead of a shadow, lines rise on the brand ease.
   Matches the Resolve caption system (superq-captions/build.py). */
.film-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  z-index: 1;
  background: linear-gradient(to top, rgba(7, 7, 9, 0.58), rgba(7, 7, 9, 0.22) 55%, rgba(7, 7, 9, 0));
  opacity: 0;
  transition: opacity 0.24s cubic-bezier(0.2, 0.6, 0.2, 1);
  pointer-events: none;
}

.film-scrim.is-on {
  opacity: 1;
}

.film-caption {
  position: absolute;
  z-index: 2;
  left: 7.5%;
  bottom: 13.5%;
  width: min(46%, 34rem);
  margin: 0;
  color: #f2ede6;
  font-size: clamp(1.25rem, 2.5vw, 2.5rem);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.015em;
  pointer-events: none;
}

.film-caption .line {
  display: block;
  animation: caption-rise 0.24s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.film-caption.is-turn {
  font-size: clamp(1.7rem, 3.6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.film-caption.is-turn .line {
  animation-duration: 0.5s;
  animation-delay: calc(var(--i, 0) * 120ms);
}

@keyframes caption-rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
}

@media (max-width: 767px) {
  .film-caption {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 2.25rem;
    width: auto;
    text-shadow: 0 1px 2px rgba(7, 7, 9, 0.6);
  }

  /* Lighter frames (the chef's plate, the boardroom table) sit behind the caption on a phone crop.
     A deeper scrim keeps the ivory ink at 4.5:1 or better against the brightest frame. */
  .film-scrim {
    height: 52%;
    background: linear-gradient(to top, rgba(7, 7, 9, 0.68), rgba(7, 7, 9, 0.62) 38%, rgba(7, 7, 9, 0.3) 72%, rgba(7, 7, 9, 0));
  }
}

@media (prefers-reduced-motion: reduce) {
  .film-caption .line {
    animation: none;
  }
}

.film-caption:empty,
.film-finished .film-caption,
.film-finished .film-scrim {
  display: none;
}

.visitor-example-identity img {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: cover;
  object-position: right center;
}

/* Blend to the page's own Q once the film mark reaches its destination. */
.film-landing-mark {
  position: absolute;
  z-index: 2;
  margin: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.film-finished .film-landing-mark {
  transition: visibility 0s 0.5s;
  visibility: hidden;
}

.film-finished .hero-film {
  opacity: 0 !important;
}

.film-page:not(.film-finished) .hero-film {
  transition: none;
}
