/* ============================================================
   Brijcode ? Loyalty & Consumer Survey landing page
   Section 1: Hero ? navy split layout (content left / video right)
   Section 2: Connected Field Ecosystem ? multi-phone collage
   ============================================================ */

.loyalty-page {
  /* Align with site navy theme + marigold accent */
  --loyalty-navy: #0f2233;
  --loyalty-navy-deep: #0a1826;
  --loyalty-navy-mid: #16304a;
  --loyalty-primary: #17907b;
  --loyalty-gold: #f29a1f;
  --loyalty-bg: #f2f6f9;
  --loyalty-white: #ffffff;
  --loyalty-ink: #0f2233;
  --loyalty-muted: rgba(255, 255, 255, 0.72);

  background: var(--loyalty-bg);
  color: var(--loyalty-ink);
}

/* ============ HERO ? full-bleed split ============ */
.loyalty-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--loyalty-white);
  background: var(--loyalty-navy-deep);
}

/* Full-height video ? right side, overlaps under left gradient */
.loyalty-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(62%, 920px);
  z-index: 0;
  overflow: hidden;
}

.loyalty-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  transform: scale(1.04);
}

/* Navy linear gradient left ? right (content readable, video peeks through) */
.loyalty-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--loyalty-navy-deep) 0%,
    var(--loyalty-navy) 28%,
    rgba(15, 34, 51, 0.92) 42%,
    rgba(15, 34, 51, 0.55) 58%,
    rgba(10, 24, 38, 0.18) 78%,
    transparent 100%
  );
}

.loyalty-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --grid-color: rgba(221, 230, 237, 0.05);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 75%);
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 45%,
    transparent 75%
  );
}

.loyalty-hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 64px;
}

.loyalty-hero-copy {
  max-width: 650px;
  position: relative;
}

.loyalty-hero-eyebrow {
  color: #a9bccb;
}
.loyalty-hero-eyebrow .dot {
  background: var(--loyalty-gold);
  box-shadow: 0 0 0 4px rgba(242, 154, 31, 0.22);
}

.loyalty-hero-title {
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff;
}

.loyalty-hero-hl {
  background: linear-gradient(
    120deg,
    #ffc46b,
    var(--loyalty-gold) 55%,
    #ff9e3d
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loyalty-hero-lede {
  font-size: clamp(0.98rem, 1.5vw, 1.06rem);
  line-height: 1.65;
  color: #b8c7d6;
  max-width: 500px;
  margin: 0 0 26px;
}

/* ---- journey strip ---- */
.loyalty-hero-flow {
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.loyalty-hero-flow::-webkit-scrollbar {
  display: none;
}

.loyalty-flow-track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(221, 230, 237, 0.12);
  border-radius: 999px;
  min-width: min-content;
}

.loyalty-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
}
.loyalty-flow-step i {
  font-style: normal;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #ffc46b;
}
.loyalty-flow-step--hl i {
  background: var(--loyalty-gold);
  color: var(--loyalty-navy-deep);
}

.loyalty-flow-arrow {
  width: 14px;
  height: 1px;
  background: rgba(221, 230, 237, 0.3);
  position: relative;
  flex-shrink: 0;
}
.loyalty-flow-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  border: 4px solid transparent;
  border-left-color: rgba(221, 230, 237, 0.4);
  transform: translateY(-50%);
}

/* ---- CTAs ---- */
.loyalty-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 32px;
}

.loyalty-btn-primary {
  background: transparent;
  color: var(--loyalty-gold);
  border: 1px solid var(--loyalty-gold);
}
.loyalty-btn-primary:hover {
  background: #fff;
  color: var(--loyalty-gold);
  border: 2px dashed var(--loyalty-gold);
  transform: translateY(-2px);
}

.loyalty-btn-outline {
  background: var(--loyalty-primary);
  color: #fff;
  border-color: transparent;
}
.loyalty-btn-outline:hover {
  background: #fff;
  color: var(--loyalty-primary);
  border: 2px dotted var(--loyalty-primary);
  transform: translateY(-2px);
}

/* ---- trust row ---- */
.loyalty-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.loyalty-hero-trust li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loyalty-hero-trust strong {
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.loyalty-hero-trust span {
  font-size: 0.78rem;
  color: #a9bccb;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- signals over video (right) ---- */
.loyalty-hero-signals {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.loyalty-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--loyalty-white);
  color: var(--loyalty-ink);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 18px 40px rgba(4, 12, 20, 0.28);
  min-width: 0;
}
.loyalty-float-card b {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}
.loyalty-float-card small {
  display: block;
  font-size: 0.68rem;
  color: #16304a;
  opacity: 0.75;
  margin-top: 2px;
}

.loyalty-float-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--loyalty-primary), #0d5f51);
  color: #fff;
}
.loyalty-float-ico svg {
  width: 17px;
  height: 17px;
}

.loyalty-float-card--survey {
  top: 50%;
  left: 41%;
}
.loyalty-float-card--reward {
  bottom: 18%;
  right: 52%;
}

.loyalty-sync-badge {
  position: absolute;
  top: 22%;
  right: min(26%, 340px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 24, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 12px;
  backdrop-filter: blur(6px);
}

.loyalty-sync-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--loyalty-gold);
  box-shadow: 0 0 0 0 rgba(242, 154, 31, 0.55);
  animation: loyaltyPulse 2.4s ease-out infinite;
}

@keyframes loyaltyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 154, 31, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(242, 154, 31, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 154, 31, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loyalty-sync-pulse {
    animation: none;
  }
  .loyalty-hero-video {
    transform: none;
  }
}

/* ============================================================
   SECTION 2 ? Connected Field Ecosystem (individual phones)
   Scoped under .consumer-ecosystem-section
   ============================================================ */

.consumer-ecosystem-section {
  --eco-navy: #0b1f3a;
  --eco-marigold: #f2a11b;
  --eco-off: #f5f5f2;
  --eco-white: #ffffff;
  --eco-muted: rgba(11, 31, 58, 0.62);

  position: relative;
  background: var(--eco-off);
  padding: 40px 0 0;
  overflow: hidden;
  color: var(--eco-navy);
}

.consumer-ecosystem-section .ecosystem-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --eco-grid-line: rgba(11, 31, 58, 0.055);
  background-color: transparent;
  background-image:
    linear-gradient(var(--eco-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--eco-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  mask-image: radial-gradient(
    ellipse 78% 70% at 50% 42%,
    #000 28%,
    transparent 78%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 78% 70% at 50% 42%,
    #000 28%,
    transparent 78%
  );
  opacity: 0;
  will-change: opacity;
}

.consumer-ecosystem-section .ecosystem-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 45% at 50% 38%,
      rgba(242, 161, 27, 0.06),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 35% at 18% 70%,
      rgba(11, 31, 58, 0.04),
      transparent 65%
    );
  pointer-events: none;
}

.consumer-ecosystem-section .consumer-ecosystem-intro {
  position: relative;
  z-index: 5;
  text-align: center;
}

.consumer-ecosystem-section .ecosystem-eyebrow {
  justify-content: center;
  color: var(--eco-muted);
  margin-bottom: 10px !important;
}

.consumer-ecosystem-section .ecosystem-eyebrow .dot {
  background: var(--eco-marigold);
  box-shadow: 0 0 0 4px rgba(242, 161, 27, 0.18);
}

.consumer-ecosystem-section .ecosystem-title {
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--eco-navy);
  margin: 0 0 12px;
}

.consumer-ecosystem-section .ecosystem-hl {
  color: var(--eco-marigold);
}

.consumer-ecosystem-section .ecosystem-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  color: var(--eco-muted);
  margin: 0 auto;
  max-width: 540px;
}

.consumer-ecosystem-section .consumer-ecosystem-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1800px;
    height: clamp(480px, 52vw, 600px);
    margin: 4px auto 0;
    padding: 0;
    overflow: hidden;
}

.consumer-ecosystem-section .ecosystem-collage {
  display: none;
}

.consumer-ecosystem-section .ecosystem-ambient {
  display: none;
}

/* Absolute + rotate live on the wrapper only; img fills it */
.consumer-ecosystem-section .ecosystem-phone {
  position: absolute;
  width: 100%;
  max-width: 650px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  user-select: none;
  transform: rotate(43deg);
  transform-origin: center center;
  will-change: transform, opacity;
  opacity: 0;
  filter: none !important;
  box-shadow: none !important;
}

.consumer-ecosystem-section .ecosystem-phone img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  position: static;
  transform: none;
  filter: none !important;
  box-shadow: none !important;
  border: 0;
}

.consumer-ecosystem-section .ecosystem-phone--bg,
.consumer-ecosystem-section .ecosystem-phone--mid,
.consumer-ecosystem-section .ecosystem-phone--hero,
.consumer-ecosystem-section .ecosystem-phone--fg,
.consumer-ecosystem-section .ecosystem-phone.is-glow-navy,
.consumer-ecosystem-section .ecosystem-phone.is-glow-gold {
  filter: none !important;
  box-shadow: none !important;
}

/*
  Reference collage: shared 650px size, 43deg CW,
  dense diagonal overlap, edges cropped by stage.
*/
.consumer-ecosystem-section .phone-login {
  left: 2%;
  top: -1%;
  z-index: 2;
}

.consumer-ecosystem-section .phone-visits {
  left: 15%;
  top: 1%;
  z-index: 4;
}

.consumer-ecosystem-section .phone-route {
  left: 26%;
  top: 8%;
  z-index: 7;
}

.consumer-ecosystem-section .phone-survey {
  left: 13%;
  top: 43%;
  z-index: 8;
}

.consumer-ecosystem-section .phone-branding {
  left: 1%;
  top: 39%;
  z-index: 5;
}

.consumer-ecosystem-section .phone-camera {
  left: 39%;
  top: 7%;
  z-index: 9;
}

.consumer-ecosystem-section .phone-consent {
  left: 26%;
  top: 44%;
  z-index: 3;
}

.consumer-ecosystem-section .phone-report {
  left: 54%;
  top: 1%;
  z-index: 6;
}

.consumer-ecosystem-section .phone-manager {
  left: 41%;
  top: 38%;
  z-index: 10;
}

.consumer-ecosystem-section .phone-reward {
  left: 58%;
  top: 27%;
  z-index: 11;
}

.consumer-ecosystem-section .ecosystem-chips {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.consumer-ecosystem-section .ecosystem-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--eco-white);
  color: var(--eco-navy);
  border: 1px solid rgba(11, 31, 58, 0.06);
  box-shadow: none;
  opacity: 0;
  will-change: transform, opacity;
}

.consumer-ecosystem-section .ecosystem-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eco-marigold);
  box-shadow: 0 0 0 3px rgba(242, 161, 27, 0.2);
  flex-shrink: 0;
}

.consumer-ecosystem-section .ecosystem-chip--gps {
  top: 14%;
  left: 6%;
}

.consumer-ecosystem-section .ecosystem-chip--outlet {
  top: 45%;
  right: 6%;
}

.consumer-ecosystem-section .ecosystem-chip--cash {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .consumer-ecosystem-section .ecosystem-grid {
    opacity: 1 !important;
  }

  .consumer-ecosystem-section .ecosystem-phone,
  .consumer-ecosystem-section .ecosystem-chip {
    opacity: 1 !important;
    will-change: auto;
    filter: none !important;
    box-shadow: none !important;
  }

  .consumer-ecosystem-section .phone-login,
  .consumer-ecosystem-section .phone-visits,
  .consumer-ecosystem-section .phone-route,
  .consumer-ecosystem-section .phone-survey,
  .consumer-ecosystem-section .phone-branding,
  .consumer-ecosystem-section .phone-camera,
  .consumer-ecosystem-section .phone-consent,
  .consumer-ecosystem-section .phone-manager,
  .consumer-ecosystem-section .phone-reward,
  .consumer-ecosystem-section .phone-report {
    transform: rotate(43deg);
  }
}

/* ============================================================
   SECTION 3 ? Command Center
   Scoped under .section-command-center
   ============================================================ */

.section-command-center {
  --bc-navy: #071a33;
  --bc-navy-light: #0b1f3a;
  --bc-marigold: #f2a11b;
  --bc-white: #ffffff;
  --bc-muted: #aab8c8;

  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  max-width: 100%;
  background: var(--bc-navy);
  color: var(--bc-white);
  padding: 40px 0 clamp(64px, 6vw, 84px);
}

.section-command-center .command-center-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 52% 40% at 58% 42%,
      rgba(242, 161, 27, 0.08),
      transparent 66%
    ),
    radial-gradient(
      ellipse 44% 38% at 30% 46%,
      rgba(255, 255, 255, 0.03),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 34% at 76% 58%,
      rgba(11, 31, 58, 0.55),
      transparent 72%
    );
}

.section-command-center::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(7, 26, 51, 0.5) 55%,
    rgba(7, 26, 51, 0.9) 100%
  );
}

/* ---- Intro (compact) ---- */

.section-command-center .command-center-intro {
  position: relative;
  z-index: 3;
  text-align: center;
}

.section-command-center .command-center-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bc-muted);
}

.section-command-center .command-center-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bc-marigold);
  box-shadow: 0 0 0 4px rgba(242, 161, 27, 0.18);
  flex-shrink: 0;
}

.section-command-center .command-center-title {
  margin: 0 0 10px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bc-white);
}

.section-command-center .command-center-hl {
  color: var(--bc-marigold);
}

.section-command-center .command-center-desc {
  margin: 0 auto;
  max-width: 800px;
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  line-height: 1.5;
  color: var(--bc-muted);
  text-align: center;
}

/* ---- Command visual stage ---- */

.section-command-center .command-center-visual {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 1080px);
  max-width: 100%;
  height: clamp(390px, 46vw, 500px);
  margin: 0 auto 12px;
}

.section-command-center .command-dashboard {
  position: absolute;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.28);
  transform-origin: center center;
  max-width: 100%;
}

.section-command-center .command-dashboard-motion {
  display: block;
  width: 100%;
  will-change: transform, opacity;
}

.section-command-center .command-dashboard img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
}

/* Field Intelligence ? behind, left, recessed */
.section-command-center .command-dashboard-secondary {
  width: min(58%, 620px);
  left: 0%;
  top: 2%;
  z-index: 2;
  transform: translate3d(-4%, 0, 0) rotate(-3.4deg) scale(0.88);
  opacity: 0.82;
  filter: saturate(0.92) brightness(0.94);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.36),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Rewards ? focal, forward, overlapping */
.section-command-center .command-dashboard-main {
  width: min(72%, 780px);
  right: 1%;
  left: auto;
  top: 14%;
  z-index: 5;
  transform: translate3d(0, 0, 0) rotate(2deg) scale(1.02);
  opacity: 1;
  filter: none;
  box-shadow: none;
}

/* ---- Data flow strip ---- */

.section-command-center .command-flow {
  position: absolute;
  left: 50%;
  bottom: -6%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
}

.section-command-center .command-flow-pulse {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--bc-marigold);
  box-shadow: 0 0 0 0 rgba(242, 161, 27, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.section-command-center .command-flow.is-active .command-flow-pulse {
  opacity: 1;
  animation: commandFlowPulse 3.6s ease-in-out infinite;
}

.section-command-center .command-flow-step {
  position: relative;
  z-index: 2;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: #081a33;
  transition: color 0.35s ease;
}

.section-command-center .command-flow-step.is-lit,
.section-command-center .command-flow-step--active {
  color: var(--bc-marigold);
}

.section-command-center .command-flow-line {
  width: 22px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(11, 31, 58, 0.18),
    rgba(242, 161, 27, 0.55)
  );
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.section-command-center .command-flow-line::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bc-marigold);
  transform: translateY(-50%);
  opacity: 0.85;
}

@keyframes commandFlowPulse {
  0% {
    left: 12px;
    box-shadow: 0 0 0 0 rgba(242, 161, 27, 0.5);
    opacity: 0.35;
  }
  15% {
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(242, 161, 27, 0);
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 20px);
    box-shadow: 0 0 0 0 rgba(242, 161, 27, 0);
    opacity: 0.25;
  }
}

/* ---- Floating metrics ---- */

.section-command-center .command-metrics {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.section-command-center .command-metric {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--bc-navy-light);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  max-width: 190px;
  opacity: 0;
  will-change: transform, opacity;
}

.section-command-center .command-metric.is-floating {
  animation: commandMetricFloat 4.2s ease-in-out infinite;
}

.section-command-center .command-metric--rewards.is-floating {
  animation-duration: 4.8s;
  animation-delay: -0.6s;
}

.section-command-center .command-metric--points.is-floating {
  animation-duration: 5.1s;
  animation-delay: -1.2s;
}

.section-command-center .command-metric--rate.is-floating {
  animation-duration: 4.5s;
  animation-delay: -1.8s;
}

@keyframes commandMetricFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.section-command-center .command-metric-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(242, 161, 27, 0.14);
  color: var(--bc-marigold);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.section-command-center .command-metric strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--bc-navy);
}

.section-command-center .command-metric span:last-child {
  display: block;
  font-size: 0.68rem;
  line-height: 1.25;
  color: rgba(11, 31, 58, 0.62);
  margin-top: 1px;
}

.section-command-center .command-metric--outlets {
  top: 6%;
  left: 1%;
}

.section-command-center .command-metric--rewards {
  top: 8%;
  right: 1%;
}

.section-command-center .command-metric--points {
  bottom: 18%;
  left: -6%;
}

.section-command-center .command-metric--rate {
  bottom: 14%;
  right: -6%;
}

/* ---- Bridge copy ---- */

.section-command-center .command-center-bridge {
  position: relative;
  z-index: 3;
  width: min(100% - 40px, 520px);
  margin: 50px auto 14px;
  text-align: center;
}

.section-command-center .command-center-bridge p {
  margin: 0;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 650;
  line-height: 1.35;
  color: var(--bc-white);
}

.section-command-center .command-center-bridge span {
  display: inline;
  font-weight: 500;
  color: var(--bc-muted);
}

/* ---- Secondary dashboard marquee (seamless dual-group) ---- */

.section-command-center .dashboard-marquee {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.section-command-center .dashboard-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 6px 0 2px;
  animation: commandMarquee 42s linear infinite;
  will-change: transform;
}

.section-command-center .dashboard-marquee:hover .dashboard-marquee-track {
  animation-play-state: paused;
}

.section-command-center .dashboard-marquee-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  flex-shrink: 0;
}

.section-command-center .dashboard-marquee-item {
  flex: 0 0 auto;
  width: clamp(200px, 20vw, 270px);
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(-1.2deg);
}

.section-command-center
  .dashboard-marquee-group
  .dashboard-marquee-item:nth-child(even) {
  transform: rotate(1.4deg) translateY(6px);
}

.section-command-center
  .dashboard-marquee-group
  .dashboard-marquee-item:nth-child(3n) {
  transform: rotate(-0.6deg) translateY(-3px);
}

.section-command-center .dashboard-marquee-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
}

@keyframes commandMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-command-center .command-flow {
    opacity: 1;
  }

  .section-command-center .command-flow-pulse {
    display: none;
  }

  .section-command-center .command-metric {
    opacity: 1;
    animation: none !important;
  }

  .section-command-center .dashboard-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: min(100% - 24px, 1100px);
    margin: 0 auto;
    max-width: 100%;
  }

  .section-command-center .dashboard-marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    gap: 14px;
  }

  .section-command-center .dashboard-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* ============================================================
   FINAL CTA ? Loyalty page
   Scoped under .loyalty-cta
   ============================================================ */

.loyalty-cta {
  --cta-navy: #071a33;
  --cta-navy-deep: #0b1f3a;
  --cta-marigold: #f2a11b;
  --cta-marigold-deep: #e09212;
  --cta-white: #ffffff;
  --cta-bg: #f7f9fc;
  --cta-line: #e9eef5;
  --cta-muted: rgba(7, 26, 51, 0.62);

  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  max-width: 100%;
  padding: 40px 0 28px;
}

/* Loyalty page only ? extra footer top padding for CTA overlap */
.loyalty-page .site-footer {
  padding: 6rem 0 2rem;
}

.loyalty-cta .container {
  position: relative;
  z-index: 1;
}

.loyalty-cta__inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 340px;
    margin-bottom: -81px;
    border-radius: 24px;
    overflow: visible;
    background-color: var(--cta-white);
    background-image:
      linear-gradient(rgba(7, 26, 51, 0.09) 1px, transparent 1px),
      linear-gradient(90deg, rgba(7, 26, 51, 0.09) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    border: 1px solid var(--cta-line);
    box-shadow: 0 10px 28px rgba(7, 26, 51, 0.05);
}

/* Traveling marigold highlight ? thicker, higher contrast */
.loyalty-cta__border {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  padding: 3px;
  overflow: hidden;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.loyalty-cta__border::before {
  content: "";
  position: absolute;
  inset: -55%;
  background: conic-gradient(
    from 180deg,
    #d5dde8 0deg,
    #d5dde8 270deg,
    rgba(242, 161, 27, 0.35) 295deg,
    #f2a11b 318deg,
    #ffc14d 338deg,
    #f2a11b 350deg,
    #d5dde8 360deg
  );
  animation: loyaltyCtaBorderSpin 5.5s linear infinite;
}

.loyalty-cta__content {
  position: relative;
  z-index: 3;
  flex: 1 1 55%;
  padding: 42px 28px 42px 48px;
}

.loyalty-cta__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cta-marigold);
  opacity: 0;
  transform: translateY(14px);
}

.loyalty-cta__title {
  margin: 0 0 14px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--cta-navy);
  opacity: 0;
  transform: translateY(18px);
}

.loyalty-cta__description {
  margin: 0 0 24px;
  max-width: 38ch;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.55;
  color: var(--cta-muted);
  opacity: 0;
  transform: translateY(18px);
}

.loyalty-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: none;
  border-radius: 11px;
  background: var(--cta-marigold);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(242, 161, 27, 0.22);
  transition:
    transform 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease;
  opacity: 0;
  transform: translateY(18px);
}

.loyalty-cta__button:hover,
.loyalty-cta__button:focus-visible {
  background: var(--cta-marigold-deep);
  color: var(--cta-navy);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(224, 146, 18, 0.28);
}

.loyalty-cta__button:focus-visible {
  outline: 2px solid var(--cta-navy);
  outline-offset: 3px;
}

.loyalty-cta__visual {
  position: absolute;
  right: -4%;
  bottom: -18%;
  z-index: 1;
  width: min(46%, 420px);
  pointer-events: none;
  user-select: none;
}

.loyalty-cta__arrow {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  transform: rotate(-18deg) scale(1.08);
  filter: drop-shadow(0 18px 28px rgba(7, 26, 51, 0.14));
  opacity: 0;
  will-change: transform;
  animation: none;
}

.loyalty-cta.is-revealed .loyalty-cta__eyebrow,
.loyalty-cta.is-revealed .loyalty-cta__title,
.loyalty-cta.is-revealed .loyalty-cta__description,
.loyalty-cta.is-revealed .loyalty-cta__button {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.loyalty-cta.is-revealed .loyalty-cta__title {
  transition-delay: 0.08s;
}

.loyalty-cta.is-revealed .loyalty-cta__description {
  transition-delay: 0.16s;
}

.loyalty-cta.is-revealed .loyalty-cta__button {
  transition-delay: 0.24s;
}

.loyalty-cta.is-revealed .loyalty-cta__arrow {
  opacity: 1;
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
  transition-delay: 0.18s;
  transform: rotate(-18deg) scale(1.08);
  animation: loyaltyCtaArrowFloat 6s ease-in-out infinite;
  animation-delay: 0.9s;
}

@keyframes loyaltyCtaBorderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loyaltyCtaArrowFloat {
  0%,
  100% {
    transform: rotate(-18deg) translateY(0) scale(1.08);
  }
  50% {
    transform: rotate(-16.5deg) translateY(-8px) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loyalty-cta__border::before {
    animation: none;
  }

  .loyalty-cta__eyebrow,
  .loyalty-cta__title,
  .loyalty-cta__description,
  .loyalty-cta__button,
  .loyalty-cta__arrow {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .loyalty-cta__arrow {
    transform: rotate(-18deg) scale(1.05) !important;
  }
}
