html:has(.bn-mobile-dialog[open]) { overflow: hidden; }

.bn-header { position: relative; z-index: 8; }
.bn-header:has(.bn-mega:not([hidden]))::after {
  position: absolute;
  z-index: -1;
  inset: 100% 0 auto;
  height: calc(100dvh - 100%);
  background: color-mix(in srgb, var(--shade) 11%, transparent);
  pointer-events: none;
  content: "";
}
.bn-header .where-key { white-space: nowrap; }
.head-tools > .theme-key {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: var(--radius);
  color: var(--heading);
}
.theme-key svg { width: 20px; height: 20px; }
.theme-key[aria-pressed="true"] { color: var(--ring); background: var(--accent); }
.bn-header .wide-nav { min-width: 0; }
.bn-tabs, .bn-links, .bn-logos, .bn-accordion { list-style: none; margin: 0; padding: 0; }
.bn-tabs { display: flex; align-items: center; gap: clamp(2px, .36vw, 7px); }

.bn-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 44px;
  padding: 5px clamp(8px, .91vw, 16px);
  border-radius: var(--radius);
  color: var(--heading);
  font-size: 14px;
  font-weight: 640;
  white-space: nowrap;
}
.bn-trigger[aria-current="location"]::before {
  position: absolute;
  inset: auto 12px 3px;
  border-block-end: 2px solid var(--link);
  content: "";
}
.bn-trigger[aria-expanded="true"] { background: var(--muted); }
.bn-trigger[aria-expanded="true"] .bn-chevron { transform: rotate(-135deg); }

.bn-chevron {
  flex: none;
  width: 6px;
  height: 6px;
  margin-block-start: -3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.bn-trigger[aria-expanded="true"] .bn-chevron { margin-block-start: 3px; }
.bn-arrow {
  position: relative;
  display: inline-block;
  flex: none;
  inline-size: 16px;
  block-size: 16px;
}
.bn-arrow::before, .bn-arrow::after { content: ""; position: absolute; top: 50%; }
.bn-arrow::before {
  inset-inline: 1px 2px;
  border-block-start: 1.5px solid currentColor;
  transform: translateY(-50%);
}
.bn-arrow::after {
  inset-inline-end: 2px;
  inline-size: 7px;
  block-size: 7px;
  border-block-start: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.bn-mega {
  position: absolute;
  inset-block-start: calc(100% + 1px);
  inset-inline: max(var(--space), calc((100% - 1600px) / 2 + var(--space)));
  max-block-size: var(--bn-available, calc(100vh - 96px));
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding: 12px;
  padding: clamp(16px, 2.15vw, 32px);
  border: 1px solid var(--border);
  border-block-start: 2px solid var(--primary);
  border-radius: 0 0 var(--panel-radius) var(--panel-radius);
  background: var(--popover);
  color: var(--heading);
  box-shadow: 0 21px 52px color-mix(in srgb, var(--shade) 19%, transparent), 0 6px 14px color-mix(in srgb, var(--shade) 8%, transparent);
}
.bn-layout { display: grid; gap: clamp(14px, 1.5vw, 22px); }
.bn-layout > * { min-width: 0; }
.bn-mega a {
  min-height: 44px;
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}
.bn-mega a:focus-visible, .bn-mobile-dialog :is(a, button):focus-visible {
  outline-offset: -4px;
}
.bn-mega .bn-link, .bn-mega .bn-index, .bn-mega .bn-shop,
.bn-mobile-dialog .bn-link, .bn-mobile-dialog .bn-index, .bn-mobile-dialog .bn-shop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 44px;
  padding: 7px 11px;
  border-radius: var(--radius);
  line-height: 1.25;
}
.bn-mega .bn-link, .bn-mobile-dialog .bn-link {
  font-size: 14px;
  font-weight: 550;
}
.bn-link .bn-arrow { color: var(--link); }
.bn-mega .bn-index, .bn-mobile-dialog .bn-index {
  border-radius: 0;
  border-block-end: 1px solid var(--border);
  color: var(--link);
  font-size: 16px;
  font-weight: 700;
}
.bn-mega .bn-shop, .bn-mobile-dialog .bn-shop {
  border: 1px solid var(--input);
  background: var(--muted);
  color: var(--heading);
  font-size: 14px;
  font-weight: 680;
}
.bn-mega [aria-current="page"], .bn-mobile-dialog [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

.bn-catalog { grid-template-columns: minmax(185px, .7fr) minmax(0, 3fr); }
.bn-catalog-rail { display: flex; flex-direction: column; align-self: start; gap: 5px; }
.bn-catalog-rail .bn-shop { margin-block-start: 7px; }
.bn-catalog-features {
  display: grid;
  grid-template-columns: minmax(0, 1.47fr) minmax(0, 1fr);
  gap: 13px;
}
.bn-catalog-aside {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 13px;
}
.bn-mega .bn-model-lead {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  min-height: 290px;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 34px);
  border: 1px solid var(--feature-bg);
  border-radius: var(--panel-radius);
  color: var(--feature-text);
  background: var(--feature-bg);
}
.bn-model-name { z-index: 1; display: grid; gap: 5px; padding-block-end: 13px; }
.bn-model-name > span { font-size: clamp(.875rem, 1.27vw, 1.1875rem); line-height: 1.22; font-weight: 580; color: var(--feature-muted); }
.bn-model-name strong { font-size: clamp(2.375rem, 4.8vw, 5rem); line-height: 1.01; font-weight: 740; letter-spacing: var(--tracking-display); }
.bn-model-variant { display: block; margin-block-start: 3px; font-size: .52em; letter-spacing: var(--tracking-title); }
.bn-model-lead .bn-picture {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 100%;
}
.bn-model-lead .bn-picture::before {
  content: "";
  position: absolute;
  inline-size: min(103%, 310px);
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--feature-tint);
}
.bn-model-lead img { position: relative; width: 100%; max-height: 255px; object-fit: contain; }
.bn-model-lead > .bn-arrow { position: absolute; inset: auto auto 21px clamp(18px, 2.2vw, 34px); }
.bn-mega :is(.bn-model-lead, .bn-office):focus-visible { outline-color: var(--feature-focus); }

.bn-mega .bn-listening {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 12px clamp(12px, 1.35vw, 21px);
  border: 1px solid var(--input);
  border-radius: var(--panel-radius);
  background: var(--muted);
  color: var(--link);
  font-size: clamp(.9375rem, 1.42vw, 1.3125rem);
  font-weight: 680;
  line-height: 1.18;
}
.bn-listening-pin {
  position: relative;
  width: 19px;
  height: 19px;
  margin: -4px 3px 0 2px;
  border: 1.5px solid currentColor;
  border-radius: 55% 55% 55% 10%;
  transform: rotate(-45deg);
}
.bn-listening-pin::after {
  position: absolute;
  inset: 5px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.bn-brands { grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr); }
.bn-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(92px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  overflow: hidden;
  background: var(--border);
}
.bn-logos > li { min-width: 0; }
.bn-mega .bn-logos a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  background: var(--brand-surface);
}
.bn-logos img { width: min(110px, 100%); height: auto; mix-blend-mode: multiply; }
.bn-mega .bn-logos .bn-all-brands {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 6px 9px;
  background: var(--muted);
  color: var(--link);
  font-size: 14px;
  font-weight: 660;
  text-align: center;
}
.bn-mega .bn-logos [aria-current="page"] { box-shadow: inset 0 0 0 2px var(--link); }

.bn-mega .bn-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--muted);
  color: var(--heading);
}
.bn-photo .bn-picture {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  min-block-size: 0;
  aspect-ratio: 2.14;
  background: var(--secondary);
  overflow: hidden;
}
.bn-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-photo-title {
  display: block;
  padding: 13px 13px 13px 16px;
  font-size: clamp(15px, 1.42vw, 23px);
  line-height: 1.19;
  font-weight: 675;
  letter-spacing: var(--tracking-snug);
}
.bn-photo > .bn-arrow { margin-inline-end: 16px; color: var(--link); }
.bn-catalog-story .bn-picture { aspect-ratio: 2.22; }
.bn-catalog-story img { object-position: center 60%; }
.bn-catalog-story .bn-photo-title { font-size: clamp(.875rem, 1.25vw, 1.25rem); }
.bn-brand-feature .bn-picture { background: #090909; }
.bn-brand-feature img { object-fit: contain; }
.bn-journal { grid-template-columns: minmax(0, 1.33fr) minmax(0, 1fr); }
.bn-story-cover img { object-position: center 60%; }
.bn-story-cover .bn-photo-title { font-size: clamp(20px, 2.12vw, 34px); padding-block: 15px; }
.bn-edition { display: grid; grid-template-rows: auto repeat(2, 1fr); gap: 12px; }
.bn-edition .bn-index { min-height: 42px; }
.bn-mega .bn-story-side {
  grid-template-columns: minmax(95px, .65fr) minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  min-height: 88px;
}
.bn-story-side .bn-picture { grid-column: 1; aspect-ratio: auto; }
.bn-story-side .bn-photo-title { font-size: clamp(14px, 1.24vw, 20px); }
.bn-story-kanto img { object-position: 58% center; }

.bn-company { grid-template-columns: minmax(170px, .62fr) minmax(0, 1.12fr) minmax(0, 1.36fr); }
.bn-company-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 185px;
  padding: clamp(15px, 2.1vw, 31px);
  border-radius: var(--panel-radius);
  background: var(--feature-bg);
  color: var(--feature-text);
}
.bn-company-lead { font-size: clamp(1rem, 1.25vw, 1.3rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.bn-contacts { display: grid; gap: 10px; margin: 0; }
.bn-contacts div { display: grid; gap: 2px; }
.bn-contacts dt { color: var(--feature-muted); font-size: 12px; }
.bn-contacts dd { margin: 0; }
.bn-mega .bn-contacts a { min-height: 0; color: var(--feature-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.bn-support-feature .bn-picture { background: var(--product-stage); }
.bn-support-feature img { object-fit: contain; padding: 10%; }
.bn-partners { grid-template-columns: minmax(170px, .62fr) minmax(0, 1.12fr) minmax(0, 1.36fr); }
.bn-partner-rail .bn-links { margin-block-start: 5px; }
.bn-mega .bn-office {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(55px, 1fr) auto;
  align-items: end;
  gap: 15px;
  min-height: 185px;
  padding: clamp(15px, 2.1vw, 31px);
  border: 1px solid var(--feature-bg);
  border-radius: var(--panel-radius);
  color: var(--feature-text);
  background: var(--feature-bg);
}
.bn-office-mark {
  --mark-ink: var(--accent);
  position: relative;
  grid-column: 1 / -1;
  align-self: start;
  width: clamp(47px, 5.5vw, 84px);
  aspect-ratio: .84;
  border: 1px solid var(--mark-ink);
  border-radius: 3px;
  background:
    linear-gradient(var(--mark-ink), var(--mark-ink)) 45% 54% / 58% 1px no-repeat,
    linear-gradient(var(--mark-ink), var(--mark-ink)) 31% 66% / 40% 1px no-repeat;
  box-shadow: 8px 8px 0 -1px var(--feature-bg), 8px 8px 0 var(--mark-ink);
}
.bn-office-mark::before {
  position: absolute;
  content: "";
  inset: 23% 49% auto 18%;
  height: 8%;
  background: var(--mark-ink);
}
.bn-office-mark::after {
  position: absolute;
  content: "";
  inset: 20% 17% auto auto;
  width: 13%;
  aspect-ratio: 1;
  border: 1px solid var(--mark-ink);
  background: var(--mark-ink);
}
.bn-office-copy { display: grid; gap: 7px; }
.bn-office-copy strong { font-size: clamp(19px, 2.12vw, 34px); line-height: 1.05; font-weight: 675; letter-spacing: var(--tracking-title); }
.bn-office-copy > span { font-size: 13px; line-height: 1.25; color: var(--feature-muted); }
.bn-office > .bn-arrow { align-self: end; }
.bn-store-feature .bn-picture { aspect-ratio: 2.05; }
.bn-store-feature img { object-position: 37% 44%; }

.bn-mobile-dialog {
  width: min(520px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  scroll-padding-block-start: 77px;
  color: var(--heading);
}
.bn-mobile-dialog .panel-in { padding: 0; }
.bn-mobile-dialog .panel-head {
  position: sticky;
  z-index: 1;
  inset-block-start: 0;
  align-items: center;
  padding: 12px 16px 10px 18px;
  margin: 0;
  border-block-end: 1px solid var(--border);
  background: var(--card);
}
.bn-mobile-dialog .panel-head form { margin: 0; }
.bn-mobile-dialog .panel-head h2 { font-size: 24px; font-weight: 680; letter-spacing: var(--tracking-snug); }
.bn-accordion { padding-inline: 13px; }
.bn-accordion > li { border-block-end: 1px solid var(--border); }
.bn-accordion .bn-trigger {
  width: 100%;
  min-height: 51px;
  padding-inline: 10px 13px;
  margin-block: 3px;
  font-size: 16px;
  text-align: start;
}
.bn-accordion .bn-trigger[aria-current="location"]::before {
  inset: 12px auto 12px 1px;
  border-block-end: 0;
  border-inline-start: 2px solid var(--link);
}
.bn-mobile-section { display: grid; gap: 3px; padding-block-end: 11px; }
.bn-mobile-section .bn-index { font-size: 14px; }
.bn-mobile-section .bn-link { color: var(--muted-foreground); }
.bn-mobile-section .bn-shop { margin-block-start: 6px; }
.bn-mobile-dialog .bn-mobile-photo {
  display: grid;
  grid-template-columns: clamp(70px, 24%, 108px) minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  min-height: 69px;
  margin-block-start: 6px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--muted);
}
.bn-mobile-photo .bn-picture { grid-column: 1; aspect-ratio: auto; }
.bn-mobile-photo .bn-photo-title { font-size: 14px; }
.bn-mobile-photo > .bn-arrow { margin-inline-end: 12px; }
.bn-mobile-product img { object-fit: contain; padding: 4px; }
#bn-mobile-partners .bn-mobile-photo img { object-position: 26% center; }
.bn-shortcuts { padding: 12px 13px 14px; }
.bn-mobile-dialog:has(#bn-mobile-catalog:not([hidden])) .bn-shortcuts { display: none; }

:root.dark .bn-mega :is(.bn-model-lead, .bn-office) { border-color: var(--border); }
:root.dark .bn-mega .bn-office {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--muted-foreground) 15%, transparent) .65px, transparent 1px);
  background-size: 8px 8px;
}
:root.dark .bn-office-mark { --mark-ink: var(--muted-foreground); }
:root.dark .bn-trigger[aria-expanded="true"] { color: var(--ring); }
:root.dark .bn-trigger[aria-current="location"]::before { border-color: var(--ring); }
:root.dark .bn-mega .bn-logos a:not(.bn-all-brands):focus-visible { outline-color: #243a6c; }
:root.dark .bn-mega .bn-logos a:not(.bn-all-brands)[aria-current="page"] { box-shadow: inset 0 0 0 2px #243a6c; }

@media (hover: hover) and (pointer: fine) {
  .theme-key:hover { background: var(--muted); }
  :root.dark .bn-mega .bn-logos a:not(.bn-all-brands):hover { background: var(--brand-surface); box-shadow: inset 0 0 0 2px #243a6c; }
  .bn-trigger:hover { background: var(--muted); }
  .bn-mega .bn-link:hover, .bn-mega .bn-index:hover,
  .bn-mega .bn-logos a:hover, .bn-mobile-dialog .bn-link:hover,
  .bn-mobile-dialog .bn-index:hover { background: var(--muted); text-decoration: none; }
  .bn-mega .bn-shop:hover, .bn-mobile-dialog .bn-shop:hover { border-color: var(--link); text-decoration: none; }
  .bn-mega .bn-listening:hover { border-color: var(--link); }
  .bn-mega :is(.bn-model-lead, .bn-photo, .bn-office):hover { text-decoration: none; }
  .bn-model-lead:hover .bn-model-name strong, .bn-photo:hover .bn-photo-title, .bn-office:hover strong {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
  }
}

@media (max-width: 1110px) {
  .bn-catalog-features { grid-template-columns: minmax(0, 1fr); }
  .bn-catalog-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
  .bn-mega .bn-model-lead { min-height: 184px; }
  .bn-model-lead .bn-picture::before { width: min(80%, 180px); }
  .bn-model-lead .bn-picture { width: min(100%, 275px); justify-self: center; }
  .bn-model-lead img { max-height: 165px; }
  .bn-model-name strong { font-size: clamp(2.875rem, 5.95vw, 4.4375rem); }
  .bn-mega .bn-catalog-story { grid-template-columns: minmax(75px, .8fr) minmax(0, 1fr) auto; grid-template-rows: 1fr; min-height: 98px; }
  .bn-catalog-story .bn-picture { grid-column: 1; aspect-ratio: auto; }
  .bn-catalog-story .bn-photo-title { padding: 9px; }
}

@media (max-width: 1050px) {
  .bn-header .identity { display: none; }
}

@media (max-width: 900px) {
  .bn-company { grid-template-columns: minmax(155px, .8fr) minmax(0, 1.05fr) minmax(0, 1.15fr); }
  .bn-brands { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bn-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(49px, 1fr)); }
  .bn-logos img { width: min(90px, 100%); }
  .bn-mega .bn-logos a { padding: 4px; }
  .bn-catalog { grid-template-columns: minmax(175px, .83fr) minmax(0, 2.17fr); }
  .bn-partners { grid-template-columns: minmax(155px, .8fr) minmax(0, 1.05fr) minmax(0, 1.15fr); }
  .bn-edition { gap: 9px; }
  .bn-story-side .bn-photo-title { padding: 9px; }
  .bn-photo > .bn-arrow { margin-inline-end: 11px; }
}

@media (min-width: 861px) {
  html:has(.bn-header) { scrollbar-gutter: stable; }
}

@media (max-height: 570px) and (min-width: 861px) {
  .bn-mega { padding-block: 14px; }
}

@media (max-height: 475px) and (min-width: 861px) {
  .bn-mega { padding-block: 10px; }
  .bn-catalog-rail { gap: 3px; }
  .bn-catalog-rail .bn-shop { margin-block-start: 3px; }
  .bn-mega .bn-catalog-rail a { min-height: 37px; padding-block: 5px; }
  .bn-mega .bn-catalog-rail .bn-link { font-size: 13px; }
}

@media (max-height: 475px) and (min-width: 861px) and (max-width: 1110px) {
  .bn-mega .bn-model-lead { min-height: 160px; padding-block: 12px; }
  .bn-model-lead img { max-height: 136px; }
  .bn-model-lead .bn-picture::before { width: min(76%, 146px); }
  .bn-mega .bn-catalog-story { min-height: 88px; }
}

@media (max-width: 860px) {
  .bn-header .header-in { min-height: 65px; }
  .bn-header .wide-nav { display: none; }
  .bn-header .head-tools { margin-inline-start: auto; }
  .bn-header .menu-key { display: grid; }
  .bn-header .head-tools > button { width: 44px; min-height: 44px; }
  .bn-header .where-key { min-height: 44px; }
}

@media (max-width: 450px) {
  .bn-header .head-tools { gap: 2px; }
  .bn-header .where-key {
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    gap: 0;
    padding: 0;
    font-size: 0;
  }
  .bn-header .where-key .icon { width: 19px; height: 19px; }
}

@media (min-width: 381px) and (max-width: 430px) {
  .bn-header .header-in .brand-logo img { width: clamp(116px, 31vw, 130px); }
}

@media (max-width: 380px) {
  .bn-header .header-in .brand-logo img { width: clamp(102px, 33vw, 116px); }
}

@media (prefers-reduced-motion: no-preference) {
  .bn-mega:not([hidden]),
  .bn-mobile-dialog[open] {
    opacity: 1;
    translate: none;
    transition: opacity 160ms var(--ease), translate 160ms var(--ease);

    @starting-style {
      opacity: .85;
      translate: 0 -4px;
    }
  }

  .bn-header:has(.bn-trigger:focus-visible) .bn-mega,
  :is(.bn-mega, .bn-mobile-dialog):has(:focus-visible) {
    transition: none;
  }
}

@media (forced-colors: active) {
  .bn-trigger[aria-expanded="true"] { outline: 1px solid ButtonText; outline-offset: -1px; }
  .bn-trigger[aria-current="location"]::before { border-color: LinkText; }
  .bn-mega .bn-logos [aria-current="page"] { outline: 2px solid LinkText; outline-offset: -2px; }
}
