/* Focused primary nav + More accordion (desktop dropdown / mobile drawer) */

/* Header + currency-switcher scroll fade — same opacity/timing as one chrome unit. */
body > nav:not(.currency-switcher),
.currency-switcher[data-currency-switcher] {
  transition: opacity 0.35s ease;
}

body > nav:not(.currency-switcher).nav-scroll-faded,
.currency-switcher.nav-scroll-faded {
  opacity: 0;
  pointer-events: none;
}

/* Restore either chrome piece on hover/focus; keep both visible together */
body > nav:not(.currency-switcher).nav-scroll-faded:hover,
body > nav:not(.currency-switcher).nav-scroll-faded:focus-within,
body:has(.currency-switcher.nav-scroll-faded:hover) > nav:not(.currency-switcher).nav-scroll-faded,
body:has(.currency-switcher.nav-scroll-faded:focus-within) > nav:not(.currency-switcher).nav-scroll-faded,
.currency-switcher.nav-scroll-faded:hover,
.currency-switcher.nav-scroll-faded:focus-within,
body:has(> nav:not(.currency-switcher).nav-scroll-faded:hover) .currency-switcher.nav-scroll-faded,
body:has(> nav:not(.currency-switcher).nav-scroll-faded:focus-within) .currency-switcher.nav-scroll-faded {
  opacity: 1;
  pointer-events: auto;
}
.nav-links {
  display: none;
  align-items: center;
}

.nav-links > li {
  display: flex;
  align-items: center;
}

/* Logo | tagline | hamburger — sitewide (drawer replaces horizontal .nav-links). */
body > nav:has(.nav-cluster) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.5rem;
}

body > nav:has(.nav-cluster) > .logo {
  grid-column: 1;
  z-index: 2;
}

body > nav:has(.nav-cluster) > .nav-cluster {
  grid-column: 2;
  margin-left: 0;
  max-width: none;
  align-items: center;
  justify-self: stretch;
  min-width: 0;
}

body > nav:has(.nav-cluster) > .hamburger {
  grid-column: 3;
  z-index: 2;
  flex-shrink: 0;
}

.nav-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  margin-left: auto;
  min-width: 0;
  max-width: min(100%, 42rem);
}

.nav-tagline {
  position: static;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.02em;
  width: fit-content;
  margin: 0;
  margin-inline: auto;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
  color: #c0c0c8;
  font-family: 'IBM Plex Sans', var(--font-sans, system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(0.58rem, 1.35vw, 0.82rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: left;
  pointer-events: none;
  transform: none;
  animation: navTaglineDropIn 0.7s cubic-bezier(0.22, 1.15, 0.36, 1) 0.08s both;
}

.nav-tagline__line {
  display: inline-block;
  vertical-align: baseline;
  white-space: nowrap;
  transform-origin: 50% 60%;
  /* Resting silver + multicolor band for L→R shimmer every 4s */
  background-image: linear-gradient(
    90deg,
    #a8a8b0 0%,
    #c0c0c8 10%,
    #d8d8e0 18%,
    #818cf8 28%,
    #c084fc 38%,
    #f472b6 48%,
    #fb923c 58%,
    #34d399 68%,
    #38bdf8 78%,
    #c0c0c8 88%,
    #a8a8b0 100%
  );
  background-size: 280% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation:
    navTaglineShimmerColor 4s ease-in-out infinite,
    navTaglineBulge 5s ease-in-out infinite;
}

/* Reserve full line width during typewriter clears (prevents nav-cluster shift). */
.nav-tagline__line::before {
  content: attr(data-type-text);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  white-space: nowrap;
  font: inherit;
  letter-spacing: inherit;
}

.nav-tagline__line.is-typing::after {
  content: '';
  display: inline-block;
  width: 0.085em;
  height: 0.95em;
  margin-left: 0.06em;
  vertical-align: -0.08em;
  background: #c0c0c8;
  border-radius: 1px;
  animation: navTaglineCaret 0.7s steps(1) infinite;
}

@keyframes navTaglineDropIn {
  from {
    opacity: 0;
    transform: translateY(-1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shimmer + multicolor sweep left→right, then rest on silver (~4s cycle). */
@keyframes navTaglineShimmerColor {
  0%,
  12% {
    background-position: 100% 50%;
  }
  48% {
    background-position: 0% 50%;
  }
  62%,
  100% {
    background-position: 100% 50%;
  }
}

/* Soft bulge once per 5s cycle. */
@keyframes navTaglineBulge {
  0%,
  86%,
  100% {
    transform: scale(1);
  }
  93% {
    transform: scale(1.07);
  }
}

@keyframes navTaglineCaret {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* Homepage .hero-year — 10s cycle: punchy ~1.6s 3D flourish, then idle. */
@keyframes heroYearFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroYear3dFlourish {
  /* 0–16% ≈ 1.6s of a 10s loop; remainder idle at rest. Transform-only (fade-in is separate). */
  0% {
    transform: rotateY(0deg) rotateX(0deg) translateZ(0) scale(1);
  }
  2% {
    transform: rotateY(-48deg) rotateX(16deg) translateZ(42px) scale(1.06);
  }
  5% {
    transform: rotateY(42deg) rotateX(-12deg) translateZ(56px) scale(1.09);
  }
  8% {
    transform: rotateY(-22deg) rotateX(8deg) translateZ(28px) scale(1.04);
  }
  11% {
    transform: rotateY(12deg) rotateX(-4deg) translateZ(14px) scale(1.015);
  }
  16%,
  100% {
    transform: rotateY(0deg) rotateX(0deg) translateZ(0) scale(1);
  }
}

/* Sitewide: .hero-year exists on regional/silo hero taglines too — same flourish
   everywhere the element renders (homepage keeps its extra fade-in below). */
header.hero {
  perspective: 920px;
  perspective-origin: 50% 40%;
}

header.hero > p.hero-year {
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  backface-visibility: visible;
  animation: heroYear3dFlourish 10s 1.7s cubic-bezier(0.22, 1.15, 0.32, 1) infinite;
}

html:has(meta[name='csmbac-page-ref'][content='csmbac-website:index']) header.hero > p.hero-year {
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  backface-visibility: visible;
  /* Stable line box — transform-only motion, no letter-spacing churn / CLS. */
  line-height: 1.45;
  min-height: 1.45em;
  color: #c8c8d0;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
  animation:
    heroYearFadeIn 0.6s 1.1s forwards,
    heroYear3dFlourish 10s 1.7s cubic-bezier(0.22, 1.15, 0.32, 1) infinite;
}

/* Homepage H1 emphasis — mirrors nav-tagline shimmer / bulge / typewriter. */
.hero-h1-emphasis {
  display: inline-block;
  vertical-align: baseline;
  white-space: nowrap;
  transform-origin: 50% 60%;
  background-image: linear-gradient(
    90deg,
    #f0f0f4 0%,
    #ffffff 10%,
    #e8e8f0 18%,
    #818cf8 28%,
    #c084fc 38%,
    #f472b6 48%,
    #fb923c 58%,
    #34d399 68%,
    #38bdf8 78%,
    #ffffff 88%,
    #f0f0f4 100%
  );
  background-size: 280% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation:
    navTaglineShimmerColor 4s ease-in-out infinite,
    navTaglineBulge 5s ease-in-out infinite;
}

/* Reserve full phrase width during typewriter clears (prevents H1 reflow / CLS). */
.hero-h1-emphasis::before {
  content: attr(data-type-text);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  white-space: nowrap;
  font: inherit;
  letter-spacing: inherit;
}

/*
 * Empty-slot fill — while typewriter has wiped glyphs (:empty / .is-empty),
 * paint a cyan/teal glass shimmer in the reserved box so the H1 never looks broken.
 * Width stays from ::before; min-height keeps the slot readable.
 */
@keyframes heroH1EmptyGlow {
  0%,
  100% {
    background-position: 8% 50%;
    box-shadow:
      inset 0 0 0 1px rgba(56, 189, 248, 0.34),
      0 0 14px rgba(52, 211, 153, 0.16),
      0 0 28px rgba(56, 189, 248, 0.1);
  }
  50% {
    background-position: 92% 50%;
    box-shadow:
      inset 0 0 0 1px rgba(52, 211, 153, 0.48),
      0 0 22px rgba(56, 189, 248, 0.28),
      0 0 36px rgba(52, 211, 153, 0.14);
  }
}

.hero-h1-emphasis:empty,
.hero-h1-emphasis.is-empty {
  min-height: 0.92em;
  border-radius: 0.28em;
  vertical-align: -0.06em;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-color: rgba(15, 23, 42, 0.38);
  background-image: linear-gradient(
    110deg,
    rgba(14, 165, 233, 0.1) 0%,
    rgba(56, 189, 248, 0.22) 22%,
    rgba(52, 211, 153, 0.38) 42%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(56, 189, 248, 0.36) 62%,
    rgba(14, 165, 233, 0.14) 100%
  );
  background-size: 220% 100%;
  background-position: 8% 50%;
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, 0.34),
    0 0 14px rgba(52, 211, 153, 0.16),
    0 0 28px rgba(56, 189, 248, 0.1);
  animation: heroH1EmptyGlow 2.2s ease-in-out infinite;
}

.hero-h1-emphasis.is-typing::after {
  content: '';
  display: inline-block;
  width: 0.085em;
  height: 0.95em;
  margin-left: 0.06em;
  vertical-align: -0.08em;
  background: #ffffff;
  border-radius: 1px;
  animation: navTaglineCaret 0.7s steps(1) infinite;
}

/* Logo mark + wordmark bulge together (class toggled every 10s from csmbac-nav.js). */
@keyframes navBrandBulgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
  }
}

.logo.nav-brand-bulging {
  transform-origin: 20% 50%;
  animation: navBrandBulgePulse 0.7s ease-in-out;
}

/* Nav wordmark shimmer — soft white sweep over the gradient letters (QR-CTA /
   sticky-WA shimmer language). One combined keyframe drives both background
   layers because two separate animations on background-position would cancel:
   the hue layer runs 0→400% per 10s (two seamless logoShift periods, same 5s
   pace as before) while the highlight band idles off the letters and sweeps
   once per cycle. Background/opacity/transform only — no layout, no CLS. */
nav a.logo .logo-copy .logo-word {
  background-image:
    linear-gradient(
      115deg,
      transparent 42%,
      rgba(255, 255, 255, 0) 46%,
      rgba(255, 255, 255, 0.78) 50%,
      rgba(255, 255, 255, 0) 54%,
      transparent 58%
    ),
    linear-gradient(90deg, #818cf8, #c084fc, #f472b6, #fb923c, #34d399, #38bdf8, #818cf8);
  background-size: 240% 100%, 200% auto;
  background-repeat: no-repeat, repeat;
  background-position: 130% 0, 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    navLogoWordIn 0.5s 0.1s both,
    navLogoWordFlow 10s 0.6s linear infinite;
}

/* Entry fade — homepage inline CSS sets .logo-word { opacity: 0 } and expects
   a fade-in (its lIn animation is replaced by this override); harmless on
   pages that never start hidden. */
@keyframes navLogoWordIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Layer 1: shimmer band off-text most of the cycle, gentle L→R pass at 62–76%.
   Layer 2: continuous hue drift (400% = two periods of the 200%-wide gradient). */
@keyframes navLogoWordFlow {
  0% {
    background-position: 130% 0, 0% center;
  }
  62% {
    background-position: 130% 0, 248% center;
  }
  76% {
    background-position: -30% 0, 304% center;
  }
  100% {
    background-position: -30% 0, 400% center;
  }
}

/* Screen-reader-only company subtitle (Morse morph must not replace meaning). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Logo subtitle Morse → plaintext morph (driven by csmbac-nav.js). */
nav a.logo .logo-copy .logo-sub.logo-sub--anim {
  display: block;
  box-sizing: border-box;
  height: 7px;
  min-height: 7px;
  line-height: 7px;
  font-size: 0.46rem;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

nav a.logo .logo-copy .logo-sub.logo-sub--morse {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, 'Courier New', monospace;
  letter-spacing: 0.02em;
  text-transform: none;
}

@media (max-width: 900px) {
  body > nav:has(.nav-cluster) > .logo {
    max-width: min(38vw, 10.5rem);
  }

  .nav-tagline {
    font-size: clamp(0.52rem, 2.2vw, 0.68rem);
    line-height: 1.18;
  }

  .nav-tagline__line {
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  body > nav:has(.nav-cluster) > .logo {
    max-width: min(34vw, 8.75rem);
  }

  .nav-tagline {
    font-size: clamp(0.48rem, 2.05vw, 0.6rem);
  }
}

/*
 * Collision-proof tagline: brand and MENU own the first row; the tagline owns
 * the second and aligns to the brand's left edge. The full hidden typewriter
 * copy reserves both width and height, so typing cannot shift or clip the nav.
 */
body > nav:has(.nav-cluster) {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'brand menu'
    'tagline tagline';
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
  row-gap: 0.2rem;
}

body > nav:has(.nav-cluster) > .logo {
  grid-area: brand;
  grid-column: auto;
  justify-self: start;
}

body > nav:has(.nav-cluster) > .nav-cluster {
  grid-area: tagline;
  grid-column: auto;
  justify-self: start;
  align-items: flex-start;
  width: min(100%, 42rem);
  max-width: 100%;
}

body > nav:has(.nav-cluster) > .hamburger {
  grid-area: menu;
  grid-column: auto;
  justify-self: end;
}

.nav-tagline {
  width: max-content;
  min-height: 2.4em;
  margin-inline: 0;
}

/*
 * Fixed header height token — two-row brand + tagline nav.
 * Fallbacks cover measured heights until csmbac-nav.js ResizeObserver
 * writes the live value on <html>. Used by #site-carousel clearance and
 * currency-switcher offset.
 */
:root {
  --nav-height: 7rem; /* ~112px desktop (≥901px) */
}

@media (max-width: 900px) {
  :root {
    --nav-height: 6.75rem; /* ~108px tablet — tagline row + constrained logo */
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 5.75rem; /* ~92px mobile — 36px logo, tighter padding */
  }
}

body:has(> nav .nav-cluster) .currency-switcher {
  top: calc(var(--nav-height) + 0.5rem);
}

@media (max-width: 768px) {
  body:has(> nav .nav-cluster) .currency-switcher {
    top: calc(var(--nav-height) + 0.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body > nav {
    transition: none;
  }

  body > nav.nav-scroll-faded {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-tagline {
    animation: none;
  }

  .nav-tagline__line {
    animation: none;
    background: none;
    color: #c0c0c8;
    -webkit-text-fill-color: #c0c0c8;
  }

  .nav-tagline__line.is-typing::after {
    animation: none;
    display: none;
  }

  .hero-h1-emphasis {
    animation: none;
    background: none;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
  }

  /* Empty slot stays a quiet glass bar — no shimmer pulse. */
  .hero-h1-emphasis:empty,
  .hero-h1-emphasis.is-empty {
    animation: none;
    background-color: rgba(15, 23, 42, 0.32);
    background-image: linear-gradient(
      90deg,
      rgba(56, 189, 248, 0.14),
      rgba(52, 211, 153, 0.18)
    );
    background-size: 100% 100%;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.26);
  }

  .hero-h1-emphasis.is-typing::after {
    animation: none;
    display: none;
  }

  header.hero {
    perspective: none;
  }

  header.hero > p.hero-year {
    animation: none;
    transform: none;
  }

  html:has(meta[name='csmbac-page-ref'][content='csmbac-website:index']) header.hero > p.hero-year {
    animation: none;
    opacity: 1;
    transform: none;
    text-shadow: none;
  }

  .logo.nav-brand-bulging {
    animation: none;
  }

  /* Static gradient, no shimmer sweep, no entry motion (opacity forced to 1
     because the homepage starts the wordmark at opacity: 0). */
  nav a.logo .logo-copy .logo-word {
    animation: none;
    opacity: 1;
    transform: none;
    background-image: linear-gradient(90deg, #818cf8, #c084fc, #f472b6, #fb923c, #34d399, #38bdf8, #818cf8);
    background-size: 200% auto;
    background-position: 0% center;
  }

  nav a.logo .logo-copy .logo-sub.logo-sub--morse {
    font-family: inherit;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

.nav-links a.nav-globe,
.mobile-menu a.nav-globe {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.nav-globe-icon {
  display: block;
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.92;
  vertical-align: middle;
}

.nav-globe-label {
  letter-spacing: 0.03em;
  line-height: 1;
}

.nav-more {
  position: relative;
  list-style: none;
}

.nav-more__btn {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted, #a1a1aa);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.nav-more__btn:hover,
.nav-more__btn:focus-visible,
.nav-more.is-open > .nav-more__btn {
  color: var(--text-main, #ededed);
  outline: none;
}

.nav-more__btn::after {
  content: '';
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  margin-left: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.1em);
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.nav-more.is-open > .nav-more__btn::after {
  transform: rotate(225deg) translateY(-0.05em);
}

.nav-more__panel {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 14rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: rgba(8, 8, 10, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-more.is-open > .nav-more__panel,
.nav-more__panel:not([hidden]) {
  display: flex;
}

/* Legacy desktop More flyout (unused while .nav-links is display:none). */
@media (min-width: 901px) {
  .nav-links .nav-more__panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 60;
  }

  .nav-links .nav-more__panel a {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    color: var(--text-muted, #a1a1aa);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-links .nav-more__panel a:is(:link, :visited) {
    color: var(--text-muted, #a1a1aa);
  }

  .nav-links .nav-more__panel a:hover,
  .nav-links .nav-more__panel a:focus-visible {
    color: var(--text-main, #ededed);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
  }
}

/* Mobile drawer: accordion under primary market links */
.mobile-menu .nav-more--mobile {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.mobile-menu .nav-more__btn {
  font-size: clamp(1.15rem, 5vw, 1.85rem);
  font-weight: 700;
  font-family: var(--font-sans, 'IBM Plex Sans', system-ui, -apple-system, sans-serif);
  letter-spacing: -0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.55rem 0;
  width: 100%;
  text-align: left;
}

.mobile-menu .nav-more.is-open > .nav-more__btn {
  color: #fff;
}

.mobile-menu .nav-more__panel {
  position: static;
  min-width: 0;
  width: 100%;
  margin: 0.25rem 0 0.5rem;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border: none;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  gap: 0;
}

.mobile-menu .nav-more__panel a {
  display: block;
  font-size: clamp(1.05rem, 4.5vw, 1.55rem);
  font-weight: 600;
  font-family: var(--font-sans, 'IBM Plex Sans', system-ui, -apple-system, sans-serif);
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  letter-spacing: -0.02em;
  padding: 0.45rem 0;
  opacity: 1;
  transform: none;
}

.mobile-menu .nav-more__panel a:is(:link, :visited) {
  color: rgba(255, 255, 255, 0.68);
}

.mobile-menu .nav-more__panel a:hover,
.mobile-menu .nav-more__panel a:focus-visible {
  color: #fff;
}

/* Mobile More-panel Contact/WhatsApp pill — sticky-WA glass language (not fixed). */
.mobile-menu .nav-more__panel a.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.75rem;
  padding: 0.7rem 1.05rem 0.7rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.42);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.9rem;
  font-family: var(--font-sans, 'IBM Plex Sans', system-ui, -apple-system, sans-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  color: #fff !important;
  overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s;
}

.mobile-menu .nav-more__panel a.mobile-cta:is(:link, :visited, :hover, :active, :focus-visible) {
  color: #fff !important;
  text-decoration: none;
}

.mobile-menu .nav-more__panel a.mobile-cta:hover,
.mobile-menu .nav-more__panel a.mobile-cta:focus-visible {
  background: rgba(37, 211, 102, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.mobile-menu .nav-more__panel a.mobile-cta > * {
  position: relative;
  z-index: 1;
}

.mobile-menu .nav-more__panel a.mobile-cta svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.mobile-menu .nav-more__panel a.mobile-cta .mobile-cta__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.mobile-menu .nav-more__panel a.mobile-cta .mobile-cta__logo {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}

.mobile-menu .nav-more__panel a.mobile-cta .mobile-cta__label {
  white-space: nowrap;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .nav-more__btn::after {
    transition: none;
  }
}

/* Sitewide .hero-eyebrow entrance — spin in + soft bounce settle on load.
   csmbac-nav.css is loaded on every page (homepage + silo / package /
   guides / legal / sales-agents), so this covers all .hero-eyebrow labels.
   Scoped to header.hero (specificity beats the homepage inline .hero-eyebrow
   heroIn rule). Transform/opacity only — no reflow, no CLS. */
@keyframes heroEyebrowSpinBounce {
  0% {
    opacity: 0;
    transform: rotate(-180deg) scale(0.35);
  }
  55% {
    opacity: 1;
    transform: rotate(10deg) scale(1.08);
  }
  72% {
    transform: rotate(-5deg) scale(0.97);
  }
  86% {
    transform: rotate(2deg) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes heroEyebrowFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

header.hero .hero-eyebrow {
  transform-origin: center;
  animation: heroEyebrowSpinBounce 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  header.hero .hero-eyebrow {
    animation: heroEyebrowFadeIn 0.4s ease both;
    transform: none;
  }
}

/* Sticky contact FAB styles live in assets/sticky-contact.css (sitewide SSOT). */

/* Market CTA gentle breathe — transform + box-shadow only (qrCtaBreathe feel). */
.btn-market-cta,
a.btn-market-cta:is(:link, :visited) {
  transform-origin: 50% 50%;
  will-change: transform;
  animation: marketCtaBreathe 3.4s ease-in-out infinite;
}
.btn-market-cta:is(:hover, :focus-visible),
a.btn-market-cta:is(:link, :visited):hover,
a.btn-market-cta:is(:link, :visited):focus-visible {
  animation: none;
}
@keyframes marketCtaBreathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  50% {
    transform: scale(1.03);
    box-shadow:
      0 7px 20px rgba(52, 211, 153, 0.28),
      0 0 16px rgba(56, 189, 248, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-market-cta,
  a.btn-market-cta:is(:link, :visited, :hover, :active, :focus-visible) {
    animation: none;
  }
}
