/* ========================
   Stack Hub Section
   Desktop + Mobile kept as separate markup; shared visual tokens
   ======================== */

.stack-hub-section {
  background-color: var(--bs-body-bg);
}

.stack-hub-section.section-base,
.stack-hub-section.section-base-with-border {
  padding-top: 0;
  padding-bottom: 0;
}

.stack-hub-title {
  margin: 0;
  text-align: center;
  color: var(--bs-primary-50);
  /* teal-100 */
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-heading);
}

.stack-hub-title strong,
.stack-hub-title b {
  font-weight: var(--font-weight-bold);
}

.stack-hub-description {
  margin: 0;
  text-align: center;
  color: var(--bs-primary-25);
  /* cyan-100 */
  font-family: var(--font-family-base);
  font-size: var(--font-size-18);
  /* text-lg */
  font-weight: var(--font-weight-regular);
  line-height: 1.75rem;
}

.stack-hub-description p {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.stack-hub-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  /* background-color: #000; */
  /* match video letterbox — avoids “outline” on load */
}

.stack-hub-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-hub-video-container {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* background-color: #000; */
}

.stack-hub-video-container .video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0;
  background-color: #0A1F20;
}

.stack-hub-video-container .video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Blocked until our overlay fires — stops Vimeo's white play square stealing clicks */
  pointer-events: none;
  background-color: #0A1F20;
}

.stack-hub-media.is-playing .video-wrapper iframe {
  pointer-events: auto;
}

/* Emerald play affordance (decorative; Vimeo handles real play) */
.stack-hub-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  /* size-14 mobile */
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  color: var(--bs-primary-400);
  /* emerald-500 circle */
}

.stack-hub-play-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stack-hub-play-triangle {
  position: relative;
  z-index: 1;
  width: 0.875rem;
  height: 1.05rem;
  color: var(--bs-white);
  margin-left: 0.15rem;
}

/* Over a real player the icon is the play control, so it must accept clicks
   and clear itself while the video runs. */
.stack-hub-play-button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base);
}

.stack-hub-play-button:hover,
.stack-hub-play-button:focus,
.stack-hub-play-button:active,
.stack-hub-play-button:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none;
}

.stack-hub-play.is-playing,
.stack-hub-media.is-playing .stack-hub-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.stack-hub-button-section {
  display: flex;
  justify-content: center;
  width: auto;
}

.stack-hub-button-section .btn {
  width: auto;
  justify-content: center;
}

/* ========================
   Desktop markup
 py-10, gap-10, title text-4xl, media large
   ======================== */

.stack-hub-desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-17);
  /* gap-10 */
  padding-block: var(--space-17);
  /* py-10 */
}

.stack-hub-desktop-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-14);
  /* gap-8 */
  width: 100%;
  max-width: 68rem;
  /* room for the heading measure below */
}

.stack-hub-section-desktop .stack-hub-top-image {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.stack-hub-section-desktop .stack-hub-top-image img {
  display: block;
  width: auto;
  max-width: 14rem;
  height: auto;
  max-height: 3rem;
  object-fit: contain;
}

.stack-hub-section-desktop .stack-hub-tagline {
  margin: 0;
  text-align: center;
  max-width: 53.375rem;
}

.stack-hub-section-desktop .stack-hub-title {
  font-size: var(--font-size-36);
  /* text-4xl */
  line-height: 2.5rem;
  /* Measure in ch, not rem: the wrap point then tracks the glyph width, so a
     scaled 27" display breaks the line in the same place as a 1080p one.
     Wide enough that an authored <br> is the only break in this heading. */
  max-width: 48ch;
  text-wrap: balance;
}

/* An authored <br> still forces its break; balance only evens the rest. */
.stack-hub-section-desktop .stack-hub-title br {
  display: inline;
}

.stack-hub-section-desktop .stack-hub-description {
  max-width: 53.375rem;
  /* ~854px */
}

.stack-hub-section-desktop .stack-hub-button-section {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  align-self: center;
}

.stack-hub-section-desktop .stack-hub-button-section .btn,
.stack-hub-section-desktop .stack-hub-button-section .btn.stack-hub-cta,
.stack-hub-section-desktop a.btn.stack-hub-cta {
  display: inline-flex;
  width: fit-content !important;
  max-width: 100%;
  min-height: 2.5rem;
  height: 2.5rem;
  padding: var(--space-1) var(--space-7);
  background-color: var(--bs-secondary-400);
  border: 0;
  color: var(--bs-black);
  border-radius: var(--radius-2xl);
  justify-content: center;
  align-items: center;
}

.stack-hub-section-desktop .stack-hub-media {
  aspect-ratio: 16 / 9;
  /* max-height: 36rem; */
}

.stack-hub-section-desktop .stack-hub-play {
  width: 6rem;

  height: 6rem;
  background-color: transparent;
  border: 0;
  outline: none;
}

.stack-hub-section-desktop .stack-hub-play-triangle {
  width: 1.25rem;
  height: 1.5rem;
}

/* ========================
   Mobile markup
 logo → title → media → desc → CTA
   left-aligned, py-5, gap-5
   ======================== */

.stack-hub-section-mobile {
  background-color: var(--bs-primary-900);
  /* brand dark background */
}

.stack-hub-section-mobile.section-base,
.stack-hub-section-mobile.section-base-with-border {
  background-color: var(--bs-primary-900);
  padding-top: 0;
  padding-bottom: 0;
}

.stack-hub-section-mobile .stack-hub-mobile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-9);
  /* gap-5 = 20px */
  width: 100%;
  margin-inline: 0;
  padding-block: var(--space-9);
  /* py-5 */
  padding-inline: 0;
  text-align: left;
}

.stack-hub-section-mobile .stack-hub-top-image {
  display: block;
  align-self: flex-start;
  width: auto;
  max-width: 11.5rem;
  line-height: 0;
}

.stack-hub-section-mobile .stack-hub-top-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 2.5rem;
  object-fit: contain;
  object-position: left center;
}

.stack-hub-section-mobile .stack-hub-title,
.stack-hub-section-mobile .stack-hub-title.text-start,
.stack-hub-section-mobile h2.stack-hub-title {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left !important;
  font-size: var(--font-size-30);
  /* text-3xl */
  font-weight: var(--font-weight-semibold);
  line-height: 2.5rem;
  /* leading-10 */
  letter-spacing: -0.01em;
  color: var(--bs-primary-50);
}

.stack-hub-section-mobile .stack-hub-title *,
.stack-hub-section-mobile .stack-hub-title p {
  text-align: left !important;
  margin: 0;
}

.stack-hub-section-mobile .stack-hub-tagline {
  width: 100%;
  margin: 0;
  text-align: left !important;
}

.stack-hub-section-mobile .stack-hub-tagline *,
.stack-hub-section-mobile .stack-hub-tagline p {
  margin: 0;
  text-align: left !important;
}

.stack-hub-section-mobile .stack-hub-media {
  position: relative;
  align-self: stretch;
  width: 100%;
  aspect-ratio: 16/9;
  /* h-48 */
  height: 100%;
  flex-shrink: 0;
  border-radius: 0.625rem;
  /* rounded-[10px] */
  overflow: hidden;
  outline: none;
  background-color: #0A1F20;
  /* match video letterbox — avoids “outline” on load */
}

.stack-hub-section-mobile .stack-hub-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-hub-section-mobile .stack-hub-media .stack-hub-video-container,
.stack-hub-section-mobile .stack-hub-media .video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
}

.stack-hub-section-mobile .stack-hub-media .video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Blocked until our play button fires — then JS sets pointer-events: auto */
  pointer-events: none;
}

.stack-hub-section-mobile .stack-hub-media.is-playing .video-wrapper iframe {
  pointer-events: auto;
}

.stack-hub-section-mobile .stack-hub-play-button {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}

.stack-hub-section-mobile .stack-hub-mobile-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-9);
  /* gap-5 */
  width: 100%;
  text-align: left;
}

.stack-hub-section-mobile .stack-hub-description,
.stack-hub-section-mobile .stack-hub-description.text-start {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left !important;
  color: var(--bs-primary-25);
  font-size: var(--font-size-14);
  /* text-sm */
  font-weight: var(--font-weight-regular);
  line-height: 1.25rem;
  /* leading-5 */
}

.stack-hub-section-mobile .stack-hub-description *,
.stack-hub-section-mobile .stack-hub-description p {
  text-align: left !important;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.stack-hub-section-mobile .stack-hub-button-section {
  display: flex;
  justify-content: flex-start;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
}

.stack-hub-section-mobile .stack-hub-button-section .btn,
.stack-hub-section-mobile .stack-hub-button-section .btn.stack-hub-cta,
.stack-hub-section-mobile a.btn.stack-hub-cta {
  display: inline-flex;
  width: fit-content !important;
  max-width: 100%;
  min-height: 2.5rem;
  /* h-10 */
  height: 2.5rem;
  padding: var(--space-1) var(--space-7);
  /* py-1 px-4 */
  background-color: var(--bs-secondary-400);
  /* coral */
  border: 0;
  color: var(--bs-black);
  border-radius: var(--radius-2xl);
  justify-content: center;
  align-items: center;
}

.stack-hub-section-mobile .stack-hub-cta.btn .btn-icon,
.stack-hub-section-mobile .stack-hub-button-section .btn .btn-icon,
.stack-hub-section-mobile .stack-hub-cta.btn .chev,
.stack-hub-section-mobile .stack-hub-button-section .btn .chev {
  display: none;
}

.stack-hub-section-mobile .stack-hub-play {
  width: 5rem;
  /* size-20 */
  height: 5rem;
}

.stack-hub-section-mobile .stack-hub-play-triangle {
  width: 1rem;
  height: 1.2rem;
}

/* Center-aligned variant (ACF: center_align_content) */
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned {
  align-items: center;
  text-align: center;
}

.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-top-image {
  align-self: center;
}

.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-top-image img {
  object-position: center center;
  margin-inline: auto;
}

.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-title,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-title.text-center,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned h2.stack-hub-title,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-title *,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-title p,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-tagline,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-tagline *,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-tagline p,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-description,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-description.text-center,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-description *,
.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-description p {
  text-align: center !important;
}

.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-mobile-footer {
  align-items: center;
  text-align: center;
}

.stack-hub-section-mobile .stack-hub-mobile.is-center-aligned .stack-hub-button-section {
  justify-content: center;
  align-self: center;
}

.stack-hub-section-mobile-product.stack-hub-section-mobile {
  padding: var(--space-20) 10px;
}