/* Mobile nav + home polish — flattened media queries (no nesting) */

@media (max-width: 768px) {
  .bn-nav {
    z-index: 80;
    height: calc(var(--bn-nav-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }

  .bn-burger {
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.08);
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }

  .bn-drawer-backdrop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--bn-ease), visibility 0.4s;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .bn-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .bn-drawer {
    width: min(88vw, 360px);
    padding-top: calc(4.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
    padding-left: 1.5rem;
    padding-right: calc(1.5rem + env(safe-area-inset-right, 0px));
  }

  .bn-drawer__brand {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.4s var(--bn-ease), transform 0.4s var(--bn-ease);
  }

  .bn-drawer.is-open .bn-drawer__brand {
    opacity: 1;
    transform: none;
    transition-delay: 0.05s;
  }

  .bn-drawer a {
    opacity: 0;
    transform: translateX(22px);
    transition:
      opacity 0.45s var(--bn-ease),
      transform 0.45s var(--bn-ease),
      color 0.2s;
  }

  .bn-drawer.is-open a {
    opacity: 1;
    transform: none;
  }

  .bn-drawer.is-open a:nth-of-type(1) { transition-delay: 0.1s; }
  .bn-drawer.is-open a:nth-of-type(2) { transition-delay: 0.16s; }
  .bn-drawer.is-open a:nth-of-type(3) { transition-delay: 0.22s; }
  .bn-drawer.is-open a:nth-of-type(4) { transition-delay: 0.28s; }
  .bn-drawer.is-open a:nth-of-type(5) { transition-delay: 0.34s; }
  .bn-drawer.is-open a:nth-of-type(6) { transition-delay: 0.4s; }

  .bn-drawer a.is-on { color: var(--bn-mint); }

  .bn-drawer__cta {
    margin-top: 0.85rem;
    justify-content: center;
    border-radius: 999px;
    background: var(--bn-aqua);
    color: var(--bn-foam) !important;
    padding: 0 1.1rem;
    border-bottom: 0 !important;
  }

  .bn-drawer__meta {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--bn-ease) 0.42s, transform 0.4s var(--bn-ease) 0.42s;
  }

  .bn-drawer.is-open .bn-drawer__meta {
    opacity: 0.75;
    transform: none;
  }

  body.is-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .js [data-fade] img,
  .js [data-reveal] img {
    transform: scale(1.08);
    filter: saturate(0.88);
    transition: transform 1.15s var(--bn-ease), filter 0.9s ease;
  }

  .js [data-fade].is-in img,
  .js [data-reveal].is-in img {
    transform: scale(1);
    filter: none;
  }

  .bn-hero__copy h1,
  .bn-hero__copy .bn-hero__lead,
  .bn-pagehero h1 {
    animation: bnRise 0.8s var(--bn-ease) both;
  }

  .bn-hero__copy .bn-hero__lead { animation-delay: 0.12s; }

  .bn-hero .bn-actions,
  .bn-pagehero .bn-actions {
    animation: bnRise 0.8s var(--bn-ease) 0.22s both;
  }

  .bn-btn {
    transition: transform 0.2s var(--bn-ease), box-shadow 0.2s, background 0.2s, color 0.2s;
  }

  .bn-btn:active { transform: scale(0.96); }

  .bn-hero .bn-btn,
  .bn-finale .bn-btn,
  .bn-actions--hero .bn-btn {
    width: 100%;
  }

  .bn-section { padding: 3.1rem 0; }
  .bn-section__head { margin-bottom: 1.5rem; }
  .bn-areas__map { min-height: 180px; }
  .bn-season__pic { min-height: 160px; }
  .bn-mosaic {
    display: flex;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: calc(100% + 2.5rem);
    max-width: none;
  }

  .bn-card__pic,
  .bn-split__media,
  .bn-steps__pic,
  .bn-why__pic,
  .bn-mosaic__pic,
  .bn-team__pic,
  .bn-notes__pic,
  .bn-season__pic,
  .bn-ba figure,
  .bn-finale__bg {
    min-height: 180px;
    background: rgba(15, 118, 110, 0.06);
    overflow: hidden;
  }

  .bn-card__pic img,
  .bn-split__media img,
  .bn-steps__pic img,
  .bn-why__pic img,
  .bn-mosaic__pic img,
  .bn-team__pic img,
  .bn-notes__pic img,
  .bn-season__pic img,
  .bn-ba figure img,
  .bn-finale__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .bn-hero,
  .bn-pagehero {
    min-height: 100svh;
  }

  .bn-hero__copy {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    padding-bottom: max(3.5rem, env(safe-area-inset-bottom, 0px));
  }

  .bn-split__media,
  .bn-split__media--tall,
  .bn-featured__pic {
    min-height: 200px;
    max-height: 42svh;
    aspect-ratio: 4 / 3;
  }

  .bn-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .bn-film figure {
    flex-basis: 85vw;
    min-height: 190px;
  }

  .bn-ba figure { min-height: 220px; }
  .bn-areas__map { min-height: 160px; }
}

@keyframes bnRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bn-drawer a,
  .bn-drawer__brand,
  .bn-drawer__meta,
  .bn-drawer-backdrop,
  .js [data-fade] img,
  .js [data-reveal] img,
  .bn-hero__copy h1,
  .bn-hero__copy .bn-hero__lead,
  .bn-hero .bn-actions {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
