/* ============================================================
   Riverview Enterprise Architecture LLC
   Premium Corporate Design System
   ============================================================ */

/* --- Design Tokens ----------------------------------------- */
:root {
  /* Brand palette anchored to current blue */
  --brand-900: #0a2540;
  --brand-800: #0f3a6a;
  --brand-700: #134d8a;
  --brand-600: #175a96;   /* primary brand */
  --brand-500: #2079c3;
  --brand-400: #4a9fe0;
  --brand-300: #82bff0;
  --brand-200: #b8dcf6;
  --brand-100: #e3f1fc;
  --brand-50:  #f4f9fe;

  --accent:    #00d4ff;   /* electric accent */
  --accent-2:  #635bff;   /* stripe-purple */
  --accent-3:  #00c896;   /* success green */

  --ink-900: #0a1929;
  --ink-700: #2a3b52;
  --ink-500: #5a6b82;
  --ink-300: #8a9ab2;
  --ink-100: #e6ecf3;

  --bg:        #ffffff;
  --bg-soft:   #f7faff;
  --bg-tint:   #eef4fb;
  --surface:   rgba(255, 255, 255, 0.7);
  --border:    rgba(23, 90, 150, 0.12);
  --border-strong: rgba(23, 90, 150, 0.22);

  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.06), 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 4px 16px rgba(10, 37, 64, 0.08), 0 2px 6px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 18px 50px rgba(10, 37, 64, 0.12), 0 6px 18px rgba(10, 37, 64, 0.06);
  --shadow-xl: 0 30px 80px rgba(10, 37, 64, 0.18);
  --shadow-glow: 0 0 60px rgba(23, 90, 150, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --gradient-brand: linear-gradient(135deg, #175a96 0%, #2079c3 50%, #00d4ff 100%);
  --gradient-hero:  linear-gradient(135deg, #0a2540 0%, #134d8a 45%, #2079c3 100%);
  --gradient-soft:  linear-gradient(180deg, #f4f9fe 0%, #ffffff 100%);
  --gradient-mesh:
    radial-gradient(at 12% 8%, rgba(99, 91, 255, 0.18) 0px, transparent 50%),
    radial-gradient(at 88% 12%, rgba(0, 212, 255, 0.18) 0px, transparent 55%),
    radial-gradient(at 70% 80%, rgba(23, 90, 150, 0.22) 0px, transparent 55%),
    radial-gradient(at 18% 75%, rgba(0, 200, 150, 0.14) 0px, transparent 50%);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
  --container-narrow: 880px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset / Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brand-500); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
h4 { font-size: 1rem; }
p  { margin: 0 0 0.75em; color: var(--ink-700); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

.section {
  padding: clamp(36px, 4.5vw, 64px) 0;
  position: relative;
}
.section-compact { padding: clamp(24px, 3vw, 40px) 0; }
.section-tint { background: var(--bg-soft); }
.section-dark {
  background: var(--gradient-hero);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.85); }

/* --- Eyebrow / labels -------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-600);
  background: var(--brand-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(23, 90, 150, 0.18);
}
.section-dark .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-200);
  backdrop-filter: blur(8px);
}

/* --- Gradient text ----------------------------------------- */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(23, 90, 150, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(23, 90, 150, 0.36), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-secondary {
  background: #fff;
  color: var(--brand-700);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--brand-50); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }
.section-dark .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}
.section-dark .btn-secondary:hover { background: rgba(255,255,255,0.18); }
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* --- Header / Navigation ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.92); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink-900); }
.brand-mark {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(23, 90, 150, 0.25));
  transition: transform 0.3s var(--ease-out);
}
.brand:hover .brand-mark { transform: translateY(-1px) rotate(-2deg); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { line-height: 1.1; }
.brand-tag { display: block; font-size: 0.68rem; font-weight: 500; color: var(--ink-500); letter-spacing: 0.04em; margin-top: 1px; }

/* Footer variant of brand mark - drops shadow on dark bg */
.site-footer .brand-mark { filter: drop-shadow(0 2px 10px rgba(0, 212, 255, 0.35)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.nav-links a:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-links a.active { color: var(--brand-600); background: var(--brand-100); }
.nav-cta { margin-left: 12px; padding: 10px 20px !important; font-size: 0.9rem !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  width: 42px; height: 42px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink-900);
  margin: 4px auto;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px 20px 24px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 6px 0 0 !important; text-align: center; }
}

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(44px, 6.5vw, 72px) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: -1px;
  background: var(--gradient-mesh), var(--bg-soft);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 90, 150, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 90, 150, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  z-index: -1;
}
.hero-inner {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero h1 { margin-bottom: 22px; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-500);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Floating tech chips around hero */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* --- Logo cloud / trust bar -------------------------------- */
.trust {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.trust-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  margin-bottom: 22px;
}
.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 44px;
}
.trust-item {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-300);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s var(--ease);
}
.trust-item:hover { color: var(--brand-600); }
.trust-item svg { width: 22px; height: 22px; }

/* --- Section header ---------------------------------------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.section-head h2 { margin-bottom: 8px; }
.section-head p { font-size: 0.98rem; color: var(--ink-500); margin: 0; }

/* --- Tech / Service cards ---------------------------------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-100);
  color: var(--brand-600);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease);
}
.card:hover .card-icon { transform: scale(1.06) rotate(-3deg); }

.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: 0.92rem; margin-bottom: 0; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-600);
}
.card-link:hover { gap: 10px; }

/* Branded tech card accents */
.tech-card[data-tech="salesforce"] .card-icon { background: rgba(0, 161, 224, 0.12); color: #00A1E0; }
.tech-card[data-tech="dotnet"] .card-icon    { background: rgba(94, 60, 175, 0.12); color: #5E3CAF; }
.tech-card[data-tech="java"] .card-icon      { background: rgba(244, 124, 32, 0.12); color: #E76F00; }
.tech-card[data-tech="python"] .card-icon    { background: rgba(48, 105, 152, 0.12); color: #306998; }

/* --- Stats ------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  padding: 22px 28px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-top: -28px;
  margin-bottom: -28px;
  position: relative;
  z-index: 2;
}
.stat-value {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.82rem; color: var(--ink-500); font-weight: 500; }

/* --- Feature blocks (alternating) -------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
  margin: 36px 0;
}
.feature:nth-child(even) .feature-art { order: -1; }
.feature h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 12px; }
.feature p { font-size: 0.98rem; color: var(--ink-500); margin-bottom: 14px; }
.feature-art {
  background: linear-gradient(135deg, #f4f9fe 0%, #ffffff 100%);
  background-image: var(--gradient-mesh), linear-gradient(135deg, #f4f9fe 0%, #ffffff 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 24px 60px -20px rgba(10, 37, 64, 0.18);
}
.feature-art::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent);
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-child(even) .feature-art { order: 0; }
}

/* --- Checklist --------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: var(--ink-700);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 18px;
  background: var(--brand-100);
  border-radius: 50%;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 18px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--brand-600);
  border-bottom: 2px solid var(--brand-600);
  transform: rotate(-45deg);
}

/* --- CTA strip --------------------------------------------- */
.cta-strip {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 72px) clamp(28px, 5vw, 64px);
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-strip::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(at 20% 20%, rgba(0,212,255,0.25), transparent 50%),
    radial-gradient(at 80% 80%, rgba(99,91,255,0.3), transparent 55%);
  z-index: -1;
}
.cta-strip h2 { color: #fff; margin-bottom: 14px; }
.cta-strip p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 28px; }

/* --- Form -------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-900);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(32, 121, 195, 0.12);
}
.form-note {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 14px;
}
.form-success {
  display: none;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.3);
  color: #0a7d5e;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* --- Contact info list ------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border: 0; }
.contact-list .icon {
  flex: 0 0 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list .label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: 2px;
}
.contact-list .value { color: var(--ink-900); font-weight: 500; }

/* --- Process steps ----------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease);
}
.step:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.step-num {
  counter-increment: step;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(23, 90, 150, 0.3);
}
.step-num::before { content: counter(step); }
.step h4 { margin: 4px 0 6px; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.94rem; color: var(--ink-500); }

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  margin-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.footer-blurb { font-size: 0.92rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* --- Page hero (small) ------------------------------------- */
.page-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(36px, 4.5vw, 56px);
  text-align: center;
  position: relative;
  background: var(--gradient-soft);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.7;
  z-index: -1;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; color: var(--ink-500); max-width: 620px; margin: 0 auto; }

/* --- Reveal on scroll -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Animated hero orb ------------------------------------- */
.hero-orb {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.45), rgba(99, 91, 255, 0.25) 40%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: orbFloat 14s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb.one { top: -120px; left: -120px; }
.hero-orb.two { bottom: -160px; right: -120px; background: radial-gradient(circle at 70% 70%, rgba(23, 90, 150, 0.4), rgba(0, 212, 255, 0.2) 40%, transparent 70%); animation-delay: -6s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

/* --- Marquee for tech stack -------------------------------- */
.marquee {
  overflow: hidden;
  position: relative;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-700);
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Client logo wall -------------------------------------- */
.client-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}
.client-logo {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink-700);
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.client-logo::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-color, var(--brand-500));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10,37,64,0.10), 0 4px 10px rgba(10,37,64,0.05);
  border-color: var(--border-strong);
}
.client-logo:hover::before { opacity: 1; }

/* Reusable bits used inside brand marks */
.client-logo .accent {
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.client-logo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  margin-right: 8px;
  vertical-align: -5px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}
.client-logo .sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-500);
  margin-top: 4px;
  text-transform: uppercase;
}

/* --------- Brand-specific styling --------- */

/* Farmatouch — blue gradient on Farma */
.client-logo[data-brand="farmatouch"] { --brand-color: #175a96; }

/* ExperTaste Marketing — warm coral */
.client-logo[data-brand="expertaste"] { --brand-color: #FF6B6B; color: #2a3b52; font-weight: 700; }
.client-logo[data-brand="expertaste"] strong { color: #FF6B6B; font-weight: 800; }

/* Coca-Cola — classic red */
.client-logo[data-brand="cocacola"] { --brand-color: #F40009; color: #F40009; font-style: italic; font-weight: 800; letter-spacing: -0.025em; }

/* Scotiabank — Scotia red with flame mark */
.client-logo[data-brand="scotiabank"] { --brand-color: #EC111A; color: #1A1A1A; font-weight: 700; }
.client-logo[data-brand="scotiabank"] .mark { background: linear-gradient(180deg, #EC111A 0%, #B30B14 100%); }
.client-logo[data-brand="scotiabank"] .mark::before {
  content: "";
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid #fff;
  display: inline-block;
}

/* 7-Eleven — multi-color letters */
.client-logo[data-brand="seveneleven"] { --brand-color: #008947; color: #1A1A1A; font-weight: 800; letter-spacing: -0.02em; }
.client-logo[data-brand="seveneleven"] .e7 { color: #E55C28; }
.client-logo[data-brand="seveneleven"] .e1 { color: #008947; }
.client-logo[data-brand="seveneleven"] .e2 { color: #E55C28; }
.client-logo[data-brand="seveneleven"] .e3 { color: #008947; }
.client-logo[data-brand="seveneleven"] .e4 { color: #E55C28; }
.client-logo[data-brand="seveneleven"] .e5 { color: #008947; }
.client-logo[data-brand="seveneleven"] .e6 { color: #E55C28; }

/* Logistics — deep navy */
.client-logo[data-brand="logistics"] { --brand-color: #0a7d5e; color: #0a2540; font-weight: 700; }
.client-logo[data-brand="logistics"] .mark { background: #0a7d5e; }

/* Regional Health — teal */
.client-logo[data-brand="health"] { --brand-color: #2079c3; color: #0a2540; font-weight: 700; }
.client-logo[data-brand="health"] .mark { background: #2079c3; }

/* --- Success story cards (with quote) ---------------------- */
.story-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-600);
  background: var(--brand-100);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}
.story-card h3 { margin: 0; font-size: 1.15rem; }
.story-card p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }
.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-500);
}
.story-meta strong { color: var(--ink-900); font-weight: 700; }
.story-impact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.story-impact > div {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 12px 14px;
}
.story-impact .num {
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
}
.story-impact .lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-500);
  margin-top: 4px;
}

/* --- Support tier cards ------------------------------------ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.tier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.tier-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(23,90,150,0.25);
}
.tier-card[data-tier="L1"] .tier-badge { background: linear-gradient(135deg, #4a9fe0, #2079c3); }
.tier-card[data-tier="L2"] .tier-badge { background: linear-gradient(135deg, #175a96, #134d8a); }
.tier-card[data-tier="L3"] .tier-badge { background: linear-gradient(135deg, #0a2540, #635bff); }
.tier-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.tier-sub {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  margin-bottom: 16px;
}
.tier-card ul.checklist { margin: 16px 0 0; }
.tier-card ul.checklist li { padding: 6px 0 6px 30px; font-size: 0.92rem; }
.tier-card ul.checklist li::before { top: 12px; }
.tier-card ul.checklist li::after { top: 16px; }
.tier-sla {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--ink-700);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tier-sla strong { color: var(--brand-700); }

/* ============================================================
   APPLE-STYLE HERO + BENTO LAYOUT
   ============================================================ */
.hero-apple { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.hero-apple .hero-inner { max-width: 980px; }
.hero-apple h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 22px;
}
.hero-apple .hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-700);
  line-height: 1.5;
}

/* Bento grid — Apple-style mixed tile sizes */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.bento-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink-900);
  text-decoration: none;
}
.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.bento-tile h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 6px;
}
.bento-tile .b-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
}
.bento-tile .b-meta {
  font-size: 0.88rem;
  color: var(--ink-500);
  margin: 0;
}
.bento-tile .b-arrow {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-600);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s var(--ease);
}
.bento-tile:hover .b-arrow { gap: 12px; }

/* Tile spans */
.bento-tile.span-2   { grid-column: span 2; }
.bento-tile.span-3   { grid-column: span 3; }
.bento-tile.span-4   { grid-column: span 4; }
.bento-tile.span-6   { grid-column: span 6; }
.bento-tile.tall     { grid-row: span 2; }

/* Make the body of each tile easier to position visuals over */
.bento-tile { isolation: isolate; }
.bento-vis {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Content (non-visual) children sit above the absolute background visuals.
   Visual classes are excluded so their absolute positioning is preserved. */
.bento-tile > div:not(.ticker):not(.cloud-float):not(.morph-vis):not(.mini-neural):not(.flow-vis):not(.bars-vis):not(.stack-vis),
.bento-tile > .b-arrow {
  position: relative;
  z-index: 1;
}
/* The live status pill stays in its corner, above everything else */
.bento-tile > .b-live { z-index: 3; }
/* Background grid sits at the bottom of the stack */
.bento-tile > .bento-vis { z-index: 0; }
/* Foreground animated visuals (ticker, clouds, etc.) sit above the bg grid but behind text */
.bento-tile > .ticker,
.bento-tile > .cloud-float,
.bento-tile > .morph-vis,
.bento-tile > .mini-neural,
.bento-tile > .flow-vis,
.bento-tile > .bars-vis,
.bento-tile > .stack-vis { z-index: 0; }

/* Dark / featured tile (Support) */
.bento-tile.is-dark {
  background:
    radial-gradient(at 20% 20%, rgba(0,212,255,0.18), transparent 55%),
    radial-gradient(at 80% 80%, rgba(99,91,255,0.22), transparent 55%),
    linear-gradient(135deg, #0a2540 0%, #134d8a 100%);
  color: #fff;
  border-color: transparent;
}
.bento-tile.is-dark h3 { color: #fff; }
.bento-tile.is-dark .b-eyebrow { color: rgba(255,255,255,0.6); }
.bento-tile.is-dark .b-meta { color: rgba(255,255,255,0.78); }
.bento-tile.is-dark .b-arrow { color: #82e9ff; }

.bento-tile.is-accent {
  background: linear-gradient(135deg, #f4f9fe 0%, #e3f1fc 100%);
}

/* Live status pill on featured tile */
.b-live {
  position: absolute;
  top: 22px; right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(90, 240, 192, 0.14);
  border: 1px solid rgba(90, 240, 192, 0.36);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: #5af0c0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.b-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5af0c0;
  animation: livePulse 1.8s ease-out infinite;
}

/* Big numeric inside bento */
.b-stat {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bento-tile.is-dark .b-stat {
  background: linear-gradient(135deg, #00d4ff, #82e9ff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Mini tier rows inside dark support tile */
.b-tiers { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.b-tier {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
}

/* Cloud chips inside cloud tile */
.b-clouds { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.b-cloud {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.b-cloud[data-c="az"] { color: #0078D4; }
.b-cloud[data-c="aws"] { color: #E76F00; }
.b-cloud[data-c="gcp"] { color: #4285F4; }

/* Mobile bento: stack to single column */
@media (max-width: 880px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-tile { min-height: 200px; }
  .bento-tile.span-2, .bento-tile.span-3, .bento-tile.span-4, .bento-tile.span-6, .bento-tile.tall {
    grid-column: auto; grid-row: auto;
  }
}

/* ----------------------------------------------------------
   BENTO INTERNAL ANIMATIONS — one purposeful visual per tile
   ---------------------------------------------------------- */

/* SUPPORT TILE — animated grid background + live ticker */
.bento-vis-grid {
  background-image:
    radial-gradient(at 18% 22%, rgba(0,212,255,0.20), transparent 50%),
    radial-gradient(at 80% 78%, rgba(99,91,255,0.25), transparent 55%),
    linear-gradient(rgba(0,212,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  animation: gridDrift 28s linear infinite;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
@keyframes gridDrift {
  to { background-position: 0 0, 0 0, 88px 88px, 88px 88px; }
}

.ticker {
  position: absolute;
  right: 22px;
  top: 64px;
  width: 280px;
  max-width: 45%;
  overflow: hidden;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  font-family: 'SF Mono', ui-monospace, monospace;
  z-index: 1;
  backdrop-filter: blur(6px);
}
.ticker-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.ticker-list {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ticker-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  opacity: 0;
  animation: tickerFade 12s linear infinite;
}
.ticker-list li:nth-child(1) { animation-delay: 0s; }
.ticker-list li:nth-child(2) { animation-delay: -3s; }
.ticker-list li:nth-child(3) { animation-delay: -6s; }
.ticker-list li:nth-child(4) { animation-delay: -9s; }
@keyframes tickerFade {
  0%, 5%   { opacity: 0; transform: translateY(4px); }
  10%, 25% { opacity: 1; transform: translateY(0); }
  30%, 100%{ opacity: 0.25; transform: translateY(0); }
}
.ticker-list .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5af0c0;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(90,240,192,0.7);
}
.ticker-list .dot.warn { background: #ffb84d; box-shadow: 0 0 6px rgba(255,184,77,0.7); }
.ticker-list .dot.info { background: #82e9ff; box-shadow: 0 0 6px rgba(130,233,255,0.6); }
.ticker-list .label { flex: 1; }
.ticker-list .time { font-size: 0.7rem; color: rgba(255,255,255,0.4); }

@media (max-width: 700px) { .ticker { display: none; } }

/* CLOUD TILE — three floating cloud-platform badges */
.cloud-float {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 110px; height: 110px;
  pointer-events: none;
  opacity: 0.6;
}
.cloud-float .c {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.7rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 14px rgba(10,37,64,0.08);
  animation: floatY 5s ease-in-out infinite;
}
.cloud-float .c.az  { color: #0078D4; top: 0;   right: 36px; animation-delay: -0.5s; }
.cloud-float .c.aws { color: #E76F00; top: 36px; right: 72px; animation-delay: -1.8s; }
.cloud-float .c.gcp { color: #4285F4; top: 64px; right: 6px;  animation-delay: -3s; }
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* MODERNIZE TILE — old shape morphing to new shape */
.morph-vis {
  position: absolute;
  right: 18px; bottom: 14px;
  width: 130px; height: 64px;
  display: flex; align-items: center; gap: 10px;
  opacity: 0.85;
}
.morph-old, .morph-new {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  position: relative;
}
.morph-old {
  background: rgba(90,107,130,0.16);
  border: 1px dashed rgba(90,107,130,0.5);
  animation: morphOld 4s ease-in-out infinite;
}
.morph-new {
  background: linear-gradient(135deg, #175a96, #00d4ff);
  animation: morphNew 4s ease-in-out infinite;
}
@keyframes morphOld {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.9); }
}
@keyframes morphNew {
  0%,100% { opacity: 0.55; transform: scale(0.9); box-shadow: 0 0 0 rgba(0,212,255,0); }
  50%     { opacity: 1;    transform: scale(1.05); box-shadow: 0 6px 18px rgba(0,212,255,0.35); }
}
.morph-arrow {
  position: absolute;
  left: 47%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--brand-600);
  font-size: 1rem;
  font-weight: 800;
}

/* AI TILE — mini neural network */
.mini-neural {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 130px; height: 90px;
  pointer-events: none;
}
.mini-neural svg { width: 100%; height: 100%; }
.mini-neural .mn-node {
  fill: #175a96;
  animation: mnPulse 2.2s ease-in-out infinite;
  transform-origin: center; transform-box: fill-box;
}
.mini-neural .mn-node.alt { fill: #635bff; }
.mini-neural .mn-node.bright { fill: #00d4ff; }
.mini-neural .mn-link {
  stroke: rgba(23,90,150,0.4);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: mnFlow 5s linear infinite;
}
@keyframes mnPulse {
  0%,100% { transform: scale(1); opacity: 0.9; }
  50%     { transform: scale(1.3); opacity: 1; }
}
@keyframes mnFlow {
  to { stroke-dashoffset: -80; }
}

/* INTEGRATE TILE — flowing dots between two systems */
.flow-vis {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 130px; height: 60px;
}
.flow-vis .box {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--brand-300);
  top: 12px;
}
.flow-vis .box.left  { left: 0; }
.flow-vis .box.right { right: 0; }
.flow-vis .line {
  position: absolute;
  left: 36px; right: 36px;
  top: 29px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-400), transparent);
}
.flow-vis .pkt {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  top: 26px;
  left: 36px;
  box-shadow: 0 0 6px rgba(32,121,195,0.5);
  animation: pktFlow 2.4s linear infinite;
}
.flow-vis .pkt:nth-child(4) { animation-delay: -0.8s; background: #00d4ff; }
.flow-vis .pkt:nth-child(5) { animation-delay: -1.6s; background: #635bff; }
@keyframes pktFlow {
  0%   { left: 36px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 44px); opacity: 0; }
}

/* DATA TILE — growing bars */
.bars-vis {
  position: absolute;
  right: 18px; bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 70px;
}
.bars-vis .bar {
  width: 18px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-700));
  animation: barGrow 3s ease-in-out infinite;
}
.bars-vis .bar:nth-child(1) { height: 30%; animation-delay: -0.2s; }
.bars-vis .bar:nth-child(2) { height: 60%; animation-delay: -0.4s; }
.bars-vis .bar:nth-child(3) { height: 45%; animation-delay: -0.6s; }
.bars-vis .bar:nth-child(4) { height: 80%; animation-delay: -0.8s; }
.bars-vis .bar:nth-child(5) { height: 95%; animation-delay: -1.0s; background: linear-gradient(180deg, #00d4ff, #2079c3); }
@keyframes barGrow {
  0%, 100% { transform: scaleY(0.85); }
  50%      { transform: scaleY(1); }
}
.bars-vis .bar { transform-origin: bottom; }

/* ARCHITECTURE TILE — stacked layers */
.stack-vis {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 140px; height: 90px;
}
.stack-vis .layer {
  position: absolute;
  left: 0; right: 0;
  height: 18px;
  border-radius: 6px;
  background: rgba(23,90,150,0.12);
  border: 1px solid rgba(23,90,150,0.22);
  animation: stackBreathe 3.6s ease-in-out infinite;
}
.stack-vis .layer:nth-child(1) { bottom: 0;  animation-delay: 0s; }
.stack-vis .layer:nth-child(2) { bottom: 24px; animation-delay: -0.6s; background: rgba(99,91,255,0.15); border-color: rgba(99,91,255,0.32); }
.stack-vis .layer:nth-child(3) { bottom: 48px; animation-delay: -1.2s; background: rgba(0,212,255,0.18); border-color: rgba(0,212,255,0.34); }
.stack-vis .layer:nth-child(4) { bottom: 72px; animation-delay: -1.8s; background: linear-gradient(90deg, rgba(23,90,150,0.35), rgba(0,212,255,0.35)); border-color: transparent; }
@keyframes stackBreathe {
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .bento-vis-grid, .cloud-float .c, .morph-old, .morph-new,
  .mini-neural .mn-node, .mini-neural .mn-link, .flow-vis .pkt,
  .bars-vis .bar, .stack-vis .layer, .ticker-list li { animation: none !important; }
}

/* Apple-style "moment" sections — big confident statements */
.moment {
  text-align: center;
  padding: clamp(72px, 12vw, 144px) 0;
}
.moment h2 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 18px;
}
.moment .sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 580px;
  margin: 0 auto;
  color: var(--ink-500);
}

/* --- Highlighted capability card (Support, etc.) ----------- */
.card.is-highlight {
  background: linear-gradient(135deg, #0a2540 0%, #134d8a 60%, #2079c3 100%);
  color: #fff;
  border-color: transparent;
  position: relative;
}
.card.is-highlight::before {
  background: linear-gradient(90deg, #00d4ff, #635bff);
  opacity: 1;
  height: 3px;
}
.card.is-highlight h3 { color: #fff; }
.card.is-highlight p { color: rgba(255,255,255,0.78); }
.card.is-highlight .card-icon {
  background: rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}
.card.is-highlight .card-link { color: #82e9ff; }
.card.is-highlight .live-pill {
  position: absolute;
  top: 18px; right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 200, 150, 0.18);
  border: 1px solid rgba(0, 200, 150, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  color: #5af0c0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card.is-highlight .live-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5af0c0;
  box-shadow: 0 0 0 0 rgba(90, 240, 192, 0.7);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(90, 240, 192, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(90, 240, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 240, 192, 0); }
}

/* --- Hero "what we do" impact strip ------------------------ */
.impact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.impact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: default;
}
.impact-pill:hover { background: var(--brand-50); color: var(--brand-700); transform: translateY(-1px); }
.impact-pill .ico {
  width: 18px; height: 18px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  background: var(--brand-100);
  font-size: 11px;
}
.impact-pill.live {
  background: linear-gradient(135deg, #0a2540, #135ea8);
  color: #fff;
  padding: 8px 14px 8px 12px;
}
.impact-pill.live .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5af0c0;
  box-shadow: 0 0 0 0 rgba(90, 240, 192, 0.7);
  animation: livePulse 1.8s ease-out infinite;
}

/* --- Rotating headline word -------------------------------- */
.rotator {
  display: inline-block;
  position: relative;
  min-width: 5ch;
  text-align: left;
  vertical-align: bottom;
}
.rotator-word {
  display: inline-block;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rotateWord 12s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes rotateWord {
  0%, 18%   { content: ""; opacity: 1; transform: translateY(0); }
  20%, 22%  { opacity: 0; transform: translateY(-6px); }
  /* word changes via JS in main.js using a list */
  78%, 100% { opacity: 1; transform: translateY(0); }
}

/* --- About: Where we work (reach grid) --------------------- */
.reach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.reach-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.reach-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.reach-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--brand-100);
  color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.reach-icon svg { width: 22px; height: 22px; }
.reach-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.reach-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.reach-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.reach-tag:hover { background: var(--brand-100); color: var(--brand-700); }
.reach-tag.cloud[data-c="azure"] { color: #0078D4; }
.reach-tag.cloud[data-c="aws"] { color: #E76F00; }
.reach-tag.cloud[data-c="gcp"] { color: #4285F4; }
.reach-tag.cloud { font-weight: 600; background: #fff; }

/* --- About: AI conviction block ---------------------------- */
.conviction {
  text-align: center;
  padding: 0 0;
}
.conviction-quote {
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.conviction p { font-size: 1.02rem; color: var(--ink-500); margin-bottom: 26px; }

/* --- Support callout (home page brief) --------------------- */
.support-callout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
@media (max-width: 820px) { .support-callout { grid-template-columns: 1fr; gap: 28px; } }
.support-callout h2 { margin-bottom: 12px; }
.support-callout p { color: var(--ink-500); margin-bottom: 22px; font-size: 1rem; }

.support-tiers-mini { display: grid; gap: 10px; }
.mini-tier {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.mini-tier:hover { transform: translateX(4px); border-color: var(--border-strong); }
.mini-badge {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.mini-tier[data-tier="L1"] .mini-badge { background: linear-gradient(135deg, #4a9fe0, #2079c3); }
.mini-tier[data-tier="L2"] .mini-badge { background: linear-gradient(135deg, #175a96, #134d8a); }
.mini-tier[data-tier="L3"] .mini-badge { background: linear-gradient(135deg, #0a2540, #635bff); }
.mini-label { font-weight: 600; color: var(--ink-900); font-size: 0.95rem; }
.mini-sla { font-size: 0.82rem; color: var(--brand-700); font-weight: 600; }

/* ============================================================
   AI VISION SECTION
   ============================================================ */
.ai-section {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
  background: linear-gradient(180deg, #0a1929 0%, #0a2540 60%, #0f3a6a 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.ai-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(at 18% 22%, rgba(0, 212, 255, 0.22) 0px, transparent 50%),
    radial-gradient(at 82% 78%, rgba(99, 91, 255, 0.28) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(23, 90, 150, 0.18) 0px, transparent 60%);
  z-index: -1;
}
.ai-section::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  z-index: -1;
}
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .ai-grid { grid-template-columns: 1fr; gap: 32px; } }
.ai-section .eyebrow {
  background: rgba(0, 212, 255, 0.1);
  color: #82e9ff;
  border: 1px solid rgba(0, 212, 255, 0.25);
}
.ai-section h2 { color: #fff; margin-bottom: 14px; font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
.ai-section h2 .gradient-text {
  background: linear-gradient(135deg, #00d4ff, #82e9ff, #ffffff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ai-section p { color: rgba(255,255,255,0.78); font-size: 1rem; }
.ai-pillars {
  list-style: none;
  padding: 0;
  margin: 22px 0 24px;
  display: grid;
  gap: 10px;
}
.ai-pillars li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ai-pillars li:hover { background: rgba(255,255,255,0.07); border-color: rgba(0,212,255,0.35); }
.ai-pillars .dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #635bff);
  margin-top: 6px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}
.ai-pillars strong { color: #fff; font-weight: 700; margin-right: 6px; }

/* --- Neural network animated visual ---------------------- */
.neural {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
.neural svg { width: 100%; height: 100%; overflow: visible; }
.neural .node {
  fill: #00d4ff;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.7));
  transform-origin: center;
  transform-box: fill-box;
  animation: nodePulse 3s ease-in-out infinite;
}
.neural .node.alt { fill: #635bff; filter: drop-shadow(0 0 8px rgba(99, 91, 255, 0.7)); }
.neural .node.core { fill: #fff; filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.85)); }
.neural .link {
  stroke: rgba(0, 212, 255, 0.18);
  stroke-width: 1;
  stroke-dasharray: 6 6;
  animation: linkFlow 6s linear infinite;
}
.neural .link.bright { stroke: rgba(99, 91, 255, 0.4); }
.neural .ring {
  fill: none;
  stroke: rgba(0, 212, 255, 0.25);
  stroke-width: 1;
  animation: ringRotate 28s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.neural .ring.r2 { stroke: rgba(99, 91, 255, 0.2); animation-duration: 40s; animation-direction: reverse; }
.neural .ring.r3 { stroke: rgba(255, 255, 255, 0.12); animation-duration: 22s; }
.neural .label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  fill: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.neural .pulse {
  fill: rgba(0, 212, 255, 0.4);
  transform-origin: center;
  transform-box: fill-box;
  animation: pulseOut 2.4s ease-out infinite;
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.35); opacity: 1; }
}
@keyframes linkFlow {
  to { stroke-dashoffset: -120; }
}
@keyframes ringRotate {
  to { transform: rotate(360deg); }
}
@keyframes pulseOut {
  0%   { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .neural .node, .neural .ring, .neural .link, .neural .pulse { animation: none !important; }
}

/* AI metrics bar */
.ai-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.ai-metric { text-align: center; }
.ai-metric .num {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #00d4ff, #82e9ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.ai-metric .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 6px; letter-spacing: 0.03em; }

/* ============================================================
   PROFESSIONAL ARCHITECTURE DIAGRAMS (used in feature-art)
   ============================================================ */
.diagram { width: 100%; height: auto; max-width: 100%; }
.diagram .surface { fill: #ffffff; filter: drop-shadow(0 6px 16px rgba(10, 37, 64, 0.08)); }
.diagram .node-box {
  fill: #ffffff;
  stroke: rgba(23, 90, 150, 0.18);
  stroke-width: 1;
  filter: drop-shadow(0 4px 12px rgba(10, 37, 64, 0.08));
}
.diagram .node-accent { fill: url(#diagGradPrimary); }
.diagram .node-secondary { fill: url(#diagGradAccent); }
.diagram .label-strong { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700; fill: #0a2540; letter-spacing: 0.04em; text-transform: uppercase; }
.diagram .label-soft   { font-family: 'Inter', sans-serif; font-size: 8.5px; font-weight: 500; fill: #5a6b82; }
.diagram .label-white  { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700; fill: #fff; letter-spacing: 0.04em; text-transform: uppercase; }
.diagram .flow-line {
  fill: none;
  stroke: #2079c3;
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
  animation: flowDash 18s linear infinite;
}
.diagram .flow-line.alt { stroke: #635bff; }
.diagram .static-line { fill: none; stroke: rgba(23, 90, 150, 0.35); stroke-width: 1.2; }
.diagram .chip {
  fill: #f4f9fe;
  stroke: rgba(23, 90, 150, 0.18);
  stroke-width: 1;
}
.diagram .chip-text { font-family: 'Inter', sans-serif; font-size: 8px; font-weight: 600; fill: #175a96; }
.diagram .dot-glow { fill: #00d4ff; filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.8)); }
@keyframes flowDash { to { stroke-dashoffset: -80; } }

/* Moving data packets along key paths */
.diagram .packet {
  fill: #00d4ff;
  filter: drop-shadow(0 0 4px rgba(0,212,255,0.8));
  offset-rotate: 0deg;
}
.diagram .packet.alt { fill: #635bff; filter: drop-shadow(0 0 4px rgba(99,91,255,0.7)); }

/* Hub pulsing rings */
.diagram .hub-pulse {
  fill: none;
  stroke: rgba(0,212,255,0.6);
  stroke-width: 2;
  transform-origin: center;
  transform-box: fill-box;
  animation: hubPulse 2.8s ease-out infinite;
}
.diagram .hub-pulse.delay2 { animation-delay: -0.9s; }
.diagram .hub-pulse.delay3 { animation-delay: -1.8s; }
@keyframes hubPulse {
  0%   { transform: scale(0.45); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Breathing node (subtle scale) */
.diagram .breathe {
  transform-origin: center;
  transform-box: fill-box;
  animation: nodeBreathe 3.6s ease-in-out infinite;
}
@keyframes nodeBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* Generic packet flow along an X-axis path (for simple horizontal segments) */
.diagram .packet-move-1 { animation: pktMove1 3.6s linear infinite; }
.diagram .packet-move-2 { animation: pktMove2 3.6s linear infinite; animation-delay: -1.2s; }
.diagram .packet-move-3 { animation: pktMove3 3.6s linear infinite; animation-delay: -2.4s; }
@keyframes pktMove1 {
  0%   { opacity: 0; offset-distance: 0%; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}
@keyframes pktMove2 {
  0%   { opacity: 0; offset-distance: 0%; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}
@keyframes pktMove3 {
  0%   { opacity: 0; offset-distance: 0%; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

/* Path-following motion (use with style: offset-path) */
.diagram .path-pkt { motion-rotation: auto; offset-rotate: auto; }

/* Spoke shimmer along radial lines */
.diagram .spoke-pkt {
  fill: #00d4ff;
  filter: drop-shadow(0 0 4px rgba(0,212,255,0.7));
  animation: spokeRun 3s linear infinite;
}
.diagram .spoke-pkt.alt { fill: #635bff; filter: drop-shadow(0 0 4px rgba(99,91,255,0.7)); }
@keyframes spokeRun {
  0%   { opacity: 0; offset-distance: 5%; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; offset-distance: 95%; }
}

/* Strangler proxy "thinking" indicator */
.diagram .think-dot {
  fill: #5af0c0;
  animation: thinkBlink 1.2s ease-in-out infinite;
}
.diagram .think-dot:nth-child(2) { animation-delay: -0.4s; }
.diagram .think-dot:nth-child(3) { animation-delay: -0.8s; }
@keyframes thinkBlink {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .diagram .flow-line, .diagram .hub-pulse, .diagram .breathe,
  .diagram .spoke-pkt, .diagram .think-dot,
  .diagram .packet-move-1, .diagram .packet-move-2, .diagram .packet-move-3 {
    animation: none !important;
  }
}

/* --- Utility ----------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
