/* =====================================================
   CR Sprint 5 — Next-level animation + composition layer
   Extends sprint4. Load AFTER cr-sprint4.css.
   ===================================================== */

/* ---------- Scroll progress bar ---------- */
.cr-scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1100;
  height: 3px; width: 100%;
  background: transparent; pointer-events: none;
}
.cr-scroll-progress::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--cr-sp, 0%);
  background: linear-gradient(90deg, var(--magenta), var(--accent-peach), var(--accent-orange));
  box-shadow: 0 0 20px var(--magenta-glow);
  transition: width .1s linear;
}

/* ---------- Custom magnetic cursor ---------- */
.cr-cursor, .cr-cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
  opacity: 0; transition: opacity .3s;
}
body.cr-cursor-ready .cr-cursor, body.cr-cursor-ready .cr-cursor-dot { opacity: 1; }
.cr-cursor {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.85);
  transition: opacity .3s, transform .2s cubic-bezier(.2,.6,.2,1), width .3s, height .3s, background-color .3s;
  transform: translate(-50%,-50%);
}
.cr-cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  transition: opacity .3s, transform .06s linear, width .25s, height .25s;
  transform: translate(-50%,-50%);
}
.cr-cursor.is-hover { width: 70px; height: 70px; border-color: var(--accent-peach); background: rgba(233,30,99,0.15); }
.cr-cursor.is-hidden { opacity: 0 !important; }
.cr-cursor-dot.is-hidden { opacity: 0 !important; }
@media (pointer: coarse) { .cr-cursor, .cr-cursor-dot { display: none; } }

/* ---------- Video hero — multi-slide ---------- */
.cr-hero-multi {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.cr-hero-multi video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
  opacity: 0;
  transition: opacity 1.6s ease, transform 12s ease-out;
  transform: scale(1.05);
}
.cr-hero-multi video.is-active {
  opacity: 0.5;
  transform: scale(1.12);
}

/* ---------- Animated gradient mesh backdrop ---------- */
.cr-mesh-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  opacity: 0.8;
}
.cr-mesh-bg::before, .cr-mesh-bg::after {
  content: ""; position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%; filter: blur(80px);
  animation: crMeshFloat 18s ease-in-out infinite;
}
.cr-mesh-bg::before {
  top: -20%; left: -10%;
  background: radial-gradient(circle, rgba(233,30,99,0.45), transparent 65%);
}
.cr-mesh-bg::after {
  bottom: -25%; right: -15%;
  background: radial-gradient(circle, rgba(74,14,92,0.55), transparent 65%);
  animation-delay: -9s;
}
@keyframes crMeshFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(15%, 10%) scale(1.1); }
  66% { transform: translate(-10%, 15%) scale(0.95); }
}

/* ---------- SplitText words ---------- */
.cr-split-word {
  display: inline-block; overflow: hidden;
  vertical-align: bottom; line-height: 1.05;
}
.cr-split-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.cr-split-word.is-visible > span { transform: translateY(0); }
.cr-split-word + .cr-split-word { margin-left: 0.28em; }

/* ---------- Image marquee (dual speed) ---------- */
.cr-img-marquee {
  overflow: hidden; padding: 40px 0;
  background: #0a0a10; position: relative;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cr-img-marquee::before, .cr-img-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.cr-img-marquee::before { left: 0; background: linear-gradient(90deg, #0a0a10, transparent); }
.cr-img-marquee::after { right: 0; background: linear-gradient(-90deg, #0a0a10, transparent); }
.cr-img-track {
  display: flex; gap: 24px; width: max-content;
  animation: crImgMarquee 45s linear infinite;
  will-change: transform;
}
.cr-img-track.is-reverse { animation-direction: reverse; animation-duration: 55s; }
.cr-img-marquee:hover .cr-img-track { animation-play-state: paused; }
.cr-img-track .tile {
  flex: 0 0 auto;
  height: 240px; width: 340px;
  border-radius: 16px; overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.cr-img-track .tile:hover { transform: scale(1.03); }
.cr-img-track .tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.6,.2,1);
}
.cr-img-track .tile:hover img { transform: scale(1.08); }
.cr-img-track .tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7));
  pointer-events: none;
}
.cr-img-track .tile .caption {
  position: absolute; bottom: 16px; left: 18px; right: 18px;
  z-index: 2; color: #fff;
  font-family: "Anton", sans-serif; text-transform: uppercase;
  font-size: 1rem; letter-spacing: 0.05em;
}
@keyframes crImgMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Video-on-hover cards (sectors) ---------- */
.cr-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 50px;
}
@media (max-width: 900px) { .cr-sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cr-sector-grid { grid-template-columns: 1fr; } }
.cr-sector {
  position: relative;
  height: 380px;
  border-radius: 18px; overflow: hidden;
  cursor: default;
  isolation: isolate;
  background: #0f0f14;
  transition: transform .4s cubic-bezier(.2,.6,.2,1);
}
.cr-sector:hover { transform: translateY(-4px); }
.cr-sector__video,
.cr-sector__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1), opacity .5s;
  z-index: 1;
}
.cr-sector__video { opacity: 0; }
.cr-sector:hover .cr-sector__video { opacity: 1; }
.cr-sector:hover .cr-sector__img { opacity: 0.2; transform: scale(1.08); }
.cr-sector::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,16,0.85) 100%);
  pointer-events: none;
}
.cr-sector__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 26px; z-index: 3;
  color: #fff;
  transform: translateY(calc(100% - 96px));
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.cr-sector:hover .cr-sector__body { transform: translateY(0); }
.cr-sector__eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent-peach); margin-bottom: 10px;
}
.cr-sector__title {
  font-family: "Anton", sans-serif;
  font-size: 1.4rem; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1.1;
  font-weight: 400; margin-bottom: 10px;
}
.cr-sector__desc {
  font-size: 13.5px; line-height: 1.6;
  color: rgba(255,255,255,0.82);
  opacity: 0; transition: opacity .4s;
  max-height: 0; overflow: hidden;
}
.cr-sector:hover .cr-sector__desc {
  opacity: 1; max-height: 240px;
}

/* ---------- SVG wave divider — bulletproof CSS-bg approach v3 ---------- */
.cr-divider {
  --cr-wave-p1: 800px;   /* wave 1 period (px) — large slow wave */
  --cr-wave-p2: 800px;   /* wave 2 period (px) — same as wave 1, phase-shifted */
  --cr-wave-p3: 400px;   /* wave 3 period (px) — smaller faster wave */
  position: relative;
  display: block;
  width: 100%;
  height: clamp(80px, 12vw, 160px);
  margin-top: -1px;
  margin-bottom: -1px;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
  background: transparent;
}
@media (max-width: 768px) {
  .cr-divider {
    --cr-wave-p1: 600px;
    --cr-wave-p2: 600px;
    --cr-wave-p3: 300px;
  }
}
/* Hide the legacy inline <svg> */
.cr-divider > svg { display: none !important; }
/* All wave layers share these defaults */
.cr-divider::before,
.cr-divider::after,
.cr-divider .cr-wave-mid {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background-repeat: repeat-x;
  background-position-y: 100%;
  pointer-events: none;
  will-change: background-position;
  transform: translateZ(0);
}
/* Wave 1: large slow wave, 30% opacity */
.cr-divider::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'><path d='M0,80 Q360,40 720,80 Q1080,120 1440,80 L1440,160 L0,160 Z' fill='%23ffffff'/></svg>");
  background-size: var(--cr-wave-p1) 100%;
  opacity: 0.3;
  animation: crWaveScroll1 14s linear infinite;
}
/* Wave 2 (mid layer span): same period as wave 1, phase-shifted (valley first), 55% opacity, reverse direction */
.cr-divider .cr-wave-mid {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'><path d='M0,90 Q360,130 720,90 Q1080,50 1440,90 L1440,160 L0,160 Z' fill='%23ffffff'/></svg>");
  background-size: var(--cr-wave-p2) 100%;
  opacity: 0.55;
  animation: crWaveScroll2 10s linear infinite;
  animation-delay: -2s;
}
/* Wave 3: small fast wave, full opacity */
.cr-divider::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 160' preserveAspectRatio='none'><path d='M0,100 Q180,60 360,100 Q540,140 720,100 L720,160 L0,160 Z' fill='%23ffffff'/></svg>");
  background-size: var(--cr-wave-p3) 100%;
  animation: crWaveScroll3 7s linear infinite;
  animation-delay: -4s;
}
/* Each animation translates by EXACTLY one period (in absolute pixels).
   With background-repeat:repeat-x, this is a mathematically perfect seamless loop. */
@keyframes crWaveScroll1 {
  from { background-position-x: 0; }
  to   { background-position-x: calc(var(--cr-wave-p1) * -1); }
}
@keyframes crWaveScroll2 {
  from { background-position-x: 0; }
  to   { background-position-x: calc(var(--cr-wave-p2) * 1); }
}
@keyframes crWaveScroll3 {
  from { background-position-x: 0; }
  to   { background-position-x: calc(var(--cr-wave-p3) * -1); }
}
@media (prefers-reduced-motion: reduce) {
  .cr-divider::before,
  .cr-divider::after,
  .cr-divider .cr-wave-mid { animation: none !important; }
}

/* ---------- Sticky pin timeline ---------- */
.cr-pin-timeline {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px; align-items: flex-start;
  margin-top: 60px;
}
@media (max-width: 900px) { .cr-pin-timeline { grid-template-columns: 1fr; } }
.cr-pin-timeline__sticky {
  position: sticky; top: 100px;
  padding: 24px 0;
}
.cr-pin-timeline__visual {
  aspect-ratio: 4/5; border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-dark), var(--magenta));
  position: relative;
}
.cr-pin-timeline__visual video,
.cr-pin-timeline__visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s ease;
  position: absolute; inset: 0;
}
.cr-pin-timeline__steps {
  display: grid; gap: 16px;
}
.cr-pin-step {
  padding: 28px 30px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color .4s, background .4s, transform .4s;
  cursor: default;
}
.cr-pin-step.is-active {
  border-color: var(--magenta);
  background: linear-gradient(135deg, rgba(233,30,99,0.1), rgba(255,124,143,0.02));
  transform: translateX(6px);
}
.cr-pin-step__num {
  font-family: "Anton", sans-serif;
  font-size: 2.4rem; color: var(--accent-peach);
  line-height: 1; display: block; margin-bottom: 8px;
}
.cr-pin-step__title {
  font-family: "Anton", sans-serif;
  font-size: 1.4rem; text-transform: uppercase;
  color: #fff; font-weight: 400;
  margin-bottom: 10px; letter-spacing: 0.01em;
}
.cr-pin-step__body {
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

/* ---------- Testimonials carousel ---------- */
.cr-testi-rail {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 40px 0 20px;
  margin: 20px -48px 0;
  padding-left: 48px; padding-right: 48px;
  scrollbar-width: thin; scrollbar-color: var(--magenta) transparent;
}
.cr-testi-rail::-webkit-scrollbar { height: 6px; }
.cr-testi-rail::-webkit-scrollbar-thumb { background: var(--magenta); border-radius: 3px; }
.cr-testi {
  flex: 0 0 420px;
  scroll-snap-align: start;
  padding: 36px 34px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
@media (max-width: 600px) { .cr-testi { flex-basis: 85vw; } }
.cr-testi::before {
  content: "\201C"; position: absolute;
  top: 4px; left: 22px;
  font-family: "Anton", sans-serif;
  font-size: 5rem; color: var(--magenta); opacity: 0.35;
  line-height: 1;
}
.cr-testi__quote {
  font-size: 17px; line-height: 1.55;
  color: rgba(255,255,255,0.9);
  margin: 30px 0 28px;
}
.cr-testi__who {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
.cr-testi__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--accent-peach));
  display: grid; place-items: center;
  color: #fff; font-family: "Anton", sans-serif;
  font-size: 1.2rem; flex: 0 0 52px;
}
.cr-testi__meta { font-size: 13.5px; line-height: 1.4; }
.cr-testi__name { color: #fff; font-weight: 700; }
.cr-testi__role { color: rgba(255,255,255,0.65); }

/* ---------- Glass contact card (upgrade) ---------- */
.cr-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)) !important;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.18) !important;
}

/* ---------- Pulsing location pin on map overlay ---------- */
.cr-map-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 6px rgba(233,30,99,0.25);
  z-index: 3; pointer-events: none;
}
.cr-map-pin::before, .cr-map-pin::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--magenta);
  animation: crPulse 2.2s ease-out infinite;
}
.cr-map-pin::after { animation-delay: 1.1s; }
@keyframes crPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Industry logos strip ---------- */
.cr-logos-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  margin-top: 50px;
}
.cr-logos-strip .tile {
  padding: 32px 18px;
  background: #0a0a10;
  display: grid; place-items: center;
  min-height: 110px;
  transition: background .3s;
}
.cr-logos-strip .tile:hover { background: #0f0f18; }
.cr-logos-strip .tile .txt {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-size: 1rem; letter-spacing: 0.05em;
  text-align: center;
  transition: color .3s;
}
.cr-logos-strip .tile:hover .txt { color: var(--accent-peach); }

/* ---------- Big background number ---------- */
.cr-bg-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Anton", sans-serif;
  font-size: clamp(22rem, 40vw, 40rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  text-stroke: 1px rgba(255,255,255,0.08);
  line-height: 0.8;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  opacity: 0.9;
}

/* ---------- Kinetic headline rotator ---------- */
.cr-rotator {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}
.cr-rotator__list {
  display: block;
  animation: crRotate 10s cubic-bezier(.8,0,.2,1) infinite;
}
.cr-rotator__list span { display: block; }
@keyframes crRotate {
  0%, 22% { transform: translateY(0); }
  25%, 47% { transform: translateY(-100%); }
  50%, 72% { transform: translateY(-200%); }
  75%, 97% { transform: translateY(-300%); }
  100% { transform: translateY(-400%); }
}

/* ---------- Hero-alt — left content, right media panel ---------- */
.cr-hero-split {
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #0a0a10; color: #fff;
  position: relative; overflow: hidden;
}
@media (max-width: 900px) { .cr-hero-split { grid-template-columns: 1fr; } }
.cr-hero-split__content {
  padding: 160px clamp(20px,4vw,48px) 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 3;
}
.cr-hero-split__media {
  position: relative; overflow: hidden;
}
.cr-hero-split__media video,
.cr-hero-split__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.cr-hero-split__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(74,14,92,0.35), transparent 50%, rgba(233,30,99,0.2));
}
@media (max-width: 900px) {
  .cr-hero-split__media { min-height: 340px; order: -1; }
}

/* ---------- Feature stack (alternating, sticky-ish) ---------- */
.cr-feature-stack { display: grid; gap: 24px; margin-top: 50px; }
.cr-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px; align-items: center;
  padding: 48px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.07);
}
.cr-feature-row:nth-child(even) > :first-child { order: 2; }
@media (max-width: 860px) {
  .cr-feature-row { grid-template-columns: 1fr; padding: 28px; }
  .cr-feature-row:nth-child(even) > :first-child { order: initial; }
}
.cr-feature-row__visual {
  aspect-ratio: 16/10;
  border-radius: 16px; overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--purple-dark), var(--magenta));
}
.cr-feature-row__visual img,
.cr-feature-row__visual video {
  width: 100%; height: 100%; object-fit: cover;
}
.cr-feature-row__tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent-peach); margin-bottom: 12px;
}
.cr-feature-row h3 {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  text-transform: uppercase;
  color: #fff; font-weight: 400;
  margin-bottom: 14px; letter-spacing: 0.005em;
}
.cr-feature-row p {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,0.78);
}
.cr-feature-row p strong { color: var(--accent-peach); }

/* ---------- FAQ accordion ---------- */
.cr-faq { margin-top: 40px; }
.cr-faq details {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  transition: background .3s;
}
.cr-faq details[open] { background: rgba(233,30,99,0.04); padding: 22px 20px; border-radius: 12px; border-bottom-color: transparent; margin-bottom: 4px; }
.cr-faq summary {
  list-style: none; cursor: pointer;
  font-family: "Anton", sans-serif;
  font-size: 1.2rem; color: #fff;
  text-transform: uppercase; letter-spacing: 0.01em;
  font-weight: 400;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
}
.cr-faq summary::-webkit-details-marker { display: none; }
.cr-faq summary::after {
  content: "+"; color: var(--magenta);
  font-size: 1.8rem; font-family: "Anton", sans-serif;
  transition: transform .3s; line-height: 1;
  flex: 0 0 auto;
}
.cr-faq details[open] summary::after { content: "−"; }
.cr-faq details p {
  margin-top: 14px;
  color: rgba(255,255,255,0.78);
  font-size: 15px; line-height: 1.7;
}

/* ---------- Reveal variants ---------- */
.cr-reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity .9s, transform .9s; }
.cr-reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.cr-reveal-right { opacity: 0; transform: translateX(30px); transition: opacity .9s, transform .9s; }
.cr-reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.cr-reveal-zoom { opacity: 0; transform: scale(0.92); transition: opacity .8s, transform .8s; }
.cr-reveal-zoom.is-visible { opacity: 1; transform: scale(1); }

/* ---------- Button magnetic XL ---------- */
.cr-btn-xl {
  padding: 22px 44px; font-size: 14px; border-radius: 100px;
}

/* ---------- Stat upgraded with glow ---------- */
.cr-stat--glow::after {
  content: ""; position: absolute;
  top: 30%; left: -20%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, var(--magenta-glow), transparent 70%);
  filter: blur(30px); opacity: 0; transition: opacity .5s;
  pointer-events: none;
}
.cr-stat--glow.is-visible::after { opacity: 0.6; }

/* ---------- Nav dropdown (homologation) ---------- */
.cr-nav-dropdown {
  position: relative;
  display: inline-block;
}
.cr-nav-dropdown .cr-nav-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .2s;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}
.cr-nav-dropdown .cr-nav-trigger:hover { color: #fff; }
.cr-nav-dropdown.is-active .cr-nav-trigger { color: var(--accent-peach); }
.cr-nav-caret {
  display: inline-block;
  font-size: 9px;
  transition: transform .25s cubic-bezier(.2,.6,.2,1);
  line-height: 1;
}
.cr-nav-dropdown:hover .cr-nav-caret,
.cr-nav-dropdown.is-open .cr-nav-caret { transform: rotate(180deg); }

.cr-nav-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  background: rgba(10,10,16,0.95);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px;
  margin-top: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .2s, visibility 0s .2s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Invisible hover bridge between trigger and panel */
.cr-nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 24px;
  pointer-events: none;
}
.cr-nav-dropdown:hover::after,
.cr-nav-dropdown.is-open::after { pointer-events: auto; }
.cr-nav-dropdown .cr-nav-trigger { padding: 8px 0; }
/* Style the 'View all' tail link inside panels */
.cr-nav-panel .cr-nav-panel-all {
  opacity: .7;
  font-size: 11.5px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4px;
  padding-top: 14px;
}
.cr-nav-panel .cr-nav-panel-all:hover { opacity: 1; }
.cr-nav-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: rgba(10,10,16,0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.cr-nav-dropdown:hover .cr-nav-panel,
.cr-nav-dropdown.is-open .cr-nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.cr-nav-panel a {
  display: block;
  padding: 11px 16px;
  color: rgba(255,255,255,0.8);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 8px;
  transition: background .2s, color .2s, padding-left .2s;
}
.cr-nav-panel a:hover {
  background: rgba(233,30,99,0.15);
  color: #fff;
  padding-left: 22px;
}
.cr-nav-panel a.active {
  color: var(--accent-peach);
  background: rgba(233,30,99,0.08);
}
@media (max-width: 900px) {
  .cr-nav-dropdown { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cr-mesh-bg::before, .cr-mesh-bg::after,
  .cr-img-track, .cr-rotator__list,
  .cr-map-pin::before, .cr-map-pin::after { animation: none !important; }
}


/* services_wrapper alignment — tune purple/blue accents to cr-sprint5 magenta/peach */
#services_wrapper {
  background: linear-gradient(180deg, #14000f 0%, #1a001f 100%) !important;
}
#services_wrapper rs-layer {
  color: #fff;
}
/* Heading gradient: original used #4f2276 -> #282876 (purple-blue). Re-tune to magenta -> peach. */
#services_wrapper rs-layer[style*="4f2276"] {
  background: linear-gradient(var(--magenta), var(--accent-peach)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.cr-section-light .cr-h2,
.cr-section-light h2 { color: var(--ink) !important; }
.cr-section-dark .cr-h2,
.cr-section-dark h2,
.cr-section-gradient .cr-h2,
.cr-section-gradient h2,
.cr-section-purple .cr-h2,
.cr-section-purple h2,
.cr-cta-final .cr-h2,
.cr-cta-final h2 { color: #fff !important; }

/* heading color overrides — beat BeTheme h2 + GENERATIONAL specificity */
html body section.cr-section.cr-section-light h2.cr-h2,
html body section.cr-section.cr-section-light h2,
html body section.cr-section.cr-section-light h1 { color: var(--ink) !important; }

html body section.cr-section.cr-section-dark h2.cr-h2,
html body section.cr-section.cr-section-dark h2,
html body section.cr-section.cr-section-gradient h2.cr-h2,
html body section.cr-section.cr-section-gradient h2,
html body section.cr-section.cr-section-purple h2.cr-h2,
html body section.cr-section.cr-section-purple h2,
html body section.cr-cta-final h2.cr-h2,
html body section.cr-cta-final h2 { color: #fff !important; }

/* and explicitly the proceso section since it's the visible bug */
html body section#proceso h2 { color: #fff !important; }
