@media (max-width: 1023px) {
  html,
  body {
    overflow-x: clip;
  }

  main,
  section,
  .grid,
  .flex,
  .max-w-7xl,
  .max-w-6xl,
  .max-w-4xl,
  .max-w-xl,
  .scroll-reveal,
  .content-box-outer {
    min-width: 0;
  }

  section > div,
  .grid > *,
  .flex > *,
  .content-box-outer > * {
    min-width: 0;
    max-width: 100%;
  }

  img,
  svg,
  video,
  iframe,
  canvas {
    max-width: 100%;
  }

  .header-mobile-btn {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    color: white !important;
  }

  #header.header-scrolled .header-mobile-btn {
    color: rgb(28, 25, 23) !important;
  }

  #mobile-menu {
    max-height: calc(100dvh - 4rem - env(safe-area-inset-top, 0px));
    overflow-y: auto;
  }

  .streamlines-container,
  .streamline {
    display: none !important;
  }

  #hero h1,
  #services h2,
  #about h2,
  #management h2,
  #news h2,
  #contact h2,
  .modal-title {
    text-wrap: balance;
  }

  #hero > .absolute.inset-0.flex.flex-col {
    justify-content: flex-end !important;
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.25rem 1.5rem !important;
  }

  #hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.35rem) !important;
    line-height: 0.98 !important;
    margin-bottom: 1rem !important;
    max-width: min(100%, 12ch) !important;
    margin-inline: auto;
    overflow-wrap: anywhere;
  }

  #hero p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
  }

  #hero .flex.flex-wrap.justify-center.gap-4 {
    width: min(100%, 26rem);
    gap: 0.75rem !important;
  }

  #hero .flex.flex-wrap.justify-center.gap-4 > * {
    flex: 1 1 100%;
  }

  .content-box-outer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: clamp(1.25rem, 6vw, 2rem) !important;
    padding-right: clamp(1.25rem, 6vw, 2rem) !important;
  }

  body:has(.hero-proof-bar) #hero,
  body:has(.mobile-sticky-cta) #hero {
    height: min(78svh, 40rem) !important;
    min-height: 29rem !important;
    max-height: none !important;
  }

  .hero-proof-bar {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0 !important;
    overflow: hidden !important;
    margin-top: 0;
  }

  .hero-proof-bar .flex {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    width: 100%;
    padding-inline: 1rem;
    box-sizing: border-box;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hero-proof-bar .flex::-webkit-scrollbar {
    display: none;
  }

  .proof-badge {
    min-height: 0;
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0.85rem 1rem !important;
    gap: 0.5rem !important;
  }

  .proof-badge-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .proof-badge-text {
    white-space: nowrap !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    text-align: left;
  }

  body:has(.hero-proof-bar) #hero > .absolute.inset-0.flex.flex-col {
    padding-bottom: 5.25rem !important;
  }

  body:has(.hero-statement-section) #hero {
    height: min(62svh, 34rem) !important;
    min-height: 21rem !important;
    max-height: none !important;
  }

  body:has(.hero-statement-section) #hero + .hero-statement-section {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }

  body:has(.hero-statement-section) #hero + .hero-statement-section p {
    font-size: clamp(1.65rem, 7vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }

  .btn-primary,
  .btn-outline,
  .btn-filled,
  .btn-outline-white,
  .btn-filled-white,
  .btn-overlay-white,
  a.btn-primary,
  .header-link-button {
    width: auto;
    max-width: 100%;
    min-width: min(100%, 14rem) !important;
    min-height: 3.25rem;
    padding: 0.85rem 1rem !important;
    box-sizing: border-box;
    font-size: clamp(0.67rem, 2.4vw, 0.76rem) !important;
    line-height: 1.35 !important;
    letter-spacing: 0.06rem !important;
    text-align: center;
    white-space: normal !important;
    text-wrap: balance;
    overflow-wrap: anywhere;
    hyphens: auto;
    flex-shrink: 0;
  }

  .btn-primary svg,
  .btn-outline svg,
  .btn-filled svg,
  .btn-outline-white svg,
  .btn-filled-white svg,
  .btn-overlay-white svg,
  a.btn-primary svg,
  .header-link-button svg {
    flex-shrink: 0;
  }

  :is(.btn-primary, .btn-outline, .btn-filled, .btn-outline-white, .btn-filled-white, .btn-overlay-white, a.btn-primary).w-full,
  .mobile-sticky-cta :is(.btn-primary, .btn-outline, .btn-filled, .btn-outline-white, .btn-filled-white, .btn-overlay-white, a.btn-primary),
  #hero .flex.flex-wrap.justify-center.gap-4 > :is(.btn-primary, .btn-outline, .btn-filled, .btn-outline-white, .btn-filled-white, .btn-overlay-white, a.btn-primary),
  .flex.flex-wrap.gap-4 > :is(.btn-primary, .btn-outline, .btn-filled, .btn-outline-white, .btn-filled-white, .btn-overlay-white, a.btn-primary):only-child,
  .flex.flex-wrap.justify-center.gap-4 > :is(.btn-primary, .btn-outline, .btn-filled, .btn-outline-white, .btn-filled-white, .btn-overlay-white, a.btn-primary):only-child {
    width: 100% !important;
    min-width: 0 !important;
  }

  .homepage-cta-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem !important;
    width: 100%;
    max-width: min(100%, 32rem);
    margin-inline: auto;
    overflow: visible !important;
  }

  .homepage-cta-grid > :is(.btn-primary, .btn-outline, .btn-filled, .btn-outline-white, .btn-filled-white, .btn-overlay-white, a.btn-primary) {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 3.5rem;
  }

  .anchor-nav {
    top: calc(4rem + env(safe-area-inset-top, 0px)) !important;
  }

  .anchor-nav-inner {
    justify-content: flex-start !important;
    gap: 0.25rem !important;
    padding-inline: 0.5rem !important;
    scroll-snap-type: x proximity;
  }

  .anchor-pill {
    flex: 0 0 auto !important;
    min-width: max-content;
    padding: 0.8rem 0.95rem !important;
    font-size: 0.66rem !important;
    scroll-snap-align: start;
  }

  .command-card {
    min-width: 0;
  }

  .command-card .pr-8 {
    min-width: 0;
    padding-right: 1.5rem !important;
  }

  .command-card .font-serif {
    overflow-wrap: anywhere;
  }

  .dept-section {
    scroll-margin-top: 8.5rem !important;
  }

  .fleet-compare-tabs {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .fleet-compare-tabs::-webkit-scrollbar {
    display: none;
  }

  .fleet-compare-tab {
    flex: 0 0 auto !important;
    min-width: 9rem;
  }

  .absolute.inset-0.flex.flex-col.items-center.justify-center.gap-4.z-10 > h2 {
    width: min(100%, 18rem);
    max-width: calc(100vw - 2rem);
    margin-inline: auto;
    padding-inline: 0 !important;
    font-size: clamp(2rem, 8.8vw, 2.8rem) !important;
    line-height: 1.05 !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .text-center > h2.font-serif,
  .text-center > h3.font-serif,
  .scroll-reveal > h2.font-serif,
  .scroll-reveal > h3.font-serif,
  .content-box-outer h2.font-serif,
  .content-box-outer h3.font-serif,
  .command-card .font-serif,
  .heading-23rem,
  .cert-title {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .text-center > h2.font-serif.text-stone-900.font-light,
  .text-center > h2.font-serif.text-stone-800.font-light,
  .content-box-outer h2.font-serif.text-stone-900.font-light,
  .content-box-outer h2.font-serif.text-stone-800.font-light {
    font-size: clamp(1.95rem, 8.5vw, 2.75rem) !important;
    line-height: 1.08 !important;
  }

  .text-center > h3.font-serif.text-stone-900.font-light,
  .text-center > h3.font-serif.text-stone-800.font-light,
  .content-box-outer h3.font-serif.text-stone-900.font-light,
  .content-box-outer h3.font-serif.text-stone-800.font-light {
    font-size: clamp(1.5rem, 7vw, 1.95rem) !important;
    line-height: 1.12 !important;
  }

  .heading-23rem,
  .cert-title,
  .process-step h3.font-serif {
    font-size: clamp(1.45rem, 6.8vw, 1.9rem) !important;
    line-height: 1.16 !important;
  }

  p.leading-relaxed,
  .spec-label,
  .link-arrow {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .carousel-wrapper {
    padding: 1rem 0 0 !important;
    overflow: hidden !important;
  }

  .carousel-track {
    height: clamp(240px, 72vw, 320px) !important;
  }

  .carousel-slide,
  .carousel-slide.active,
  .carousel-slide.prev,
  .carousel-slide.next,
  .carousel-slide.hidden-left,
  .carousel-slide.hidden-right {
    top: 0 !important;
    height: 100% !important;
  }

  .carousel-slide.active {
    left: 0 !important;
    width: 100% !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .carousel-slide.prev,
  .carousel-slide.next,
  .carousel-slide.hidden-left,
  .carousel-slide.hidden-right {
    left: 0 !important;
    width: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
    filter: none !important;
  }

  .carousel-nav {
    gap: 0.75rem !important;
    margin-top: 1.25rem !important;
    padding-inline: 1rem !important;
  }

  .carousel-btn {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
  }

  .carousel-dots {
    flex-wrap: wrap;
    justify-content: center;
  }

  .seatplan-slider-container,
  #seatplan-slider {
    width: 100%;
    max-width: 100% !important;
  }

  .seatplan-label {
    width: 44px !important;
    height: 44px !important;
  }

  .seatplan-label-day {
    left: 0.5rem !important;
  }

  .seatplan-label-night {
    right: 0.5rem !important;
  }

  .seatplan-handle::before {
    width: 32px !important;
    height: 32px !important;
  }

  .seatplan-handle::after {
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }

  .lightbox {
    padding: 1rem !important;
  }

  .lightbox-close {
    top: max(0.75rem, env(safe-area-inset-top, 0px)) !important;
    right: 0.75rem !important;
  }

  .mobile-sticky-cta {
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-sticky-cta .btn-primary {
    width: 100% !important;
    min-width: 0 !important;
  }

  #scroll-to-top {
    right: 1rem !important;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
  }

  body:has(.mobile-sticky-cta) #scroll-to-top,
  body:has(.mobile-sticky-cta.visible) #scroll-to-top {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .modal-container {
    align-items: flex-start !important;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
  }

  .modal-content {
    max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0.75rem !important;
  }

  .modal-header {
    padding: 1.25rem 1rem 1rem !important;
    gap: 1rem;
    align-items: flex-start !important;
  }

  .modal-title {
    font-size: 1.4rem !important;
    line-height: 1.1 !important;
  }

  .modal-body {
    padding: 1rem !important;
  }

  .modal-body input,
  .modal-body select,
  .modal-body textarea {
    font-size: 16px !important;
  }

  .modal-body .grid.sm\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .starlink-popup-content {
    max-height: calc(100dvh - 1.5rem) !important;
  }

  .starlink-popup-content .modal-header {
    padding: 1.25rem 1rem 1rem !important;
  }

  .starlink-popup-image {
    min-height: 9rem !important;
  }

  #services h2,
  #about h2,
  #management h2,
  #news h2,
  #contact h2 {
    font-size: clamp(2.15rem, 9vw, 3.1rem) !important;
    line-height: 1.02 !important;
  }

  .services-card-img {
    margin-bottom: 1rem !important;
  }

  #aircraft-gallery .aircraft-slider {
    padding: 0 1rem !important;
    overflow: hidden !important;
  }

  #aircraft-gallery .slider-track {
    gap: 1rem !important;
  }

  #aircraft-gallery .slider-slide {
    flex: 0 0 100% !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #aircraft-gallery .aircraft-card-content {
    padding: 1.25rem !important;
  }

}

@media (max-width: 767px) {
  .spec-grid {
    grid-template-columns: 1fr !important;
  }

  .spec-item {
    padding: 1rem 0 !important;
  }

  .spec-value {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: clamp(2.05rem, 10.5vw, 3rem) !important;
  }
}
