/*
 * Krove mobile responsiveness layer.
 * Desktop (>= 992px): untouched — original design + pinned GSAP animation.
 * Mobile (< 992px): static stacked hero, readable type, no pin.
 */

@media (max-width: 991.98px) {

  /* ---- Hero: unpin, un-fix, restack ---- */
  /* kill Canvas sticky-header shift hack (top:100/mb:-100) — dead space under header */
  #header.transparent-header.responsive-sticky-header + #slider {
    top: 0;
    margin-bottom: 0;
  }

  #slider {
    height: auto;
    padding-top: 40px;
  }

  #slider .container {
    display: block;
    -webkit-perspective: none;
    perspective: none;
  }

  #slider .container .col_full {
    position: relative;
    width: 100%;
    height: auto;
    z-index: auto;
  }

  #slider .container .col_full video {
    position: relative;
    display: block;
    width: 100%;
    opacity: 0.3;
  }

  /* scroll-driven overlay images: hide on mobile */
  #slider .container .col_full img {
    display: none;
  }

  .fix-center.rail {
    position: static;
    display: block;
    -webkit-transform: none;
    transform: none;
    margin: 24px 0;
    text-align: center;
  }

  .content-build.fix-center {
    display: block;
  }

  .rail h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .rail h1 font {
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
  }

  .subtitle {
    position: static;
    -webkit-transform: none;
    transform: none;
    text-align: center;
    margin: 0 auto 16px;
  }

  /* fixed overlay blurbs -> normal flow, visible */
  .content-client,
  .content-build,
  .content-label {
    position: static;
    top: auto;
    left: auto;
    opacity: 1;
    max-width: 640px;
    margin: 0 auto 24px;
    text-align: center;
    -webkit-transform: none;
    transform: none;
  }

  /* ---- Services ---- */
  #section-services .emphasis-title h1 {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    line-height: 1.3;
  }

  #section-services .display-3 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  /* ---- Logo walls ---- */
  .schedule-wrap {
    padding: 40px 16px;
  }

  /* tighten Canvas section rhythm (pb 60 + mb 60 too heavy stacked) */
  #section-sponsors {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  #footer .footer-widgets-wrap {
    padding: 30px 0 20px;
  }

  #footer #copyrights {
    padding: 20px 0;
  }

  .schedule-wrap .d-flex {
    justify-content: center;
  }

  .schedule-wrap .flex-fill {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 33%;
    flex: 0 0 33%;
  }

  .schedule-wrap .flex-fill img {
    max-width: 90px;
    height: auto;
  }

  /* ---- Header ---- */
  #header.transparent-header.responsive-sticky-header #header-wrap {
    padding: 10px 0;
  }

  #primary-menu ul.header-button {
    margin: 0;
    padding: 0;
  }

  #primary-menu ul:not(.not-dark) li a.button {
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .schedule-wrap .flex-fill {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
  }
}
