/* Client Marquee — section chrome (scoped) */
.cm-section {
  position: relative;
  background: var(--cm-bg);
  color: var(--cm-text);
  padding: var(--cm-pad-y) 0;
  overflow-x: clip;
  isolation: isolate;
}

/* When embedded next to another cm-section, kill double padding */
.cm-section + .cm-section {
  padding-top: 0;
}

.cm-section[data-primary-lang="ar"] {
  font-family: var(--cm-font-ar);
}

.cm-section[data-primary-lang="en"] {
  font-family: var(--cm-font-en);
}

.cm-head {
  max-width: min(92vw, 760px);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cm-eyebrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  width: 100%;
}

.cm-eyebrow-ar {
  font-family: var(--cm-font-ar);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
  color: var(--cm-brass-bright);
  margin: 0;
  text-align: center;
  letter-spacing: 0;
}

.cm-eyebrow-en {
  margin: 0;
  font-family: var(--cm-font-en);
  font-size: clamp(0.66rem, 0.62rem + 0.2vw, 0.78rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cm-text-dim);
  text-align: center;
}

.cm-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 10px 0 0;
  /* Match Vision / Projects section titles */
  font-size: clamp(1.45rem, 1.05rem + 1.9vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: center;
  color: var(--cm-text);
}

.cm-title .ar {
  display: block;
  width: 100%;
  font-family: var(--cm-font-ar);
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.35;
}

.cm-title .en {
  display: block;
  width: 100%;
  font-family: var(--cm-font-en);
  font-weight: 600;
  text-align: center;
}

/* Host page language toggle — mirror site rules when embedded */
html[lang="ar"] .cm-section .en,
html[lang="ar"] .cm-section .cm-eyebrow-en { display: none !important; }
html[lang="en"] .cm-section .ar,
html[lang="en"] .cm-section .cm-eyebrow-ar { display: none !important; }

.cm-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px auto 28px;
  flex-wrap: wrap;
}

.cm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #0b0b0c;
  font-family: var(--cm-font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--cm-brass-bright), var(--cm-brass));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cm-pill .ar {
  font-family: var(--cm-font-ar);
  letter-spacing: 0;
  font-size: 0.85rem;
}

.cm-pause {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cm-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cm-pause:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.cm-pause:focus-visible {
  outline: 2px solid var(--cm-brass-bright);
  outline-offset: 3px;
}

.cm-pause svg { width: 16px; height: 16px; display: block; }
.cm-pause[aria-pressed="true"] .cm-ico-pause { display: none; }
.cm-pause[aria-pressed="false"] .cm-ico-play { display: none; }
.cm-pause[aria-pressed="true"] .cm-ico-play { display: block; }
.cm-pause[aria-pressed="false"] .cm-ico-pause { display: block; }

/* No-JS fallback */
.cm-fallback {
  display: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.cm-section.cm-no-js .cm-wall { display: none; }
.cm-section.cm-no-js .cm-fallback { display: grid; }
.cm-section.cm-no-js .cm-toolbar { display: none; }
