/* Shared responsive layer for Hangar Agencia pages. */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(26, 109, 255, 0.86);
  box-shadow: 0 18px 42px rgba(26, 109, 255, 0.2);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  position: relative;
  z-index: 1003;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transition: transform 220ms ease, opacity 220ms ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .site-header {
    top: 14px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    z-index: 1000 !important;
    pointer-events: none;
  }

  .brand-slot,
  .nav-toggle,
  .main-nav {
    pointer-events: auto;
  }

  .brand-slot {
    width: auto !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .brand-logo {
    width: min(148px, 42vw) !important;
    max-height: 42px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.32));
  }

  .nav-toggle {
    display: inline-flex !important;
    flex: 0 0 46px;
  }

  .main-nav {
    position: fixed !important;
    top: 72px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 92px) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    padding: 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.48) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(22px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
    transform: translateY(0) scale(1);
  }

  .nav-indicator,
  .nav-hover-indicator {
    display: none !important;
  }

  .main-nav a,
  .nav-item > a {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: flex-start !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    color: rgba(6, 16, 25, 0.78) !important;
    text-shadow: none !important;
    white-space: normal !important;
    font-size: 0.95rem !important;
  }

  .main-nav a.is-active,
  .main-nav a[aria-current="page"] {
    background: rgba(26, 109, 255, 0.94) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(26, 109, 255, 0.2) !important;
  }

  .nav-item {
    width: 100% !important;
    display: grid !important;
  }

  .nav-item::after {
    display: none !important;
  }

  .services-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    display: grid !important;
    gap: 4px !important;
    margin: 4px 0 2px !important;
    padding: 7px !important;
    border-radius: 16px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0.48) !important;
    box-shadow: none !important;
  }

  .services-menu a {
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: 0.86rem !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(3, 8, 13, 0.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

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

  input,
  select,
  textarea,
  button {
    font-size: 16px !important;
  }
}

@media (max-width: 860px) {
  #scrollVideo,
  .scroll-video,
  .stage video {
    object-position: center center !important;
  }

  .hero-copy {
    left: 18px !important;
    right: 18px !important;
    top: 50% !important;
    width: auto !important;
    max-width: none !important;
    text-align: center !important;
    align-items: center !important;
  }

  .hero-copy h1 {
    max-width: 11ch !important;
    margin-inline: auto !important;
    font-size: clamp(2.6rem, 14vw, 5rem) !important;
    line-height: 0.9 !important;
  }

  .hero-copy p {
    max-width: 34ch !important;
    margin-inline: auto !important;
    font-size: clamp(0.95rem, 3.7vw, 1.08rem) !important;
  }

  .scene-copy,
  .services-copy,
  .projects-copy,
  .clients-copy,
  .contact-copy,
  .statement-copy {
    left: 18px !important;
    right: 18px !important;
    width: auto !important;
    max-width: none !important;
  }

  .scene-copy {
    top: 96px !important;
  }

  .scene-copy h2,
  .services-title,
  .projects-title,
  .clients-title,
  .contact-title,
  .statement-title,
  .page-title,
  .section-title,
  h1 {
    overflow-wrap: anywhere;
  }

  .scene-copy h2,
  .services-title,
  .projects-title,
  .clients-title,
  .contact-title,
  .statement-title {
    font-size: clamp(2.15rem, 11vw, 4.4rem) !important;
    line-height: 0.96 !important;
  }

  .scene-copy p,
  .services-copy p,
  .projects-copy p,
  .clients-copy p,
  .contact-copy p {
    max-width: 38ch !important;
    font-size: clamp(0.94rem, 3.4vw, 1.04rem) !important;
  }

  .services-selector,
  .projects-carousel,
  .projects-showcase,
  .clients-grid,
  .contact-layout {
    left: 18px !important;
    right: 18px !important;
    width: auto !important;
  }

  .service-card {
    flex: 0 0 min(74vw, 290px) !important;
    min-height: 300px !important;
  }

  .project-card {
    flex: 0 0 min(62vw, 240px) !important;
    min-height: 260px !important;
  }

  .client-logo-card,
  .client-card {
    min-width: min(58vw, 220px) !important;
  }

  .hero,
  .page-hero,
  .service-hero,
  .projects-shell,
  .blog-hero {
    padding-top: 104px !important;
  }

  .hero-inner,
  .hero-grid,
  .split,
  .form-band,
  .footer-panel,
  .contact-hero,
  .contact-grid,
  .blog-layout,
  .services-showcase,
  .service-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .glass-card,
  .form-band,
  .footer-panel,
  .contact-card,
  .service-form {
    border-radius: 20px !important;
  }

  .services-scene,
  .projects-scene,
  .clients-scene,
  .statement-scene,
  .contact-scene {
    left: 18px !important;
    right: 18px !important;
    top: 96px !important;
    bottom: 22px !important;
    width: auto !important;
    max-width: none !important;
  }

  .services-showcase,
  .projects-showcase {
    margin-top: 18px !important;
  }

  .projects-scene {
    justify-content: flex-start !important;
    gap: 18px !important;
    text-align: left !important;
  }

  .projects-heading,
  .clients-copy,
  .statement-copy,
  .contact-copy {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .projects-title,
  .clients-title,
  .statement-title,
  .contact-title {
    text-align: left !important;
  }

  .projects-copy {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .projects-track,
  .services-selector {
    scroll-padding-inline: 0 !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .services-selector {
    overflow-x: auto !important;
    scroll-snap-type: x proximity !important;
    touch-action: pan-x pan-y !important;
    cursor: grab !important;
  }

  .services-selector:active {
    cursor: grabbing !important;
  }

  .projects-track,
  .projects-carousel,
  .projects-showcase {
    touch-action: pan-x pan-y !important;
  }

  .contact-scene {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: start !important;
    gap: 18px !important;
    overflow-y: auto !important;
    padding-bottom: 16px !important;
  }

  .contact-form {
    width: 100% !important;
    max-width: none !important;
  }

  .client-logo-carousel {
    width: 100% !important;
    margin-top: 22px !important;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent) !important;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent) !important;
  }

  .client-logo-track {
    gap: 14px !important;
  }

  .client-logo-slot {
    width: clamp(188px, 50vw, 260px) !important;
    min-height: clamp(88px, 18vw, 112px) !important;
    padding: 16px 20px !important;
    border-color: rgba(255, 255, 255, 0.82) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)) !important;
  }

  .client-logo-slot img {
    width: min(190px, 92%) !important;
    max-height: 64px !important;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
  }

  .main-nav {
    top: 68px !important;
    left: 12px !important;
    right: 12px !important;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 16vw, 4rem) !important;
  }

  .section-kicker,
  .eyebrow,
  .scene-kicker {
    font-size: 0.74rem !important;
    letter-spacing: 0.06em !important;
  }

  .project-card {
    flex-basis: min(70vw, 245px) !important;
  }

  .service-card {
    flex-basis: min(78vw, 285px) !important;
  }

  .client-logo-slot {
    width: min(74vw, 270px) !important;
    min-height: 98px !important;
  }

  .client-logo-slot img {
    width: min(205px, 92%) !important;
    max-height: 68px !important;
  }

  .field-row,
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .services-scene,
  .projects-scene,
  .clients-scene,
  .statement-scene,
  .contact-scene {
    left: 14px !important;
    right: 14px !important;
    top: 92px !important;
  }

  .projects-copy,
  .clients-copy p,
  .contact-copy p {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
  }

  .contact-form,
  .service-form {
    padding: 16px !important;
  }
}
