/* ================================================ */
/* CBM-STYLES.CSS — CrossBorder Marketing          */
/* All cinematic styles in one clean file          */
/* ================================================ */


/* ========================= */
/* CUSTOM CURSOR              */
/* ========================= */

*, *::before, *::after { cursor: none !important; }

.cbm-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(244,181,54,0.92);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease;
}

.cbm-cursor.is-hovering {
  width: 34px; height: 34px;
  background: rgba(178,116,9,0.12);
  border: 1px solid rgba(178,116,9,0.55);
}

.cbm-cursor-trail {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(178,116,9,0.25);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  opacity: 0.6;
}

#cbmParticleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

/* ========================= */
/* SCROLL PROGRESS BAR        */
/* ========================= */

.cbm-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #b27409, #fce1c8, #b27409);
  z-index: 9997;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(178,116,9,0.6);
}

/* ========================= */
/* HEADER — FIXED + GLASS     */
/* ========================= */

.cbm-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 42px 7.5% 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    padding 0.5s cubic-bezier(0.16,1,0.3,1),
    background 0.5s ease,
    border-color 0.5s ease;
}

.cbm-header.is-scrolled {
  padding: 18px 7.5% !important;
  background: rgba(13,11,8,0.78) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  border-bottom: 1px solid rgba(178,116,9,0.14) !important;
  box-shadow: 0 4px 40px rgba(0,0,0,0.35);
}

/* ========================= */
/* SCROLL REVEAL SYSTEM       */
/* ========================= */

.cbm-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.cbm-reveal.is-visible { opacity: 1; transform: translateY(0); }

.cbm-reveal[data-delay="0"] { transition-delay: 0.05s; }
.cbm-reveal[data-delay="1"] { transition-delay: 0.15s; }
.cbm-reveal[data-delay="2"] { transition-delay: 0.25s; }
.cbm-reveal[data-delay="3"] { transition-delay: 0.35s; }
.cbm-reveal[data-delay="4"] { transition-delay: 0.45s; }
.cbm-reveal[data-delay="5"] { transition-delay: 0.55s; }
.cbm-reveal[data-delay="6"] { transition-delay: 0.65s; }
.cbm-reveal[data-delay="7"] { transition-delay: 0.75s; }
.cbm-reveal[data-delay="8"] { transition-delay: 0.88s; }

.cbm-scroll-reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.cbm-scroll-reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ========================= */
/* HERO ENHANCEMENTS          */
/* ========================= */

.cbm-hero-content {
  padding-top: 120px !important;
  min-height: calc(100vh - 100px);
  margin-top: 0 !important;
}

/* Ensure hero section itself is never collapsed */
.cbm-hero {
  min-height: 100vh !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Globe canvas must always be visible */
#cbmGlobeCanvas {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.cbm-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(252,225,200,0.7);
  margin-bottom: 28px;
  font-weight: 500;
}

.cbm-eyebrow-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(178,116,9,0.9);
  box-shadow: 0 0 10px rgba(178,116,9,0.7);
  animation: cbmDotPulse 2.4s ease-in-out infinite;
}
.cbm-eyebrow-dot:last-child { animation-delay: 1.2s; }

@keyframes cbmDotPulse {
  0%,100% { opacity:0.4; transform:scale(1); }
  50%      { opacity:1;   transform:scale(1.4); }
}

.cbm-hero-content h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #f4b536 0%, #fce1c8 50%, #b27409 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cbm-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
}

.cbm-scroll-line {
  display: block;
  width: 1px; height: 60px;
  background: linear-gradient(180deg, rgba(178,116,9,0.8), transparent);
  animation: cbmScrollDrop 2s ease-in-out infinite;
}

.cbm-scroll-label {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

@keyframes cbmScrollDrop {
  0%   { opacity:0; transform:scaleY(0); transform-origin:top; }
  40%  { opacity:1; transform:scaleY(1); transform-origin:top; }
  80%  { opacity:0.2; transform:scaleY(1); transform-origin:bottom; }
  100% { opacity:0; transform:scaleY(0); transform-origin:bottom; }
}

/* ========================= */
/* SECTION LABELS             */
/* ========================= */

.cbm-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(178,116,9,0.9);
  font-weight: 600;
  margin-bottom: 20px;
}
.cbm-section-label::before {
  content: "";
  display: block;
  width: 28px; height: 1px;
  background: rgba(178,116,9,0.7);
}

.cbm-gradient-text {
  background: linear-gradient(135deg, #f4b536 0%, #fce1c8 55%, #b27409 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================= */
/* BENTO GRID — SERVICES      */
/* ========================= */

.cbm-bento-grid {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  perspective: 1200px;
}

.cbm-bento-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cbm-bento-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.08s ease-out, box-shadow 0.4s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  will-change: transform;
  cursor: pointer;
}

.cbm-bento-hero { min-height: 680px; }
.cbm-bento-sm   { flex: 1; min-height: 200px; }

.cbm-bento-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), filter 0.5s ease;
  transform: scale(1.05);
  filter: brightness(0.55) saturate(0.88);
}
.cbm-bento-card:hover .cbm-bento-img {
  transform: scale(1.12);
  filter: brightness(0.72) saturate(1.05);
}

.cbm-bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 40%, rgba(13,8,2,0.88) 100%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.cbm-card-shine {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(252,225,200,0.07) 50%, transparent 70%);
  opacity: 0;
  transform: translateX(-100%);
}
.cbm-bento-card:hover .cbm-card-shine {
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.85s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
}

.cbm-bento-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}
.cbm-bento-hero .cbm-bento-content { padding: 48px; }

.cbm-bento-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(178,116,9,0.18);
  border: 1px solid rgba(178,116,9,0.45);
  color: rgba(252,225,200,0.9);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, transform 0.3s ease;
}
.cbm-bento-card:hover .cbm-bento-number {
  background: rgba(178,116,9,0.35);
  transform: scale(1.08);
}

.cbm-bento-text h3 {
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  color: #f4f1ff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
.cbm-bento-sm .cbm-bento-text h3 {
  font-size: clamp(20px, 1.8vw, 28px);
  margin-bottom: 8px;
}

.cbm-bento-text p {
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-bottom: 22px;
  max-width: 380px;
}
.cbm-bento-sm .cbm-bento-text p { font-size: 13px; margin-bottom: 14px; }

.cbm-bento-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(252,225,200,0.85);
  text-decoration: none;
  text-transform: uppercase;
  transition: gap 0.3s ease, color 0.3s ease;
}
.cbm-bento-link:hover { color: #f4b536; gap: 16px; }
.cbm-bento-arrow { display: inline-block; transition: transform 0.3s ease; }
.cbm-bento-link:hover .cbm-bento-arrow { transform: translateX(4px); }

/* 3D scroll entrance */
.cbm-3d-card {
  opacity: 0;
  transform: translateY(60px) translateZ(-80px) scale(0.95);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
}
.cbm-3d-card[data-stagger="0"] { transition-delay: 0s; }
.cbm-3d-card[data-stagger="1"] { transition-delay: 0.12s; }
.cbm-3d-card[data-stagger="2"] { transition-delay: 0.24s; }
.cbm-3d-card[data-stagger="3"] { transition-delay: 0.36s; }
.cbm-3d-card.is-visible { opacity: 1; transform: translateY(0) translateZ(0) scale(1); }

/* ========================= */
/* IMAGE REEL — MASTER        */
/* ========================= */

/* #cbmImageStrip stays in DOM for script.js — hidden visually only */
#cbmImageStrip, .cbm-image-strip { visibility: hidden; height: 0; overflow: hidden; margin: 0; padding: 0; }
/* Other old reel variants fully removed */
.cbm-cinematic-reel, .cbm-split-reel, .cbm-slide-reel { display: none !important; }

.cbm-reel-master {
  position: relative;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto 90px;
  height: 540px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.65), 0 0 0 1px rgba(178,116,9,0.1);
}

.cbm-reel-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.18, 1);
}

.cbm-reel-item {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cbm-reel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transform: scale(1.0);
  transition: transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.cbm-reel-item.is-active .cbm-reel-bg {
  transform: scale(1.04) translate(0.5%, 0.3%);
}

.cbm-reel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.0) 40%, rgba(13,8,2,0.68) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.22) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.16) 100%);
}

.cbm-reel-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 48px 56px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s 0.55s ease, transform 0.65s 0.55s ease;
}
.cbm-reel-item.is-active .cbm-reel-content { opacity: 1; transform: translateY(0); }

.cbm-reel-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(252,225,200,0.6);
  font-weight: 700;
  margin-bottom: 10px;
}
.cbm-reel-tag::before {
  content: "";
  display: block;
  width: 20px; height: 1px;
  background: rgba(178,116,9,0.8);
}

.cbm-reel-title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  color: #f4f1ff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
}

.cbm-reel-inds {
  position: absolute;
  bottom: 32px; right: 52px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cbm-reel-ind {
  width: 18px; height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  transition: background 0.4s ease, width 0.4s ease;
  cursor: pointer;
}
.cbm-reel-ind.is-active {
  width: 34px;
  background: rgba(178,116,9,0.85);
  box-shadow: 0 0 8px rgba(178,116,9,0.5);
}

/* ========================= */
/* BRANDS — MARQUEE           */
/* ========================= */

.cbm-logo-grid, .cbm-brand-logo {
  display: none !important;
}

.cbm-brands-marquee-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  overflow: hidden;
  padding: 20px 0 60px;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, transparent 100%);
}

.cbm-brands-row {
  display: flex;
  width: max-content;
  will-change: transform;
}
.cbm-brands-row + .cbm-brands-row { margin-top: 28px; }

.cbm-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 38px;
  margin: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
  cursor: default;
  transition: background 0.4s ease, border-color 0.4s ease,
              transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
  backdrop-filter: blur(4px);
}
.cbm-brand-pill:hover {
  background: rgba(178,116,9,0.1);
  border-color: rgba(178,116,9,0.35);
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 28px rgba(178,116,9,0.12);
}

.cbm-pill-logo {
  color: rgba(245,247,250,0.72);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.cbm-brand-pill:hover .cbm-pill-logo {
  color: rgba(252,225,200,0.95);
  text-shadow: 0 0 20px rgba(178,116,9,0.45), 0 0 32px rgba(252,225,200,0.2);
}

.cbm-pill-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(178,116,9,0.45);
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.cbm-brand-pill:hover .cbm-pill-dot {
  background: rgba(178,116,9,0.9);
  box-shadow: 0 0 8px rgba(178,116,9,0.7);
}

.cbm-brands-marquee-wrap:hover .cbm-brands-row {
  animation-play-state: paused;
}

/* Brands stats */
.cbm-brands-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.cbm-brands-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.cbm-brands-stat.is-visible { opacity: 1; transform: translateY(0); }
.cbm-brands-stat strong {
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #f4b536, #fce1c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.cbm-brands-stat span {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.cbm-brands-stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ========================= */
/* FOOTER INTERACTIVITY       */
/* ========================= */

.cbm-footer-cta {
  position: relative;
  overflow: hidden;
}

.cbm-footer-glow {
  position: absolute;
  width: 500px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178,116,9,0.12) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  filter: blur(2px);
}
.cbm-footer-cta:hover .cbm-footer-glow { opacity: 1; }

.cbm-footer-char {
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}
.cbm-footer-char.is-lit {
  color: #f4b536;
  transform: translateY(-3px);
  text-shadow: 0 0 20px rgba(178,116,9,0.6), 0 0 40px rgba(252,225,200,0.2);
}

.cbm-footer-btn {
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease, color 0.35s ease !important;
}

.cbm-footer-connector:hover .cbm-connector-line {
  box-shadow: 0 0 24px rgba(255,255,255,0.22), 0 0 38px rgba(244,181,54,0.35), 0 0 48px rgba(252,225,200,0.25);
  opacity: 1 !important;
}

.cbm-footer-map { transition: transform 0.1s linear; will-change: transform; }

/* ========================= */
/* RESPONSIVE                 */
/* ========================= */

@media (max-width: 980px) {
  .cbm-bento-grid { grid-template-columns: 1fr; }
  .cbm-bento-hero { min-height: 480px; }
  .cbm-bento-sm   { min-height: 220px; }
  .cbm-bento-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .cbm-reel-master { height: 380px; }
  .cbm-reel-content { padding: 32px 32px; }
}

@media (max-width: 640px) {
  .cbm-bento-grid { width: calc(100% - 28px); gap: 14px; }
  .cbm-bento-hero { min-height: 380px; }
  .cbm-bento-stack { grid-template-columns: 1fr; gap: 14px; }
  .cbm-bento-sm   { min-height: 200px; }
  .cbm-bento-content { padding: 24px; }
  .cbm-bento-hero .cbm-bento-content { padding: 28px; }
  .cbm-cursor, .cbm-cursor-trail { display: none; }
  *, *::before, *::after { cursor: auto !important; }
  .cbm-brands-stat-divider { display: none; }
  .cbm-brands-stat-row { gap: 28px; }
}

@media (max-width: 480px) {
  .cbm-reel-master { width: calc(100% - 20px); height: 260px; border-radius: 16px; margin-bottom: 60px; }
  .cbm-reel-content { padding: 22px 24px; }
  .cbm-brand-pill { padding: 14px 24px; }
  .cbm-pill-logo  { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .cbm-reveal, .cbm-scroll-reveal, .cbm-3d-card { transition: opacity 0.3s ease; transform: none !important; }
  .cbm-cursor, .cbm-cursor-trail, .cbm-scroll-line { display: none; }
  *, *::before, *::after { cursor: auto !important; }
}


/* ========================= */
/* 3-PANEL REEL — NEW STYLES  */
/* ========================= */

.cbm-reel-panel--left,
.cbm-reel-panel--right {
  cursor: pointer !important;
}

.cbm-reel-tag {
  font-size: 10px !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: rgba(252,225,200,0.6) !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.cbm-reel-tag::before {
  content: "" !important;
  display: block !important;
  width: 20px !important; height: 1px !important;
  background: rgba(178,116,9,0.8) !important;
}

.cbm-reel-title {
  font-size: clamp(20px, 2.2vw, 30px) !important;
  font-weight: 800 !important;
  color: #f4f1ff !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55) !important;
}

.cbm-footer-char {
  display: inline-block !important;
  transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease !important;
}
