/* Keep the final word and its arrow together at every viewport width. */
.page-home .geo-team-proof .br-link-tail { white-space: nowrap; }

/* Keep the approved desktop homepage. Compact only its mobile first screen. */
@media (max-width: 760px) {
  body.brawus-v2.page-home .rv2-hero {
    padding-top: 110px;
    gap: 28px;
  }
  body.brawus-v2.page-home .rv2-hero h1 {
    max-width: none;
    margin-bottom: 22px !important;
    font-size: clamp(25px, 8.2vw, 40px);
    line-height: 1.1;
    letter-spacing: -.035em;
  }
  body.brawus-v2.page-home .rv2-hero__lead {
    font-size: 15px;
    line-height: 1.5;
  }
  body.brawus-v2.page-home .rv2-hero__subject { display: block; }
  body.brawus-v2.page-home .rv2-actions {
    gap: 16px;
    margin-top: 24px;
  }
  body.brawus-v2.page-home .rv2-hero button.rv2-button {
    min-height: 52px !important;
    padding: 14px 16px;
    gap: 12px;
  }
  body.brawus-v2.page-home .rv2-text-link { gap: 8px; }
}
@media (max-width: 360px) {
  body.brawus-v2.page-home .rv2-actions { gap: 12px; }
  body.brawus-v2.page-home .rv2-hero button.rv2-button { padding-inline: 12px; font-size: 13px; }
  body.brawus-v2.page-home .rv2-text-link { gap: 6px; font-size: 13px; }
}

/* Let mobile service copy determine its own height instead of shrinking headings. */
@media (max-width: 760px) {
  body.brawus-v2.page-home .eh-services-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    overflow: visible;
  }
  body.brawus-v2.page-home button.eh-service-tab,
  body.brawus-v2.page-home button.eh-service-tab.is-active {
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    justify-content: flex-start;
    transition: color 180ms ease, background 180ms ease;
  }
  body.brawus-v2.page-home button.eh-service-tab:first-child { grid-column: 1 / -1; }
  body.brawus-v2.page-home .eh-service-tab > span { display: none; }
  body.brawus-v2.page-home .eh-service-tab > strong,
  body.brawus-v2.page-home .eh-service-tab.is-active > strong {
    max-width: none;
    opacity: 1;
    overflow: visible;
    white-space: normal;
    text-align: left;
    font-size: 14px;
    line-height: 1.3;
  }
  body.brawus-v2.page-home .eh-service-panel {
    height: auto;
    min-height: 0 !important;
    grid-template-rows: auto auto;
    gap: 28px;
  }
  body.brawus-v2.page-home .eh-service-panel .eh-service-copy {
    display: block;
    min-height: 0;
  }
  body.brawus-v2.page-home .eh-service-panel .eh-service-copy h3 {
    max-width: none !important;
    margin: 0 0 16px !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
  }
  body.brawus-v2.page-home .eh-service-panel .eh-service-copy p { margin: 0 0 18px; }
  body.brawus-v2.page-home .eh-service-panel .eh-service-meta {
    display: block;
    margin: 0;
  }
  body.brawus-v2.page-home .eh-service-panel .eh-service-copy > a { margin-top: 20px; }
  body.brawus-v2.page-home .rv2-service-cases {
    grid-template-rows: auto auto;
    align-items: start;
  }
  body.brawus-v2.page-home .rv2-mini-case > strong {
    min-height: 2.4em;
    align-items: flex-start;
  }
  body.brawus-v2.page-home .rv2-mini-case > figure {
    flex: none;
    aspect-ratio: 1;
  }
}

/* Leave room for a brief instead of treating a textarea as a one-line input. */
body.brawus-v2.page-home section#formStart .editorial-open-form__field textarea {
  min-height: 124px !important;
  height: max(124px, var(--rv2-message-height, 124px)) !important;
  max-height: none !important;
  resize: vertical !important;
}

/* A single navigation level at a time, with a persistent header and back row. */
body.brawus-v2 .br-mobile-menu .menu-box {
  width: min(100vw, 470px) !important;
  padding: max(12px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: #0c1015 !important;
}
body.brawus-v2 .br-mobile-head {
  flex: 0 0 auto;
  min-height: 64px;
  padding: 0 0 12px;
}
body.brawus-v2 .br-mobile-head .nav-logo { margin: 0; padding: 0; }
body.brawus-v2 .br-mobile-head img { width: 142px; }
body.brawus-v2 .br-mobile-head .close-btn {
  inset: auto;
  align-self: center;
  flex: 0 0 44px;
  border-color: rgba(242,240,234,.16);
  border-radius: 10px;
  transform: none !important;
}
body.brawus-v2 .br-mobile-menu .menu-outer {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #40464e transparent;
  -webkit-overflow-scrolling: touch;
}
body.brawus-v2 .br-mobile-menu .navigation,
body.brawus-v2 .br-mobile-menu .navigation ul {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.brawus-v2 .br-mobile-menu .navigation > li {
  margin: 0;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(242,240,234,.12) !important;
}
body.brawus-v2 .br-mobile-menu .navigation > li > a,
body.brawus-v2 .br-mobile-section-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 15px 2px !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f2f0ea !important;
  font: 450 25px/1.2 "Tilda Sans", "Mont", Arial, sans-serif;
  letter-spacing: -.02em;
  text-align: left;
  text-transform: none !important;
  cursor: pointer;
}
body.brawus-v2 .br-mobile-section-trigger svg,
body.brawus-v2 .br-mobile-back svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.brawus-v2 .br-mobile-section-trigger svg { color: #9da5b1; }
body.brawus-v2 .br-mobile-subhead {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-bottom: 1px solid rgba(242,240,234,.12);
}
body.brawus-v2 .br-mobile-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #f2f0ea;
  font: 450 16px/1.3 "Tilda Sans", "Mont", Arial, sans-serif;
  cursor: pointer;
}
body.brawus-v2 .br-mobile-section-title {
  color: #a6adb8;
  font-size: 14px;
  font-weight: 450;
}
body.brawus-v2 .br-mobile-menu [hidden],
body.brawus-v2 .br-mobile-menu.has-submenu .br-mobile-section-trigger,
body.brawus-v2 .br-mobile-menu.has-submenu .br-mobile-bottom { display: none !important; }
body.brawus-v2 .br-mobile-menu.has-submenu .navigation > li { border: 0 !important; }
body.brawus-v2 .br-mobile-menu.has-submenu .menu-outer { padding-top: 4px; }
body.brawus-v2 .br-mobile-menu .navigation ul li { border: 0 !important; }
body.brawus-v2 .br-mobile-menu .navigation ul a {
  display: flex;
  align-items: center;
  min-height: 51px;
  padding: 12px 2px !important;
  border-bottom: 1px solid rgba(242,240,234,.09);
  color: #e3e5e9 !important;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.4;
  text-transform: none !important;
}
body.brawus-v2 .br-mobile-menu .br-service-menu a > span { display: none; }
body.brawus-v2 .br-mobile-menu .br-service-menu__all {
  margin-top: 14px !important;
  border: 0 !important;
}
body.brawus-v2 .br-mobile-menu .br-service-menu__all a {
  color: #aeb7ff !important;
  border: 0;
}
body.brawus-v2 .br-mobile-bottom {
  flex: 0 0 auto;
  gap: 14px;
  padding-top: 18px;
}
body.brawus-v2 .br-mobile-bottom .br-primary-action {
  justify-content: center;
  min-height: 48px;
  font-size: 15px;
}
body.brawus-v2 .br-mobile-contacts { padding-top: 0; }
body.brawus-v2 .br-mobile-menu :is(a,button):focus-visible {
  outline: 2px solid #aeb7ff;
  outline-offset: -2px;
  border-radius: 6px;
}
body.brawus-v2 .br-mobile-menu.has-submenu .navigation > li > ul {
  animation: br-submenu-enter 180ms ease-out;
}
@keyframes br-submenu-enter {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  body.brawus-v2 .br-mobile-menu.has-submenu .navigation > li > ul { animation: none; }
}
