/* Small-screen rhythm for Bonnova's home page. */
@media (max-width: 900px) {
  .header { height: 126px; align-items: start; padding-top: .8rem; }
  .menu-group { position: absolute; top: 64px; left: 0; right: 0; display: flex; justify-self: auto; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
  .menu-group::-webkit-scrollbar { display: none; }
  .header nav { flex: 0 0 auto; display: flex; gap: .1rem; padding: .32rem; white-space: nowrap; }
  .header nav a { padding: .5rem .65rem; font-size: .67rem; }
  .arena-menu { flex: 0 0 auto; padding: .55rem .7rem; white-space: nowrap; font-size: .7rem; }
  .arena-menu span { display: none; }
}

@media (max-width: 620px) {
  .header { width: calc(100% - 2rem); }
  .hero-panel { min-height: 100svh; }
  .hero-content { margin-bottom: 6.25rem; }
  .type-title, .hero-panel-arena h2 { font-size: clamp(3.65rem, 15vw, 5.4rem); line-height: .9; }
  .hero-bottom { gap: 1.3rem; }
  .hero-bottom .button { align-self: flex-start; }
  .contact-copy h2 { font-size: clamp(3.5rem, 14vw, 5rem); }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .form-message, .contact-form .form-submit { grid-column: auto; }
  .whatsapp { right: 1rem; bottom: 1rem; }

  /* On phones, projects become a calm vertical catalogue instead of an expanding gallery. */
  .gallery { display: grid; height: auto; gap: .8rem; }
  .gallery .card,
  .gallery .card.active { min-height: 300px; flex: none; }
  .gallery .card img,
  .gallery .card.active img,
  .gallery .card:hover img { transform: none; filter: saturate(.78) brightness(.72); transition: none; }
  .gallery .card-copy,
  .gallery .card.active .card-copy,
  .gallery .card:hover .card-copy { left: 1.15rem; bottom: 1.2rem; opacity: 1; transform: none; transition: none; }
  .gallery .card-copy p { display: block; }
  .gallery .card-copy b { display: none; }
  .gallery .card:hover,
  .gallery .card:focus-visible { transform: none; box-shadow: none; }
}
