/* Keep the recorder legible behind the founder on compact screens. */
@media (max-width: 760px) {
  .hero-collage .tape-machine {
    left: -22% !important;
    bottom: 8% !important;
    width: 90% !important;
  }
}

/* Pull the statement toward the visible faders without clipping the scene. */
.scene-footer {
  position: relative;
  margin-top: calc(-1 * clamp(70px, 10vw, 150px));
}

/* Keep the recorder out of the adjacent quote on compact two-column layouts. */
@media (min-width: 500px) and (max-width: 760px) {
  .hero-collage .tape-machine {
    left: -8% !important;
    width: 85% !important;
  }
}

/* Keep Greg's credentials legible on compact and wide screens. */
.hero-collage .collage-caption {
  font-size: clamp(12px, 1.3vw, 19px) !important;
  line-height: 1.15;
}

/* Identify the email input while retaining the printed ticket design. */
.ticket-ink label.ticket-email-label {
  top: 37%;
  width: auto;
  display: block;
  padding: 0;
  font: 700 clamp(11px, 2.5cqw, 18px)/1.1 ArchivoNarrow, Arial, sans-serif;
  letter-spacing: 0;
  filter: none;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.ticket-ink label.ticket-email-label::after { content: none; }
.ticket-ink input { top: 57%; }
@media (max-width: 760px) { .ticket-ink input { top: 56%; } }

/* Listening-test details, accessible by touch and keyboard. */
.test-info-trigger {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -5px -8px -5px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #142a48;
  font: 700 14px/1 Arial, sans-serif;
  font-style: normal;
  cursor: pointer;
  vertical-align: middle;
}
.test-info-trigger::before {
  content: '?';
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.test-info-trigger { font-size: 0; }
.test-info-trigger::before { font-size: 13px; }
.test-info-trigger:focus-visible, .test-info-close:focus-visible { outline: 3px solid #ad372a; outline-offset: 2px; }
.test-info {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 22px 24px 24px;
  border: 2px solid #142a48;
  border-radius: 18px;
  background: #f5e9cf;
  color: #142a48;
  font: 400 16px/1.5 Arial, sans-serif;
  box-shadow: 0 14px 36px #17264240;
}
.test-info::backdrop { background: #11192399; }
.test-info-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.test-info h2 { margin: 0; font: 700 22px/1.2 Arial, sans-serif; }
.test-info p { margin: 16px 0 0; color: inherit; font: inherit; }
.test-info ul { margin: 16px 0 0; padding-left: 20px; }
.test-info li + li { margin-top: 6px; }
.test-info-close { flex: 0 0 36px; height: 36px; margin: -7px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 30px/1 Arial, sans-serif; cursor: pointer; }
@media (hover: hover) { .test-info-close:hover { background: #142a4814; } }

/* Improve small-screen readability and keep the founder caption in view. */
@media (max-width: 760px) {
  .hero-collage .collage-caption { font-size: 14px !important; }
  .ending .form-privacy { font-size: 14px !important; }
  .ticket-ink label.ticket-email-label { font-size: 13px; }
}
@media (min-width: 351px) and (max-width: 499px) {
  .hero-collage .collage-caption { left: -15% !important; }
}

/* Keep the drawn question mark small while making its touch target larger. */
.test-info-trigger {
  width: 44px;
  height: 44px;
  margin: -11px -14px -11px -6px;
}
@media (min-width: 351px) and (max-width: 375px) {
  .hero-collage .collage-caption { font-size: 13px !important; }
}

/* Only show review navigation when there is content to scroll. */
.voices-controls[hidden] { display: none; }
