.perspective-page { min-width: 0; }
.perspective-page [id] { scroll-margin-top: 90px; }
.perspective-page .page-hero .button-row { margin-top: 24px; }
.perspective-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 160px));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.perspective-video {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #1b1b1b;
  color: #fff;
}
.perspective-video:hover { border-color: #f4bd19; }
.perspective-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.perspective-reel-title {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 10px 10px;
  background: linear-gradient(transparent, #000 75%);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
body:has(.perspective-page) .modal-frame {
  width: min(400px, 100%, calc((100dvh - 105px) * 9 / 16));
}
body:has(.perspective-page) #frame-holder iframe { aspect-ratio: 9 / 16; }
.perspective-questions { background: #171717; border-top: 1px solid #333; }
.perspective-questions .shell > p { max-width: 62ch; color: #ccc; margin: 12px 0 22px; }
#perspective-question-form { display: grid; gap: 10px; max-width: 680px; }
#perspective-question-form label { display: block; color: #f5f5f5; font-weight: 700; }
#perspective-question-form input,
#perspective-question-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #757575;
  border-radius: 4px;
  background: #101010;
  color: #fff;
  font: inherit;
  font-size: 16px;
}
#perspective-question-form textarea { resize: vertical; }
.perspective-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 4px 0; }
.perspective-contact-fields label { margin-bottom: 6px; }
#perspective-question-form button { justify-self: start; }
#perspective-question-form button:disabled { opacity: .7; }
.perspective-question-status { color: #e0e0e0; min-height: 1.5em; margin: 0; }
.perspective-question-status[data-error] { color: #ffb1a0; }
.perspective-page :is(a, button, input, textarea):focus-visible { outline: 2px solid #f4bd19; outline-offset: 3px; }
@media (max-width: 480px) {
  .perspective-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 332px; }
  .perspective-contact-fields { grid-template-columns: 1fr; }
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  body:has(.perspective-page) #video-modal {
    padding: 0;
    background: #000;
  }
  body:has(.perspective-page) #video-modal .modal-frame {
    width: 100%;
    height: 100%;
    max-height: none;
  }
  body:has(.perspective-page) #video-modal #frame-holder {
    height: 100%;
  }
  body:has(.perspective-page) #video-modal #frame-holder iframe {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }
  body:has(.perspective-page) #close-modal {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    right: calc(env(safe-area-inset-right, 0px) + 8px);
    z-index: 1;
    min-height: 44px;
    border-radius: 5px;
    background: #111e;
  }
}
