.module-hero-secondary {
  position: relative;
  background: var(--color-white);
  color: var(--color-hero-text);
}

.module-hero-secondary__media {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.module-hero-secondary__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgb(0 0 0 / 20%) 11%,
      rgb(102 102 102 / 20%) 61%);
  pointer-events: none;
}

.module-hero-secondary__media-element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* With video: image is poster/thumbnail only; shown in reduced-motion instead of a paused video. */
.module-hero-secondary__media--has-video .module-hero-secondary__media-element {
  position: absolute;
  inset: 0;
}

.module-hero-secondary__media--has-video .module-hero-secondary__media-element--image {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.reduced-motion .module-hero-secondary__media--has-video .module-hero-secondary__media-element--video {
  display: none;
}

html.reduced-motion .module-hero-secondary__media--has-video .module-hero-secondary__media-element--image {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.module-hero-secondary__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: 0;
  z-index: 2;
}

.module-hero-secondary__content-grid {
  position: relative;
}

.module-hero-secondary__panel {
  grid-column: 1 / span 11;
  background: var(--color-brand-blue);
  border-top-right-radius: 150px;
  margin-left: calc(-1 * var(--layout-inline-offset));
  padding-left: var(--layout-inline-offset);
}

.module-hero-secondary__content-inner {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  align-items: start;
  padding: 100px 0;
}

.module-hero-secondary__title {
  grid-column: 1 / 10;
  margin: 0;
  color: var(--color-hero-text);
  max-width: none;
  width: 100%;
}

.module-hero-secondary__wave {
  --wave-width: calc(150% + (var(--grid-gutter) / 2));
  grid-column: 11 / 12;
  margin-top: 25px;
  align-self: start;
  justify-self: start;
  width: var(--wave-width);
  max-width: none;
}

/* Keep one complete wave always in view: each tile equals the visible container. */
.module-hero-secondary__wave .vb-wave-loop__track {
  width: 200%;
}

.module-hero-secondary__wave .vb-wave-loop__track svg {
  width: 50%;
  flex: 0 0 50%;
}

@media (max-width: 1000px) and (min-width: 768px) {
  .module-hero-secondary {
    min-height: 100svh;
    height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .module-hero-secondary__media {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
  }

  .module-hero-secondary__content {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: -150px;
    z-index: 2;
  }

  .module-hero-secondary__panel {
    grid-column: 1 / -1;
    border-top-right-radius: 150px;
    margin-left: calc(-1 * var(--grid-margin));
    margin-right: calc(-1 * var(--grid-margin));
    padding-left: var(--grid-margin);
    padding-right: var(--grid-margin);
  }

  .module-hero-secondary__content-inner {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    column-gap: var(--grid-gutter);
    align-items: start;
    padding: 50px 0 30px;
    max-width: 100%;
  }

  .module-hero-secondary__title {
    grid-column: 1 / span 10;
    max-width: 100%;
    margin-bottom: 25px;
  }

  .module-hero-secondary__wave {
    --wave-width: var(--tablet-portrait-wave-width);
    grid-column: 1 / span 2;
    grid-row: 2;
    width: var(--wave-width);
    max-width: none;
    margin-top: 0;
  }

  .module-hero-secondary__wave .vb-wave-loop__track {
    width: 200%;
  }

  .module-hero-secondary__wave .vb-wave-loop__track svg {
    width: 50%;
    flex: 0 0 50%;
  }
}

@media (max-width: 767px) {
  .module-hero-secondary {
    min-height: 100svh;
    height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .module-hero-secondary__media {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
  }

  .module-hero-secondary__content {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: -100px;
    z-index: 2;
  }

  .module-hero-secondary__panel {
    grid-column: 1 / -1;
    border-top-right-radius: 100px;
    margin-left: calc(-1 * var(--grid-margin));
    margin-right: calc(-1 * var(--grid-margin));
    padding-left: var(--grid-margin);
    padding-right: var(--grid-margin);
  }

  .module-hero-secondary__content-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--grid-gutter);
    align-items: start;
    padding: 50px 0 25px;
    max-width: 100%;
  }

  .module-hero-secondary__title {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-bottom: 25px;
  }

  .module-hero-secondary__wave {
    --wave-width: calc((100vw - (2 * var(--grid-margin)) - (3 * var(--grid-gutter))) / 4);
    grid-column: 1 / span 1;
    grid-row: 2;
    width: var(--wave-width);
    max-width: none;
    margin-top: 0;
  }

  .module-hero-secondary__wave .vb-wave-loop__track {
    width: 200%;
  }

  .module-hero-secondary__wave .vb-wave-loop__track svg {
    width: 50%;
    flex: 0 0 50%;
  }
}