/* Ported from azimai BrandsMarquee.module.css and its frost tokens. */
/* Noib visual direction: shared public chrome, with the detailed home styling
   in BusinessJourney.module.css. Product content and routes stay in their owners. */
.company-ribbon {
  --jx-base: #f5f5f7;
  --jx-text: #1d1d1f;
  --jx-text-sec: #6e6e76;
  --saas-muted: #6e6e76;
  --saas-heading-muted: #85858d;
  --saas-line: #e1e2e7;
  --saas-panel: #ececf0;
  --saas-cta-bg: #1d1d1f;
  --saas-cta-ink: #fff;
  --saas-cta-hover: #37373c;
  --frost-tint: rgba(255,255,255,.30);
  --frost-edge: rgba(255,255,255,.6);
  --frost-highlight: rgba(255,255,255,.55);
  --frost-shade: rgba(27,31,38,.06);
  --frost-sheen: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.015) 45%, rgba(255,255,255,.07));
  --frost-blur: 3.5px;
  --frost-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.025' filter='url(%23n)'/%3E%3C/svg%3E");
  --frost-bg: var(--frost-grain), var(--frost-sheen), var(--frost-tint);
  --frost-shadow: inset 0 1px 0 var(--frost-highlight), inset 0 -1px 0 var(--frost-shade), 0 14px 42px rgba(11,13,17,.055);
}
html[data-theme="dark"] .company-ribbon {
  --jx-base: #0d0f12;
  --jx-text: #f3f3f5;
  --jx-text-sec: #a1a3ad;
  --saas-muted: #a1a3ad;
  --saas-heading-muted: #8c8f9b;
  --saas-surface: #17191e;
  --saas-panel: #1e2127;
  --saas-line: #2c3038;
  --saas-cta-bg: #f0f1f5;
  --saas-cta-ink: #15171c;
  --saas-cta-hover: #d9dce5;
  --frost-tint: rgba(24,28,35,.32);
  --frost-edge: rgba(220,225,235,.18);
  --frost-highlight: rgba(245,248,255,.19);
  --frost-shade: rgba(0,0,0,.2);
  --frost-sheen: linear-gradient(135deg, rgba(230,236,248,.07), rgba(230,236,248,.005) 45%, rgba(230,236,248,.025));
}

html[data-theme="light"] .company-ribbon {
  --jx-base: #f2f3f5;
  --jx-text: #20232b;
  --jx-text-sec: #505967;
  --saas-muted: #505967;
  --saas-heading-muted: #505967;
  --saas-green-ink: #416b57;
  --saas-line: #d8dde4;
  --saas-panel: #e8ebef;
  --saas-button-bg: #20232b;
  --saas-cta-bg: #20232b;
  --saas-cta-hover: #343c48;
  --frost-tint: rgba(255,255,255,.58);
  --frost-edge: #d8dde4;
  --frost-highlight: rgba(255,255,255,.85);
  --frost-blur: 7px;
  --frost-shadow: inset 0 1px 0 var(--frost-highlight), inset 0 -1px 0 var(--frost-shade), 0 12px 30px rgba(20,35,50,.05);
}
.company-ribbon { --ribbon-gap: 36px; --ribbon-slot: 180px; margin-bottom: 0; scroll-margin-top: 130px; }
.brand-marquee { position: relative; overflow: hidden; padding: 26px 0 32px; border: 1px solid var(--saas-line, #d8dbe3); border-radius: 28px; background: var(--saas-panel, #e7eaf0); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .company-ribbon .brand-marquee { background: var(--frost-bg); border-color: var(--frost-edge); -webkit-backdrop-filter: blur(var(--frost-blur)); backdrop-filter: blur(var(--frost-blur)); box-shadow: var(--frost-shadow); }
}
.brand-motion { display: none; margin: 14px auto 0; padding: 10px 14px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--jx-muted); cursor: pointer; }
.brand-motion:focus-visible { outline: 2px solid var(--jx-accent); outline-offset: 3px; border-radius: 8px; }
.brand-rows { display: flex; flex-direction: column; gap: 22px; }
.brand-lane { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; touch-action: auto; overscroll-behavior-x: contain; }
.brand-lane::-webkit-scrollbar { display: none; }
.brand-track { display: flex; width: max-content; }
.brand-run { display: flex; flex: none; width: max-content; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: var(--ribbon-gap); list-style: none; margin: 0; padding: 0 var(--ribbon-gap) 0 0; }
.brand-clone { display: none; }
/* Use a definite width: WebKit can omit flex-basis from a max-content parent's
   intrinsic size, placing the duplicate group over the final company. */
.brand-tile { --max-logo-height: 54px; position: relative; display: flex; flex: none; width: var(--ribbon-slot); flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 92px; }
/* Center each complete logo + caption group by visible content, not by its label baseline. */
.brand-tile-named { padding-top: var(--caption-balance); }
.brand-tile-named .brand-mark { height: calc(min(var(--logo-height), var(--max-logo-height)) * var(--logo-visible-height)); flex-shrink: 0; }
.brand-tile-named .brand-logo { transform: translateY(var(--logo-center-shift)); }
.brand-mark { width: 174px; height: 58px; display: flex; align-items: center; justify-content: center; }
.brand-logo { display: block; width: auto; max-width: 148px; max-height: 54px; object-fit: contain; filter: brightness(0); opacity: .8; }
.brand-wordmark .brand-logo { max-width: 138px; filter: grayscale(1); }
.brand-caption { font-size: 14px; line-height: 1.3; font-weight: 550; color: var(--jx-text); white-space: nowrap; }
html[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); opacity: .85; }
html[data-theme="dark"] .brand-wordmark .brand-logo { filter: grayscale(1) invert(1); }

/* One native scrolling surface handles autoplay, dragging and touch momentum. */
[data-ribbon-ready] .brand-lane { cursor: grab; user-select: none; -webkit-user-select: none; }
[data-ribbon-ready] .brand-lane::-webkit-scrollbar { display: none; }
[data-ribbon-ready] .brand-lane:focus-visible { outline: 2px solid var(--jx-accent); outline-offset: -3px; border-radius: 8px; }
.brand-lane[data-dragging] { cursor: grabbing; }
.brand-motion [data-ribbon-play-label] { display: none; }
[data-ribbon-paused="true"] .brand-motion [data-ribbon-pause-label] { display: none; }
[data-ribbon-paused="true"] .brand-motion [data-ribbon-play-label] { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  [data-ribbon-ready] .brand-motion { display: block; }
  [data-ribbon-ready] .brand-clone { display: flex; }
  [data-ribbon-ready] .brand-lane { mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
}

@media (max-width: 600px) {
  .company-ribbon { --ribbon-gap: 28px; --ribbon-slot: 156px; }
  .brand-marquee { border-radius: 22px; padding: 16px 0 24px; }
  .brand-rows { gap: 18px; }
  .brand-tile { --max-logo-height: 48px; height: 86px; }
  .brand-mark { width: 138px; height: 52px; }
  .brand-logo { max-width: 120px; max-height: 48px; }
  .brand-wordmark .brand-logo { max-width: 114px; }
  .brand-caption { font-size: 13px; }
}
@media print {
  .company-ribbon .brand-motion, .company-ribbon .brand-clone { display: none !important; }
  .company-ribbon .brand-lane { mask-image: none !important; }
  .company-ribbon .brand-track { width: 100% !important; animation: none !important; transform: none !important; }
  .company-ribbon .brand-run { flex-wrap: wrap !important; justify-content: center !important; padding: 0 24px !important; }
}

.brand-china-house { width: 148px; gap: 7px; color: var(--jx-text); opacity: .85; }
.brand-china-house .brand-logo { width: 28px; height: 28px !important; flex: none; opacity: 1; }
.brand-china-wordmark { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.brand-china-wordmark b { font-size: 13px; font-weight: 800; letter-spacing: -.25px; line-height: 1; }
.brand-china-wordmark small { font-size: 5.9px; letter-spacing: 1.4px; line-height: 1; }
@media(max-width:600px) { .brand-china-house { transform: scale(.85); } }

.company-ribbon { --jx-muted: var(--muted); --jx-accent: var(--accent); }
.brand-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
