/* Virtual Lab only. Desktop styles and shared components are not modified. */
@media (max-width: 1279px) {
  .vlab-page .vlab-content {
    margin-inline: 5%;
  }
  .vlab-page .hero__content {
    margin-right: 5%;
  }
  .vlab-page .vlab-intro__grid {
    gap: 55px;
  }
  .vlab-page .vlab-card {
    padding-inline: 24px;
  }
}
@media (max-width: 991px) {
  .vlab-page .vlab-content {
    margin-inline: 0;
  }
  .vlab-page .vlab-heading {
    font-size: 38px;
  }
  .vlab-page .hero {
    height: 620px;
  }
  .vlab-page .hero__media, .vlab-page .hero__background, .vlab-page .hero__video {
    height: 100%;
  }
  .vlab-page .hero__content {
    width: 490px;
    max-width: 70%;
    margin-right: 0;
    padding: 32px;
  }
  .vlab-page .hero__title {
    font-size: 40px;
  }
  .vlab-page .hero__text {
    font-size: 18px;
  }
  .vlab-page .hero__button {
    height: 50px;
    font-size: 16px;
  }
  .vlab-page .vlab-intro {
    padding-block: 85px 45px;
  }
  .vlab-page .vlab-intro__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
  }
  .vlab-page .vlab-intro__text {
    font-size: 17px;
  }
  .vlab-page .vlab-intro__play-icon {
    width: 90px;
  }
  .vlab-page .vlab-stats {
    margin-top: 90px;
  }
  .vlab-page .vlab-stat {
    padding-inline: 12px;
  }
  .vlab-page .vlab-stat__value {
    margin-bottom: 18px;
    font-size: 48px;
  }
  .vlab-page .vlab-stat__label {
    font-size: 15px;
  }
  .vlab-page .vlab-discovery {
    padding-block: 65px 45px;
  }
  .vlab-page .vlab-discovery__intro {
    max-width: 660px;
    margin: 22px auto 55px;
    font-size: 17px;
  }
  .vlab-page .vlab-discovery__cards {
    gap: 30px;
  }
  .vlab-page .vlab-discovery__group {
    padding-block: 35px 40px;
  }
  .vlab-page .vlab-card {
    min-height: 0;
    padding-inline: 15px;
  }
  .vlab-page .vlab-card__title {
    font-size: 24px;
  }
  .vlab-page .vlab-discovery__actions {
    margin-top: 35px;
  }
  .vlab-page .vlab-discovery__pdf-button, .vlab-page .vlab-discovery__contact-button {
    min-height: 60px;
    height: auto;
    padding: 12px 18px;
  }
  .vlab-page .vlab-how {
    padding-block: 60px 80px;
  }
}
@media (max-width: 767px) {
  /* Hero: artwork above the title/description and action. */
  .vlab-page .hero {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }
  .vlab-page .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 420px;
    overflow: hidden;
  }
  .vlab-page .hero__background, .vlab-page .hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .vlab-page .hero__interactive {
    top: 70px;
    right: auto;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
  }
  .vlab-page .hero > .container {
    height: auto;
    padding-inline: 15px;
  }
  .vlab-page .hero__content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 45px 0 20px;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    text-align: center;
  }
  .vlab-page .hero__title {
    margin-bottom: 13px;
    font-size: 30px;
    line-height: 1.15;
  }
  .vlab-page .hero__text {
    max-width: 500px;
    margin-inline: auto;
    font-size: 16px;
  }
  .vlab-page .hero__button {
    min-width: 0;
    height: 46px;
    margin-top: 26px;
    padding-inline: 30px;
    font-size: 14px;
  }
  /* Intro: text first, then tall video and vertically stacked numbers. */
  .vlab-page .vlab-heading {
    font-size: 30px;
    line-height: 1.15;
  }
  .vlab-page .vlab-intro {
    padding-block: 40px 35px;
  }
  .vlab-page .vlab-intro__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .vlab-page .vlab-intro__copy {
    order: -1;
    text-align: center;
  }
  .vlab-page .vlab-intro__title {
    margin-bottom: 15px;
    text-align: center;
  }
  .vlab-page .vlab-intro__text {
    max-width: 470px;
    margin-inline: auto;
    font-size: 16px;
    line-height: 1.6;
  }
  .vlab-page .vlab-intro__media {
    width: 100%;
    aspect-ratio: 4 / 4;
    overflow: hidden;
  }
  .vlab-page .vlab-intro__poster, .vlab-page .vlab-intro__video, .vlab-page .vlab-intro__media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .vlab-page .vlab-intro__play-icon {
    width: 76px;
  }
  .vlab-page .vlab-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
    margin-top: 60px;
  }
  .vlab-page .vlab-stat {
    padding-inline: 0;
  }
  .vlab-page .vlab-stat + .vlab-stat {
    border-left: 0;
  }
  .vlab-page .vlab-stat__value {
    margin-bottom: 20px;
    font-size: 50px;
  }
  .vlab-page .vlab-stat__label {
    max-width: 300px;
    margin-inline: auto;
    font-size: 20px;
    font-weight: 700
  }
  /* Discovery: both groups become three vertically stacked cards. */
  .vlab-page .vlab-discovery {
    padding-block: 50px 45px;
  }
  .vlab-page .vlab-discovery__intro {
    max-width: 470px;
    margin: 20px auto 55px;
    font-size: 16px;
  }
  .vlab-page .vlab-discovery__cards {
    gap: 20px;
  }
  .vlab-page .vlab-discovery__cards::before {
    top: -170px;
    width: 100%;
    height: calc(100% + 440px);
    background-image: url('../images/discovery_hatter_mobil.svg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
    pointer-events: none;
  }
  .vlab-page .vlab-discovery__cards::after {
    content: none;
  }
  .vlab-page .vlab-discovery__group {
    padding: 0 0 26px;
    border-radius: 10px;
    background: rgba(26, 20, 43, .86);
  }
  .vlab-page .vlab-discovery__group-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .vlab-page .vlab-card {
    min-height: 0;
    padding: 38px 22px 34px;
  }
  .vlab-page .vlab-card + .vlab-card {
    border-left: 0;
    position: relative
  }
  .vlab-page .vlab-card + .vlab-card::before {
    content: "";
    height: 1px;
    width: 85px;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    background-color: rgba(79, 48, 83, 1);
    position: absolute
  }
  .vlab-page .vlab-card__title {
    margin-bottom: 19px;
    font-size: 30px;
    line-height: 1.12;
  }
  .vlab-page .vlab-card__question {
    max-width: 320px;
    margin-inline: auto;
  }
  .vlab-page .vlab-card__question p {
    margin-bottom: 15px;
  }
  .vlab-page .vlab-discovery__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin: 12px 0 0;
    padding-inline: 20px;
  }
  .vlab-page .vlab-discovery__pdf-button, .vlab-page .vlab-discovery__contact-button {
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 80px;
    height: auto;
    padding: 8px 15px;
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
    white-space: normal;
  }
  .vlab-page .vlab-discovery__pdf-button {
    gap: 14px;
  }
  .vlab-page .vlab-discovery__pdf-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .vlab-page .vlab-discovery__contact-panel.is-open {
    margin-top: 18px;
  }
  .vlab-page .vlab-discovery__contact-inner {
    max-width: 100%;
    padding: 40px 15px;
  }
  /* How it works: keep the existing interactive illustration and hotspots.
     Its four separate mobile-stage images are not present in this theme. */
  .vlab-page .vlab-how {
    padding-block: 55px 75px;
    overflow: visible;
  }
  .vlab-page .vlab-how__figure {
    width: 100%;
    margin-top: 34px;
    padding: 12px;
    border-radius: 10px;
    background: #1b1933;
  }
  .vlab-page .vlab-how__illustration {
    width: 100%;
    height: auto;
  }
  .vlab-page .vlab-how__hotspot {
    width: 44px;
    height: 44px;
  }
  .vlab-page .vlab-how__tooltip-item .vlab-how__tooltip, .vlab-page .vlab-how__tooltip-item.opens-left .vlab-how__tooltip {
    position: fixed;
    z-index: 1001;
    top: 50%;
    right: auto;
    left: 50%;
    width: 300px;
    max-width: calc(100vw - 30px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 20px;
    transform: translate(-50%, -50%);
  }
  .vlab-page .vlab-how__tooltip p {
    font-size: 15px;
  }
  /* The shared testimonial and footer-CTA keep their existing mobile styles. */
  .vlab-page .testimonial-carousel {
    padding-block: 35px 80px;
  }
    
    .vlab-page .vlab-how__figure {
  display: none
}
     .vlab-page .vlab-how {
    padding-block: 55px 70px;
    overflow: visible;
  }

  .vlab-page .vlab-how__figure {
    display: none;
  }

  .vlab-page .vlab-how-mobile {
    display: block;
    margin-top: 40px;
    position: relative;
      z-index: 2
  }

  .vlab-page .vlab-how-mobile__items {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .vlab-page .vlab-how-mobile__card {
    overflow: hidden;
    padding: 20px 20px 40px;
    border-radius: 10px;
    background: #191833;
  }

  .vlab-page .vlab-how-mobile__image {
    width: 100%;
  }

  .vlab-page .vlab-how-mobile__image img {
    display: block;
    width: auto;
    height: auto;
      margin: 0 auto
  }

  .vlab-page .vlab-how-mobile__content {
    padding: 30px 0 0 0;
    text-align: center;
  }

  .vlab-page .vlab-how-mobile__heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .vlab-page .vlab-how-mobile__title {
    margin: 0;
    color: #f7f5ff;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
  }

  .vlab-page .vlab-how-mobile__toggle {
    display: inline-flex;
    flex: 0 0 30px;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #596579;
    cursor: pointer;
  }

  .vlab-page .vlab-how-mobile__chevron {
    width: 9px;
    height: 9px;
    border-right: 1.5px solid #f7f5ff;
    border-bottom: 1.5px solid #f7f5ff;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s ease;
  }

  .vlab-page
  .vlab-how-mobile__toggle[aria-expanded="true"]
  .vlab-how-mobile__chevron {
    transform: translateY(2px) rotate(225deg);
  }

  .vlab-page .vlab-how-mobile__intro {
    margin-top: 15px;
      text-align: left;
      line-height: 1.5
  }

  .vlab-page .vlab-how-mobile__intro p,
  .vlab-page .vlab-how-mobile__extended p {
    margin: 0 0 12px;
  }

  .vlab-page .vlab-how-mobile__intro p:last-child,
  .vlab-page .vlab-how-mobile__extended p:last-child {
    margin-bottom: 0;
  }

  .vlab-page .vlab-how-mobile__extended {
    margin-top: 18px;
      text-align: left;
      line-height: 1.5
  }
    .vlab-page .vlab-how-mobile__extended ul {
        padding: 0  0 0 15px
    }

  .vlab-page .vlab-how-mobile__extended[hidden] {
    display: none;
  }

  .vlab-page .vlab-how-mobile__footer {
    display: flex;
    justify-content: center;
    margin-top: 38px;
  }

  .vlab-page .vlab-how-mobile__full-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    padding-inline: 32px;
    border-radius: 10px;
    background: #33c7cc;
    color: #0f0a26;
    font-weight: 500;
    text-decoration: none;
  }

  .vlab-page .vlab-how-mobile__toggle:focus-visible,
  .vlab-page .vlab-how-mobile__full-link:focus-visible {
    outline: 2px solid #f7f5ff;
    outline-offset: 3px;
  }
}