/* Mobile-only correction: preserve all original assets and desktop styling. */
@media (max-width: 767px) {
  html, body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .hero-image {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
  }

  .hero-image > .relative.z-10 {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 1.15rem .75rem .9rem !important;
  }

  .hero-content-shift,
  .hero-glass {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  .hero-glass {
    padding: .65rem !important;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7.8vw, 2.25rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: normal;
  }

  .hero-image .eyebrow {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    letter-spacing: .08em !important;
  }

  .hero-glass p {
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  .hero-glass .flex.flex-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-glass .flex.flex-wrap a {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
    white-space: normal;
  }

  /* The existing statistics strip becomes part of the hero's natural height. */
  .hero-image > div.absolute.bottom-0 {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  .hero-image > div.absolute.bottom-0 > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: .6rem !important;
    padding: .75rem !important;
  }

  .hero-image > div.absolute.bottom-0 > div > div {
    min-width: 0 !important;
    overflow-wrap: anywhere;
  }

  /* Following sections stay in document flow, after the complete hero panel. */
  main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  main > section:not(.hero-image) {
    position: relative !important;
    inset: auto !important;
    margin-top: 0 !important;
    transform: none !important;
    clear: both;
  }

  .hero-image img,
  main > section:not(.hero-image) img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-image > .relative.z-10 {
    padding: .9rem .6rem .75rem !important;
  }

  .hero-glass {
    padding: .45rem !important;
  }

  .hero-title {
    font-size: clamp(1.55rem, 7.6vw, 2rem) !important;
  }

  .hero-image > div.absolute.bottom-0 > div {
    gap: .5rem !important;
    padding: .6rem !important;
  }
}
