/* ============================================================
   service-page.css — Shared styles for all Rufen service subpages
   ============================================================ */

/* ── Service Hero ── */
.service-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  box-sizing: border-box;
  width: 100%;
}
.service-hero .container {
  width: 100%;
}
.service-hero-orange { --accent-hero: var(--accent-orange); }
.service-hero-green  { --accent-hero: var(--accent-green); }

.service-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(0, 98, 255, 0.22);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 28px;
}

.service-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.service-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 1020px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-copy-left .service-hero-title,
.hero-copy-left .service-hero-sub {
  text-align: left !important;
}
.hero-copy-left .service-hero-sub {
  margin-left: 0 !important;
  margin-right: auto !important;
}
.hero-copy-left .service-hero-actions {
  justify-content: flex-start !important;
}

.service-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.service-hero-actions .btn {
  width: 320px;
  justify-content: center;
  text-align: center;
}
@media (max-width: 992px) {
  .hero-copy-left .service-hero-title,
  .hero-copy-left .service-hero-sub {
    text-align: center !important;
  }
  .hero-copy-left .service-hero-sub {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-copy-left .service-hero-actions {
    justify-content: center !important;
  }
}
@media (max-width: 768px) {
  .service-hero {
    /* the stable (small) viewport height: 100dvh grew as the phone's address bar slid away mid-scroll and
       pushed the page down, which felt like a snap (Mars, 25 Nov; same fix as the home hero) */
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 52px !important;
    padding-bottom: 50px;
  }
  .service-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }
  .service-hero-actions {
    flex-direction: row !important;
    gap: 8px !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .service-hero-actions .btn {
    flex: 1 !important;
    width: auto !important;
    max-width: 170px !important;
    font-size: 0.8rem !important;
    padding: 12px 8px !important;
  }
  .service-hero-title {
    min-height: 140px;
  }
}
/* Very narrow phones: two buttons on one row squeeze long labels (e.g.
   "Create Your Experience") down to 0.8rem across three wrapped lines. Stack
   them full-width instead — one line each, and a comfortable tap target. */
@media (max-width: 560px) {
  .service-hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .service-hero-actions .btn {
    width: 100% !important;
    max-width: none !important;
    font-size: 0.9rem !important;
    padding: 14px 18px !important;
  }
}

/* ── Section alternation ── */
.service-section {
  padding: 80px 0;
}
.service-alt {
  background: #f9fbff; /* opaque: the blueprint grid shows only on white sections */
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* 3D Card Flip System */
.feature-card-wrapper {
  perspective: 1000px;
  cursor: pointer;
  min-height: 250px;
  height: 100%;
}
.feature-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.feature-card-wrapper.flipped .feature-card-inner {
  transform: rotateY(180deg);
}

.feature-card-front, .feature-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  box-sizing: border-box;
  padding: 28px;
}

.feature-card-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  z-index: 2;
  transform: rotateY(0deg);
}
.feature-card-front i {
  width: 28px;
  height: 28px;
  color: var(--accent-blue);
  stroke-width: 1.5;
}
.feature-card-front h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  font-family: var(--font-display);
}

.feature-card-back {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: rgba(7, 10, 19, 0.96);
  border: 1px solid rgba(0, 98, 255, 0.25);
  color: #fff;
  transform: rotateY(180deg);
  z-index: 1;
  backdrop-filter: blur(12px);
}
.feature-card-back h5 {
  margin: 0 0 8px 0;
  font-family: var(--font-display);
  color: #38bdf8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.feature-card-back p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin: 0;
}

.feature-card-wrapper:hover .feature-card-front {
  border-color: rgba(0, 98, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.flip-hint {
  margin-top: auto;
  font-size: 0.7rem;
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.flip-back-hint {
  margin-top: auto;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Use case grid ── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.usecase-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.usecase-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 98, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 98, 255, 0.04);
}
.usecase-item > *:not(.usecase-bg-anim) {
  position: relative;
  z-index: 2;
}

/* Usecase Background Watermark Animators */
.usecase-bg-anim {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 1;
  color: rgba(0, 98, 255, 0.15); /* Default watermark color (increased from 0.05) */
  transition: color 0.4s ease, opacity 0.4s ease;
  opacity: 0.4;
}
.usecase-item.in-view .usecase-bg-anim {
  opacity: 1;
}
.usecase-item:hover .usecase-bg-anim {
  color: rgba(0, 98, 255, 0.28); /* Highlights on card hover (increased from 0.09) */
}

/* Specific SVG animations that trigger when container has .in-view */

/* Card 1: Trade & Field (Swinging Hammer + Sparks) */
.usecase-item.in-view .usecase-anim-hammer .hammer-group {
  transform-origin: 50px 80px;
  animation: hammerSwing 2s ease-in-out infinite;
}
.usecase-item.in-view .usecase-anim-hammer .sparks-group {
  transform-origin: 75px 70px;
  animation: sparkPulse 2s ease-in-out infinite;
  color: rgba(255, 107, 0, 0.7); /* Increased spark color opacity */
}

@keyframes hammerSwing {
  0% { transform: rotate(0deg); }
  42% { transform: rotate(-32deg); }
  48% { transform: rotate(4deg); } /* Hit nail */
  55% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
@keyframes sparkPulse {
  0%, 42% { opacity: 0; transform: scale(0.2); }
  48% { opacity: 1; transform: scale(1.2); }
  55%, 100% { opacity: 0; transform: scale(0.2); }
}

/* Card 2: Healthcare & Aged Care (Pulsing Heart & EKG) */
.usecase-item.in-view .usecase-anim-heart .heart-shape {
  transform-origin: 50px 45px;
  animation: heartPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.usecase-item.in-view .usecase-anim-heart .ekg-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: ekgPulse 3s linear infinite;
}

@keyframes heartPulse {
  0% { transform: scale(0.92); opacity: 0.5; }
  14% { transform: scale(1.08); opacity: 1; }
  28% { transform: scale(0.92); opacity: 0.5; }
  42% { transform: scale(1.08); opacity: 1; }
  70%, 100% { transform: scale(0.92); opacity: 0.5; }
}
@keyframes ekgPulse {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

/* Card 3: Real Estate (House Outline & Key Turning) */
.usecase-item.in-view .usecase-anim-realestate .key-group {
  transform-origin: 50px 55px;
  animation: keyLockTurn 3s ease-in-out infinite;
}

@keyframes keyLockTurn {
  0%, 100% { transform: rotate(0deg); }
  35% { transform: rotate(-45deg); }
  65% { transform: rotate(90deg); }
}

/* Card 4: Retail & E-Commerce (Shopping Cart & Scanning Laser) */
.usecase-item.in-view .usecase-anim-retail .laser-line {
  animation: laserScannerSweep 2.5s ease-in-out infinite;
  color: rgba(255, 107, 0, 0.45);
}

@keyframes laserScannerSweep {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(22px); opacity: 1; }
}

/* Card 5: Professional Services (Briefcase & Writing Line/Checkmark) */
.usecase-item.in-view .usecase-anim-professional .signature-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: writeSignature 2.5s ease-in-out infinite;
}

@keyframes writeSignature {
  0% { stroke-dashoffset: 60; }
  35% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

/* Card 6: Multilingual Businesses (Globe/Rotating Mesh) */
.usecase-item.in-view .usecase-anim-globe .globe-wave {
  transform-origin: 50px 50px;
  animation: wavesExpanding 3s linear infinite;
}
.usecase-item.in-view .usecase-anim-globe .cw-2 {
  animation-delay: 1.5s;
}

@keyframes wavesExpanding {
  0% { transform: scale(0.6); opacity: 0; }
  50% { opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}
.usecase-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(0,98,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}
.usecase-icon i { width: 20px; height: 20px; }
.usecase-item strong { display: block; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.usecase-item p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ── CTA section ── */
.service-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,98,255,0.04) 0%, rgba(255,107,0,0.04) 100%);
}
.service-cta-card {
  padding: 64px 48px;
  text-align: center;
  background: rgba(255,255,255,0.85);
}
.service-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 16px;
}
.service-cta-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ── Related cards grid ("Complete your agentic stack" and the like) ──
   Compact: the dot sits beside the title, one line under it, the link straight after. */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.related-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  column-gap: 10px;
  row-gap: 6px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.72);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.related-card > *:not(.laser-badge) { grid-column: 1 / -1; }
/* The numbered badge must keep the card's own box as its frame (a placed grid item would be
   measured from the text area instead, and the badge would run 22px off the border). */
.related-card > .laser-badge { grid-column: auto; grid-row: auto; }
.related-card > .indicator-dot { grid-column: 1; align-self: center; margin: 0 !important; }
.related-card > .indicator-dot + h4 { grid-column: 2; }
.related-card .card-punchy { margin-top: 4px; padding-top: 0; }
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,98,255,0.10);
}
.related-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.related-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── Split layout (Business Assistants) ── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 768px) { .split-layout { grid-template-columns: 1fr; } }

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 20px;
}
.split-copy p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}
.highlight-text {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--accent-blue) !important;
}

/* ── SaaS Cost Bleed & Collapse Simulator ── */
.saas-simulator-card {
  padding: 32px 28px !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  justify-content: space-between;
}
.saas-ticker-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 12px;
}
.ticker-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: #ef4444;
  transition: color 0.4s ease;
}
.saas-simulator-wrapper.active-collapse .ticker-value {
  color: #10b981;
}

.saas-cards-stack {
  position: relative;
  height: 200px;
  margin-top: 10px;
}

/* Base SaaS Cards */
.saas-bleed-card {
  position: absolute;
  left: 0;
  right: 0;
  height: 42px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: 8px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.02);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
  overflow: hidden;
}
.saas-bleed-card i {
  color: #ef4444;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Layer the cards vertically to stack them overlayed */
#saas-card-crm { top: 0px; z-index: 5; }
#saas-card-invoice { top: 38px; z-index: 4; }
#saas-card-schedule { top: 76px; z-index: 3; }
#saas-card-phone { top: 114px; z-index: 2; }
#saas-card-report { top: 152px; z-index: 1; }

/* Droplets */
.bleed-droplet {
  position: absolute;
  bottom: 0;
  right: 25px;
  width: 4px;
  height: 8px;
  background: rgba(239, 68, 68, 0.7);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: bleedDrop 1.8s infinite ease-in;
  opacity: 0;
}
.d1 { animation-delay: 0.1s; right: 20%; }
.d2 { animation-delay: 0.5s; right: 35%; }
.d3 { animation-delay: 0.9s; right: 50%; }
.d4 { animation-delay: 1.3s; right: 65%; }
.d5 { animation-delay: 1.7s; right: 80%; }

@keyframes bleedDrop {
  0% { transform: translateY(-5px) scale(0.6); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(40px) scale(0.8); opacity: 0; }
}

/* Rufen Collapse Card (hidden initially, scales in on collapse) */
.rufen-collapse-card {
  position: absolute;
  inset: -10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 98, 255, 0.25);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 98, 255, 0.1);
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}
.rufen-collapse-card i {
  color: #10b981;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}
.rufen-collapse-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-primary);
}
.rufen-collapse-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px 0;
  max-width: 240px;
}
.saving-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* Rufen Pulse Rings */
.rufen-pulse-ring {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  top: 36px;
  pointer-events: none;
  opacity: 0;
}
.saas-simulator-wrapper.active-collapse .rufen-pulse-ring {
  animation: pulseRing 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.rufen-pulse-ring.delay-1 {
  animation-delay: 1s !important;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Active Collapse State Styles */
.saas-simulator-wrapper.active-collapse .saas-bleed-card {
  opacity: 0;
  filter: blur(4px);
}
.saas-simulator-wrapper.active-collapse #saas-card-crm { transform: translate(60px, 90px) scale(0.3) rotate(-15deg); }
.saas-simulator-wrapper.active-collapse #saas-card-invoice { transform: translate(30px, 50px) scale(0.3) rotate(10deg); }
.saas-simulator-wrapper.active-collapse #saas-card-schedule { transform: translate(0, 10px) scale(0.3) rotate(-5deg); }
.saas-simulator-wrapper.active-collapse #saas-card-phone { transform: translate(-30px, -30px) scale(0.3) rotate(15deg); }
.saas-simulator-wrapper.active-collapse #saas-card-report { transform: translate(-60px, -70px) scale(0.3) rotate(-10deg); }

.saas-simulator-wrapper.active-collapse .rufen-collapse-card {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.simulator-instruction {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.03em;
  opacity: 0.6;
}
.highlight-trigger {
  cursor: pointer;
  display: inline-block;
  border-bottom: 1px dashed var(--accent-blue);
  padding-bottom: 2px;
}

/* Ownership Container sways continuously in the wind */
.ownership-container {
  perspective: 1200px;
  transform-origin: top center !important;
  animation: windSway 7s ease-in-out infinite alternate !important;
  display: block;
  width: 100%;
}

/* Ownership pillars card styling */
.ownership-block {
  padding: 48px;
  background: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Slight reactive scale on hover (does not stop the sway because parent sways!) */
.ownership-block:hover {
  transform: scale(1.008) translateY(-2px) !important;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03) !important;
}

/* Wind sway animation mimicking a heavy hanging sign board in strong wind (very pronounced) */
@keyframes windSway {
  0% {
    transform: perspective(1200px) rotateX(-7deg) rotateY(2.2deg) rotateZ(-1.0deg);
  }
  33% {
    transform: perspective(1200px) rotateX(9.5deg) rotateY(-1.8deg) rotateZ(0.8deg);
  }
  66% {
    transform: perspective(1200px) rotateX(-5deg) rotateY(1.5deg) rotateZ(-0.6deg);
  }
  100% {
    transform: perspective(1200px) rotateX(10.5deg) rotateY(-2.5deg) rotateZ(1.2deg);
  }
}

/* Dynamic Wind lines blowing inside card background */
.wind-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1 !important;
}
.wind-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 98, 255, 0.25), rgba(0, 98, 255, 0.65), rgba(0, 98, 255, 0.25), transparent);
  border-radius: 100px;
}
.wind-1 {
  width: 160px;
  top: 22%;
  animation: blowingWind 4s linear infinite;
}
.wind-2 {
  width: 240px;
  top: 52%;
  animation: blowingWind 6s linear infinite;
  animation-delay: 1.5s;
}
.wind-3 {
  width: 130px;
  top: 78%;
  animation: blowingWind 5s linear infinite;
  animation-delay: 3s;
}

@keyframes blowingWind {
  0% {
    left: -260px;
    opacity: 0;
  }
  10% {
    opacity: 0.65;
  }
  90% {
    opacity: 0.65;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
.ownership-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 16px;
}
.ownership-block > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 40px;
}
.ownership-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar i { width: 24px; height: 24px; color: var(--accent-blue); }
.pillar strong { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.pillar span { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Workflow steps ── */
.workflow-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
}
.workflow-step {
  flex: 1;
  min-width: 180px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,0.72);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.workflow-step:hover, .workflow-step.is-focus {
  border-color: rgba(0, 229, 255, 0.4) !important;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.15) !important;
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.88);
}
.workflow-step > *:not(.water-animation-overlay) {
  position: relative;
  z-index: 2;
}

/* ── Water Animation Overlays ── */
.water-animation-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.workflow-step:hover .water-animation-overlay, .workflow-step.is-focus .water-animation-overlay {
  opacity: 1;
}

/* Step 1: Capture & Ingest (Dirty Water) */
.step-1-water .water-wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.workflow-step:hover .step-1-water .water-wave-container, .workflow-step.is-focus .step-1-water .water-wave-container {
  transform: translateY(15%);
}
.step-1-water .wave {
  position: absolute;
  left: -50%;
  bottom: -40%;
  width: 200%;
  height: 200%;
  border-radius: 42%;
}
.step-1-water .wave-back {
  background: rgba(0, 150, 200, 0.05);   /* light aqua, not grey (Mars, 21 Nov): the card and its text stay clear */
  animation: waveRotate 8s linear infinite;
}
.step-1-water .wave-front {
  background: rgba(0, 150, 200, 0.08);
  animation: waveRotate 4s linear infinite;
}

.dirty-particles {
  position: absolute;
  inset: 0;
}
.particle {
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 6px;
  background: rgba(90, 80, 70, 0.55);
  border-radius: 50%;
  opacity: 0;
}
.workflow-step:hover .particle, .workflow-step.is-focus .particle {
  animation: driftUp 3s ease-in-out infinite;
}
.particle.p1 { left: 15%; animation-delay: 0.2s; animation-duration: 2.2s; width: 8px; height: 8px; }
.particle.p2 { left: 40%; animation-delay: 0.8s; animation-duration: 3s; }
.particle.p3 { left: 65%; animation-delay: 1.4s; animation-duration: 2.5s; width: 5px; height: 5px; }
.particle.p4 { left: 80%; animation-delay: 0.5s; animation-duration: 3.5s; }
.particle.p5 { left: 30%; animation-delay: 1.8s; animation-duration: 2.8s; }

@keyframes driftUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 0.6; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-200px) scale(0.6); opacity: 0; }
}

/* Step 2: Understand & Extract (Filter to Clear Water) */
.step-2-water .clean-water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.workflow-step:hover .step-2-water .clean-water, .workflow-step.is-focus .step-2-water .clean-water {
  transform: translateY(35%);
}
.step-2-water .wave {
  position: absolute;
  left: -50%;
  bottom: -40%;
  width: 200%;
  height: 200%;
  border-radius: 43%;
}
.step-2-water .wave-back {
  background: rgba(0, 229, 255, 0.1);
  animation: waveRotate 7s linear infinite;
}
.step-2-water .wave-front {
  background: rgba(0, 229, 255, 0.18);
  animation: waveRotate 3.5s linear infinite;
}

.filter-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,229,255,0) 0%, rgba(0,229,255,0.7) 50%, rgba(0,229,255,0) 100%);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  transform: scaleX(0);
  transition: transform 0.6s ease;
  z-index: 3;
}
.workflow-step:hover .filter-line, .workflow-step.is-focus .filter-line {
  transform: scaleX(1);
}

.dirty-particles-down {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
}
.particle-down {
  position: absolute;
  top: -10px;
  width: 5px;
  height: 5px;
  background: rgba(90, 80, 70, 0.4);
  border-radius: 50%;
  opacity: 0;
}
.workflow-step:hover .particle-down, .workflow-step.is-focus .particle-down {
  animation: floatDown 2s linear infinite;
}
.particle-down.pd1 { left: 20%; animation-delay: 0.1s; }
.particle-down.pd2 { left: 50%; animation-delay: 0.6s; }
.particle-down.pd3 { left: 80%; animation-delay: 1.2s; }

@keyframes floatDown {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(110px); opacity: 0; filter: blur(0.5px); }
}

.clean-bubbles {
  position: absolute;
  inset: 0;
}
.bubble {
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  opacity: 0;
}
.workflow-step:hover .bubble, .workflow-step.is-focus .bubble {
  animation: floatUpBubble 2.5s ease-in infinite;
}
.bubble.b1 { left: 25%; animation-delay: 0.3s; animation-duration: 2s; width: 7px; height: 7px; }
.bubble.b2 { left: 55%; animation-delay: 0.9s; animation-duration: 2.6s; }
.bubble.b3 { left: 75%; animation-delay: 1.5s; animation-duration: 2.1s; width: 4px; height: 4px; }

@keyframes floatUpBubble {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-160px) scale(1.2); opacity: 0; }
}

/* Step 3: Act & Sync (Separate into Three Sections) */
.step-3-water {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
}
.channel {
  flex: 1;
  margin: 0 3px;
  height: 100%;
  background: rgba(0, 229, 255, 0.01);
  border-left: 1px dashed rgba(0, 229, 255, 0.1);
  border-right: 1px dashed rgba(0, 229, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.stream-flow {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,229,255,0) 0%, rgba(0,229,255,0.18) 50%, rgba(0,229,255,0) 100%);
}
.workflow-step:hover .stream-flow, .workflow-step.is-focus .stream-flow {
  animation: flowDownStream 2s linear infinite;
}
.channel.ch-1 .stream-flow { animation-delay: 0s; }
.channel.ch-2 .stream-flow { animation-delay: 0.6s; }
.channel.ch-3 .stream-flow { animation-delay: 1.2s; }

@keyframes flowDownStream {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Step 4: You Review (Introduce Taps for the Three Sections) */
.step-4-water {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
}
.channel-tap {
  flex: 1;
  margin: 0 3px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faucet {
  position: relative;
  width: 20px;
  height: 18px;
  top: -20px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
}
.workflow-step:hover .faucet, .workflow-step.is-focus .faucet {
  top: 10px;
  opacity: 1;
}
.faucet-pipe {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 10px;
  border: 2px solid rgba(0, 229, 255, 0.75);
  border-bottom: none;
  border-left: none;
  border-top-right-radius: 4px;
}
.faucet-pipe::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 4px;
  height: 2px;
  background: rgba(0, 229, 255, 0.75);
}
.faucet-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 4px;
  background: rgba(0, 229, 255, 0.75);
  border-radius: 2px;
  transform: rotate(0deg);
  transition: transform 0.5s ease 0.4s;
}
.workflow-step:hover .faucet-handle, .workflow-step.is-focus .faucet-handle {
  transform: rotate(90deg);
}

.faucet-drip {
  position: absolute;
  top: 24px;
  width: 3px;
  height: 6px;
  background: rgba(0, 229, 255, 0.7);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
  transform: translateY(0) scale(0.5);
}
.workflow-step:hover .faucet-drip, .workflow-step.is-focus .faucet-drip {
  animation: dripEffect 1.5s infinite ease-in;
}
.ch-tap-1 .faucet-drip { animation-delay: 0.5s; }
.ch-tap-2 .faucet-drip { animation-delay: 0.9s; }
.ch-tap-3 .faucet-drip { animation-delay: 1.3s; }

@keyframes dripEffect {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; transform: translateY(5px) scale(1); }
  80% { opacity: 0.7; }
  100% { transform: translateY(140px) scale(0.8); opacity: 0; }
}

@keyframes waveRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
}
.workflow-step i { width: 24px; height: 24px; color: var(--accent-blue); }
.workflow-step h4 { font-size: 0.95rem; font-weight: 600; margin: 0; }
.workflow-step p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.workflow-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--accent-blue);
  opacity: 0.5;
}
@media (max-width: 768px) {
  .workflow-steps { flex-direction: column; }
  .workflow-arrow { transform: rotate(90deg); align-self: center; }
}

/* ── Extended service blocks (other-services) ── */
.extended-service-block {
  padding: 48px;
  background: rgba(255,255,255,0.82);
}
.esb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.esb-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
}
.esb-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,98,255,0.1);
  color: var(--accent-blue);
}
.esb-tag-cta { background: rgba(255,107,0,0.1); color: var(--accent-orange); }
.extended-service-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 16px;
}
.esb-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 32px;
}
.esb-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.esb-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.esb-feature i { width: 22px; height: 22px; color: var(--accent-blue); flex-shrink: 0; margin-top: 2px; }
.esb-feature strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.esb-feature p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ── ExperienceHub product slab ──────────────────────────────────────────────
   The site's one deliberate inversion (near-black surface, neon-tinted
   border) applied to an .extended-service-block, so the product section
   reads as the machine rather than another marketing card. */
.esb-showcase {
  background: #070a13;
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 50px rgba(124, 58, 237, 0.04) inset;
}
.esb-showcase h2,
.esb-showcase .esb-feature strong { color: #e6edf3; }
.esb-showcase .esb-desc,
.esb-showcase .esb-feature p { color: #8b949e; }
.esb-showcase .esb-feature i,
.esb-showcase .esb-label { color: var(--accent-violet); }
/* .glass-card::before lays a light sheen over the card — cancel it here or it
   milks the black surface. */
.esb-showcase::before { display: none; }

/* ── Traditional vs Business Experience ─────────────────────────────────
   There is no <table> anywhere on the site and no styling precedent for one.
   This extends the .result-row idiom (styles.css) — a flex row with the old
   value on the left and the Rufen value on the right — from numbers to text
   pairs, as a three-column grid. */
.experience-compare {
  padding: 0;
  overflow: hidden;
}
.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
}
.compare-head {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.compare-row + .compare-row { border-top: 1px solid rgba(15, 23, 42, 0.03); }
.compare-row { transition: background 0.25s ease; }
.compare-row:hover { background: rgba(124, 58, 237, 0.03); }
.compare-old {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.compare-new {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}
/* Three chevrons. At rest only the middle one reads, so the row stays quiet;
   on hover they fire in sequence left-to-right so the pair looks like it is
   flowing >>> from the old column into the new one. */
.compare-arrow {
  color: var(--accent-violet);
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0;
}
.compare-arrow i,
.compare-arrow svg { width: 14px; height: 14px; }
.compare-chev {
  display: flex;
  opacity: 0.16;
  transition: opacity 0.3s ease;
}
.compare-chev-2 { opacity: 0.9; }

@keyframes compareChevFlow {
  0%        { opacity: 0.1; transform: translateX(-4px); }
  30%       { opacity: 1;   transform: translateX(0); }
  60%, 100% { opacity: 0.1; transform: translateX(4px); }
}
.compare-row:hover .compare-chev {
  animation: compareChevFlow 0.85s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.compare-row:hover .compare-chev-1 { animation-delay: 0s; }
.compare-row:hover .compare-chev-2 { animation-delay: 0.13s; }
.compare-row:hover .compare-chev-3 { animation-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .compare-row:hover .compare-chev { animation: none; opacity: 0.9; }
}

@media (max-width: 768px) {
  .compare-head { display: none; }
  .compare-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }
  /* Stacked pairs: the chevrons point down instead, and the flow animation
     rides the rotated axis unchanged since it lives on the children. */
  .compare-arrow {
    justify-self: start;
    transform: rotate(90deg);
    margin: 2px 0;
  }
}

/* Audit outcomes */
.audit-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.audit-outcome {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(0,98,255,0.04);
  border: 1px solid rgba(0,98,255,0.1);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.audit-outcome i { width: 18px; height: 18px; color: var(--accent-blue); flex-shrink: 0; }

/* nav active state: no colour change (only hover is orange); the current
   page is marked by the short neutral underline in styles.css. */

/* ============================================================
   AI Voice Systems Sandbox Styles
   ============================================================ */
.sandbox-section-subpage {
  border-top: 1px solid rgba(15, 23, 42, 0.03);
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.sandbox-container {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 32px;
  margin-top: 40px;
}

.agent-selector-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom Scrollbar for Agent List */
.agent-selector-list::-webkit-scrollbar {
  width: 5px;
}
.agent-selector-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.02);
  border-radius: 100px;
}
.agent-selector-list::-webkit-scrollbar-thumb {
  background: rgba(0, 98, 255, 0.15);
  border-radius: 100px;
}

.agent-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
}
.agent-btn:hover {
  border-color: rgba(0, 98, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.agent-btn.active {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 20px rgba(0, 98, 255, 0.08), 0 0 0 1px var(--accent-blue);
}

.agent-btn strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Console Top Detail Card */
.agent-detail-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(10px);
}
.agent-detail-header h3 {
  margin: 0;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}
.agent-detail-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
}
.agent-detail-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.meta-tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-display);
}
.meta-tag.blue {
  background: rgba(0, 98, 255, 0.15);
  color: #38bdf8;
}
.meta-tag.gray {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
}

/* Console Styling */
.sandbox-console-wrapper {
  background: #070a13;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  height: 620px;
}
.sandbox-console-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.console-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
}
.console-badge {
  background: rgba(0, 98, 255, 0.15);
  border: 1px solid rgba(0, 98, 255, 0.3);
  color: #8ab4f8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.console-body-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Dialer Panel */
.dialer-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.dialer-panel input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}
.dialer-panel input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 98, 255, 0.2);
}

/* Voice Waveform visualizer */
.voice-waveform-container {
  height: 36px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
  padding: 0 12px;
  flex-shrink: 0;
}
.waveform-bar {
  width: 3px;
  height: 6px;
  background: rgba(0, 98, 255, 0.3);
  border-radius: 100px;
  transition: height 0.15s ease, background-color 0.2s ease;
}
.waveform-bar.active {
  background: var(--accent-blue);
  animation: pulseBar 1.2s infinite ease-in-out;
}
.waveform-bar.active:nth-child(even) {
  animation-delay: 0.15s;
}
.waveform-bar.active:nth-child(3n) {
  animation-delay: 0.3s;
}
.waveform-bar.active:nth-child(5n) {
  animation-delay: 0.45s;
}

@keyframes pulseBar {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}

/* Transcript Log */
.live-transcript-log {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 16px;
  overflow-y: auto;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 220px;
}
.transcript-msg {
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
}
.transcript-msg.caller {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-bottom-right-radius: 2px;
  color: #ffffff !important;
  font-weight: 600;
}
.transcript-msg.agent {
  align-self: flex-start;
  background: rgba(0, 98, 255, 0.24) !important;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(0, 98, 255, 0.4) !important;
  color: #ffffff !important;
  font-weight: 600;
}
.transcript-msg.system-msg {
  align-self: center;
  background: rgba(255, 107, 0, 0.05) !important;
  border: 1px solid rgba(255, 107, 0, 0.15) !important;
  border-radius: 6px;
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 6px 12px;
  text-align: center;
  max-width: 100%;
  font-weight: 700;
}

/* Telemetry Light board */
.telemetry-panel {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.telemetry-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.telemetry-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}
.telemetry-light {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}
.telemetry-light.active-green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.telemetry-light.active-blue {
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

/* Terminal Log Lines */
.terminal-logs-window {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  height: 100px;
  overflow-y: auto;
}
.log-line {
  margin-bottom: 4px;
}

@media (max-width: 992px) {
  .sandbox-container {
    grid-template-columns: 1fr;
  }
  .agent-selector-list {
    max-height: 320px;
  }
}

/* Split Hero Columns Layout */
.split-hero-layout {
  text-align: left !important;
}
.split-hero-container {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 520px;
}
.hero-spacer-left {
  height: 100%;
  pointer-events: none;
}
.hero-copy-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
}

@media (max-width: 992px) {
  .split-hero-container {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    min-height: auto;
  }
  .hero-spacer-left {
    display: none !important;
  }
  .hero-copy-right {
    align-items: center !important;
  }
  .hero-copy-right .service-hero-title,
  .hero-copy-right .service-hero-sub {
    text-align: center !important;
  }
  .hero-copy-right .service-hero-actions {
    justify-content: center !important;
    width: 100%;
  }
}

.pushed-down-section {
  padding-top: 140px !important;
}

/* Left Text / Right Animation Layout */
.split-hero-container-reverse {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 520px;
}
.hero-spacer-right {
  height: 100%;
  pointer-events: none;
}
.hero-copy-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
}

@media (max-width: 992px) {
  .split-hero-container-reverse {
    display: flex !important;
    flex-direction: column-reverse !important;
    text-align: center !important;
    min-height: auto;
  }
  .hero-spacer-right {
    display: none !important;
  }
  .hero-copy-left {
    align-items: center !important;
  }
  .hero-copy-left .service-hero-title,
  .hero-copy-left .service-hero-sub {
    text-align: center !important;
  }
  .hero-copy-left .service-hero-actions {
    justify-content: center !important;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .service-hero-title {
    position: relative !important;
  }
  .service-hero-title > span[style*="visibility: hidden"] {
    display: none !important;
  }
  .service-hero-title > span[id*="typewriter"] {
    position: relative !important;
    display: inline !important;
  }
  .mobile-animation-spacer {
    display: block !important;
    height: 155px !important;
  }
  .service-hero-sub {
    margin-bottom: 20px !important;
  }

  /* Agentic Workflows Page Spacing Overrides */
  .service-hero-green .mobile-animation-spacer {
    margin-top: -48px !important;
    margin-bottom: 0px !important;
  }

  /* Compact Voice Agent sandbox on mobile */
  #voice-sandbox .agent-detail-card p {
    display: none !important;
  }
  #voice-sandbox .section-subtitle {
    display: block !important;
    font-size: 0.82rem !important;
    margin-bottom: 16px !important;
    line-height: 1.5 !important;
  }

  /* Compact Workflow Automator sandbox on mobile */
  #interactive-workflow-sandbox .section-subtitle,
  #interactive-workflow-sandbox .pipeline-desc {
    display: none !important;
  }

  /* Compact AIBA Concept presentation sandbox on mobile */
  #aiba-presentation-suite .section-subtitle,
  #aiba-presentation-suite .tab-pane p,
  #aiba-presentation-suite .tab-pane ul,
  #living-system .section-subtitle,
  #living-system .tab-pane p,
  #living-system .tab-pane ul,
  #aiba-presentation-suite .interactive-alert,
  #living-system .interactive-alert {
    display: none !important;
  }

  #aiba-presentation-suite .name-customizer-box,
  #living-system .name-customizer-box,
  #aiba-presentation-suite .presentation-tabs-container,
  #living-system .presentation-tabs-container {
    padding: 16px !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #aiba-presentation-suite .tab-buttons .tab-btn,
  #living-system .tab-buttons .tab-btn {
    padding: 6px 2px !important;
    font-size: 0.64rem !important;
    border-radius: 6px !important;
    gap: 2px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  #aiba-presentation-suite .tab-buttons .tab-btn i,
  #living-system .tab-buttons .tab-btn i {
    width: 12px !important;
    height: 12px !important;
  }

  #aiba-presentation-suite .customizer-form,
  #living-system .customizer-form {
    flex-direction: column !important;
    gap: 8px !important;
  }

  #aiba-presentation-suite .customizer-form button,
  #living-system .customizer-form button {
    width: 100% !important;
    padding: 12px 16px !important;
  }

  /* Compact Brand Badge on mobile screenshots */
  .screenshot-brand-badge {
    font-size: 0.6rem !important;
    padding: 3px 8px !important;
    top: 8px !important;
    left: 8px !important;
  }

  /* Flip Cards Mobile Optimisation */
  .feature-card-wrapper {
    min-height: 200px !important;
  }
  .feature-card-front,
  .feature-card-back {
    padding: 18px !important;
  }
  .feature-card-front i {
    width: 24px !important;
    height: 24px !important;
  }
  .feature-card-front h4 {
    font-size: 0.92rem !important;
  }
  .feature-card-back h5 {
    font-size: 0.7rem !important;
    margin-bottom: 6px !important;
  }
  .feature-card-back p {
    font-size: 0.76rem !important;
    line-height: 1.45 !important;
  }
  .flip-hint,
  .flip-back-hint {
    font-size: 0.65rem !important;
  }

  /* Role-based Voice Agents Selector Redesign */
  .agent-selector-list {
    display: none !important;
  }
  .agent-btn {
    flex: 0 0 auto !important;
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    border-radius: 20px !important;
    gap: 6px !important;
    margin: 0 !important;
    width: auto !important;
  }
  .agent-btn strong {
    font-weight: 700 !important;
  }
  .agent-dot {
    margin-left: 6px !important;
  }
  .sandbox-container {
    gap: 16px !important;
    margin-top: 15px !important;
  }
  .live-transcript-log {
    max-height: 270px !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
  }
  .transcript-msg {
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
  }
  .telemetry-panel {
    padding: 6px 12px !important;
    margin-bottom: 10px !important;
  }
  .terminal-logs-window {
    height: 60px !important;
    padding: 8px 12px !important;
  }
}

/* ── Hyper-Intelligent AI Integration Cards ── */
#cognitive-integrations .feature-card:not(:last-child) {
  background: rgba(0, 191, 255, 0.04) !important;
  border-color: rgba(0, 191, 255, 0.14) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#cognitive-integrations .feature-card:not(:last-child):hover {
  background: rgba(0, 191, 255, 0.09) !important;
  border-color: rgba(0, 191, 255, 0.35) !important;
  box-shadow: 0 10px 25px rgba(0, 191, 255, 0.08) !important;
  transform: translateY(-3px) !important;
}
#cognitive-integrations .feature-card:last-child {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#cognitive-integrations .feature-card:last-child.in-view {
  animation: orangeBorderGlow 2.5s ease-in-out infinite alternate !important;
}

@keyframes orangeBorderGlow {
  0% {
    border-color: rgba(255, 107, 0, 0.35) !important;
    box-shadow: 0 0 5px rgba(255, 107, 0, 0.08) !important;
  }
  100% {
    border-color: rgba(255, 107, 0, 1) !important;
    box-shadow: 0 0 22px rgba(255, 107, 0, 0.45) !important;
  }
}

/* Mini compact version of the waveform for header/corners */
.voice-waveform-container.mini {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 16px !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 3px !important;
  border: none !important;
  box-shadow: none !important;
}
.voice-waveform-container.mini .waveform-bar {
  width: 2px !important;
  height: 3px !important;
  background: rgba(0, 98, 255, 0.3) !important;
  border-radius: 1px !important;
  animation: none !important; /* disabled by default */
}
.voice-waveform-container.mini .waveform-bar.active {
  background: var(--accent-blue) !important;
  animation: pulseBarMini 1s infinite ease-in-out !important;
}
.voice-waveform-container.mini .waveform-bar.active:nth-child(even) {
  animation-delay: 0.1s !important;
}
.voice-waveform-container.mini .waveform-bar.active:nth-child(3n) {
  animation-delay: 0.2s !important;
}
.voice-waveform-container.mini .waveform-bar.active:nth-child(5n) {
  animation-delay: 0.35s !important;
}

@keyframes pulseBarMini {
  0%, 100% { height: 3px; }
  50% { height: 13px; }
}

/* Scoped Multi-Colored Card & Icon Hover Illuminations for Every Corner Section */
#what-we-automate .feature-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#what-we-automate .feature-card i,
#what-we-automate .feature-card svg {
  width: 28px !important;
  height: 28px !important;
  color: var(--accent-blue) !important;
  stroke-width: 1.5 !important;
  margin-bottom: 16px !important;
  display: block !important;
  transition: all 0.3s ease !important;
}

/* Card 1: Email (Blue) */
#what-we-automate .feature-card:nth-child(1):hover {
  border-color: rgba(0, 98, 255, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 98, 255, 0.04) !important;
  transform: translateY(-4px);
}
#what-we-automate .feature-card:nth-child(1):hover i,
#what-we-automate .feature-card:nth-child(1):hover svg {
  color: var(--accent-blue) !important;
  filter: drop-shadow(0 0 8px rgba(0, 98, 255, 0.6)) !important;
  animation: floatInbox 1.5s ease-in-out infinite !important;
}

/* Card 2: Document (Purple) */
#what-we-automate .feature-card:nth-child(2):hover {
  border-color: rgba(139, 92, 246, 0.25) !important;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.04) !important;
  transform: translateY(-4px);
}
#what-we-automate .feature-card:nth-child(2):hover i,
#what-we-automate .feature-card:nth-child(2):hover svg {
  color: #8b5cf6 !important;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6)) !important;
  animation: scanDoc 1.5s ease-in-out infinite !important;
}

/* Card 3: CRM (Orange) */
#what-we-automate .feature-card:nth-child(3):hover {
  border-color: rgba(255, 107, 0, 0.25) !important;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.04) !important;
  transform: translateY(-4px);
}
#what-we-automate .feature-card:nth-child(3):hover i,
#what-we-automate .feature-card:nth-child(3):hover svg {
  color: var(--accent-orange) !important;
  filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.6)) !important;
  animation: pulseDatabase 1.4s ease-in-out infinite !important;
}

/* Card 4: Approvals (Green) */
#what-we-automate .feature-card:nth-child(4):hover {
  border-color: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.04) !important;
  transform: translateY(-4px);
}
#what-we-automate .feature-card:nth-child(4):hover i,
#what-we-automate .feature-card:nth-child(4):hover svg {
  color: var(--accent-green) !important;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6)) !important;
  animation: swingPull 1.5s ease-in-out infinite !important;
}

/* Card 5: Site Check-ins (Teal) */
#what-we-automate .feature-card:nth-child(5):hover {
  border-color: rgba(6, 182, 212, 0.25) !important;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.04) !important;
  transform: translateY(-4px);
}
#what-we-automate .feature-card:nth-child(5):hover i,
#what-we-automate .feature-card:nth-child(5):hover svg {
  color: #06b6d4 !important;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6)) !important;
  animation: pinDrop 1.2s ease-in-out infinite !important;
}

/* Card 6: Alerts (Red) */
#what-we-automate .feature-card:nth-child(6):hover {
  border-color: rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.04) !important;
  transform: translateY(-4px);
}
#what-we-automate .feature-card:nth-child(6):hover i,
#what-we-automate .feature-card:nth-child(6):hover svg {
  color: #ef4444 !important;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6)) !important;
  animation: heartActivity 1.3s ease-in-out infinite !important;
}

/* Keyframes for Card Icon Animations */
@keyframes floatInbox {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes scanDoc {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(-3deg); }
  75% { transform: scale(1.05) rotate(3deg); }
}
@keyframes pulseDatabase {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes swingPull {
  0%, 100% { transform: rotate(0deg); }
  33% { transform: rotate(-8deg); }
  66% { transform: rotate(8deg); }
}
@keyframes pinDrop {
  0%, 100% { transform: translateY(0) scaleY(1); }
  30% { transform: translateY(-6px) scaleY(1.05); }
  60% { transform: translateY(2px) scaleY(0.95); }
  80% { transform: translateY(-2px) scaleY(1.02); }
}
@keyframes heartActivity {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}


/* ── Phones: Voice page carousels (see [data-loop-carousel] in app.js) ──
   Flip cards: the front was translucent white on white; it now carries a
   light blue glass tint, a firmer border and a lift, stronger on the card in
   view. Use-case cards: wider and taller, with the animation moved out from
   behind the text into a clean white band at the top, at full strength. */
@media (max-width: 768px) {
  [data-loop-carousel] .feature-card-wrapper {
    min-height: 220px !important;
    height: 220px;
  }
  [data-loop-carousel] .feature-card-front {
    background:
      linear-gradient(150deg, rgba(0, 98, 255, 0.11) 0%, rgba(0, 98, 255, 0.03) 100%),
      #fff;
    border: 1px solid rgba(0, 98, 255, 0.22);
    box-shadow:
      inset 0 1px 0 #fff,
      0 10px 26px -16px rgba(0, 98, 255, 0.45);
    justify-content: center !important;
  }
  [data-loop-carousel] .feature-card-front > svg { width: 30px !important; height: 30px !important; }
  [data-loop-carousel] .feature-card-front h4 { font-size: 1.05rem !important; }
  [data-loop-carousel] .loop-slide.is-current .feature-card-front {
    box-shadow:
      inset 0 3px 0 rgba(0, 98, 255, 0.85),
      0 18px 40px -16px rgba(0, 98, 255, 0.5);
  }

  [data-loop-carousel] .usecase-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 330px;
    padding: 148px 20px 22px !important;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.09);
  }
  [data-loop-carousel] .usecase-item .usecase-bg-anim {
    top: 18px;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 116px;
    height: 116px;
    transform: translateX(-50%);
    opacity: 1;
    color: rgba(0, 98, 255, 0.42);
  }
  [data-loop-carousel] .loop-slide.is-current.usecase-item {
    border-color: rgba(0, 98, 255, 0.25);
    box-shadow: 0 18px 40px -16px rgba(0, 98, 255, 0.4);
  }
}

/* ── Phones: Role-based Voice Agents fits one screen ─────────────────────
   Was ~860px: 100px of top padding, a three-line title plus subtitle, and
   a console whose number field and call button stacked. */
@media (max-width: 768px) {
  #voice-sandbox { padding: 18px 0 22px !important; }
  #voice-sandbox .section-header { margin-bottom: 12px !important; }
  #voice-sandbox .agent-control-panel-lights { margin-bottom: 10px !important; }
  #voice-sandbox .section-title { font-size: 1.45rem !important; line-height: 1.2; margin-bottom: 0 !important; }
  #voice-sandbox .section-subtitle { display: none !important; }

  #voice-sandbox .agent-detail-card { padding: 10px 14px !important; margin-bottom: 10px !important; }
  #voice-sandbox .agent-detail-header h3 { font-size: 1.05rem !important; margin: 0 !important; }
  #voice-sandbox .agent-detail-meta { margin-top: 6px !important; }

  #voice-sandbox .sandbox-console-header { padding: 10px 14px !important; }
  #voice-sandbox .console-badge { white-space: nowrap; font-size: 0.62rem !important; }

  #voice-sandbox .console-body-section { padding: 12px !important; }
  #voice-sandbox .dialer-panel {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  #voice-sandbox .dialer-panel input { flex: 1 1 auto; min-width: 0; }
  #voice-sandbox .dialer-panel .btn { flex: 0 0 auto; width: auto !important; white-space: nowrap; padding-left: 14px !important; padding-right: 14px !important; }
  /* The console was a fixed 620px box, so trimming its insides only made
     the transcript stretch. Let it size to its content instead. */
  #voice-sandbox .sandbox-console-wrapper { height: auto !important; }
  #voice-sandbox .live-transcript-log {
    flex: none !important;
    height: 210px !important;
    max-height: none !important;
    margin-bottom: 8px !important;
  }
  #voice-sandbox .telemetry-panel { padding: 4px 10px !important; margin-bottom: 8px !important; }
  #voice-sandbox .terminal-logs-window { max-height: 48px; }
}

/* ── Voice CTA: "live call" card ─────────────────────────────────────────
   Light, in the page's own language (Mars, 21 Nov): white glass with faint brand
   glows; a phone ringing with sonar ripples;
   call / lead / booking lighting in turn (blue, orange, green) in sync with
   an Answered → Qualified → Booked tracker. One 6s cycle, staggered by --d. */
.cta-live {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(0, 98, 255, 0.07) 0%, transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(255, 107, 0, 0.06) 0%, transparent 55%),
    #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 24px 60px -34px rgba(0, 98, 255, 0.35) !important;
  color: var(--text-primary);
}
.cta-live::before { opacity: 0; }
.cta-live h2 { color: var(--text-primary); }
.cta-live p { color: var(--text-secondary); }

.cta-w {
  position: relative;
  display: inline-block;
  color: var(--text-primary);
  animation: ctaWord 6s infinite;
  animation-delay: var(--d);
}
.cta-w::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 2px;
  border-radius: 2px;
  background: rgb(var(--c));
  transform: scaleX(0);
  transform-origin: left;
  animation: ctaUnderline 6s infinite;
  animation-delay: var(--d);
}
@keyframes ctaWord {
  0%, 36%, 100% { color: var(--text-primary); }
  6%, 30%       { color: rgb(var(--c)); }
}
@keyframes ctaUnderline {
  0%, 36%, 100% { transform: scaleX(0); }
  8%, 30%       { transform: scaleX(1); }
}

/* Ringing phone */
.cta-ring {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0062ff, #3b82f6);
  box-shadow: 0 10px 30px rgba(0, 98, 255, 0.5);
  color: #fff;
}
.cta-ring svg { width: 28px; height: 28px; animation: ctaShake 2s infinite; }
.cta-ring span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.7);
  animation: ctaSonar 2s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.cta-ring span:nth-child(2) { animation-delay: 0.5s; }
.cta-ring span:nth-child(3) { animation-delay: 1s; }
@keyframes ctaSonar {
  0%   { transform: scale(1);   opacity: 0.85; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes ctaShake {
  0%, 40%, 100% { transform: rotate(0); }
  5%, 15%, 25%  { transform: rotate(-14deg); }
  10%, 20%, 30% { transform: rotate(14deg); }
}

/* Answered → Qualified → Booked */
.cta-steps {
  position: relative;
  list-style: none;
  margin: 0 auto 30px;
  padding: 0;
  max-width: 420px;
  display: flex;
  justify-content: space-between;
}
.cta-steps::before,
.cta-steps::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.1);
}
.cta-steps::after {
  background: linear-gradient(90deg, #0062ff, #ff6b00, #10b981);
  transform-origin: left;
  animation: ctaTrack 6s infinite;
}
@keyframes ctaTrack {
  0%   { transform: scaleX(0); opacity: 1; }
  70%  { transform: scaleX(1); opacity: 1; }
  92%  { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}
.cta-steps li {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  animation: ctaStepText 6s infinite;
  animation-delay: var(--d);
}
.cta-steps li svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  color: #94a3b8;
  animation: ctaStepIcon 6s infinite;
  animation-delay: var(--d);
}
@keyframes ctaStepIcon {
  0%, 100% { border-color: rgba(15, 23, 42, 0.12); color: #94a3b8; box-shadow: none; background: #fff; }
  6%, 80%  { border-color: rgb(var(--c)); color: #fff; background: rgba(var(--c), 0.9); box-shadow: 0 0 0 4px rgba(var(--c), 0.14), 0 6px 16px rgba(var(--c), 0.35); }
}
@keyframes ctaStepText {
  0%, 100% { color: #94a3b8; }
  6%, 80%  { color: var(--text-primary); }
}
/* Steps 2 and 3 start later, so their "lit" window would spill into the next
   cycle; clamp it so all three go dark together at the end of each loop. */
.cta-steps li:nth-child(2), .cta-steps li:nth-child(2) svg { animation-name: ctaStepText2; }
.cta-steps li:nth-child(2) svg { animation-name: ctaStepIcon2; }
.cta-steps li:nth-child(3) { animation-name: ctaStepText3; }
.cta-steps li:nth-child(3) svg { animation-name: ctaStepIcon3; }
.cta-steps li:nth-child(n+2), .cta-steps li:nth-child(n+2) svg { animation-delay: 0s; }
@keyframes ctaStepIcon2 {
  0%, 33%, 92%, 100% { border-color: rgba(15, 23, 42, 0.12); color: #94a3b8; box-shadow: none; background: #fff; }
  38%, 88% { border-color: rgb(var(--c)); color: #fff; background: rgba(var(--c), 0.9); box-shadow: 0 0 0 4px rgba(var(--c), 0.14), 0 6px 16px rgba(var(--c), 0.35); }
}
@keyframes ctaStepText2 { 0%, 33%, 92%, 100% { color: #94a3b8; } 38%, 88% { color: var(--text-primary); } }
@keyframes ctaStepIcon3 {
  0%, 66%, 92%, 100% { border-color: rgba(15, 23, 42, 0.12); color: #94a3b8; box-shadow: none; background: #fff; }
  71%, 88% { border-color: rgb(var(--c)); color: #fff; background: rgba(var(--c), 0.9); box-shadow: 0 0 0 4px rgba(var(--c), 0.14), 0 6px 16px rgba(var(--c), 0.35); }
}
@keyframes ctaStepText3 { 0%, 66%, 92%, 100% { color: #94a3b8; } 71%, 88% { color: var(--text-primary); } }
/* Step 1 lights at the start and stays lit to the end of the loop too. */
.cta-steps li:nth-child(1) svg { animation-name: ctaStepIcon1; }
.cta-steps li:nth-child(1) { animation-name: ctaStepText1; }
@keyframes ctaStepIcon1 {
  0%, 92%, 100% { border-color: rgba(15, 23, 42, 0.12); color: #94a3b8; box-shadow: none; background: #fff; }
  5%, 88% { border-color: rgb(var(--c)); color: #fff; background: rgba(var(--c), 0.9); box-shadow: 0 0 0 4px rgba(var(--c), 0.14), 0 6px 16px rgba(var(--c), 0.35); }
}
@keyframes ctaStepText1 { 0%, 92%, 100% { color: #94a3b8; } 5%, 88% { color: var(--text-primary); } }

@media (max-width: 768px) {
  .service-cta-section:has(.cta-live) { padding: 28px 0; }
  .cta-live { padding: 30px 18px !important; }
  .cta-live h2 { font-size: 1.55rem !important; line-height: 1.25; }
  .cta-live p { font-size: 0.9rem; margin-bottom: 22px; }
  .cta-live .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-live *, .cta-live *::before, .cta-live *::after { animation: none !important; }
  .cta-steps::after { transform: scaleX(1); }
}


/* ── Workflow steps as a top-down pinned stack (app.js, every width) ─────
   Bigger cards, copy settled at the bottom so the water story fills the
   space above it; the card in front runs its water animation (the hover
   rules above are mirrored for .is-focus). */
#agentic-steps.cap-stack .workflow-arrow { display: none; }
#agentic-steps .cap-deck .workflow-step {
  min-height: 360px;
  justify-content: flex-end;
  padding: 22px 20px !important;
  background: #fff !important;
  border: 1px solid rgba(0, 150, 200, 0.18) !important;
}
#agentic-steps .cap-deck .workflow-step.is-focus {
  border-color: rgba(0, 229, 255, 0.45) !important;
  box-shadow: 0 18px 40px -16px rgba(0, 160, 220, 0.45) !important;
}
#agentic-steps .cap-progress span::after { background: #00b8d9; }
#agentic-steps .cap-sticky .section-header { margin-bottom: 0; }
/* Desktop: a centred deck at a readable width, title + subtitle pinned above. */
@media (min-width: 769px) {
  #agentic-steps .cap-deck { max-width: 640px; margin: 0 auto; }
  #agentic-steps .cap-deck .workflow-step { min-height: 340px; padding: 28px 30px !important; }
  #agentic-steps .cap-deck .workflow-step h4 { font-size: 1.15rem; }
  #agentic-steps .cap-deck .workflow-step p { font-size: 0.95rem; max-width: 52ch; }
  #agentic-steps .cap-sticky .section-subtitle { max-width: 640px; margin: 8px auto 0; }
}
@media (max-width: 768px) {
  #agentic-steps .cap-sticky .section-subtitle { display: none; }
  #agentic-steps .cap-sticky .section-title { font-size: 1.45rem; }
}

/* ── Phones: Agentic Workflow Sandbox fits one screen ────────────────────
   The palette was four boxes of stacked pills (~430px). Each group is now a
   single strip of chips that scrolls sideways — tap still picks a pill — and
   the badge, gaps and result box are tightened. */
@media (max-width: 768px) {
  #interactive-workflow-sandbox { padding-top: 12px !important; }
  #interactive-workflow-sandbox .section-header { margin-bottom: 10px !important; }
  #interactive-workflow-sandbox .section-header .service-hero-badge { display: none !important; }
  #interactive-workflow-sandbox .section-title { font-size: 1.45rem !important; margin: 0 !important; }
  #interactive-workflow-sandbox .sandbox-builder-wrapper { padding: 12px !important; }

  #interactive-workflow-sandbox .sandbox-palette {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }
  /* Every option visible, nothing to scroll sideways: the four groups sit
     in a 2×2 grid, each a short column of compact chips. (Sideways strips hid
     the later options and caught vertical swipes, which felt like a bounce.) */
  #interactive-workflow-sandbox .sandbox-palette {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  #interactive-workflow-sandbox .palette-group { padding: 7px 7px !important; }
  #interactive-workflow-sandbox .palette-title { margin: 0 0 5px !important; font-size: 0.58rem !important; line-height: 1.2; }
  #interactive-workflow-sandbox .draggable-pills {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
  }
  #interactive-workflow-sandbox .drag-pill {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 3px 7px !important;
    font-size: 0.66rem !important;
    line-height: 1.25 !important;
    min-height: 0 !important;
    gap: 5px !important;
    border-radius: 6px !important;
  }
  #interactive-workflow-sandbox .drag-pill svg { width: 12px !important; height: 12px !important; flex-shrink: 0; }

  #interactive-workflow-sandbox .sandbox-flowchart { margin-bottom: 10px !important; }
  #interactive-workflow-sandbox .sandbox-result-box { padding: 12px 14px !important; }
  #interactive-workflow-sandbox .sandbox-result-box > div:first-child { margin-bottom: 6px !important; }
  #interactive-workflow-sandbox #workflow-result-desc {
    font-size: 0.82rem !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #interactive-workflow-sandbox .sandbox-result-box .btn { padding-top: 10px !important; padding-bottom: 10px !important; }
}

/* ── Phones: "Every corner" cards — living icons ─────────────────────────
   Each card's static icon is replaced by a small scene (markup in the page)
   that plays only while its card is the one in view in the carousel. One
   3.6s cycle per scene; --t staggers the parts. Desktop keeps the icons. */
.wa-scene { display: none; }
@media (max-width: 768px) {
  #what-we-automate .feature-card {
    min-height: 300px;
    padding: 0 20px 22px !important;
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, 0.09) !important;
    overflow: hidden;
  }
  #what-we-automate .loop-slide.is-current.feature-card {
    border-color: rgba(0, 98, 255, 0.25) !important;
    box-shadow: 0 18px 40px -16px rgba(0, 98, 255, 0.4) !important;
  }
  #what-we-automate .feature-card > svg { display: none !important; }
  #what-we-automate .feature-card h4 { margin-top: 4px; }
  #what-we-automate .wa-scene {
    display: block;
    align-self: stretch;
    position: relative;
    height: 132px;
    margin: 0 -20px 14px;
    background:
      radial-gradient(90% 120% at 50% 0%, rgba(0, 98, 255, 0.07), transparent 70%),
      linear-gradient(180deg, #f8fbff, #fff);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
  }
  /* Only the card in view animates. */
  #what-we-automate .wa-scene *,
  #what-we-automate .wa-scene *::before,
  #what-we-automate .wa-scene *::after { animation-play-state: paused !important; }
  #what-we-automate .is-current .wa-scene *,
  #what-we-automate .is-current .wa-scene *::before,
  #what-we-automate .is-current .wa-scene *::after { animation-play-state: running !important; }

  /* 1 · Inbox: envelopes drop into the tray and are sorted into lanes */
  .wa-inbox .wa-tray {
    position: absolute; left: 50%; top: 34px; width: 74px; height: 26px; margin-left: -37px;
    border: 2px solid rgba(0, 98, 255, 0.55); border-top: none; border-radius: 0 0 10px 10px;
    animation: waTray 1.2s ease-in-out infinite;
  }
  .wa-inbox .wa-tray::before { content: ''; position: absolute; left: 22px; right: 22px; bottom: 6px; height: 2px; background: rgba(0, 98, 255, 0.4); border-radius: 2px; }
  @keyframes waTray { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 6px 16px -6px rgba(0, 98, 255, 0.6); } }
  .wa-inbox .wa-env {
    position: absolute; left: 50%; top: 0; width: 24px; height: 16px; margin-left: -12px;
    border-radius: 3px; background: #fff; border: 1.5px solid rgb(var(--c));
    opacity: 0; animation: waEnv 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: var(--t);
  }
  .wa-inbox .wa-env::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 48%, rgb(var(--c)) 49% 53%, transparent 54%), linear-gradient(to bottom left, transparent 48%, rgb(var(--c)) 49% 53%, transparent 54%); background-size: 100% 70%; background-repeat: no-repeat; }
  @keyframes waEnv {
    0%   { transform: translate(0, -22px); opacity: 0; }
    10%  { transform: translate(0, 30px);  opacity: 1; }
    22%  { transform: translate(0, 30px) scale(1.12); opacity: 1; }
    40%  { transform: translate(var(--dx), 86px) scale(0.8); opacity: 1; }
    46%, 100% { transform: translate(var(--dx), 92px) scale(0.6); opacity: 0; }
  }
  .wa-inbox .wa-lane {
    position: absolute; left: 50%; bottom: 10px; transform: translateX(calc(-50% + var(--x)));
    font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase;
    padding: 5px 8px; border-radius: 999px; color: rgb(var(--c));
    background: rgba(var(--c), 0.08); border: 1px solid rgba(var(--c), 0.25);
    animation: waLane 3.6s ease-out infinite; animation-delay: var(--t);
  }
  @keyframes waLane { 0%, 38%, 60%, 100% { box-shadow: none; background: rgba(var(--c), 0.08); } 44% { box-shadow: 0 0 0 4px rgba(var(--c), 0.15); background: rgba(var(--c), 0.18); } }

  /* 2 · Documents: a scan line reads the page, fields pop out */
  .wa-doc .wa-page {
    position: absolute; left: 22%; top: 18px; width: 70px; height: 92px; margin-left: -35px;
    background: #fff; border: 1.5px solid rgba(15, 23, 42, 0.18); border-radius: 6px;
    box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.4); overflow: hidden;
    display: flex; flex-direction: column; gap: 8px; padding: 12px 10px;
  }
  .wa-doc .wa-page i { display: block; height: 4px; border-radius: 2px; background: rgba(15, 23, 42, 0.14); }
  .wa-doc .wa-page i:nth-child(2) { width: 70%; } .wa-doc .wa-page i:nth-child(4) { width: 55%; }
  .wa-doc .wa-scan {
    position: absolute; left: 0; right: 0; top: 0; height: 18px;
    background: linear-gradient(180deg, transparent, rgba(0, 98, 255, 0.35), transparent);
    border-bottom: 2px solid rgba(0, 98, 255, 0.8);
    animation: waScan 1.8s ease-in-out infinite;
  }
  @keyframes waScan { 0% { transform: translateY(-18px); } 100% { transform: translateY(92px); } }
  .wa-doc .wa-field {
    position: absolute; left: 52%; padding: 6px 10px; border-radius: 8px;
    font: 600 0.68rem/1 var(--font-mono); color: #0f7a55; background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    opacity: 0; animation: waField 3.6s ease-out infinite; animation-delay: var(--t);
  }
  .wa-doc .wa-field:nth-of-type(1) { top: 20px; } .wa-doc .wa-field:nth-of-type(2) { top: 52px; } .wa-doc .wa-field:nth-of-type(3) { top: 84px; }
  @keyframes waField { 0% { opacity: 0; transform: translateX(-30px) scale(0.8); } 10%, 70% { opacity: 1; transform: none; } 85%, 100% { opacity: 0; transform: none; } }

  /* 3 · CRM: rows type themselves in, sync spins, each row ticks */
  .wa-crm .wa-table {
    position: absolute; left: 50%; top: 22px; width: 210px; margin-left: -105px;
    display: flex; flex-direction: column; gap: 10px; padding: 10px 12px;
    background: #fff; border: 1.5px solid rgba(15, 23, 42, 0.12); border-radius: 10px;
  }
  .wa-crm .wa-row { display: flex; align-items: center; gap: 8px; height: 14px; }
  .wa-crm .wa-row i { flex: 1; height: 6px; border-radius: 3px; background: rgba(0, 98, 255, 0.6); transform-origin: left; transform: scaleX(0); animation: waType 3.6s ease-out infinite; animation-delay: var(--t); }
  .wa-crm .wa-row b { width: 12px; height: 12px; border-radius: 50%; background: #10b981; transform: scale(0); animation: waTick 3.6s ease-out infinite; animation-delay: var(--t); }
  @keyframes waType { 0% { transform: scaleX(0); } 18%, 80% { transform: scaleX(1); } 92%, 100% { transform: scaleX(0); } }
  @keyframes waTick { 0%, 18% { transform: scale(0); } 24% { transform: scale(1.3); } 30%, 80% { transform: scale(1); } 92%, 100% { transform: scale(0); } }
  .wa-crm .wa-sync {
    position: absolute; right: calc(50% - 128px); top: 10px; width: 22px; height: 22px; border-radius: 50%;
    border: 2.5px solid rgba(0, 98, 255, 0.75); border-right-color: transparent; border-left-color: transparent;
    animation: waSpin 1.2s linear infinite;
  }
  @keyframes waSpin { to { transform: rotate(360deg); } }

  /* 4 · Approvals: a request travels the chain, each step signs off */
  .wa-approve .wa-link { position: absolute; left: 16%; right: 16%; top: 58px; height: 2px; background: repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.2) 0 6px, transparent 6px 11px); }
  .wa-approve .wa-node {
    position: absolute; left: var(--x); top: 40px; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font: 700 0.8rem/1 var(--font-mono); color: rgba(15, 23, 42, 0.5);
    background: #fff; border: 2px solid rgba(15, 23, 42, 0.18);
    animation: waSign 3.6s ease-out infinite; animation-delay: var(--t);
  }
  @keyframes waSign {
    0%, 8%   { background: #fff; color: rgba(15, 23, 42, 0.5); border-color: rgba(15, 23, 42, 0.18); box-shadow: none; }
    14%, 70% { background: #10b981; color: #fff; border-color: #10b981; box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.18); }
    85%, 100% { background: #fff; color: rgba(15, 23, 42, 0.5); border-color: rgba(15, 23, 42, 0.18); box-shadow: none; }
  }
  .wa-approve .wa-token {
    position: absolute; left: 16%; top: 52px; width: 14px; height: 14px; margin-left: -7px; border-radius: 3px;
    background: #ff6b00; box-shadow: 0 0 12px rgba(255, 107, 0, 0.7);
    animation: waToken 3.6s ease-in-out infinite;
  }
  @keyframes waToken { 0% { left: 6%; opacity: 0; } 10% { left: 16%; opacity: 1; } 38% { left: 50%; } 66% { left: 84%; opacity: 1; } 76%, 100% { left: 94%; opacity: 0; } }

  /* 5 · Site check-in: pin drops, ripple, data flies to the server */
  .wa-site .wa-map {
    position: absolute; left: 12px; top: 14px; width: 46%; bottom: 14px; border-radius: 10px;
    background-color: #eef4ff;
    background-image: linear-gradient(rgba(0, 98, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 98, 255, 0.12) 1px, transparent 1px);
    background-size: 16px 16px; border: 1px solid rgba(0, 98, 255, 0.18);
  }
  .wa-site .wa-pin {
    position: absolute; left: calc(12px + 23%); top: 40px; width: 20px; height: 20px; margin-left: -10px;
    border-radius: 50% 50% 50% 0; background: #ff6b00; transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.45);
    animation: waPin 3.6s cubic-bezier(0.3, 1.4, 0.5, 1) infinite;
  }
  .wa-site .wa-pin::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
  @keyframes waPin { 0% { transform: translateY(-50px) rotate(-45deg); opacity: 0; } 14% { transform: translateY(0) rotate(-45deg); opacity: 1; } 80% { opacity: 1; } 92%, 100% { opacity: 0; } }
  .wa-site .wa-ripple {
    position: absolute; left: calc(12px + 23%); top: 62px; width: 30px; height: 10px; margin-left: -15px; border-radius: 50%;
    border: 2px solid rgba(255, 107, 0, 0.6); opacity: 0;
    animation: waRipple 3.6s ease-out infinite;
  }
  @keyframes waRipple { 0%, 14% { transform: scale(0.4); opacity: 0; } 18% { opacity: 1; } 40%, 100% { transform: scale(2.4); opacity: 0; } }
  .wa-site .wa-wire { position: absolute; left: calc(12px + 46%); right: 58px; top: 66px; height: 2px; background: repeating-linear-gradient(90deg, rgba(0, 98, 255, 0.35) 0 5px, transparent 5px 10px); }
  .wa-site .wa-packet {
    position: absolute; left: calc(12px + 46%); top: 62px; width: 10px; height: 10px; border-radius: 50%;
    background: #0062ff; box-shadow: 0 0 10px rgba(0, 98, 255, 0.8); opacity: 0;
    animation: waPacket 3.6s ease-in-out infinite;
  }
  @keyframes waPacket { 0%, 30% { left: calc(12px + 46%); opacity: 0; } 34% { opacity: 1; } 60% { left: calc(100% - 64px); opacity: 1; } 64%, 100% { left: calc(100% - 64px); opacity: 0; } }
  .wa-site .wa-server {
    position: absolute; right: 14px; top: 36px; width: 40px; height: 60px; border-radius: 6px;
    background: #0f172a; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 8px;
  }
  .wa-site .wa-server i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); animation: waLed 3.6s infinite; }
  .wa-site .wa-server i:nth-child(2) { animation-delay: 0.1s; } .wa-site .wa-server i:nth-child(3) { animation-delay: 0.2s; }
  @keyframes waLed { 0%, 60% { background: rgba(255, 255, 255, 0.18); } 64%, 80% { background: #10b981; box-shadow: 0 0 6px #10b981; } 90%, 100% { background: rgba(255, 255, 255, 0.18); } }

  /* 6 · Monitoring: the metric line draws, spikes past the threshold, bell rings */
  .wa-mon svg { position: absolute; left: 12px; right: 54px; top: 18px; width: calc(100% - 66px); height: 96px; overflow: visible; }
  .wa-mon .wa-thr { stroke: rgba(239, 68, 68, 0.55); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
  .wa-mon .wa-line {
    fill: none; stroke: #0062ff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
    stroke-dasharray: 400; stroke-dashoffset: 400; animation: waDraw 3.6s ease-out infinite;
  }
  @keyframes waDraw { 0% { stroke-dashoffset: 400; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  .wa-mon .wa-bell { position: absolute; right: 14px; top: 20px; width: 30px; height: 30px; color: #94a3b8; animation: waBell 3.6s ease-in-out infinite; transform-origin: 50% 10%; }
  .wa-mon .wa-bell svg { position: static; width: 100%; height: 100%; }
  .wa-mon .wa-bell::after { content: ''; position: absolute; right: 1px; top: 1px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); transform: scale(0); animation: waDot 3.6s ease-out infinite; }
  @keyframes waBell { 0%, 40%, 80%, 100% { transform: rotate(0); color: #94a3b8; } 44%, 52%, 60% { transform: rotate(-16deg); color: #ef4444; } 48%, 56%, 64% { transform: rotate(16deg); color: #ef4444; } 68%, 76% { color: #ef4444; } }
  @keyframes waDot { 0%, 40% { transform: scale(0); } 46%, 80% { transform: scale(1); } 90%, 100% { transform: scale(0); } }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  #what-we-automate .wa-scene *, #what-we-automate .wa-scene *::before, #what-we-automate .wa-scene *::after { animation: none !important; }
}

/* ── Workflow CTA: a full day over the city (24/7) ───────────────────────
   One 16s loop. The sun rises from behind the skyline on the left, arcs
   overhead and sets on the right; the moon follows the same arc through the
   night. The sky crossfades dawn → day → dusk → night, stars come out after
   dark, and the office windows never go out — brightest at night. The clock
   (page script) runs in step: 06:00 sunrise, 12:00 noon, 18:00 sunset.
   Timeline: 0% sunrise · 25% noon · 50% sunset · 75% midnight · 100% sunrise. */
.cta-shift {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--text-primary);
  background: #fff !important;                       /* light, in the page's own style (Mars, 21 Nov) */
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 24px 60px -34px rgba(0, 98, 255, 0.35) !important;
}
.cta-shift::before { opacity: 0; }
.cta-shift > *:not(.shift-sky) { position: relative; z-index: 2; }
.cta-shift h2 { color: var(--text-primary); text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9); }
.cta-shift p { color: var(--text-secondary); text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9); }
.shift-sky { position: absolute !important; inset: 0; z-index: 0 !important; }
.shift-sky > span { position: absolute; inset: 0; }

/* Sky layers, crossfaded over the base night sky */
.sky-night { background: linear-gradient(180deg, #e9ecf8 0%, #eef0fa 70%, #f3f4fb 100%); }
.sky-day   { background: linear-gradient(180deg, #e3f0ff 0%, #eef6ff 55%, #f8fbff 100%); opacity: 0; animation: skyDay 16s linear infinite; }
.sky-dusk  { background: linear-gradient(180deg, #f3eefc 0%, #fdeee6 55%, #ffe2cc 85%, #ffd6b8 100%); opacity: 0; animation: skyDusk 16s linear infinite; }
@keyframes skyDay  { 0% { opacity: 0; } 9%, 41% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes skyDusk { 0% { opacity: 1; } 9% { opacity: 0; } 41% { opacity: 0; } 50% { opacity: 1; } 59% { opacity: 0; } 91% { opacity: 0; } 100% { opacity: 1; } }

.shift-stars {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 14%, #94a3c8 50%, transparent 52%),
    radial-gradient(1px 1px at 26% 30%, #94a3c8 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 41% 10%, #94a3c8 50%, transparent 52%),
    radial-gradient(1px 1px at 58% 24%, #94a3c8 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 73% 12%, #94a3c8 50%, transparent 52%),
    radial-gradient(1px 1px at 88% 30%, #94a3c8 50%, transparent 52%),
    radial-gradient(1px 1px at 7% 40%, #94a3c8 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 50% 38%, #94a3c8 50%, transparent 52%),
    radial-gradient(1px 1px at 34% 48%, #94a3c8 50%, transparent 52%),
    radial-gradient(1px 1px at 81% 46%, #94a3c8 50%, transparent 52%),
    radial-gradient(1px 1px at 66% 54%, #94a3c8 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 94% 8%, #94a3c8 50%, transparent 52%);
  opacity: 0;
  animation: shiftStars 16s linear infinite;
}
@keyframes shiftStars { 0% { opacity: 0.25; } 6%, 50% { opacity: 0; } 60%, 90% { opacity: 0.95; } 100% { opacity: 0.25; } }

/* Sun and moon share one arc, pivoting on the horizon (the skyline's base).
   Radius = 70% of the card's height, so the noon sun clears the top edge. */
.shift-orbit {
  position: absolute !important;
  left: 50% !important; top: 80% !important;
  height: 140% !important; width: auto !important; aspect-ratio: 1;
  inset: auto;
  transform: translate(-50%, -50%) rotate(-90deg);
  animation: shiftArc 16s linear infinite;
}
@keyframes shiftArc { from { transform: translate(-50%, -50%) rotate(-90deg); } to { transform: translate(-50%, -50%) rotate(270deg); } }
.shift-sun, .shift-moon { position: absolute; left: 50%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; }
.shift-sun {
  top: -23px;
  background: radial-gradient(circle at 40% 40%, #fff3c4, #ffc35a 45%, #ff8a1f 75%, #ff6b00);
  box-shadow: 0 0 40px 14px rgba(255, 160, 60, 0.6), 0 0 120px 40px rgba(255, 120, 40, 0.25);
}
.shift-moon {
  bottom: -23px;
  background: #fff;
  box-shadow: inset -12px -6px 0 0 #d5dcef, 0 0 0 1px rgba(148, 163, 200, 0.35), 0 0 24px 6px rgba(148, 163, 200, 0.25);
}

/* Skyline: silhouettes along the bottom 20%, windows always lit */
.shift-city {
  top: auto !important; height: 20%;
  display: flex; align-items: flex-end; gap: 3px; padding: 0 2%;
}
.shift-city i {
  position: relative;
  flex: 0 0 var(--w); height: var(--h);
  background: #d6deee;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6);
}
.shift-city i::after {
  content: ''; position: absolute; inset: 6px 4px 0;
  background-image: radial-gradient(circle, #ffb36b 1.1px, transparent 1.6px);
  background-size: 7px 8px;
  opacity: 0.45;
  animation: cityLights 16s linear infinite;
}
.shift-city i:nth-child(3n)::after { animation-delay: -0.6s; background-size: 6px 9px; }
.shift-city i:nth-child(4n)::after { animation-delay: -1.3s; }
@keyframes cityLights { 0% { opacity: 0.6; } 10%, 42% { opacity: 0.3; } 54%, 92% { opacity: 1; } 100% { opacity: 0.6; } }
/* A soft horizon glow at sunrise and sunset */
.shift-sky::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 14%; height: 30%;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(255, 150, 70, 0.3), transparent 70%);
  opacity: 0; animation: skyDusk 16s linear infinite;
}

/* Clock in the top-left corner, so the noon sun has the top of the sky. */
.cta-shift > .shift-clock {
  position: absolute !important; top: 16px; left: 16px;
}
.cta-shift { padding-top: 88px !important; }    /* the noon sun sits above the headline */
.shift-clock {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary);
}
.shift-time { font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; min-width: 3.2em; }
.shift-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; animation: shiftBlink 1.6s ease-in-out infinite; }
@keyframes shiftBlink { 50% { opacity: 0.35; } }
.shift-247 {
  background: linear-gradient(90deg, #0062ff, #ff6b00, #10b981, #0062ff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shift247 6s linear infinite;
  font-weight: 600;
  text-shadow: none;
}
@keyframes shift247 { to { background-position: 300% 0; } }
/* Leave the skyline clear: the button sits just above it */
.cta-shift .btn { margin-bottom: 9%; }
@media (max-width: 768px) {
  .service-cta-section:has(.cta-shift) { padding: 28px 0; }
  .cta-shift { padding: 72px 18px 34px !important; }   /* room for the noon sun above the headline */
  .cta-shift > .shift-clock { top: 14px; left: 14px; }
  .cta-shift .shift-label { display: none; }    /* just the time: keeps the pill clear of the noon sun */
  .cta-shift h2 { font-size: 1.55rem !important; line-height: 1.25; }
  .cta-shift p { font-size: 0.9rem; }
  .cta-shift .btn { width: 100%; justify-content: center; margin-bottom: 64px; }
  .shift-sun, .shift-moon { width: 38px; height: 38px; margin-left: -19px; }
  .shift-sun { top: -19px; } .shift-moon { bottom: -19px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-shift *, .cta-shift *::before, .cta-shift *::after, .shift-sky::after { animation: none !important; }
  .sky-day { opacity: 1; }
}

/* ── AIBA: savings card tap hint ─────────────────────────────────────────
   The shared blue tap hand (styles.css), in the card's top-right corner —
   inside the padding, clear of the ticker and the stack. */
.saas-simulator-card { position: relative; }
.saas-simulator-card .tap-hint { top: 4px; right: 4px; }

/* ── Phones: Hyper-Intelligent AI Integrations carousel ──────────────────
   Bigger cards; the one in view comes alive: its icon sits in a spinning
   conic halo with two orbiting sparks over a drifting circuit grid. */
@media (max-width: 768px) {
  #cognitive-integrations .feature-card {
    min-height: 310px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 132px 20px 22px !important;
    position: relative;
    overflow: hidden;
    background: #fff !important;
  }
  #cognitive-integrations .feature-card::after {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 118px; z-index: 0;
    background-image:
      linear-gradient(rgba(0, 191, 255, 0.10) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 191, 255, 0.10) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000, transparent);
    mask-image: radial-gradient(70% 90% at 50% 50%, #000, transparent);
    animation: intGrid 6s linear infinite paused;
  }
  @keyframes intGrid { to { background-position: 22px 22px; } }
  #cognitive-integrations .feature-card > svg {
    position: absolute !important; left: 50%; top: 30px; z-index: 2;
    width: 58px !important; height: 58px !important; margin: 0 0 0 -29px !important;
    padding: 14px; box-sizing: border-box; border-radius: 50%;
    background: #fff; color: #0096d6 !important;
    box-shadow: 0 0 0 1px rgba(0, 191, 255, 0.2);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
  }
  #cognitive-integrations .feature-card::before {
    content: '';
    position: absolute; left: 50%; top: 22px; width: 74px; height: 74px; margin-left: -37px; z-index: 1;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 40%, #00c2ff, #0062ff, #8b5cf6, transparent 95%);
    -webkit-mask: radial-gradient(circle, transparent 33px, #000 34px);
    mask: radial-gradient(circle, transparent 33px, #000 34px);
    opacity: 0.25;
    animation: intHalo 2.4s linear infinite paused;
  }
  @keyframes intHalo { to { transform: rotate(360deg); } }
  #cognitive-integrations .feature-card h4,
  #cognitive-integrations .feature-card p { position: relative; z-index: 2; }
  #cognitive-integrations .loop-slide.is-current::before { opacity: 1; animation-play-state: running; }
  #cognitive-integrations .loop-slide.is-current::after { animation-play-state: running; }
  #cognitive-integrations .loop-slide.is-current > svg {
    transform: scale(1.06);
    box-shadow: 0 0 0 1px rgba(0, 191, 255, 0.35), 0 0 26px rgba(0, 150, 255, 0.45);
  }
  #cognitive-integrations .loop-slide.is-current {
    border-color: rgba(0, 191, 255, 0.4) !important;
    box-shadow: 0 18px 40px -16px rgba(0, 150, 255, 0.45) !important;
  }
  /* Orbiting sparks, drawn as two dots on a spinning ring around the icon */
  #cognitive-integrations .loop-slide.is-current h4::before {
    content: '';
    position: absolute; left: 50%; top: -121px; width: 96px; height: 96px; margin-left: -48px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 0%, #00c2ff 3px, transparent 4px),
      radial-gradient(circle at 50% 100%, #ff6b00 3px, transparent 4px);
    animation: intHalo 3.2s linear infinite reverse;
    pointer-events: none;
  }
  /* The "Unlimited" card keeps its orange identity */
  #cognitive-integrations .feature-card:last-child > svg { color: var(--accent-orange) !important; }
  #cognitive-integrations .feature-card:last-child::before {
    background: conic-gradient(from 0deg, transparent 0 40%, #ffb36b, #ff6b00, #ef4444, transparent 95%);
  }
}

/* ── Phones: "You buy it. You own it. Forever." ──────────────────────────
   It used to swing from a pivot at its top edge, like a sign nailed up in a
   gale. Now it floats free in the wind — drifting and tilting round its own
   centre while the gusts blow through — and it fits one screen. */
@media (max-width: 768px) {
  .ownership-container {
    animation: windFloat 6s ease-in-out infinite !important;
    transform-origin: 50% 50% !important;
    perspective: none;
  }
  @keyframes windFloat {
    0%   { transform: translate(0, 0) rotate(0deg); }
    20%  { transform: translate(6px, -4px) rotate(0.8deg); }
    45%  { transform: translate(-3px, 3px) rotate(-0.5deg); }
    70%  { transform: translate(5px, -2px) rotate(0.6deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
  }
  .ownership-block {
    padding: 24px 20px !important;
    box-shadow: 0 24px 44px -24px rgba(0, 98, 255, 0.4) !important;
  }
  :root[data-theme="dark"] .ownership-block { box-shadow: inset 0 1px 0 var(--dk-light-top) !important; }   /* no coloured glow in dark (R3) */
  .ownership-block h2 { font-size: 1.5rem !important; margin-bottom: 10px !important; }
  .ownership-block > p {
    font-size: 0.88rem !important; line-height: 1.55 !important; margin-bottom: 18px !important;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  .ownership-pillars { gap: 14px !important; grid-template-columns: 1fr !important; }
  .pillar {
    display: grid !important;
    grid-template-columns: 22px 1fr;
    column-gap: 10px; row-gap: 2px;
  }
  .pillar > svg { grid-row: span 2; width: 20px !important; height: 20px !important; margin-top: 2px; }
  .pillar strong { font-size: 0.9rem !important; }
  .pillar span { font-size: 0.8rem !important; }
  .wind-line { height: 2px; }
  .wind-1 { animation-duration: 2.6s !important; }
  .wind-2 { animation-duration: 3.4s !important; }
  .wind-3 { animation-duration: 3s !important; }
}

/* ── AIBA CTA: "Scale beyond your wildest imagination" — warp drive ──── */
.cta-scale {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #050816 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 30px 80px -30px rgba(0, 98, 255, 0.6) !important;
  color: #fff;
}
.cta-scale::before { opacity: 0; }
.cta-scale > *:not(.scale-canvas) { position: relative; z-index: 2; }
.cta-scale .scale-canvas { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 0 !important; opacity: 0.8; }
/* Readability scrim: a dark vignette behind the centred copy, strongest in
   the middle and fading out, so the streaks stay vivid at the edges while
   the headline, paragraph and button read cleanly over them. */
.cta-scale::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(3, 5, 13, 0.82) 0%, rgba(3, 5, 13, 0.6) 45%, rgba(3, 5, 13, 0) 100%);
}
.cta-scale h2 { color: #fff; text-shadow: 0 2px 24px rgba(5, 8, 22, 0.9); }
.cta-scale p { color: rgba(226, 232, 240, 0.85); text-shadow: 0 1px 12px rgba(5, 8, 22, 0.9); }
.scale-wild {
  background: linear-gradient(90deg, #00c2ff, #8b5cf6, #ff6b00, #10b981, #00c2ff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shift247 5s linear infinite;
  text-shadow: none;
}
@media (max-width: 768px) {
  .service-cta-section:has(.cta-scale) { padding: 28px 0; }
  .cta-scale { padding: 44px 18px !important; }
  .cta-scale h2 { font-size: 1.6rem !important; line-height: 1.25; }
  .cta-scale .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  #cognitive-integrations .feature-card::before, #cognitive-integrations .feature-card::after,
  .scale-wild, .ownership-container { animation: none !important; }
}

/* Carousel cards must never transition their size: these sections give
   their cards `transition: all`, which animated the carousel's own width
   change into a squash-and-grow. Only paint properties may ease. */
#cognitive-integrations .loop-track > .feature-card,
#what-we-automate .loop-track > .feature-card,
[data-loop-carousel] > .loop-slide {
  transition-property: border-color, box-shadow, background-color, color, transform, opacity !important;
}

/* ── Phones: ExperienceHub cards — living scenes ─────────────────────────
   "One link…" cards are a pinned stack (app.js), the assistant cards an
   endless carousel; each card opens with a small violet scene that plays
   only while it is the one in focus. 3.6s cycles; --t staggers parts. */
.bx-scene { display: none; }
@media (max-width: 768px) {
  #why-showcase .capability-card,
  #bx-assistant .capability-card {
    padding-top: 0 !important;
    overflow: hidden;
    background: #fff !important;
  }
  #bx-assistant .loop-slide.is-current {
    border-color: rgba(139, 92, 246, 0.35) !important;
    box-shadow: 0 18px 40px -16px rgba(139, 92, 246, 0.45) !important;
  }
  #why-showcase .bx-scene,
  #bx-assistant .bx-scene {
    display: block;
    align-self: stretch;          /* the card left-aligns its children */
    position: relative;
    height: 128px;
    margin: 0 -24px 14px;
    background: radial-gradient(90% 120% at 50% 0%, rgba(139, 92, 246, 0.10), transparent 70%), linear-gradient(180deg, #faf8ff, #fff);
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
    overflow: hidden;
    --v: 139, 92, 246;
  }
  .bx-scene *, .bx-scene *::before, .bx-scene *::after { animation-play-state: paused !important; }
  .is-focus .bx-scene *, .is-focus .bx-scene *::before, .is-focus .bx-scene *::after,
  .is-current .bx-scene *, .is-current .bx-scene *::before, .is-current .bx-scene *::after { animation-play-state: running !important; }

  /* It goes where you send it: a locked link flies to three chosen people */
  .bx-send .bx-hub { position: absolute; left: 50%; bottom: 14px; width: 34px; height: 34px; margin-left: -17px; border-radius: 10px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 6px 16px rgba(var(--v), 0.45); }
  .bx-send .bx-hub i { position: absolute; left: 11px; top: 14px; width: 12px; height: 9px; border-radius: 2px; background: #fff; }
  .bx-send .bx-hub i::before { content: ''; position: absolute; left: 2px; top: -6px; width: 8px; height: 8px; border: 2px solid #fff; border-bottom: none; border-radius: 5px 5px 0 0; box-sizing: border-box; }
  .bx-send .bx-dest {
    position: absolute; left: 50%; top: 50%; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
    font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase;
    padding: 6px 9px; border-radius: 999px; color: #6d28d9; background: #fff; border: 1px solid rgba(var(--v), 0.3);
    animation: bxDest 3.6s ease-out infinite; animation-delay: var(--t);
  }
  @keyframes bxDest { 0%, 26%, 70%, 100% { box-shadow: none; } 32%, 60% { box-shadow: 0 0 0 4px rgba(var(--v), 0.18); background: #f3edff; } }
  .bx-send .bx-plane {
    position: absolute; left: 50%; bottom: 30px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
    background: #8b5cf6; box-shadow: 0 0 10px rgba(var(--v), 0.9); opacity: 0;
    animation: bxPlane 3.6s ease-in-out infinite; animation-delay: var(--t);
  }
  @keyframes bxPlane { 0% { transform: translate(0, 0); opacity: 0; } 5% { opacity: 1; } 28% { transform: translate(var(--x), calc(var(--y) - 22px)); opacity: 1; } 32%, 100% { transform: translate(var(--x), calc(var(--y) - 22px)); opacity: 0; } }

  /* It maintains itself: live bars keep re-settling, a sync ring turns */
  .bx-live .bx-livepill { position: absolute; left: 18px; top: 14px; font: 700 0.6rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: #ef4444; padding: 4px 8px 4px 16px; border-radius: 999px; }
  .bx-live .bx-livepill::before { content: ''; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; animation: shiftBlink 1.2s ease-in-out infinite; }
  .bx-live .bx-bars { position: absolute; left: 50%; bottom: 16px; width: 170px; height: 80px; margin-left: -85px; display: flex; align-items: flex-end; gap: 12px; }
  .bx-live .bx-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #a78bfa, #7c3aed); animation: bxBar 3.6s ease-in-out infinite; }
  .bx-live .bx-bars i:nth-child(2) { animation-delay: 0.3s; } .bx-live .bx-bars i:nth-child(3) { animation-delay: 0.6s; } .bx-live .bx-bars i:nth-child(4) { animation-delay: 0.9s; } .bx-live .bx-bars i:nth-child(5) { animation-delay: 1.2s; }
  @keyframes bxBar { 0%, 100% { height: var(--h); } 50% { height: var(--h2); } }
  .bx-live .bx-syncring { position: absolute; right: 18px; top: 12px; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #8b5cf6; border-right-color: transparent; animation: waSpin 1.2s linear infinite; }

  /* It replaces the pack: the documents fly together into one link */
  .bx-pack .bx-doc {
    position: absolute; left: 50%; top: 22px; width: 38px; height: 48px; margin-left: -19px;
    border-radius: 5px; background: #fff; border: 1.5px solid rgba(15, 23, 42, 0.16);
    font: 700 0.56rem/48px var(--font-mono); text-align: center; color: rgba(15, 23, 42, 0.55);
    box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.35);
    animation: bxDoc 3.6s cubic-bezier(0.6, 0, 0.3, 1) infinite;
  }
  @keyframes bxDoc {
    0%, 20% { transform: translateX(var(--x)) rotate(var(--r)); opacity: 1; }
    45% { transform: translateX(0) rotate(0) scale(0.6); opacity: 0; }
    90% { transform: translateX(0) rotate(0) scale(0.6); opacity: 0; }
    100% { transform: translateX(var(--x)) rotate(var(--r)); opacity: 1; }
  }
  .bx-pack .bx-one {
    position: absolute; left: 50%; top: 40px; transform: translateX(-50%) scale(0.6);
    white-space: nowrap; font: 600 0.72rem/1 var(--font-display); color: #fff;
    padding: 10px 14px; border-radius: 10px; background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 8px 24px rgba(var(--v), 0.5); opacity: 0;
    animation: bxOne 3.6s cubic-bezier(0.3, 1.4, 0.5, 1) infinite;
  }
  @keyframes bxOne { 0%, 40% { opacity: 0; transform: translateX(-50%) scale(0.6); } 52%, 86% { opacity: 1; transform: translateX(-50%) scale(1); } 96%, 100% { opacity: 0; transform: translateX(-50%) scale(0.9); } }

  /* It answers from the record: question, typed answer, source chip */
  .bx-record .bx-q, .bx-night .bx-msg {
    position: absolute; max-width: 78%; padding: 8px 11px; border-radius: 12px; font-size: 0.72rem; line-height: 1.3; white-space: nowrap;
  }
  .bx-record .bx-q { right: 16px; top: 14px; background: #0f172a; color: #fff; border-bottom-right-radius: 4px; animation: bxIn 3.6s ease-out infinite; }
  .bx-record .bx-a { position: absolute; left: 16px; top: 54px; width: 62%; padding: 10px 12px; border-radius: 12px; border-bottom-left-radius: 4px; background: #f3edff; display: flex; flex-direction: column; gap: 6px; animation: bxIn 3.6s ease-out infinite; animation-delay: 0.5s; opacity: 0; }
  .bx-record .bx-a b { display: block; height: 6px; border-radius: 3px; background: rgba(var(--v), 0.55); transform-origin: left; animation: waType 3.6s ease-out infinite; animation-delay: 0.7s; }
  .bx-record .bx-a b + b { width: 70%; animation-delay: 1s; }
  .bx-record .bx-cite { position: absolute; left: 16px; bottom: 10px; font: 600 0.6rem/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: #6d28d9; padding: 5px 8px; border-radius: 999px; border: 1px solid rgba(var(--v), 0.35); background: #fff; opacity: 0; animation: bxIn 3.6s ease-out infinite; animation-delay: 1.4s; }
  @keyframes bxIn { 0% { opacity: 0; transform: translateY(8px); } 10%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }

  /* It answers the moment they ask: 11pm, and the reply is instant */
  .bx-night { background: linear-gradient(180deg, #1e1b4b, #312e81) !important; }
  .bx-night .bx-moon { position: absolute; right: 18px; top: 14px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset -7px -3px 0 0 #fde68a; }
  .bx-night .bx-time { position: absolute; left: 18px; top: 16px; font: 700 0.7rem/1 var(--font-mono); color: rgba(255, 255, 255, 0.75); letter-spacing: 0.06em; }
  .bx-night .bx-msg-q { right: 16px; top: 44px; background: rgba(255, 255, 255, 0.95); color: #0f172a; border-bottom-right-radius: 4px; animation: bxIn 3.6s ease-out infinite; }
  .bx-night .bx-msg-a { left: 16px; top: 82px; background: #8b5cf6; color: #fff; border-bottom-left-radius: 4px; opacity: 0; animation: bxIn 3.6s ease-out infinite; animation-delay: 0.6s; }

  /* It brings you the warm ones: a prospect glides into a calendar slot */
  .bx-warm .bx-cal { position: absolute; left: 50%; top: 18px; width: 148px; margin-left: -74px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; border-radius: 10px; background: #fff; border: 1.5px solid rgba(15, 23, 42, 0.12); }
  .bx-warm .bx-cal i { height: 20px; border-radius: 4px; background: rgba(15, 23, 42, 0.06); }
  .bx-warm .bx-cal .bx-slot { animation: bxSlot 3.6s ease-out infinite; }
  @keyframes bxSlot { 0%, 45% { background: rgba(15, 23, 42, 0.06); box-shadow: none; } 52%, 86% { background: #8b5cf6; box-shadow: 0 0 0 3px rgba(var(--v), 0.2); } 96%, 100% { background: rgba(15, 23, 42, 0.06); } }
  .bx-warm .bx-lead { position: absolute; left: 14px; top: 92px; width: 14px; height: 14px; border-radius: 50%; background: #ff6b00; box-shadow: 0 0 12px rgba(255, 107, 0, 0.7); animation: bxLead 3.6s ease-in-out infinite; }
  @keyframes bxLead { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 46% { transform: translate(calc(50vw - 160px), -42px) scale(0.6); opacity: 1; } 52%, 100% { transform: translate(calc(50vw - 160px), -42px) scale(0.6); opacity: 0; } }
  .bx-warm .bx-booked { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; font: 600 0.66rem/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: #0f7a55; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); padding: 5px 9px; border-radius: 999px; opacity: 0; animation: bxIn 3.6s ease-out infinite; animation-delay: 1.9s; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .bx-scene *, .bx-scene *::before, .bx-scene *::after { animation: none !important; opacity: 1 !important; }
}

/* Workflow steps: the products each step works with, inside the step card */
.workflow-step .step-links { margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.75rem; }
.workflow-step .step-links span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.workflow-step .step-links a { color: var(--accent-blue); font-weight: 600; text-decoration: none; padding: 3px 9px; border-radius: 999px; background: rgba(0, 98, 255, 0.07); }
.workflow-step .step-links a:hover, .workflow-step .step-links a:focus-visible { background: rgba(0, 98, 255, 0.14); }

/* "Every corner" cards (desktop hover): matrix-style bits drift slowly from the
   card's right edge into the icon, in a muted tint of the icon's hover colour.
   Built by the page script. */
#what-we-automate .feature-card:nth-child(1) { --bit-rgb: 0, 98, 255; }
#what-we-automate .feature-card:nth-child(2) { --bit-rgb: 139, 92, 246; }
#what-we-automate .feature-card:nth-child(3) { --bit-rgb: 255, 107, 0; }
#what-we-automate .feature-card:nth-child(4) { --bit-rgb: 16, 185, 129; }
#what-we-automate .feature-card:nth-child(5) { --bit-rgb: 6, 182, 212; }
#what-we-automate .feature-card:nth-child(6) { --bit-rgb: 239, 68, 68; }
#what-we-automate .feature-card > .bit-stream {
  position: absolute; right: 0; height: 36px; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  pointer-events: none; opacity: 0; transition: opacity 0.6s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 82%, transparent 100%);
}
#what-we-automate .bit-row {
  display: flex; align-items: center; width: max-content; height: 12px;
  color: rgb(var(--bit-rgb, 100, 116, 139));
  animation: bitFlow 8s linear infinite; animation-play-state: paused;
}
#what-we-automate .bit-row:nth-child(1) { opacity: 0.35; animation-duration: 9s; }
#what-we-automate .bit-row:nth-child(2) { opacity: 0.5;  animation-duration: 7s; }
#what-we-automate .bit-row:nth-child(3) { opacity: 0.28; animation-duration: 11s; }
#what-we-automate .feature-card:hover > .bit-stream { opacity: 1; }
#what-we-automate .feature-card:hover .bit-row { animation-play-state: running; }
/* Leftward: the text slides left so the bits run into the icon */
@keyframes bitFlow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
#what-we-automate .bit-row b { display: inline-flex; flex: 0 0 auto; }
#what-we-automate .feature-card .bit-stream .bit-row svg { width: 11px !important; height: 11px !important; stroke-width: 2; margin: 0 !important; }
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  #what-we-automate .feature-card > .bit-stream { display: none; }
}

/* The steps' text reads in full colour over the water */
#agentic-steps .workflow-step.is-focus p { color: var(--text-primary); }

/* ===== Dark mode (html[data-theme="dark"]). Tokens, cards, stage and window hooks are in styles.css; this block is only what is specific to service-page.css. ===== */
/* blue/violet text tints on the service-page parts (brand #0062ff is ~3.5:1 on the dark page; the tint is 7:1+) */
:root[data-theme="dark"] :is(.service-hero-badge,.feature-card-front i,.flip-hint,.usecase-icon,.pillar i,.step-num,.workflow-step i,.workflow-arrow,.esb-tag,.esb-feature i,.audit-outcome i,.workflow-step .step-links a){ color:var(--blue-text); }
:root[data-theme="dark"] :is(.highlight-text,#what-we-automate .feature-card i,#what-we-automate .feature-card svg,#what-we-automate .feature-card:nth-child(1):hover i,#what-we-automate .feature-card:nth-child(1):hover svg){ color:var(--blue-text) !important; }
:root[data-theme="dark"] :is(.esb-showcase .esb-feature i,.esb-showcase .esb-label,.compare-arrow){ color:var(--violet-text); }
:root[data-theme="dark"] :is(#what-we-automate .feature-card:nth-child(2):hover i,#what-we-automate .feature-card:nth-child(2):hover svg){ color:var(--violet-text) !important; }
:root[data-theme="dark"] :is(#what-we-automate .feature-card:nth-child(6):hover i,#what-we-automate .feature-card:nth-child(6):hover svg){ color:var(--red-text) !important; }
/* carousels and the cards that carry !important surfaces in light */
:root[data-theme="dark"] [data-loop-carousel] .feature-card-front{ background:linear-gradient(150deg,rgba(129,170,247,.14) 0%,var(--surface-solid) 60%); box-shadow:inset 0 1px 0 var(--dk-light-top); }
:root[data-theme="dark"] :is([data-loop-carousel] .usecase-item,#what-we-automate .feature-card,#cognitive-integrations .feature-card,#why-showcase .capability-card,#bx-assistant .capability-card){ background:var(--surface-solid) !important; border-color:var(--hairline-strong) !important; }
:root[data-theme="dark"] :is(#agentic-steps .workflow-step,#agentic-steps .cap-deck .workflow-step){ background:var(--surface-solid) !important; }
:root[data-theme="dark"] #cognitive-integrations .feature-card > svg{ background:var(--surface-solid); }
:root[data-theme="dark"] #what-we-automate .wa-scene{ border-bottom-color:var(--hairline); }
:root[data-theme="dark"] .loop-dots button{ background:rgba(150,175,230,.22); }
:root[data-theme="dark"] .loop-dots button.is-active{ background:var(--blue-text); }
:root[data-theme="dark"] .loop-arrow{ background:var(--surface-raised); border-color:var(--hairline-strong); box-shadow:none; }

/* "Answered, qualified, booked" CTA card (voice agents): flat card, no radial tint or glow. Its step icons animate colour in light, so the keyframes get dark twins. */
:root[data-theme="dark"] .cta-live{ background:var(--surface-solid) !important; border-color:var(--dk-line-2) !important; box-shadow:inset 0 1px 0 var(--dk-light-top) !important; }
:root[data-theme="dark"] .cta-steps::before{ background:var(--tint-2); }
:root[data-theme="dark"] .cta-steps::after{ background:linear-gradient(90deg,#81aaf7,#f39d5e,#6bcf9d); }
:root[data-theme="dark"] .cta-steps li{ color:var(--text-muted); animation-name:ctaStepTextD; }
:root[data-theme="dark"] .cta-steps li svg{ background:var(--dk-s2); border-color:var(--dk-line-3); color:var(--text-muted); animation-name:ctaStepIconD; }
:root[data-theme="dark"] .cta-steps li:nth-child(1){ animation-name:ctaStepText1D; }
:root[data-theme="dark"] .cta-steps li:nth-child(1) svg{ animation-name:ctaStepIcon1D; }
:root[data-theme="dark"] .cta-steps li:nth-child(2){ animation-name:ctaStepText2D; }
:root[data-theme="dark"] .cta-steps li:nth-child(2) svg{ animation-name:ctaStepIcon2D; }
:root[data-theme="dark"] .cta-steps li:nth-child(3){ animation-name:ctaStepText3D; }
:root[data-theme="dark"] .cta-steps li:nth-child(3) svg{ animation-name:ctaStepIcon3D; }
@keyframes ctaStepIconD  { 0%,100%{ border-color:#364560; color:#9aa2b0; box-shadow:none; background:#0c1a37; } 6%,80%{ border-color:rgb(var(--c)); color:#fff; background:rgba(var(--c),.55); box-shadow:0 0 0 4px rgba(var(--c),.16); } }
@keyframes ctaStepIcon1D { 0%,92%,100%{ border-color:#364560; color:#9aa2b0; box-shadow:none; background:#0c1a37; } 5%,88%{ border-color:rgb(var(--c)); color:#fff; background:rgba(var(--c),.55); box-shadow:0 0 0 4px rgba(var(--c),.16); } }
@keyframes ctaStepIcon2D { 0%,33%,92%,100%{ border-color:#364560; color:#9aa2b0; box-shadow:none; background:#0c1a37; } 38%,88%{ border-color:rgb(var(--c)); color:#fff; background:rgba(var(--c),.55); box-shadow:0 0 0 4px rgba(var(--c),.16); } }
@keyframes ctaStepIcon3D { 0%,66%,92%,100%{ border-color:#364560; color:#9aa2b0; box-shadow:none; background:#0c1a37; } 71%,88%{ border-color:rgb(var(--c)); color:#fff; background:rgba(var(--c),.55); box-shadow:0 0 0 4px rgba(var(--c),.16); } }
@keyframes ctaStepTextD  { 0%,100%{ color:#9aa2b0; } 6%,80%{ color:#d5dbe6; } }
@keyframes ctaStepText1D { 0%,92%,100%{ color:#9aa2b0; } 5%,88%{ color:#d5dbe6; } }
@keyframes ctaStepText2D { 0%,33%,92%,100%{ color:#9aa2b0; } 38%,88%{ color:#d5dbe6; } }
@keyframes ctaStepText3D { 0%,66%,92%,100%{ color:#9aa2b0; } 71%,88%{ color:#d5dbe6; } }

/* Sky: the workflow-automation CTA card (.cta-shift). It is a stage (shell edge from styles.css); the sky layers are its background.
   The light CSS (here and in workflows.css) carries !important, so the dark values do too (equal weight, higher specificity). No brown, no halo. */
:root[data-theme="dark"] .cta-shift{ background:var(--stage-bot) !important; border-color:var(--stage-edge) !important; box-shadow:inset 0 1px 0 var(--stage-edge-hi) !important; }
:root[data-theme="dark"] .cta-shift .sky-night{ background:linear-gradient(180deg,#232e42,#162032) !important; }                                   /* = the stage: 30.1% to 24.3% */
:root[data-theme="dark"] .cta-shift .sky-day{ background:linear-gradient(180deg,#1f3f61 0%,#1c314e 100%) !important; }                            /* 36.1% to 31.1% */
:root[data-theme="dark"] .cta-shift .sky-dusk{ background:linear-gradient(180deg,#2d244b 0%,#51244e 60%,#642c49 100%) !important; }               /* 29.2% / 34.0% / 38.0% */
:root[data-theme="dark"] .cta-shift h2{ color:var(--text-primary); text-shadow:none; animation:none; }                                           /* the light wfInk colour animation is off in dark */
:root[data-theme="dark"] .cta-shift p{ color:var(--text-secondary); text-shadow:none; animation:none; }                                          /* never --text-muted here (4.2:1 on the day stop) */
:root[data-theme="dark"] .shift-sky::after{ filter:opacity(.5); }
:root[data-theme="dark"] .cta-shift .shift-sun{ box-shadow:0 0 0 1px rgba(255,195,90,.45) !important; }
:root[data-theme="dark"] .cta-shift .shift-moon{ box-shadow:inset -12px -6px 0 0 #aab4d4,0 0 0 1px rgba(148,163,200,.35) !important; }
:root[data-theme="dark"] .cta-shift .shift-city i{ background:var(--dk-s4); box-shadow:0 -1px 0 rgba(190,210,255,.10); }
:root[data-theme="dark"] .shift-clock{ background:var(--stage-plate); border-color:var(--dk-edge); backdrop-filter:none; -webkit-backdrop-filter:none; }
:root[data-theme="dark"] .shift-dot{ background:var(--green-text); box-shadow:0 0 0 1px rgba(107,207,157,.40); }
:root[data-theme="dark"] .cta-shift .shift-247{ background-image:linear-gradient(90deg,#81aaf7,#f39d5e,#6bcf9d,#81aaf7); }

/* phone illustrations (the small "what we automate" and Business Experiences scenes, shown at 768px and under) */
@media (max-width:768px){
  :root[data-theme="dark"] :is(.wa-inbox .wa-env,.wa-doc .wa-page,.wa-crm .wa-table,.wa-approve .wa-node,.bx-send .bx-dest,.bx-pack .bx-doc,.bx-record .bx-cite,.bx-warm .bx-cal){ background:var(--surface-raised); border-color:var(--dk-line-3); }
  :root[data-theme="dark"] :is(.wa-doc .wa-page i,.bx-warm .bx-cal i){ background:rgba(150,175,230,.16); }
  :root[data-theme="dark"] :is(.wa-approve .wa-node,.bx-pack .bx-doc){ color:var(--text-secondary); }
  :root[data-theme="dark"] .wa-site .wa-map{ background-color:var(--dk-s3); }
  :root[data-theme="dark"] :is(.wa-doc .wa-field,.bx-warm .bx-booked){ color:var(--green-text); }
  :root[data-theme="dark"] .bx-record .bx-a{ background:rgba(176,155,238,.16); }
  :root[data-theme="dark"] .bx-record .bx-q{ background:var(--dk-s3); }
  :root[data-theme="dark"] .wa-mon .wa-line{ stroke:var(--blue-text); }
  :root[data-theme="dark"] :is(.bx-send .bx-dest,.bx-record .bx-cite){ color:var(--violet-text); }
  :root[data-theme="dark"] .bx-night .bx-msg-q{ color:var(--text-primary); }
}

/* Voice sandbox (voice-agents page and the synced block in sandbox.html). The console wrapper is a stage (styles.css section 9); everything nested is a plate or a named display.
   Source of truth for the synced copy is this file: sandbox.html loads the same stylesheet, so no sandbox_sync run is needed for CSS-only changes. */
:root[data-theme="dark"] .agent-btn.active{ border-color:var(--blue-text); box-shadow:0 0 0 1px var(--blue-text); }
:root[data-theme="dark"] .agent-btn:hover{ border-color:var(--dk-line-3); }
:root[data-theme="dark"] .sandbox-console-wrapper .agent-detail-card{ background:var(--stage-plate); border-color:var(--dk-edge); box-shadow:none; }
:root[data-theme="dark"] .agent-detail-header h3{ color:var(--text-primary); }
:root[data-theme="dark"] .agent-detail-card p{ color:var(--text-secondary); }
:root[data-theme="dark"] .meta-tag.blue{ background:rgba(129,170,247,.10); color:var(--blue-text-hi); }
:root[data-theme="dark"] .meta-tag.gray{ background:rgba(190,210,255,.10); color:var(--text-secondary); }
:root[data-theme="dark"] .console-badge{ background:rgba(129,170,247,.10); border-color:rgba(129,170,247,.45); color:var(--blue-text-hi); }
:root[data-theme="dark"] .dialer-panel input:focus{ border-color:var(--blue-text); outline:2px solid var(--dk-focus); outline-offset:0; box-shadow:none; }
:root[data-theme="dark"] .telemetry-panel{ background:rgba(190,210,255,.06); border-color:var(--dk-line-3); }
:root[data-theme="dark"] .telemetry-label{ color:var(--text-secondary); }
:root[data-theme="dark"] .telemetry-light{ background:rgba(190,210,255,.18); box-shadow:none; }
:root[data-theme="dark"] .telemetry-light.active-green{ background:var(--green-text); box-shadow:0 0 0 1px rgba(107,207,157,.40); }     /* the 0 0 8px glow becomes a flat ring; blink animation unchanged */
:root[data-theme="dark"] .telemetry-light.active-blue{ background:var(--blue-text); box-shadow:0 0 0 1px rgba(129,170,247,.40); }
:root[data-theme="dark"] .waveform-bar{ background:rgba(129,170,247,.30); }
:root[data-theme="dark"] .waveform-bar.active{ background:var(--blue-text); }
:root[data-theme="dark"] .voice-waveform-container.mini .waveform-bar{ background:rgba(129,170,247,.30) !important; }
:root[data-theme="dark"] .voice-waveform-container.mini .waveform-bar.active{ background:var(--blue-text) !important; }
:root[data-theme="dark"] .terminal-logs-window{ color:var(--text-secondary); }
/* transcript bubbles carry !important white ink in light: same weight here, higher specificity */
:root[data-theme="dark"] .transcript-msg.caller{ background:rgba(190,210,255,.12) !important; border-color:var(--dk-line-3) !important; color:var(--text-primary) !important; }
:root[data-theme="dark"] .transcript-msg.agent{ background:rgba(129,170,247,.18) !important; border-color:rgba(129,170,247,.45) !important; color:var(--text-primary) !important; }
:root[data-theme="dark"] .transcript-msg.system-msg{ background:rgba(243,157,94,.08) !important; border-color:rgba(243,157,94,.30) !important; color:var(--text-primary) !important; }

/* ===== Phones (Mars, 26 Nov): every particle hero lines up the same way =====
   The badge sits a fixed step under the header, the heading keeps its own height (the invisible copy
   holds it while the visible one types, so nothing moves), the particle band takes the room between the
   heading and the subheading, and the buttons sit under them. Before, each hero was centred in the
   screen, so the badge moved from page to page (on AI Development it sat under the header), one-line
   headings kept a 140px box with a hole under it, and the green pages pulled the band up into the
   heading. Heroes without the band (Marketing, Infrastructure) are untouched. */
@media (max-width: 767px) {
  .service-hero:has(.mobile-animation-spacer) {
    align-items: stretch;
    padding-top: 88px !important;     /* 26 Nov, second pass: the buttons sit above the bottom bar on a 664px-tall phone */
    padding-bottom: 52px !important;
  }
  .service-hero:has(.mobile-animation-spacer) > .container { display: flex; flex-direction: column; }
  .service-hero:has(.mobile-animation-spacer) :is(.split-hero-container, .split-hero-container-reverse) { flex: 1 1 auto; }
  .service-hero:has(.mobile-animation-spacer) .hero-copy-left { flex: 1 1 auto; width: 100%; }
  .service-hero:has(.mobile-animation-spacer) .service-hero-badge { margin: 0 0 14px !important; }
  .service-hero:has(.mobile-animation-spacer) .service-hero-title { min-height: 0 !important; margin: 0 !important; }
  .service-hero:has(.mobile-animation-spacer) .service-hero-title > span[style*="visibility: hidden"] { display: block !important; }
  .service-hero:has(.mobile-animation-spacer) .service-hero-title > span[id*="typewriter"] { position: absolute !important; display: block !important; }
  .service-hero:has(.mobile-animation-spacer) .aid-subhead { margin: 10px 0 0 !important; }
  .service-hero:has(.mobile-animation-spacer) .mobile-animation-spacer {
    flex: 1 1 auto; height: auto !important; min-height: 110px; max-height: 230px; margin: 10px 0 !important;
  }
  .service-hero:has(.mobile-animation-spacer) .service-hero-sub { min-height: 0 !important; margin: 0 0 22px !important; }
}

/* Phones (Mars, 26 Nov): every service hero heading keeps its own height (the invisible copy holds it while
   the visible one types) instead of the 140px box that left a gap under one- and two-line headings. */
@media (max-width: 767px) {
  .service-hero .service-hero-title:has(> span[style*="visibility: hidden"]),
  .service-hero .service-hero-title:not(:has(> span)) { min-height: 0 !important; }   /* plain headings don't type, so need no box */
  .service-hero .service-hero-title > span[style*="visibility: hidden"] { display: block !important; }
  .service-hero .service-hero-title:has(> span[style*="visibility: hidden"]) > span[id*="typewriter"] { position: absolute !important; display: block !important; }
}

/* Desktop (Mars, 27 Nov): particle heroes split 50/50, so the animation's column is as big as the copy's
   (app.js sizes each shape to fill it). Heroes without the particle band are untouched. */
@media (min-width: 993px) {
  .service-hero:has(.mobile-animation-spacer) :is(.split-hero-container, .split-hero-container-reverse) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
