/* ============================================================
   CAS Route Flux — glassmorphism destination board
   Two opposing reels (origin -> destination) behind a frosted
   glass window, with a centred arrow. Motion is driven by JS.
   All tunables are CSS custom properties so Elementor controls
   can override them per breakpoint.
   ============================================================ */

.cas-rf {
  /* tunables (Elementor writes over these via inline vars) */
  --rf-radius: 28px;
  --rf-glass-bg: rgba(13, 22, 38, 0.45);
  --rf-blur: 18px;
  --rf-border: rgba(255, 255, 255, 0.12);
  --rf-row-h: 56px;
  --rf-rows: 3;
  --rf-gutter: 40px;
  --rf-text: #e8e6e3;
  --rf-arrow: #d85b30;
  --rf-arrow-size: 30px;
  --rf-maxw: 560px;

  width: 100%;
  max-width: var(--rf-maxw);
  margin-inline: auto;
}

.cas-rf *,
.cas-rf *::before,
.cas-rf *::after {
  box-sizing: border-box;
}

.cas-rf__glass {
  position: relative;
  overflow: hidden;
  padding: 6px 24px;
  border-radius: var(--rf-radius);
  border: 1px solid var(--rf-border);
  background: var(--rf-glass-bg);
  -webkit-backdrop-filter: blur(var(--rf-blur)) saturate(125%);
  backdrop-filter: blur(var(--rf-blur)) saturate(125%);
  box-shadow:
    0 18px 50px rgba(9, 22, 39, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* The scrolling window. The mask fades the top and bottom rows so
   the centred pair (on the arrow line) reads crisply. */
.cas-rf__reels {
  position: relative;
  display: flex;
  align-items: stretch;
  height: calc(var(--rf-rows) * var(--rf-row-h));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
}

.cas-rf__col {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.cas-rf__track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.cas-rf__set {
  display: block;
}

.cas-rf__item {
  display: flex;
  align-items: center;
  height: var(--rf-row-h);
  white-space: nowrap;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 4.4vw, 34px);
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--rf-text);
}

.cas-rf__col--left .cas-rf__item {
  justify-content: flex-end;
  text-align: right;
  padding-right: var(--rf-gutter);
  padding-left: 12px;
}

.cas-rf__col--right .cas-rf__item {
  justify-content: flex-start;
  text-align: left;
  padding-left: var(--rf-gutter);
  padding-right: 12px;
}

/* Centre arrow — sits over the glass, outside the masked reels so it
   stays fully opaque. */
.cas-rf__arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: var(--rf-arrow-size);
  height: auto;
  color: var(--rf-arrow);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cas-rf__arrow svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Graceful fallback where backdrop-filter is unsupported: lean on a
   slightly more opaque tint so the panel still reads. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cas-rf__glass {
    background: rgba(13, 22, 38, 0.82);
  }
}
