  :root {
    --background: 270 40% 99%;
    --foreground: 260 30% 8%;
    --card: 0 0% 100%;
    --card-foreground: 260 30% 8%;
    --popover: 0 0% 100%;
    --popover-foreground: 260 30% 8%;
    --primary: 265 85% 58%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 280 95% 70%;
    --primary-deep: 260 70% 35%;
    --secondary: 265 30% 96%;
    --secondary-foreground: 260 40% 15%;
    --muted: 270 20% 96%;
    --muted-foreground: 260 10% 45%;
    --accent: 280 90% 65%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 265 25% 91%;
    --input: 265 25% 91%;
    --ring: 265 85% 58%;
    --radius: 0.875rem;
    --gradient-primary: linear-gradient(135deg, hsl(265 85% 58%), hsl(280 95% 70%));
    --gradient-hero:
      radial-gradient(ellipse at top left, hsl(265 85% 58% / 0.15), transparent 50%),
      radial-gradient(ellipse at bottom right, hsl(280 95% 70% / 0.18), transparent 55%),
      linear-gradient(180deg, hsl(270 40% 99%), hsl(265 30% 96%));
    --gradient-dark: linear-gradient(135deg, hsl(260 50% 10%), hsl(265 60% 18%));
    --gradient-mesh:
      radial-gradient(at 20% 30%, hsl(265 85% 58% / 0.25), transparent 50%),
      radial-gradient(at 80% 20%, hsl(280 95% 70% / 0.22), transparent 50%),
      radial-gradient(at 50% 80%, hsl(250 90% 60% / 0.18), transparent 50%);
    --shadow-sm: 0 1px 2px hsl(260 30% 10% / 0.05);
    --shadow-md: 0 8px 24px -8px hsl(265 60% 30% / 0.12);
    --shadow-lg: 0 24px 60px -20px hsl(265 70% 30% / 0.25);
    --shadow-glow: 0 20px 60px -15px hsl(265 85% 58% / 0.5);
  }
  html { scroll-behavior: smooth; }
  body {
    font-family: "DM Sans", system-ui, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss01", "cv11";
  }
  h1,h2,h3,h4,h5,h6 { font-family: "DM Sans", system-ui, sans-serif; letter-spacing: -0.01em; }
  .container-x { margin-left: auto; margin-right: auto; width: 100%; max-width: 96rem; padding-left: 1rem; padding-right: 1rem; }
  @media (min-width: 1024px) { .container-x { padding-left: 1.5rem; padding-right: 1.5rem; } }
  @media (min-width: 1536px) { .container-x { padding-left: 2rem; padding-right: 2rem; } }
  .text-gradient { background-clip: text; -webkit-background-clip: text; color: transparent; background-image: var(--gradient-primary); }
  .surface-mesh { background-image: var(--gradient-mesh); }
  .surface-hero { background-image: var(--gradient-hero); }
  .glass { backdrop-filter: blur(20px); background: hsl(var(--background) / 0.6); border: 1px solid hsl(var(--border) / 0.6); }
  .grid-bg {
    background-image:
      linear-gradient(hsl(var(--border) / 0.6) 1px, transparent 1px),
      linear-gradient(90deg, hsl(var(--border) / 0.6) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  }
  .text-balance { text-wrap: balance; }
  .text-pretty { text-wrap: pretty; }

  /* Button */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 500; transition: all .3s cubic-bezier(.22,1,.36,1); white-space: nowrap; cursor: pointer; }
  .btn-hero {
    background-image: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-md);
    border-radius: 9999px;
  }
  .btn-hero:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }
  .btn-outline { background: transparent; color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }
  .btn-outline:hover { background: hsl(var(--secondary)); border-color: hsl(var(--primary) / 0.4); }
  .btn-ghost { background: transparent; color: hsl(var(--foreground)); }
  .btn-ghost:hover { background: hsl(var(--secondary)); }
  .btn-lg { padding: .75rem 1.25rem; font-size: .95rem; }
  .btn-xl { padding: .9rem 1.6rem; font-size: 1rem; border-radius: 9999px; }
  .btn-default { padding: .55rem 1rem; font-size: .875rem; }

  /* Inputs */
  .field { width: 100%; border-radius: .75rem; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); padding: .65rem .9rem; font: inherit; color: hsl(var(--foreground)); transition: border-color .2s, box-shadow .2s; }
  .field:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18); }

  /* Lucide sizing helper */
  [data-lucide] { width: 1em; height: 1em; }

  /* Orbital rotation keyframes */
  @keyframes spin-cw  { to { transform: rotate(360deg); } }
  @keyframes spin-ccw { to { transform: rotate(-360deg); } }
  @keyframes spin-3d-y { to { transform: rotateY(360deg); } }
  @keyframes spin-3d-y-rev { to { transform: rotateY(-360deg); } }
  @keyframes emanate {
    0%   { transform: translate(-50%,-50%) scale(0.35); opacity: 0.7; }
    80%  { opacity: 0.05; }
    100% { transform: translate(-50%,-50%) scale(1.9);  opacity: 0; }
  }
  @keyframes particle-bob {
    0%,100% { transform: translate(-50%,-50%) translateY(0); }
    50%     { transform: translate(-50%,-50%) translateY(-6px); }
  }
  @keyframes chip-shimmer {
    0%, 60%, 100% { transform: translateX(-120%) skewX(-18deg); }
    80%           { transform: translateX(260%)  skewX(-18deg); }
  }
  @keyframes led-pulse {
    0%,100% { opacity: 1;   box-shadow: 0 0 6px hsl(150 80% 55%), 0 0 12px hsl(150 80% 55% / 0.6); }
    50%     { opacity: 0.5; box-shadow: 0 0 3px hsl(150 80% 55%), 0 0 6px  hsl(150 80% 55% / 0.4); }
  }

  /* Spline scene spotlight (aceternity style) */
  @keyframes spotlight {
    0%   { opacity: 0; transform: translate(-72%, -62%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -40%) scale(1); }
  }
  .animate-spotlight { animation: spotlight 2s ease 0.6s 1 forwards; }

  /* Spline viewer — fill container, hide the default attribution badge */
  spline-viewer { display: block; width: 100%; height: 100%; }

  /* ===== Lightweight animated robot (instant fallback while 3D loads) ===== */
  .rb-stage { transform-box: view-box; transform-origin: 120px 140px; animation: rb-float 5s ease-in-out infinite; }
  @keyframes rb-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

  .rb-antenna-tip { transform-box: fill-box; transform-origin: center; animation: rb-antenna 2.4s ease-in-out infinite; }
  @keyframes rb-antenna { 0%,100% { opacity: 0.5; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.25); } }

  .rb-eye { transform-box: fill-box; transform-origin: center; animation: rb-blink 4.2s ease-in-out infinite; }
  .rb-eye-r { animation-delay: 0.06s; }
  @keyframes rb-blink {
    0%, 92%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.12); }
  }

  .rb-mouth { transform-box: fill-box; transform-origin: center; animation: rb-mouth 3.6s ease-in-out infinite; }
  @keyframes rb-mouth { 0%,100% { transform: scaleX(0.7); opacity: 0.6; } 50% { transform: scaleX(1); opacity: 1; } }

  .rb-core { transform-box: fill-box; transform-origin: center; animation: rb-core 2.8s ease-in-out infinite; }
  @keyframes rb-core { 0%,100% { transform: scale(0.82); opacity: 0.65; } 50% { transform: scale(1.12); opacity: 1; } }

  .rb-core-ring { transform-box: fill-box; transform-origin: center; animation: rb-ring 2.8s cubic-bezier(0,0,0.2,1) infinite; }
  @keyframes rb-ring { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2.1); opacity: 0; } }

  .rb-orbit { transform-box: view-box; transform-origin: 120px 138px; animation: rb-orbit 9s linear infinite; }
  @keyframes rb-orbit { to { transform: rotate(360deg); } }
  .rb-orbit-rev { animation-duration: 13s; animation-direction: reverse; }

  .rb-glow { animation: rb-glow 4s ease-in-out infinite; }
  @keyframes rb-glow { 0%,100% { opacity: 0.45; } 50% { opacity: 0.85; } }

  @media (prefers-reduced-motion: reduce) {
    .rb-stage, .rb-antenna-tip, .rb-eye, .rb-mouth, .rb-core, .rb-core-ring, .rb-orbit, .rb-glow { animation: none !important; }
    .rb-core-ring { opacity: 0 !important; }
  }

  /* Nav */
  .nav-link {
    transform: translateY(0);
  }
  .nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -16px hsl(var(--primary) / 0.45);
  }
  .nav-link-active {
    color: hsl(var(--primary-deep));
    background:
      linear-gradient(135deg, hsl(var(--primary) / 0.14), hsl(var(--primary-glow) / 0.22));
    border: 1px solid hsl(var(--primary) / 0.18);
    box-shadow:
      inset 0 1px 0 hsl(0 0% 100% / 0.7),
      0 10px 24px -18px hsl(var(--primary) / 0.55);
  }
  .nav-link-active:hover {
    box-shadow:
      inset 0 1px 0 hsl(0 0% 100% / 0.75),
      0 12px 26px -18px hsl(var(--primary) / 0.65);
  }
  .nav-new-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border-radius: 9999px;
    background: hsl(var(--primary) / 0.1);
    padding: .125rem .375rem;
    color: hsl(var(--primary-deep));
    font-size: .625rem;
    font-weight: 700;
    line-height: 1;
  }
  .nav-new-badge::before {
    content: "";
    width: .375rem;
    height: .375rem;
    border-radius: 9999px;
    background: hsl(var(--primary));
    animation: nav-new-dot 1.6s ease-in-out infinite;
  }
  @keyframes nav-new-dot {
    0%, 100% { opacity: .35; transform: scale(.75); }
    50% { opacity: 1; transform: scale(1); }
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-link:hover {
      transform: none;
    }
    .nav-new-badge::before {
      animation: none;
    }
  }

  /* ===== Products page scroll-reveals ===== */
  .pp-card {
    opacity: 0;
    transform: translateX(var(--pp-from, -80px)) translateY(20px) scale(.98);
    transition: opacity .9s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
    will-change: transform, opacity;
  }
  .pp-card.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  .pp-card[data-reverse="true"] { --pp-from: 80px; }

  .pp-media {
    opacity: 0;
    transform: scale(.85) rotate(-6deg);
    transition: opacity 1s ease .15s, transform 1.1s cubic-bezier(.22,1,.36,1) .15s;
  }
  .pp-card.is-visible .pp-media {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
  .pp-card[data-reverse="true"] .pp-media { transform-origin: right center; }
  .pp-card .pp-media { transform-origin: left center; }

  .pp-halo {
    opacity: 0;
    transform: scale(.6);
    transition: opacity 1.2s ease .1s, transform 1.4s cubic-bezier(.22,1,.36,1) .1s;
  }
  .pp-card.is-visible .pp-halo { opacity: 1; transform: scale(1); }

  .pp-fade {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1);
  }
  .pp-card.is-visible .pp-fade { opacity: 1; transform: translateY(0); }
  /* stagger via inline --pp-delay */
  .pp-fade { transition-delay: var(--pp-delay, 0s); }

  /* gentle floating loop on the logo once revealed */
  @keyframes pp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  .pp-card.is-visible .pp-logo { animation: pp-float 6s ease-in-out infinite 1s; }

  /* scroll progress rail on the right */
  .pp-rail {
    position: fixed;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    z-index: 40;
    display: none;
    flex-direction: column;
    gap: .75rem;
    padding: .75rem .5rem;
    border-radius: 999px;
    background: hsl(0 0% 100% / .7);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 12px 32px -16px hsl(265 60% 30% / 0.2);
  }
  @media (min-width: 1280px) { .pp-rail { display: flex; } }
  .pp-rail a {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 999px;
    transition: transform .25s ease, background .25s ease;
  }
  .pp-rail a:hover { transform: scale(1.1); background: hsl(var(--secondary)); }
  .pp-rail a[aria-current="true"] {
    background: hsl(var(--primary) / .12);
    box-shadow: 0 0 0 2px hsl(var(--primary) / .35);
  }
  .pp-rail img { width: 22px; height: 22px; object-fit: contain; }
  .pp-rail .pp-rail-label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    white-space: nowrap;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: hsl(var(--foreground));
    color: hsl(0 0% 100%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .25s ease;
  }
  .pp-rail a:hover .pp-rail-label { opacity: 1; transform: translateY(-50%) translateX(0); }

  /* gradient text per product brand */
  .pp-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  }

  @media (prefers-reduced-motion: reduce) {
    .pp-card, .pp-media, .pp-halo, .pp-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
    .pp-card.is-visible .pp-logo { animation: none; }
  }

  /* Trusted-by marquee */
  @keyframes trusted-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .trusted-logo {
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter .3s ease, opacity .3s ease, transform .3s ease;
  }
  .trusted-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
  }

  /* Smooth page swap */
  [data-route] { display: none; }
  [data-route].is-active { display: block; animation: fade-in .35s ease-out both; }
  @keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

  /* Pause every CSS animation inside the hero visual when a node is selected.
     SVG SMIL animations are paused separately in JS via svg.pauseAnimations(). */
  [data-ai-hero][data-paused="true"] *,
  [data-ai-hero][data-paused="true"] {
    animation-play-state: paused !important;
  }
  [data-ai-hero] [data-node-card] {
    cursor: pointer;
  }
  [data-ai-hero] [data-node-card] .chip-hit {
    transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
  }
  [data-ai-hero][data-paused="true"] [data-node-card][data-active="true"] .chip-hit {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 14px 32px -10px hsl(var(--primary)/0.7), inset 0 1px 0 hsl(0 0% 100% / 0.6) !important;
  }
  [data-ai-hero][data-paused="true"] [data-node-card]:not([data-active="true"]) {
    opacity: 0.45;
    transition: opacity .3s;
  }

  /* Detail panel */
  [data-node-detail] {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: min(280px, 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1);
    z-index: 30;
  }
  [data-node-detail].is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
  }

  /* ===== Radial Orbital Timeline (Products hero) ===== */
  .rot-stage {
    position: relative;
    width: 100%;
    height: 640px;
    border-radius: 28px;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 25% 20%, hsl(265 85% 58% / 0.55), transparent 55%),
      radial-gradient(ellipse at 80% 80%, hsl(280 95% 70% / 0.45), transparent 55%),
      radial-gradient(ellipse at 60% 40%, hsl(250 90% 60% / 0.30), transparent 60%),
      linear-gradient(140deg, hsl(260 55% 8%), hsl(265 65% 14%) 50%, hsl(270 60% 10%));
    border: 1px solid hsl(265 30% 30% / 0.45);
    box-shadow: 0 30px 80px -30px hsl(265 80% 30% / 0.55), inset 0 0 0 1px hsl(0 0% 100% / 0.04);
    isolation: isolate;
    cursor: pointer;
  }
  .rot-stage::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(hsl(0 0% 100% / 0.04) 1px, transparent 1px),
      linear-gradient(90deg, hsl(0 0% 100% / 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
            mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
    pointer-events: none;
  }
  .rot-stage::after {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(1px 1px at 10% 80%, hsl(0 0% 100% / 0.5), transparent 50%),
      radial-gradient(1px 1px at 85% 20%, hsl(0 0% 100% / 0.4), transparent 50%),
      radial-gradient(1px 1px at 30% 15%, hsl(0 0% 100% / 0.35), transparent 50%),
      radial-gradient(1px 1px at 70% 90%, hsl(0 0% 100% / 0.5), transparent 50%),
      radial-gradient(1px 1px at 92% 55%, hsl(0 0% 100% / 0.35), transparent 50%);
    pointer-events: none;
  }
  .rot-orbit {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    pointer-events: none;
  }
  .rot-rings {
    position: relative;
    width: 520px; height: 520px;
    border-radius: 9999px;
    border: 1px dashed hsl(0 0% 100% / 0.12);
  }
  .rot-rings::before, .rot-rings::after {
    content: "";
    position: absolute;
    border-radius: 9999px;
    border: 1px solid hsl(0 0% 100% / 0.06);
  }
  .rot-rings::before { inset: -40px; }
  .rot-rings::after  { inset: -90px; border-style: dashed; border-color: hsl(0 0% 100% / 0.05); }

  .rot-center {
    position: absolute;
    width: 96px; height: 96px;
    border-radius: 9999px;
    background: linear-gradient(135deg, hsl(265 85% 58%), hsl(280 95% 70%));
    display: grid; place-items: center;
    box-shadow: 0 0 0 6px hsl(0 0% 100% / 0.05), 0 0 40px hsl(280 95% 70% / 0.5);
    z-index: 5;
    pointer-events: none;
  }
  .rot-center-mark {
    width: 64px; height: 64px;
    border-radius: 9999px;
    background: hsl(0 0% 100% / 0.95) url('/assets/algorims-logo.png') no-repeat center center;
    background-size: 280% auto;
    background-position: 6% center;
    backdrop-filter: blur(8px);
    display: grid; place-items: center;
    overflow: hidden;
  }
  .rot-center-mark img { display: none; }

  .rot-center-icon {
    position: absolute;
    top: 50%; left: 50%;
    width: 140px; height: auto;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 0 30px hsl(280 95% 70% / 0.45));
    animation: rot-center-float 6s ease-in-out infinite;
  }
  @keyframes rot-center-float {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.04); }
  }
  @media (max-width: 1024px) {
    .rot-center-icon { width: 110px; }
  }
  @media (max-width: 640px) {
    .rot-center-icon { width: 88px; }
  }
  .rot-center::before, .rot-center::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 9999px;
    border: 1px solid hsl(0 0% 100% / 0.4);
    animation: rot-ping 3.2s cubic-bezier(0,0,0.2,1) infinite;
  }
  .rot-center::after  { inset: -24px; animation-delay: 0.8s; opacity: 0.6; }
  @keyframes rot-ping {
    0%   { transform: scale(0.7); opacity: 0.85; }
    100% { transform: scale(1.8); opacity: 0; }
  }

  .rot-node {
    position: absolute;
    top: 50%; left: 50%;
    margin: -22px 0 0 -22px;
    transform: translate(var(--x, 0px), var(--y, 0px));
    z-index: var(--z, 1);
    opacity: var(--op, 1);
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.45s ease;
    cursor: pointer;
    will-change: transform, opacity;
  }
  .rot-node-chip {
    position: relative;
    width: 60px; height: 60px;
    border-radius: 9999px;
    background: hsl(0 0% 0%);
    display: grid; place-items: center;
    border: 2px solid hsl(0 0% 100% / 0.4);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
  }
  .rot-node-chip img {
    width: 72%; height: 72%; object-fit: contain; pointer-events: none;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
  }
  .rot-node-chip [data-lucide] {
    color: white;
    width: 24px; height: 24px;
    transition: color 0.3s;
  }
  .rot-node-halo {
    position: absolute;
    inset: -20px;
    border-radius: 9999px;
    background: radial-gradient(circle, hsl(280 95% 70% / 0.55), transparent 70%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
  }
  .rot-node[data-active="true"] {
    z-index: 250 !important;
  }
  .rot-node[data-active="true"] .rot-node-halo { opacity: 1; }
  .rot-node[data-active="true"] .rot-node-chip {
    transform: scale(1.5);
    background: white;
    border-color: white;
    box-shadow: 0 8px 24px -4px hsl(0 0% 100% / 0.3);
  }
  .rot-node[data-active="true"] .rot-node-chip img { filter: none; }
  .rot-node[data-active="true"] .rot-node-chip [data-lucide] { color: black; }
  .rot-node[data-related="true"] .rot-node-chip {
    background: hsl(0 0% 100% / 0.5);
    border-color: white;
    animation: rot-pulse 1.6s ease-in-out infinite;
  }
  .rot-node[data-related="true"] .rot-node-chip img { filter: none; }
  .rot-node[data-related="true"] .rot-node-chip [data-lucide] { color: black; }
  @keyframes rot-pulse {
    0%,100% { box-shadow: 0 0 0 0 hsl(0 0% 100% / 0.5); }
    50%     { box-shadow: 0 0 0 10px hsl(0 0% 100% / 0); }
  }
  .rot-stage[data-paused="true"] .rot-node:not([data-active="true"]):not([data-related="true"]) {
    opacity: 0.4 !important;
  }
  .rot-node-label {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(0 0% 100% / 0.72);
    transition: color 0.3s, transform 0.3s;
    pointer-events: none;
  }
  .rot-node[data-active="true"] .rot-node-label {
    color: white;
    transform: translateX(-50%) scale(1.15);
  }

  .rot-card {
    position: absolute;
    top: calc(100% + 28px);
    left: 50%;
    width: 260px;
    background: hsl(0 0% 0% / 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsl(0 0% 100% / 0.3);
    border-radius: 14px;
    padding: 14px;
    color: white;
    box-shadow: 0 20px 40px -10px hsl(0 0% 0% / 0.6), 0 0 24px -4px hsl(0 0% 100% / 0.1);
    opacity: 0;
    transform: translateX(-50%) translateY(6px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
    z-index: 200;
    text-align: left;
  }
  .rot-node[data-active="true"] .rot-card {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
  }
  .rot-card::before {
    content: ""; position: absolute;
    left: 50%; top: -12px;
    width: 1px; height: 12px;
    background: hsl(0 0% 100% / 0.5);
  }
  .rot-card-head {
    display: flex; justify-content: space-between; align-items: center;
  }
  .rot-card-badge {
    display: inline-flex; align-items: center;
    font-size: 9px; font-weight: 700; letter-spacing: 0.16em;
    padding: 3px 8px; border-radius: 9999px;
    border: 1px solid;
    text-transform: uppercase;
  }
  .rot-card-badge[data-status="live"]     { color: white;           background: black;                    border-color: white; }
  .rot-card-badge[data-status="soon"]     { color: black;           background: white;                    border-color: black; }
  .rot-card-badge[data-status="practice"] { color: white;           background: hsl(0 0% 0% / 0.4);       border-color: hsl(0 0% 100% / 0.5); }
  .rot-card-date { font-size: 10px; font-family: ui-monospace, "SF Mono", monospace; color: hsl(0 0% 100% / 0.55); }
  .rot-card h4 { font-size: 14px; font-weight: 600; margin-top: 8px; letter-spacing: -0.01em; }
  .rot-card p  { font-size: 12px; line-height: 1.5; color: hsl(0 0% 100% / 0.78); margin-top: 6px; }
  .rot-card-meter-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 10px; color: hsl(0 0% 100% / 0.7);
    margin-top: 14px;
  }
  .rot-card-meter-row .rot-meter-label { display: inline-flex; align-items: center; gap: 4px; }
  .rot-card-meter-row .rot-meter-label [data-lucide] { width: 10px; height: 10px; }
  .rot-card-meter {
    width: 100%; height: 3px;
    background: hsl(0 0% 100% / 0.1);
    border-radius: 9999px; overflow: hidden;
    margin-top: 4px;
  }
  .rot-card-meter > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, hsl(212 90% 60%), hsl(265 85% 58%));
  }
  .rot-card-related {
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid hsl(0 0% 100% / 0.1);
  }
  .rot-card-related h5 {
    font-size: 9px; font-weight: 600; letter-spacing: 0.18em;
    color: hsl(0 0% 100% / 0.55);
    text-transform: uppercase;
    display: flex; align-items: center; gap: 4px;
  }
  .rot-card-related h5 [data-lucide] { width: 10px; height: 10px; }
  .rot-card-related-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .rot-card-related-list button {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 500;
    padding: 4px 8px; border-radius: 6px;
    border: 1px solid hsl(0 0% 100% / 0.2);
    background: transparent; color: hsl(0 0% 100% / 0.85);
    cursor: pointer; transition: all 0.2s;
    font-family: inherit;
  }
  .rot-card-related-list button:hover {
    background: hsl(0 0% 100% / 0.1); color: white; border-color: hsl(0 0% 100% / 0.4);
  }
  .rot-card-related-list button [data-lucide] { width: 9px; height: 9px; opacity: 0.7; }

  .rot-legend {
    position: absolute;
    left: 20px; bottom: 18px;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: hsl(0 0% 100% / 0.05);
    border: 1px solid hsl(0 0% 100% / 0.12);
    backdrop-filter: blur(8px);
    color: hsl(0 0% 100% / 0.7);
    font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
  }
  .rot-legend .rot-dot {
    width: 6px; height: 6px; border-radius: 9999px;
    background: hsl(150 70% 55%);
    box-shadow: 0 0 8px hsl(150 80% 55%);
    animation: led-pulse 2s ease-in-out infinite;
  }
  .rot-hint {
    position: absolute;
    right: 20px; bottom: 18px;
    color: hsl(0 0% 100% / 0.5);
    font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
  }
  @media (max-width: 1024px) {
    .rot-stage { height: 600px; }
    .rot-rings { width: 320px; height: 320px; }
  }
  @media (max-width: 640px) {
    .rot-stage { height: 480px; border-radius: 22px; }
    .rot-rings { width: 260px; height: 260px; }
    .rot-rings::before { inset: -28px; }
    .rot-rings::after  { inset: -64px; }
    .rot-card { width: 220px; }
    .rot-center { width: 76px; height: 76px; }
    .rot-center-mark { width: 50px; height: 50px; }
    .rot-legend, .rot-hint { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .rot-node { transition: opacity 0.3s ease; }
    .rot-center::before, .rot-center::after { animation: none; }
  }

  /* ===== About hero animation (capability network) ===== */
  .aha-wrap {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    position: relative;
  }
  .aha-svg { width: 100%; height: 100%; display: block; overflow: visible; }

  /* Background grid breathing */
  .aha-grid-fade { animation: aha-grid 9s ease-in-out infinite; }
  @keyframes aha-grid {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 0.75; }
  }

  /* Core monogram — breathing + glow */
  .aha-core {
    transform-box: fill-box; transform-origin: center;
    animation: aha-breathe 5.5s ease-in-out infinite;
    filter: drop-shadow(0 12px 28px hsl(265 60% 30% / 0.30));
  }
  @keyframes aha-breathe {
    0%, 100% { transform: scale(1);     filter: drop-shadow(0 12px 28px hsl(265 60% 30% / 0.30)) drop-shadow(0 0 4px hsl(280 95% 70% / 0.3)); }
    50%      { transform: scale(1.045); filter: drop-shadow(0 16px 36px hsl(265 60% 30% / 0.35)) drop-shadow(0 0 18px hsl(280 95% 70% / 0.55)); }
  }

  /* Emanating pulse rings from the core */
  .aha-ping {
    transform-box: view-box; transform-origin: 230px 230px;
    animation: aha-ping 3.6s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0;
  }
  .aha-ping-2 { animation-delay: 1.2s; }
  .aha-ping-3 { animation-delay: 2.4s; }
  @keyframes aha-ping {
    0%   { transform: scale(0.45); opacity: 0.55; }
    80%  { opacity: 0.06; }
    100% { transform: scale(2.6);  opacity: 0; }
  }

  /* Connection links — draw in with stroke-dashoffset */
  .aha-link {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: aha-draw 8s ease-in-out infinite;
  }
  .aha-link-1 { animation-delay: 0.0s; }
  .aha-link-2 { animation-delay: 0.2s; }
  .aha-link-3 { animation-delay: 0.4s; }
  .aha-link-4 { animation-delay: 0.6s; }
  .aha-link-5 { animation-delay: 0.8s; }
  .aha-link-6 { animation-delay: 1.0s; }
  @keyframes aha-draw {
    0%       { stroke-dashoffset: 220; opacity: 0.2; }
    18%      { stroke-dashoffset: 0;   opacity: 0.85; }
    88%      { stroke-dashoffset: 0;   opacity: 0.85; }
    100%     { stroke-dashoffset: 220; opacity: 0.2; }
  }

  /* Capability nodes — staggered appear + gentle bob */
  .aha-node {
    transform-box: fill-box; transform-origin: center;
    opacity: 0;
    animation: aha-node-in 8s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px hsl(265 60% 30% / 0.12));
  }
  .aha-node-1 { animation-delay: 0.4s; }
  .aha-node-2 { animation-delay: 0.6s; }
  .aha-node-3 { animation-delay: 0.8s; }
  .aha-node-4 { animation-delay: 1.0s; }
  .aha-node-5 { animation-delay: 1.2s; }
  .aha-node-6 { animation-delay: 1.4s; }
  @keyframes aha-node-in {
    0%, 6%   { opacity: 0; transform: translateY(6px) scale(0.92); }
    16%      { opacity: 1; transform: translateY(0)    scale(1.04); }
    22%, 86% { opacity: 1; transform: translateY(-2px) scale(1); }
    96%,100% { opacity: 0; transform: translateY(-6px) scale(0.94); }
  }

  /* Data dots traveling along each link (translation per direction) */
  .aha-dot { transform-box: view-box; opacity: 0; }
  .aha-dot-1 { animation: aha-flow-1 3.6s cubic-bezier(0.55,0,0.45,1) infinite; }
  .aha-dot-2 { animation: aha-flow-2 3.6s cubic-bezier(0.55,0,0.45,1) infinite 0.6s; }
  .aha-dot-3 { animation: aha-flow-3 3.6s cubic-bezier(0.55,0,0.45,1) infinite 1.2s; }
  .aha-dot-4 { animation: aha-flow-4 3.6s cubic-bezier(0.55,0,0.45,1) infinite 1.8s; }
  .aha-dot-5 { animation: aha-flow-5 3.6s cubic-bezier(0.55,0,0.45,1) infinite 2.4s; }
  .aha-dot-6 { animation: aha-flow-6 3.6s cubic-bezier(0.55,0,0.45,1) infinite 3.0s; }
  @keyframes aha-flow-1 { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-120px,-140px); } }
  @keyframes aha-flow-2 { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate( 120px,-140px); } }
  @keyframes aha-flow-3 { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-170px,   0px); } }
  @keyframes aha-flow-4 { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate( 170px,   0px); } }
  @keyframes aha-flow-5 { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-120px, 140px); } }
  @keyframes aha-flow-6 { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate( 120px, 140px); } }

  /* Subtle scanning sweep across the canvas */
  .aha-scan {
    transform-box: view-box; transform-origin: 0 0;
    animation: aha-scan 8s ease-in-out infinite;
    opacity: 0;
    mix-blend-mode: screen;
  }
  @keyframes aha-scan {
    0%, 100% { transform: translateX(-120px); opacity: 0; }
    25%      { opacity: 0.45; }
    50%      { transform: translateX(460px);  opacity: 0; }
  }

  /* Ambient corner sparks */
  .aha-spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: aha-spark 5s ease-in-out infinite; }
  .aha-spark-1 { animation-delay: 0.0s; }
  .aha-spark-2 { animation-delay: 1.2s; }
  .aha-spark-3 { animation-delay: 2.4s; }
  .aha-spark-4 { animation-delay: 3.6s; }
  @keyframes aha-spark {
    0%, 100% { opacity: 0; transform: translateY(0)   scale(0.6); }
    35%      { opacity: 0.9; transform: translateY(-6px) scale(1); }
    70%      { opacity: 0.4; transform: translateY(-12px) scale(0.85); }
  }

  @media (prefers-reduced-motion: reduce) {
    .aha-core, .aha-ping, .aha-link, .aha-node, .aha-dot, .aha-scan, .aha-spark, .aha-grid-fade
      { animation: none !important; }
    .aha-link { stroke-dashoffset: 0; }
    .aha-node, .aha-spark { opacity: 1; }
  }

  /* ===== Services hero animation (cloud → CI/CD → terminal) ===== */
  .sha-wrap {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    aspect-ratio: 420 / 380;
    position: relative;
  }
  .sha-svg { width: 100%; height: 100%; display: block; overflow: visible; }

  /* dotted grid subtle drift */
  .sha-grid { animation: sha-grid-fade 6s ease-in-out infinite; }
  @keyframes sha-grid-fade { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

  /* cloud float + halo pulses */
  .sha-cloud-group { transform-box: view-box; transform-origin: 210px 78px; animation: sha-cloud-float 5s ease-in-out infinite; }
  @keyframes sha-cloud-float {
    0%, 100% { transform: translate(0px, 0px); }
    50%      { transform: translate(0px, -6px); }
  }
  .sha-cloud-halo {
    transform-box: view-box; transform-origin: 210px 78px;
    animation: sha-halo 3.6s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0;
  }
  .sha-cloud-halo-2 { animation-delay: 1.4s; }
  @keyframes sha-halo {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
  }
  .sha-cloud { animation: sha-cloud-pulse 4.5s ease-in-out infinite; transform-origin: center; }
  @keyframes sha-cloud-pulse {
    0%, 100% { filter: drop-shadow(0 4px 12px hsl(265 85% 58% / 0.25)); }
    50%      { filter: drop-shadow(0 6px 20px hsl(280 95% 70% / 0.55)); }
  }

  /* floating code bits — gentle bob, staggered */
  .sha-bit { opacity: 0; }
  .sha-bit.b1 { animation: sha-bit-a 4.5s ease-in-out infinite; }
  .sha-bit.b2 { animation: sha-bit-b 5.0s ease-in-out infinite 0.7s; }
  .sha-bit.b3 { animation: sha-bit-c 5.6s ease-in-out infinite 1.4s; }
  .sha-bit.b4 { animation: sha-bit-d 4.2s ease-in-out infinite 2.0s; }
  @keyframes sha-bit-a { 0%,100% { opacity: 0; transform: translate(0,0); } 30% { opacity: 0.9; } 50% { opacity: 1; transform: translate(-2px,-4px); } 70% { opacity: 0.6; } }
  @keyframes sha-bit-b { 0%,100% { opacity: 0; transform: translate(0,0); } 30% { opacity: 0.9; } 50% { opacity: 1; transform: translate(3px,-3px); } 70% { opacity: 0.6; } }
  @keyframes sha-bit-c { 0%,100% { opacity: 0; transform: translate(0,0); } 30% { opacity: 0.85; } 50% { opacity: 1; transform: translate(-3px,3px); } 70% { opacity: 0.5; } }
  @keyframes sha-bit-d { 0%,100% { opacity: 0; transform: translate(0,0); } 30% { opacity: 0.9; } 50% { opacity: 1; transform: translate(2px,3px); } 70% { opacity: 0.6; } }

  /* rain drops from cloud */
  .sha-drop { opacity: 0; }
  .sha-drop.d1 { animation: sha-rain 2.4s ease-in infinite 0s; }
  .sha-drop.d2 { animation: sha-rain 2.4s ease-in infinite 0.8s; }
  .sha-drop.d3 { animation: sha-rain 2.4s ease-in infinite 1.6s; }
  @keyframes sha-rain {
    0%   { transform: translateY(0px);  opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(110px); opacity: 0; }
  }

  /* pipeline track flow + node pulses */
  .sha-flow {
    stroke-dasharray: 60 240;
    stroke-dashoffset: 0;
    animation: sha-flow 3s linear infinite;
  }
  @keyframes sha-flow { to { stroke-dashoffset: -300; } }

  .sha-node-pulse {
    transform-box: view-box;
    transform-origin: center;
    animation: sha-node-ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0;
  }
  .sha-node-0 .sha-node-pulse { animation-delay: 0s; }
  .sha-node-1 .sha-node-pulse { animation-delay: 0.6s; }
  .sha-node-2 .sha-node-pulse { animation-delay: 1.2s; }
  .sha-node-3 .sha-node-pulse { animation-delay: 1.8s; }
  .sha-node-4 .sha-node-pulse { animation-delay: 2.4s; }
  @keyframes sha-node-ping {
    0%   { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(2.2);  opacity: 0; }
  }

  /* packets traveling along the pipeline (x: 60 → 378) */
  .sha-packet {
    filter: drop-shadow(0 0 6px hsl(280 95% 70% / 0.85));
    animation: sha-packet-travel 3s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  }
  .sha-packet-2 { animation-delay: 1.5s; }
  @keyframes sha-packet-travel {
    0%   { transform: translateX(0);     opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translateX(135px); opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(318px); opacity: 0; }
  }

  /* terminal lines typing in (clip-path reveal left → right) */
  .sha-line {
    clip-path: inset(0 100% 0 0);
    animation: sha-type 12s steps(1, end) infinite;
  }
  .sha-line.l1 { animation-delay: 0.6s; }
  .sha-line.l2 { animation-delay: 2.2s; }
  .sha-line.l3 { animation-delay: 4.4s; }
  .sha-line.l4 { animation-delay: 6.0s; }
  @keyframes sha-type {
    0%, 4%   { clip-path: inset(0 100% 0 0); }
    8%       { clip-path: inset(0 0    0 0); }
    62%      { clip-path: inset(0 0    0 0); }
    66%, 100% { clip-path: inset(0 100% 0 0); }
  }

  /* caret blink + repositioning roughly tracks the last line being typed */
  .sha-caret {
    animation: sha-caret-blink 1.05s steps(1, end) infinite;
  }
  @keyframes sha-caret-blink {
    0%, 50% { opacity: 0.9; }
    51%, 100% { opacity: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    .sha-cloud-group, .sha-cloud-halo, .sha-cloud, .sha-bit, .sha-drop,
    .sha-flow, .sha-node-pulse, .sha-packet, .sha-line, .sha-caret,
    .sha-grid { animation: none !important; }
    .sha-bit, .sha-drop { opacity: 0.7; }
    .sha-line { clip-path: inset(0 0 0 0); }
  }

  /* ===== Journey timeline (About → Our journey) ===== */
  .journey-line {
    height: 0;
    transition: height 1.6s cubic-bezier(.22,1,.36,1);
    overflow: hidden;
    background: linear-gradient(to bottom, hsl(var(--primary) / 0.25), hsl(var(--primary) / 0.15) 60%, hsl(var(--primary) / 0));
  }
  .journey.is-visible .journey-line { height: calc(100% - 8px); }

  /* Flowing highlight that travels down the line continuously */
  .journey-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 30%,
      hsl(var(--primary) / 0.9) 45%,
      hsl(var(--primary)) 50%,
      hsl(var(--primary) / 0.9) 55%,
      transparent 70%,
      transparent 100%
    );
    background-size: 100% 240%;
    background-repeat: no-repeat;
    background-position: 0 -100%;
    opacity: 0;
    filter: blur(0.4px) drop-shadow(0 0 6px hsl(var(--primary) / 0.6));
  }
  .journey.is-visible .journey-line::after {
    animation: journey-line-flow 2.8s cubic-bezier(.4,0,.2,1) 1.4s infinite;
  }
  @keyframes journey-line-flow {
    0%   { background-position: 0 -100%; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { background-position: 0 100%;  opacity: 0; }
  }

  /* Spark that races down the line as it draws */
  .journey-spark {
    opacity: 0;
    transition: opacity .3s ease;
  }
  .journey.is-visible .journey-spark {
    opacity: 1;
    animation: journey-spark-travel 1.6s cubic-bezier(.22,1,.36,1) forwards,
               journey-spark-fade   .4s ease 1.6s forwards;
  }
  @keyframes journey-spark-travel {
    from { transform: translateY(0); }
    to   { transform: translateY(calc(var(--journey-h, 600px) - 8px)); }
  }
  @keyframes journey-spark-fade {
    to { opacity: 0; }
  }

  .journey-item {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity .7s ease-out, transform .8s cubic-bezier(.22,1,.36,1);
    transition-delay: var(--delay, 0ms);
  }
  .journey.is-visible .journey-item {
    opacity: 1;
    transform: translateX(0);
  }

  /* Internal text reveal — year first, then title, then desc */
  .journey-year, .journey-title, .journey-desc {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .55s ease-out, transform .55s cubic-bezier(.22,1,.36,1);
  }
  .journey.is-visible .journey-year  { transition-delay: calc(var(--delay, 0ms) + 80ms);  opacity: 1; transform: translateY(0); }
  .journey.is-visible .journey-title { transition-delay: calc(var(--delay, 0ms) + 220ms); opacity: 1; transform: translateY(0); }
  .journey.is-visible .journey-desc  { transition-delay: calc(var(--delay, 0ms) + 340ms); opacity: 1; transform: translateY(0); }

  .journey-dot {
    opacity: 0;
    transform: scale(.3);
    transition: opacity .5s ease, transform .6s cubic-bezier(.22,1.8,.36,1);
    transition-delay: calc(var(--delay, 0ms) + 280ms);
  }
  .journey.is-visible .journey-item .journey-dot {
    opacity: 1;
    transform: scale(1);
  }
  .journey-pulse {
    animation: journey-pulse 2.6s ease-out infinite;
  }
  @keyframes journey-pulse {
    0%   { transform: scale(1);   opacity: .35; }
    70%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .journey-line, .journey-item, .journey-dot,
    .journey-year, .journey-title, .journey-desc, .journey-spark { transition: none; animation: none; }
    .journey-line { height: calc(100% - 8px); }
    .journey-line::after { display: none; }
    .journey-item, .journey-dot, .journey-year, .journey-title, .journey-desc { opacity: 1; transform: none; }
    .journey-pulse { animation: none; }
    .journey-spark { opacity: 0; }
  }

  /* ===== How We Deliver It — connecting flow line ===== */
  .hwd-flow {
    animation: hwd-flow 4.5s cubic-bezier(.55,0,.45,1) infinite;
  }
  @keyframes hwd-flow {
    0%   { left: -33%;  opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hwd-flow { animation: none; left: 0; width: 100%; opacity: .35; }
  }

  /* ===== Case Studies hero animation (outcomes dashboard) ===== */
  .csa-wrap {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    aspect-ratio: 420 / 380;
    position: relative;
  }
  .csa-svg { width: 100%; height: 100%; display: block; overflow: visible; }

  /* Card subtle hover/breathe */
  .csa-card { filter: drop-shadow(0 14px 28px hsl(265 60% 30% / 0.12)); }
  .csa-card-group { animation: csa-breathe 6s ease-in-out infinite; transform-box: view-box; transform-origin: 170px 180px; }
  @keyframes csa-breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

  /* KPI big number counts up via class swap; here we cycle a soft pulse */
  .csa-kpi-num   { animation: csa-kpi-pulse 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .csa-kpi-arrow { animation: csa-kpi-bob 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes csa-kpi-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
  @keyframes csa-kpi-bob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

  /* Line chart: clip-path reveal from left to right, then loop */
  .csa-reveal {
    clip-path: inset(0 100% 0 0);
    animation: csa-line-reveal 6s ease-in-out infinite;
  }
  @keyframes csa-line-reveal {
    0%   { clip-path: inset(0 100% 0 0); }
    50%  { clip-path: inset(0 0    0 0); }
    90%  { clip-path: inset(0 0    0 0); }
    100% { clip-path: inset(0 100% 0 0); }
  }

  /* Data points pop in staggered */
  .csa-pt {
    opacity: 0;
    transform-box: fill-box; transform-origin: center;
    animation: csa-pt-pop 6s ease-in-out infinite;
  }
  ${[0,1,2,3,4,5,6,7,8,9,10].map(i => `.csa-pt-${i} { animation-delay: ${0.2 + i * 0.18}s; }`).join("\n  ")}
  @keyframes csa-pt-pop {
    0%, 5%   { opacity: 0; transform: scale(0.4); }
    10%      { opacity: 1; transform: scale(1.4); }
    14%, 88% { opacity: 1; transform: scale(1); }
    96%, 100% { opacity: 0; transform: scale(0.4); }
  }

  /* Traveling pulse glow */
  .csa-pulse { opacity: 0; animation: csa-pulse-fade 3.6s ease-in-out infinite; }
  @keyframes csa-pulse-fade {
    0%, 95%, 100% { opacity: 0; }
    10%, 85%      { opacity: 1; }
  }

  /* Bar chart growth (staggered) */
  .csa-bar-rect {
    transform-box: fill-box; transform-origin: bottom;
    animation: csa-bar-grow 6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }
  .csa-bar-0 .csa-bar-rect { animation-delay: 0.1s; }
  .csa-bar-1 .csa-bar-rect { animation-delay: 0.25s; }
  .csa-bar-2 .csa-bar-rect { animation-delay: 0.4s; }
  .csa-bar-3 .csa-bar-rect { animation-delay: 0.55s; }
  .csa-bar-4 .csa-bar-rect { animation-delay: 0.7s; }
  .csa-bar-5 .csa-bar-rect { animation-delay: 0.85s; }
  .csa-bar-6 .csa-bar-rect { animation-delay: 1.0s; }
  /* Each bar uses --bar-h to know its target height; the y attribute is fixed at 62,
     and we animate height + a translate so it visibly grows up from the baseline. */
  .csa-bar-0 .csa-bar-rect { --bh: 38px; }
  .csa-bar-1 .csa-bar-rect { --bh: 48px; }
  .csa-bar-2 .csa-bar-rect { --bh: 30px; }
  .csa-bar-3 .csa-bar-rect { --bh: 54px; }
  .csa-bar-4 .csa-bar-rect { --bh: 44px; }
  .csa-bar-5 .csa-bar-rect { --bh: 58px; }
  .csa-bar-6 .csa-bar-rect { --bh: 50px; }
  @keyframes csa-bar-grow {
    0%, 5%    { transform: scaleY(0.02); }
    20%, 85%  { transform: scaleY(1); }
    100%      { transform: scaleY(0.02); }
  }
  /* Bars need a visible height first — set via height attribute fallback */
  .csa-bar-0 .csa-bar-rect { height: 38px; transform: translateY(-38px) scaleY(0.02); }
  .csa-bar-1 .csa-bar-rect { height: 48px; transform: translateY(-48px) scaleY(0.02); }
  .csa-bar-2 .csa-bar-rect { height: 30px; transform: translateY(-30px) scaleY(0.02); }
  .csa-bar-3 .csa-bar-rect { height: 54px; transform: translateY(-54px) scaleY(0.02); }
  .csa-bar-4 .csa-bar-rect { height: 44px; transform: translateY(-44px) scaleY(0.02); }
  .csa-bar-5 .csa-bar-rect { height: 58px; transform: translateY(-58px) scaleY(0.02); }
  .csa-bar-6 .csa-bar-rect { height: 50px; transform: translateY(-50px) scaleY(0.02); }
  @keyframes csa-bar-grow-0 { 0%,5% { transform: translateY(-38px) scaleY(0.02); } 20%,85% { transform: translateY(-38px) scaleY(1); } 100% { transform: translateY(-38px) scaleY(0.02); } }
  @keyframes csa-bar-grow-1 { 0%,5% { transform: translateY(-48px) scaleY(0.02); } 20%,85% { transform: translateY(-48px) scaleY(1); } 100% { transform: translateY(-48px) scaleY(0.02); } }
  @keyframes csa-bar-grow-2 { 0%,5% { transform: translateY(-30px) scaleY(0.02); } 20%,85% { transform: translateY(-30px) scaleY(1); } 100% { transform: translateY(-30px) scaleY(0.02); } }
  @keyframes csa-bar-grow-3 { 0%,5% { transform: translateY(-54px) scaleY(0.02); } 20%,85% { transform: translateY(-54px) scaleY(1); } 100% { transform: translateY(-54px) scaleY(0.02); } }
  @keyframes csa-bar-grow-4 { 0%,5% { transform: translateY(-44px) scaleY(0.02); } 20%,85% { transform: translateY(-44px) scaleY(1); } 100% { transform: translateY(-44px) scaleY(0.02); } }
  @keyframes csa-bar-grow-5 { 0%,5% { transform: translateY(-58px) scaleY(0.02); } 20%,85% { transform: translateY(-58px) scaleY(1); } 100% { transform: translateY(-58px) scaleY(0.02); } }
  @keyframes csa-bar-grow-6 { 0%,5% { transform: translateY(-50px) scaleY(0.02); } 20%,85% { transform: translateY(-50px) scaleY(1); } 100% { transform: translateY(-50px) scaleY(0.02); } }
  .csa-bar-0 .csa-bar-rect { animation: csa-bar-grow-0 6s cubic-bezier(0.22,1,0.36,1) infinite 0.10s; transform-origin: bottom; }
  .csa-bar-1 .csa-bar-rect { animation: csa-bar-grow-1 6s cubic-bezier(0.22,1,0.36,1) infinite 0.25s; transform-origin: bottom; }
  .csa-bar-2 .csa-bar-rect { animation: csa-bar-grow-2 6s cubic-bezier(0.22,1,0.36,1) infinite 0.40s; transform-origin: bottom; }
  .csa-bar-3 .csa-bar-rect { animation: csa-bar-grow-3 6s cubic-bezier(0.22,1,0.36,1) infinite 0.55s; transform-origin: bottom; }
  .csa-bar-4 .csa-bar-rect { animation: csa-bar-grow-4 6s cubic-bezier(0.22,1,0.36,1) infinite 0.70s; transform-origin: bottom; }
  .csa-bar-5 .csa-bar-rect { animation: csa-bar-grow-5 6s cubic-bezier(0.22,1,0.36,1) infinite 0.85s; transform-origin: bottom; }
  .csa-bar-6 .csa-bar-rect { animation: csa-bar-grow-6 6s cubic-bezier(0.22,1,0.36,1) infinite 1.00s; transform-origin: bottom; }

  /* Gauge: animate stroke-dashoffset.
     Circumference of r=26 ≈ 163.36. 92% fill → dashoffset goes from 163 to ~13. */
  .csa-gauge-ring {
    stroke-dasharray: 163.36;
    stroke-dashoffset: 163.36;
    animation: csa-gauge 5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }
  @keyframes csa-gauge {
    0%, 5%   { stroke-dashoffset: 163.36; }
    35%, 85% { stroke-dashoffset: 13;     }
    100%     { stroke-dashoffset: 163.36; }
  }
  .csa-gauge-num { animation: csa-kpi-pulse 5s ease-in-out infinite; }
  .csa-gauge-group { animation: csa-gauge-bob 6s ease-in-out infinite; transform-box: view-box; transform-origin: 355px 110px; }
  @keyframes csa-gauge-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
  }

  /* Floating impact chips */
  .csa-chip {
    transform-box: view-box;
    filter: drop-shadow(0 8px 18px hsl(265 60% 30% / 0.12));
    opacity: 0;
    animation: csa-chip-in 7s ease-in-out infinite;
  }
  .csa-chip-1 { transform-origin: 354px 246px; animation-delay: 0.6s; }
  .csa-chip-2 { transform-origin: 350px 306px; animation-delay: 1.4s; }
  .csa-chip-3 { transform-origin: 82px  346px; animation-delay: 2.2s; }
  .csa-chip-4 { transform-origin: 197px 45px;  animation-delay: 3.0s; }
  @keyframes csa-chip-in {
    0%, 5%   { opacity: 0; transform: translateY(10px) scale(0.92); }
    12%      { opacity: 1; transform: translateY(0)    scale(1.04); }
    16%, 88% { opacity: 1; transform: translateY(0)    scale(1); }
    96%, 100% { opacity: 0; transform: translateY(-6px) scale(0.96); }
  }

  /* Spark particles drifting up */
  .csa-sp { opacity: 0; }
  .csa-sp.s1 { animation: csa-sp-rise 6s ease-out infinite 0.5s; }
  .csa-sp.s2 { animation: csa-sp-rise 6.6s ease-out infinite 1.4s; }
  .csa-sp.s3 { animation: csa-sp-rise 7.2s ease-out infinite 2.3s; }
  .csa-sp.s4 { animation: csa-sp-rise 6.0s ease-out infinite 3.2s; }
  @keyframes csa-sp-rise {
    0%   { opacity: 0; transform: translateY(0); }
    10%  { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(-300px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .csa-card-group, .csa-kpi-num, .csa-kpi-arrow,
    .csa-reveal, .csa-pt, .csa-pulse,
    .csa-bar-rect, .csa-gauge-ring, .csa-gauge-num, .csa-gauge-group,
    .csa-chip, .csa-sp { animation: none !important; }
    .csa-reveal { clip-path: inset(0 0 0 0); }
    .csa-pt { opacity: 1; transform: scale(1); }
    .csa-chip { opacity: 1; }
    .csa-gauge-ring { stroke-dashoffset: 13; }
  }

  /* ===== Blog hero animation (Insight Composer) ===== */
  .bha-wrap {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    aspect-ratio: 460 / 420;
    position: relative;
  }
  .bha-svg { width: 100%; height: 100%; display: block; overflow: visible; }

  /* Card stack — gentle float, with the back two slightly drifting opposite */
  .bha-card-front { transform-box: fill-box; transform-origin: 50% 60%; animation: bha-card-float 8s ease-in-out infinite; filter: drop-shadow(0 24px 48px hsl(265 60% 30% / 0.18)); }
  .bha-card-mid   { transform-box: fill-box; transform-origin: 50% 60%; animation: bha-card-float 8s ease-in-out infinite -1.5s; opacity: 0.75; }
  .bha-card-back  { transform-box: fill-box; transform-origin: 50% 60%; animation: bha-card-float 8s ease-in-out infinite -3s;   opacity: 0.45; }
  @keyframes bha-card-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
  }

  /* Topic constellation chips at top — fade & gentle bob */
  .bha-chip { transform-box: fill-box; transform-origin: center; opacity: 0; animation: bha-chip-bob 7s ease-in-out infinite; }
  .bha-chip-1 { animation-delay: 0.2s; }
  .bha-chip-2 { animation-delay: 1.0s; }
  .bha-chip-3 { animation-delay: 1.8s; }
  .bha-chip-4 { animation-delay: 2.6s; }
  @keyframes bha-chip-bob {
    0%, 4%   { opacity: 0; transform: translateY(6px) scale(0.94); }
    14%      { opacity: 1; transform: translateY(0)    scale(1.04); }
    20%, 84% { opacity: 1; transform: translateY(-2px) scale(1); }
    96%,100% { opacity: 0; transform: translateY(-8px) scale(0.96); }
  }

  /* Data tokens streaming from chips into the card */
  .bha-tok { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .bha-tok-1 { animation: bha-tok-drop 2.6s cubic-bezier(0.55,0,0.45,1) infinite 0.4s; }
  .bha-tok-2 { animation: bha-tok-drop 2.6s cubic-bezier(0.55,0,0.45,1) infinite 1.0s; }
  .bha-tok-3 { animation: bha-tok-drop 2.6s cubic-bezier(0.55,0,0.45,1) infinite 1.6s; }
  .bha-tok-4 { animation: bha-tok-drop 2.6s cubic-bezier(0.55,0,0.45,1) infinite 2.0s; }
  .bha-tok-5 { animation: bha-tok-drop 2.6s cubic-bezier(0.55,0,0.45,1) infinite 0.8s; }
  .bha-tok-6 { animation: bha-tok-drop 2.6s cubic-bezier(0.55,0,0.45,1) infinite 1.4s; }
  @keyframes bha-tok-drop {
    0%   { opacity: 0; transform: translateY(0)   scale(0.6); }
    15%  { opacity: 1; transform: translateY(8px) scale(1); }
    70%  { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(58px) scale(0.7); }
  }

  /* Hero image shimmer sweep */
  .bha-shimmer {
    transform-box: fill-box; transform-origin: left center;
    animation: bha-shimmer 4.5s ease-in-out infinite 1.2s;
    mix-blend-mode: screen;
  }
  @keyframes bha-shimmer {
    0%, 30% { transform: translateX(-60px); opacity: 0; }
    40%     { opacity: 0.9; }
    70%     { transform: translateX(180px); opacity: 0; }
    100%    { transform: translateX(180px); opacity: 0; }
  }

  /* Title bars — type-in reveal */
  .bha-title {
    transform-box: fill-box; transform-origin: left center;
    transform: scaleX(0);
    animation: bha-write 7s cubic-bezier(0.22,1,0.36,1) infinite;
  }
  .bha-title-1 { animation-delay: 0.4s; }
  .bha-title-2 { animation-delay: 1.0s; }
  @keyframes bha-write {
    0%, 4%   { transform: scaleX(0); }
    14%      { transform: scaleX(1); }
    90%      { transform: scaleX(1); }
    98%,100% { transform: scaleX(0); }
  }

  /* Excerpt lines — fade and scaleX */
  .bha-line {
    transform-box: fill-box; transform-origin: left center;
    transform: scaleX(0); opacity: 0;
    animation: bha-line-in 7s cubic-bezier(0.22,1,0.36,1) infinite;
  }
  .bha-line-1 { animation-delay: 1.9s; }
  .bha-line-2 { animation-delay: 2.3s; }
  .bha-line-3 { animation-delay: 2.7s; }
  @keyframes bha-line-in {
    0%, 24%  { opacity: 0; transform: scaleX(0); }
    32%      { opacity: 1; transform: scaleX(1); }
    90%      { opacity: 1; transform: scaleX(1); }
    98%,100% { opacity: 0; transform: scaleX(0); }
  }

  /* Typing caret on the title row */
  .bha-caret {
    transform-box: fill-box; transform-origin: center;
    animation: bha-caret-step 7s steps(1,end) infinite, bha-caret-blink 0.9s steps(1,end) infinite;
  }
  @keyframes bha-caret-blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
  }
  @keyframes bha-caret-step {
    0%, 4%   { transform: translate(0, 0); }
    14%      { transform: translate(126px, 0); }
    16%      { transform: translate(0, 16px); }
    26%      { transform: translate(98px, 16px); }
    28%, 94% { transform: translate(98px, 16px); opacity: 0; }
    100%     { transform: translate(98px, 16px); opacity: 0; }
  }

  /* Reading progress bar fills slowly */
  .bha-progress {
    transform-box: fill-box; transform-origin: left center;
    transform: scaleX(0);
    animation: bha-progress 7s linear infinite;
  }
  @keyframes bha-progress {
    0%, 6%   { transform: scaleX(0); }
    92%      { transform: scaleX(1); }
    100%     { transform: scaleX(1); }
  }

  /* Top-right radar / signal */
  .bha-sig-dot { transform-box: fill-box; transform-origin: center; animation: bha-sig-pulse 1.8s ease-in-out infinite; }
  .bha-sig-arc { transform-box: fill-box; transform-origin: center; opacity: 0; }
  .bha-sig-arc-1 { animation: bha-sig-arc 2.2s ease-out infinite; }
  .bha-sig-arc-2 { animation: bha-sig-arc 2.2s ease-out infinite 0.7s; }
  .bha-sig-arc-3 { animation: bha-sig-arc 2.2s ease-out infinite 1.4s; }
  @keyframes bha-sig-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.25); }
  }
  @keyframes bha-sig-arc {
    0%   { opacity: 0;   transform: scale(0.5); }
    40%  { opacity: 0.7; }
    100% { opacity: 0;   transform: scale(1.6); }
  }

  /* Ambient drifting particles */
  .bha-spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: bha-spark 6s ease-in-out infinite; }
  .bha-spark-1 { animation-delay: 0.0s; }
  .bha-spark-2 { animation-delay: 1.4s; }
  .bha-spark-3 { animation-delay: 2.8s; }
  .bha-spark-4 { animation-delay: 3.6s; }
  @keyframes bha-spark {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.7); }
    30%      { opacity: 0.9; transform: translateY(-6px) scale(1); }
    70%      { opacity: 0.5; transform: translateY(-14px) scale(0.9); }
  }

  @media (prefers-reduced-motion: reduce) {
    .bha-card-front, .bha-card-mid, .bha-card-back,
    .bha-chip, .bha-tok, .bha-shimmer, .bha-title, .bha-line,
    .bha-caret, .bha-progress, .bha-sig-dot, .bha-sig-arc, .bha-spark
      { animation: none !important; }
    .bha-title, .bha-line, .bha-progress { transform: scaleX(1); }
    .bha-chip, .bha-line, .bha-spark { opacity: 1; }
  }
