/* Scoped to the four BASIS landing pages. No shared navigation or chat changes. */
[data-basis-video] { object-fit: cover; }
[data-basis-motion] h2 { overflow-wrap: anywhere; }
[data-basis-motion] .gl-line { white-space: normal !important; }
[data-basis-motion][data-media-state="error"] [data-basis-video] { opacity: 0; }
.basis-motion-toggle {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-end: clamp(20px, 6vw, 96px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #777b85;
  border-radius: 999px;
  background: #15171c;
  color: #f2f2ee;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: start;
  cursor: pointer;
}
.basis-motion-toggle[hidden] { display: none; }
.basis-motion-toggle svg { width: 16px; height: 16px; flex: 0 0 16px; }
.basis-motion-toggle .basis-motion-pause { display: none; }
.basis-motion-toggle[data-action="pause"] .basis-motion-play { display: none; }
.basis-motion-toggle[data-action="pause"] .basis-motion-pause { display: block; }
.basis-motion-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.gl-cp:focus-visible { outline: 3px solid #0b0c0d; outline-offset: 4px; }
.gl-front:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 480px) {
  [data-basis-motion] h2 { font-size: clamp(32px, 10vw, 44px) !important; line-height: 1.08 !important; }
  .gl-front { padding: 16px !important; }
  .gl-front > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .gl-front > span:last-child > span:first-child {
    font-size: clamp(18px, 5vw, 24px) !important;
    line-height: 1.25 !important;
  }
}
/* Arabic letterforms need more vertical space than the compact Latin headings. */
html[lang="ar"] [data-basis-motion] h2 {
  line-height: 1.25 !important;
  letter-spacing: normal !important;
}
@media (hover: hover) and (pointer: fine) {
  .basis-motion-toggle:hover { background: #262a34; border-color: #b8bdc7; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-cp-img, .gl-cp-dot, .gl-front, .gl-front-arrow { transition: none; }
  .gl-cp:hover .gl-cp-img, .gl-cp:hover .gl-cp-dot,
  .gl-front:hover .gl-front-arrow { transform: none; }
}
