/* V113: a two-line opening and a portrait video sized to the first screen. */
#top .cm-hero-heading-v111 h1 {
  white-space: normal;
  text-wrap: wrap;
  letter-spacing: -0.015em;
}

#top .cm-hero-line-v113 {
  display: block;
  white-space: nowrap;
}

#top .cm-vertical-vsl-v111 {
  align-self: center;
  margin: 8px auto 0;
}

@media (max-width: 640px) {
  #top {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #top .cm-hero-heading-v111 {
    max-width: 100%;
  }

  #top .cm-hero-heading-v111 h1 {
    font-size: clamp(30px, 8.2vw, 32px);
    line-height: 1.05;
    white-space: normal;
    text-wrap: wrap;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  #top {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  /* 112px reserves both title lines, padding, the gap and a small buffer.
     VTurb keeps its natural 9:16 height; no second height or crop is imposed. */
  #top .cm-vertical-vsl-v111 {
    width: min(100%, 400px, calc((100vh - 112px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) * 0.5625));
    width: min(100%, 400px, calc((100svh - 112px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) * 0.5625));
  }
}
