/* ============================================================
   Square Root Solutions — Shared Stylesheet
   Used across all 25 pages of the site.
   ============================================================ */

:root {
  --navy: #0a1b34;
  --navy-2: #0f2547;
  --ink: #11192a;
  --muted: #5a6779;
  --line: #e5e9f0;
  --bg: #ffffff;
  --soft: #f4f6fb;
  --soft-2: #eef2f9;
  --accent: #2256ff;
  --accent-2: #4f7bff;
  --accent-soft: #e8efff;
  --green: #1c8a5b;

  --indigo: #4f46e5;
  --violet: #7c3aed;
  --magenta: #c026d3;
  --rose: #e11d48;
  --amber: #f59e0b;
  --teal: #0d9488;
  --cyan: #06b6d4;
  --emerald: #10b981;

  --grad-primary: linear-gradient(135deg, #2256ff 0%, #7c3aed 50%, #c026d3 100%);
  --grad-cool:    linear-gradient(135deg, #06b6d4 0%, #2256ff 50%, #7c3aed 100%);
  --grad-text:    linear-gradient(120deg, #2256ff 0%, #7c3aed 50%, #c026d3 100%);
  --grad-dark-bg: linear-gradient(135deg, #0a1326 0%, #1e1b4b 50%, #4c1d95 100%);

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15,30,60,.04), 0 2px 8px rgba(15,30,60,.04);
  --shadow-md: 0 10px 30px rgba(15,30,60,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap   { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 980px;  margin: 0 auto; padding: 0 28px; }

/* ===== Header ===== */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #1f4cff 0%, #2256ff 50%, #6ea0ff 100%);
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 16px;
  box-shadow: 0 6px 18px rgba(34,86,255,.35);
}
.brand small { color: var(--muted); font-weight: 500; font-size: 12px; display: block; line-height: 1; }

nav.links { display: flex; gap: 6px; align-items: center; }
nav.links > .nav-item { position: relative; }
nav.links > .nav-item > a {
  color: #1d2944; font-size: 14.5px; font-weight: 500;
  padding: 10px 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
}
nav.links > .nav-item > a:hover { background: var(--soft); color: var(--accent); }
nav.links > .nav-item > a.active { color: var(--accent); background: var(--accent-soft); }
nav.links .caret { font-size: 10px; opacity: .55; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(15,30,60,.12);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: 14px; color: #1d2944;
}
.dropdown a:hover { background: var(--soft); color: var(--accent); }
.dropdown .dd-section { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 12px 4px; font-weight: 700; }

.cta-btn {
  background: var(--ink); color: white; padding: 11px 18px;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s, background .15s;
  border: 0; cursor: pointer; font-family: inherit;
}
.cta-btn:hover { transform: translateY(-1px); background: #000; }
.cta-btn.primary { background: var(--accent); }
.cta-btn.primary:hover { background: #1542d9; }
.cta-btn .arrow { transition: transform .2s; }
.cta-btn:hover .arrow { transform: translateX(3px); }

.ghost-btn {
  padding: 11px 18px; border: 1px solid var(--line);
  border-radius: 999px; font-weight: 600; font-size: 14px;
  color: #1d2944; background: white;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .15s, color .15s;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Breadcrumb ===== */
.crumbs {
  font-size: 13px; color: var(--muted);
  padding: 22px 0 0;
  margin-bottom: 30px;
  display: flex; gap: 8px; align-items: center;
}
.crumbs a:hover { color: var(--accent); }
.crumbs span.sep { opacity: .5; }

/* ===== Hero ===== */
.hero { padding: 26px 0 80px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-soft); color: var(--accent);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.eyebrow .dot {
  width: 7px; height: 7px; background: var(--accent); border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(34,86,255,.18);
  animation: pulseDot 2s ease-in-out infinite;
}
h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 18px 0 22px;
  color: #0a1326;
}
h1 .accent-word {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.lede {
  color: #34405a; font-size: 17px; line-height: 1.65;
  max-width: 62ch;
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Hero visual card ===== */
.hero-card {
  background: linear-gradient(180deg, #0a1b34 0%, #0f2547 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 30px 60px rgba(15,30,60,.18);
}
.hero-card::before {
  content: ''; position: absolute; inset: -40% -10% auto auto;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(79,123,255,.45), transparent 70%);
  border-radius: 50%; filter: blur(20px);
}
.hero-card h4 { font-size: 14px; font-weight: 500; opacity: .7; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 18px; }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.stack-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(6px);
}
.stack-card .ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(79,123,255,.22); color: #b0c5ff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  margin-bottom: 10px;
}
.stack-card b { display: block; font-size: 14px; font-weight: 600; }
.stack-card span { font-size: 12px; opacity: .65; }

/* ===== Sections ===== */
section.s { padding: 88px 0; border-top: 1px solid var(--line); }
section.s.dark { background: radial-gradient(120% 90% at 12% 8%, rgba(34,86,255,.30), transparent 46%), radial-gradient(100% 80% at 88% 18%, rgba(124,58,237,.26), transparent 50%), radial-gradient(120% 100% at 72% 100%, rgba(6,182,212,.18), transparent 52%), linear-gradient(160deg, #0a1430 0%, #11103a 55%, #1a1030 100%); color: #e7ecf6; border-top: 0; }
section.s.soft { background: var(--soft); border-top: 0; }

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 18px;
  color: #0a1326;
  max-width: 22ch;
}
section.dark h2 { color: white; }
h3 {
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  color: #0a1326; margin: 0 0 10px; line-height: 1.3;
}
section.dark h3 { color: white; }
.section-intro { color: #34405a; font-size: 17px; max-width: 78ch; }
section.dark .section-intro { color: #b6c0d8; }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start; margin-bottom: 48px;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--accent);
  margin-bottom: 18px;
}
section.dark .section-tag { color: #82a3ff; }
.section-tag .num {
  background: var(--accent-soft); color: var(--accent);
  width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center; font-size: 12px;
}
section.dark .section-tag .num { background: rgba(130,163,255,.15); color: #b9cbff; }

/* ===== Cards ===== */
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.q-grid.three { grid-template-columns: repeat(3, 1fr); }
.q-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .25s;
}
section.soft .q-card { background: white; }
section.dark .q-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
section.dark .q-card p { color: #b6c0d8; }
.q-card:hover { transform: translateY(-4px); border-color: #cdd6e6; box-shadow: 0 14px 30px rgba(15,30,60,.07); }
.q-card p { color: #43506b; margin: 0; font-size: 15.5px; }
.q-card .marker {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
  font-weight: 700;
}
section.dark .q-card .marker { background: rgba(130,163,255,.15); color: #b9cbff; }
.q-card ul { padding-left: 18px; margin: 12px 0 0; color: #43506b; font-size: 14.5px; }
.q-card ul li { padding: 4px 0; }

/* ===== Who/feature columns ===== */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 14px; }
.who-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .2s, box-shadow .25s;
}
.who-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,30,60,.07); }
.who-card .label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  align-self: flex-start; margin-bottom: 16px;
  transition: background .25s, color .25s;
}
.who-card:hover .label { background: var(--accent); color: white; }
.who-card p { color: #43506b; font-size: 15px; }
.who-card ul {
  list-style: none; padding: 0; margin: 18px 0 0;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.who-card ul li {
  font-size: 14px; color: #2d3a55;
  padding: 9px 0 9px 24px; position: relative;
  border-bottom: 1px dashed #eef0f6;
  line-height: 1.5;
}
.who-card ul li:last-child { border-bottom: none; }
.who-card ul li::before {
  content: ''; position: absolute; left: 4px; top: 16px;
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}

/* ===== Industries grid ===== */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 24px; }
.industry {
  background: white; border: 1px solid var(--line);
  padding: 22px 18px; border-radius: 14px;
  text-align: center; font-weight: 600; color: #1d2944;
  transition: border-color .15s, color .15s, transform .15s;
  font-size: 15px;
}
.industry:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.industry .ico {
  width: 38px; height: 38px; margin: 0 auto 12px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 10px; display: grid; place-items: center; font-size: 16px;
}

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 14px; }
.why-row {
  display: flex; gap: 18px; align-items: flex-start;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  transition: transform .25s, box-shadow .25s;
}
.why-row:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,30,60,.07); }
.why-row .ic {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700;
}
.why-row p { margin: 0; font-size: 15px; color: #2d3a55; line-height: 1.55; }
.why-row b { color: var(--ink); font-weight: 600; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 18px; }
.step {
  display: grid; grid-template-columns: 220px 1fr; gap: 50px;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  align-items: start;
}
.step:first-child { border-top: 0; padding-top: 0; }
.step .step-num {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 64px; line-height: 1; font-weight: 400; color: #82a3ff;
}
.step .step-num small {
  font-family: 'Plus Jakarta Sans', sans-serif; font-style: normal;
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #82a3ff;
  display: block; margin-top: 8px;
}
.step h3 { font-size: 22px; margin-bottom: 14px; }
.step p { color: #b6c0d8; font-size: 15.5px; margin: 0 0 12px; }
.step ul { list-style: none; padding: 0; margin: 14px 0; }
.step ul li {
  color: #d3dbed; font-size: 15px;
  padding: 7px 0 7px 26px; position: relative; line-height: 1.55;
}
.step ul li::before { content: '→'; position: absolute; left: 0; color: #82a3ff; font-weight: 700; }

/* Ready CTA / dark sections */
.ready-cta {
  background: linear-gradient(120deg, #1f4cff 0%, #5b3df5 45%, #9333ea 75%, #c026d3 100%);
  background-size: 180% 180%;
  animation: readyCtaShift 12s ease-in-out infinite;
  border-radius: var(--radius-lg);
  padding: 36px 40px; margin-top: 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(90,60,230,.28);
}
@keyframes readyCtaShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.ready-cta h3 { color: white; font-size: 24px; margin: 0 0 8px; max-width: 38ch; }
.ready-cta p { color: rgba(255,255,255,.9); margin: 0; max-width: 60ch; font-size: 15px; }
.ready-cta .cta-btn { background: white; color: #7c3aed; }
.ready-cta .cta-btn:hover { background: #f6f1ff; }

/* ===== Mid-CTA banner ===== */
.mid-cta { margin: 60px auto 0; max-width: 1200px; padding: 0 28px; }
.mid-cta-inner {
  background: linear-gradient(120deg, #0a1326 0%, #14224a 50%, #1a2f63 100%);
  border-radius: var(--radius-lg);
  padding: 38px 44px;
  color: white;
  display: grid; grid-template-columns: 1fr auto; gap: 30px;
  align-items: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(130,163,255,.18);
}
.mid-cta-inner::before {
  content: ''; position: absolute; inset: -50% auto auto -10%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(79,123,255,.35), transparent 70%);
  border-radius: 50%; filter: blur(10px); pointer-events: none;
}
.mid-cta-text { position: relative; z-index: 1; }
.mid-cta-text h3 { color: white; font-size: 28px; margin: 0 0 8px; letter-spacing: -.02em; max-width: 22ch; }
.mid-cta-text p { margin: 0; color: #b6c0d8; font-size: 15.5px; max-width: 60ch; }
.mid-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.mid-cta .cta-btn { background: white; color: var(--accent); }
.mid-cta .cta-btn:hover { background: #eef2ff; }
.mid-cta .ghost-btn { background: transparent; color: white; border-color: rgba(255,255,255,.25); }
.mid-cta .ghost-btn:hover { border-color: white; color: white; }

/* ===== FAQ ===== */
.faq { margin-top: 16px; border-top: 1px solid var(--line); }
details.faq-item { border-bottom: 1px solid var(--line); padding: 8px 0; }
details.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px;
  font-weight: 600; font-size: 17px; color: #0a1326;
  letter-spacing: -0.01em;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0; color: var(--accent);
  font-size: 18px; font-weight: 400;
  transition: transform .25s, background .15s, color .15s, border-color .15s;
}
details.faq-item[open] summary::after {
  content: '−'; background: var(--accent); color: white; border-color: var(--accent);
}
details.faq-item .answer { padding: 0 4px 26px; color: #43506b; font-size: 15.5px; line-height: 1.7; max-width: 78ch; }
details.faq-item .answer p { margin: 0 0 14px; }

/* ===== Footer ===== */
footer.site { background: #060d1c; color: #b6c0d8; padding: 70px 0 30px; }
footer.site h4 { color: white; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
footer .brand small { color: #7b8aa8; }
footer .desc { font-size: 14px; margin: 18px 0; color: #a4b0cc; max-width: 32ch; line-height: 1.6; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 5px 0; font-size: 14px; }
footer ul li a { color: #b6c0d8; }
footer ul li a:hover { color: white; }
.contact-info { font-size: 14px; line-height: 1.7; }
.contact-info b { color: white; font-weight: 600; display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 13px; color: #7b8aa8; gap: 20px; flex-wrap: wrap; }

/* ===== Animations ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,86,255,.45); } 50% { box-shadow: 0 0 0 8px rgba(34,86,255,0); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ----- Who-cards: richer staggered "rise & settle" entrance (replaces plain fade-up) ----- */
.who-card.reveal {
  opacity: 0;
  transform: translateY(46px) scale(.94);
  filter: blur(6px);
  transform-origin: 50% 100%;
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1),
    transform .85s cubic-bezier(.16,.84,.28,1.12),
    filter .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform, filter;
}
.who-card.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.who-card.reveal.delay-1 { transition-delay: .12s; }
.who-card.reveal.delay-2 { transition-delay: .24s; }
/* let the label pop in just after its card settles */
.who-card.reveal .label {
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transition: opacity .5s ease .35s, transform .55s cubic-bezier(.16,.84,.28,1.4) .35s, background .25s, color .25s;
}
.who-card.reveal.delay-1 .label { transition: opacity .5s ease .47s, transform .55s cubic-bezier(.16,.84,.28,1.4) .47s, background .25s, color .25s; }
.who-card.reveal.delay-2 .label { transition: opacity .5s ease .59s, transform .55s cubic-bezier(.16,.84,.28,1.4) .59s, background .25s, color .25s; }
.who-card.reveal.in .label { opacity: 1; transform: translateY(0) scale(1); }

.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }

.hero h1, .hero .eyebrow, .hero .lede, .hero .hero-actions { animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .eyebrow { animation-delay: .05s; }
.hero h1 { animation-delay: .15s; }
.hero .lede { animation-delay: .28s; }
.hero .hero-actions { animation-delay: .42s; }
.hero-card { animation: fadeUp 1s cubic-bezier(.2,.7,.2,1) .25s both; }

/* ===== Stats / value strip ===== */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: white;
}
.stat-strip .stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat-strip .stat:last-child { border-right: 0; }
.stat-strip .stat b {
  display: block; font-family: 'Instrument Serif', serif;
  font-size: 44px; font-weight: 400; line-height: 1;
  color: var(--ink); letter-spacing: -.02em;
  margin-bottom: 6px;
}
.stat-strip .stat span { font-size: 13.5px; color: var(--muted); }

/* ===== Logo strip ===== */
.logo-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 50px 0 0;
}
.logo-strip .logo-cell {
  padding: 26px 14px; text-align: center;
  font-weight: 600; color: #6b7892;
  font-size: 14px; letter-spacing: .02em;
  border-right: 1px solid var(--line);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
}
.logo-strip .logo-cell:last-child { border-right: 0; }

/* ===== Service deep-dive layout (used in service pages) ===== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split.reverse > div:first-child { order: 2; }
.split-visual {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 13px;
}
.split-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 16px, rgba(34,86,255,.04) 16px 17px);
}
.split-visual span { position: relative; padding: 8px 14px; background: white; border: 1px dashed var(--line); border-radius: 8px; }

/* ===== Tag chips ===== */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--soft); color: #1d2944;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line);
}
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ===== Lead form (compact, used on contact/CTA pages) ===== */
.lead-form-light {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.lead-form-light h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.01em; }
.lead-form-light .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--muted); margin-bottom: 6px;
  letter-spacing: .04em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: white;
  box-shadow: 0 0 0 4px rgba(34,86,255,.10);
}
.field textarea { min-height: 96px; resize: vertical; }
.submit-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #4f7bff 0%, #2256ff 100%);
  color: white; border: 0; border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 4px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(34,86,255,.30);
  font-family: inherit;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34,86,255,.45); }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 14px; }
.price-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.price-card.featured {
  background: #0a1326; color: white; border-color: transparent;
  box-shadow: 0 30px 60px rgba(15,30,60,.18);
  transform: scale(1.03);
}
.price-card .tier {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.price-card.featured .tier { color: #82a3ff; }
.price-card .price {
  font-family: 'Instrument Serif', serif; font-size: 48px;
  margin: 16px 0 8px; letter-spacing: -.02em; line-height: 1;
}
.price-card .price small { font-size: 14px; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--muted); }
.price-card.featured .price small { color: #b6c0d8; }
.price-card p { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.price-card.featured p { color: #b6c0d8; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.price-card ul li {
  padding: 8px 0 8px 26px; position: relative;
  border-bottom: 1px dashed var(--line);
  font-size: 14px; color: #2d3a55;
}
.price-card.featured ul li { color: #d3dbed; border-color: rgba(255,255,255,.08); }
.price-card ul li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  color: var(--accent); font-weight: 700;
}
.price-card.featured ul li::before { color: #82a3ff; }
.price-card .cta-btn { justify-content: center; margin-top: auto; }

/* ===== Blog cards ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.blog-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15,30,60,.08); }
.blog-card .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2256ff, #7c3aed);
  position: relative;
}
.blog-card .thumb.var-2 { background: linear-gradient(135deg, #0d9488, #06b6d4); }
.blog-card .thumb.var-3 { background: linear-gradient(135deg, #f59e0b, #e11d48); }
.blog-card .thumb.var-4 { background: linear-gradient(135deg, #4f46e5, #c026d3); }
.blog-card .thumb.var-5 { background: linear-gradient(135deg, #10b981, #2256ff); }
.blog-card .thumb.var-6 { background: linear-gradient(135deg, #0a1326, #4c1d95); }
.blog-card .thumb::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,.06) 22px 23px);
}
.blog-card .meta { padding: 8px 22px 0; font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.blog-card h3 { padding: 8px 22px 0; font-size: 18px; line-height: 1.35; }
.blog-card p { padding: 0 22px; color: var(--muted); font-size: 14.5px; }
.blog-card .read { padding: 0 22px 22px; color: var(--accent); font-weight: 600; font-size: 14px; margin-top: auto; }

/* ===== Case study card ===== */
.case-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px;
  align-items: center; transition: transform .25s, box-shadow .25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15,30,60,.08); }
.case-card .case-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2256ff, #7c3aed);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  color: rgba(255,255,255,.85); font-family: 'Instrument Serif', serif;
  font-size: 28px; font-style: italic;
}
.case-card .case-visual::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,.06) 22px 23px);
}
.case-card .case-visual.v2 { background: linear-gradient(135deg, #0d9488, #06b6d4); }
.case-card .case-visual.v3 { background: linear-gradient(135deg, #f59e0b, #e11d48); }
.case-card .case-visual.v4 { background: linear-gradient(135deg, #4f46e5, #c026d3); }
.case-card .case-visual.v5 { background: linear-gradient(135deg, #10b981, #2256ff); }
.case-card .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ===== Page hero compact (used on most non-home pages) ===== */
.page-hero { padding: 40px 0 60px; }
.page-hero h1 { margin: 14px 0 18px; font-size: clamp(34px, 4.4vw, 56px); }
.page-hero .lede { font-size: 18px; }
.page-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; }
.page-hero-meta {
  background: linear-gradient(165deg, #ffffff, var(--soft));
  border-radius: var(--radius-lg);
  padding: 8px 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(15,30,60,.07);
  position: relative; overflow: hidden;
}
.page-hero-meta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #2256ff, #7c3aed 35%, #0d9488 65%, #f59e0b);
}
.page-hero-meta dt {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mc, var(--accent)); display: flex; align-items: center; gap: 8px;
}
.page-hero-meta dt::before {
  content: ''; width: 7px; height: 7px; border-radius: 999px; flex: none;
  background: var(--mc, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc, var(--accent)) 18%, transparent);
}
.page-hero-meta dd {
  margin: 6px 0 0; padding: 0 0 16px 15px; color: var(--ink); font-weight: 500;
  font-size: 15px; line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.page-hero-meta dd { margin-bottom: 16px; }
.page-hero-meta dd:last-child { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 0; }
.page-hero-meta dt { margin-top: 16px; }
.page-hero-meta dt:first-of-type { margin-top: 8px; }
/* colour-cycle each row's accent */
.page-hero-meta dt:nth-of-type(4n+1) { --mc: #2256ff; }
.page-hero-meta dt:nth-of-type(4n+2) { --mc: #7c3aed; }
.page-hero-meta dt:nth-of-type(4n+3) { --mc: #0d9488; }
.page-hero-meta dt:nth-of-type(4n+4) { --mc: #f59e0b; }

/* ===== Tables ===== */
table.compare {
  width: 100%; border-collapse: collapse;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}
table.compare th, table.compare td {
  padding: 16px 18px; text-align: left; font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
table.compare th {
  background: var(--soft); font-weight: 600; color: var(--ink);
  font-size: 13px; letter-spacing: .03em;
}
table.compare tr:last-child td { border-bottom: 0; }
table.compare td .y { color: var(--green); font-weight: 700; }
table.compare td .n { color: #c43; font-weight: 700; }

/* ===== Tech stack grid ===== */
.tech-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tech-tile {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 16px;
  text-align: center; font-weight: 600;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  transition: border-color .15s, transform .15s;
}
.tech-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tech-logo {
  width: 54px; height: 54px; flex: none;
  --is-radius: 14px;
}
.tech-tile .glyph {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 18px;
  font-family: 'Instrument Serif', serif;
}
.tech-tile span { font-size: 13.5px; color: var(--ink); }
.tech-tile small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ===== Job openings ===== */
.job { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: 0; }
.job h3 { margin: 0; font-size: 18px; }
.job .role-meta { color: var(--muted); font-size: 14px; }
.job .role-meta b { color: var(--ink); font-weight: 500; display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.job .pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; background: var(--soft); border-radius: 999px; font-size: 12.5px; font-weight: 600; }

/* ===== Mobile nav toggle ===== */
.menu-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: white; border-radius: 12px; cursor: pointer;
  padding: 0; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .25s, opacity .2s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Form success ===== */
.form-success { display: none; text-align: center; padding: 14px 0; }
.form-success.show { display: block; animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both; }
.form-success .tick {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 26px;
}
.form-success h3 { margin: 0 0 8px; }
.form-success p { color: var(--muted); margin: 0; }

/* ===== Mobile ===== */
@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  nav.links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 18px 22px; display: none;
    box-shadow: 0 24px 40px rgba(15,30,60,.12);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  nav.links.open { display: flex; }
  nav.links > .nav-item { width: 100%; }
  nav.links > .nav-item > a { padding: 14px 12px; font-size: 16px; justify-content: space-between; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 12px;
    min-width: 0; display: none;
  }
  .nav-item.expanded .dropdown { display: block; }
  body.nav-open { overflow: hidden; }
  .hero-grid, .section-head, .q-grid, .q-grid.three, .who-grid, .why-grid, .pricing-grid, .blog-grid, .split, .page-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .industries, .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .step { grid-template-columns: 1fr; gap: 16px; padding: 30px 0; }
  .step .step-num { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ready-cta, .mid-cta-inner { padding: 28px; }
  section.s { padding: 60px 0; }
  .case-card { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .price-card.featured { transform: none; }
  .job { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
  .industries, .tech-grid, .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   GLOBAL ANIMATIONS PACK
   Background effects, micro-interactions, scroll-triggered.
   ============================================================ */

/* ----- Animated mesh-gradient hero background ----- */
.hero, .page-hero { position: relative; }
.hero::before, .page-hero::before {
  content: '';
  position: absolute; inset: -10% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(closest-side at 18% 22%, rgba(34, 86, 255, .18), transparent 70%),
    radial-gradient(closest-side at 82% 14%, rgba(124, 58, 237, .14), transparent 70%),
    radial-gradient(closest-side at 60% 90%, rgba(192, 38, 211, .10), transparent 70%),
    radial-gradient(closest-side at 12% 75%, rgba(6, 182, 212, .10), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  animation: meshDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}

/* Subtle grid/dot overlay on hero */
.hero::after, .page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(34,86,255,.10) 1px, transparent 0);
  background-size: 28px 28px;
  mask: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
  -webkit-mask: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: gridShift 30s linear infinite;
}
@keyframes gridShift {
  0%   { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}

/* ----- Floating blobs inside dark sections ----- */
section.s.dark { position: relative; overflow: hidden; }
section.s.dark::before {
  content: ''; position: absolute;
  width: 520px; height: 520px;
  top: -10%; left: -10%;
  background: radial-gradient(circle, rgba(79,123,255,.25), transparent 65%);
  border-radius: 50%; filter: blur(40px);
  animation: blobA 18s ease-in-out infinite;
  pointer-events: none;
}
section.s.dark::after {
  content: ''; position: absolute;
  width: 440px; height: 440px;
  bottom: -15%; right: -8%;
  background: radial-gradient(circle, rgba(192,38,211,.18), transparent 65%);
  border-radius: 50%; filter: blur(40px);
  animation: blobB 22s ease-in-out infinite reverse;
  pointer-events: none;
}
section.s.dark > * { position: relative; z-index: 1; }
@keyframes blobA {
  0%, 100% { transform: translate3d(0,0,0); }
  33%      { transform: translate3d(40px, 80px, 0); }
  66%      { transform: translate3d(-30px, 50px, 0); }
}
@keyframes blobB {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(-60px, -40px, 0) scale(1.15); }
}

/* ----- Animated rays inside the hero card ----- */
.hero-card { position: relative; }
.hero-card::after {
  content: '';
  position: absolute; inset: 0;
  background:
    conic-gradient(from 180deg at 60% 40%,
      rgba(79,123,255,0) 0deg,
      rgba(79,123,255,.20) 50deg,
      rgba(79,123,255,0) 120deg,
      rgba(124,58,237,.18) 200deg,
      rgba(79,123,255,0) 270deg);
  mix-blend-mode: screen;
  animation: rayRotate 28s linear infinite;
  pointer-events: none;
  opacity: .7;
}
@keyframes rayRotate {
  to { transform: rotate(360deg); }
}
.hero-card > * { position: relative; z-index: 1; }

/* Stack cards: subtle float + shimmer on hover */
.stack-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s; position: relative; overflow: hidden; }
.stack-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.10) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.stack-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
.stack-card:hover::before { transform: translateX(100%); }

/* ----- Soft sections: animated gradient line at top ----- */
section.s.soft { position: relative; overflow: hidden; }
section.s.soft::before {
  content: '';
  position: absolute; top: 0; left: -10%; right: -10%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(34,86,255,.30) 30%, rgba(124,58,237,.30) 50%, rgba(34,86,255,.30) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: lineShift 8s linear infinite;
}
@keyframes lineShift { to { background-position: 200% 0; } }

/* ----- Card hover: 3D tilt + glow border ----- */
.q-card, .who-card, .case-card, .blog-card, .tech-tile {
  position: relative;
}
.q-card::after, .who-card::after, .blog-card::after, .tech-tile::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), #7c3aed, #c026d3, var(--accent));
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity .35s;
  z-index: -1;
  filter: blur(8px);
  animation: borderGlow 8s linear infinite;
}
.q-card:hover::after, .who-card:hover::after, .blog-card:hover::after, .tech-tile:hover::after {
  opacity: .55;
}
@keyframes borderGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ----- Marker icons: rotate-in on first hover ----- */
.q-card .marker, .who-card .label, .why-row .ic {
  transition: transform .4s cubic-bezier(.2,.9,.3,1.4), background .25s, color .25s;
}
.q-card:hover .marker { transform: rotate(-8deg) scale(1.05); }
.why-row:hover .ic { transform: scale(1.1) rotate(-5deg); background: var(--accent); color: white; }

/* ----- Magnetic / shimmer buttons ----- */
.cta-btn, .ghost-btn, .submit-btn {
  position: relative; overflow: hidden;
  transition: transform .15s cubic-bezier(.2,.7,.2,1), box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.cta-btn::before, .ghost-btn::before, .submit-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .9s ease;
  pointer-events: none;
}
.cta-btn:hover::before, .submit-btn:hover::before { transform: translateX(130%); }

/* ----- Logo strip: scrolling marquee ----- */
.logo-strip {
  position: relative;
  overflow: hidden;
  mask: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-strip-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.logo-strip-track .logo-cell {
  flex-shrink: 0;
  min-width: 200px;
  padding: 26px 28px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: #6b7892;
  border-right: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- Animated stat counters ----- */
.stat-strip .stat {
  position: relative;
  overflow: hidden;
}
.stat-strip .stat b {
  display: inline-block;
  background: linear-gradient(120deg, var(--ink) 0%, var(--accent) 50%, var(--ink) 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 6s ease-in-out infinite;
}
@keyframes shineText {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* ----- Section tag numbers: pulse glow ----- */
.section-tag .num {
  position: relative;
}
.section-tag .num::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 9px;
  background: var(--accent);
  opacity: 0;
  animation: tagPulse 2.6s ease-in-out infinite;
  z-index: -1;
}
@keyframes tagPulse {
  0%, 100% { opacity: 0; transform: scale(.9); }
  50%      { opacity: .25; transform: scale(1.15); }
}

/* ----- Steps: vertical rail + glow on enter ----- */
.steps { position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 30px; bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, rgba(130,163,255,.05), rgba(130,163,255,.25), rgba(130,163,255,.05));
  pointer-events: none;
}
.steps::after {
  content: '';
  position: absolute;
  left: 110px;
  top: 30px;
  width: 2px;
  height: var(--scroll-fill, 0%);
  background: linear-gradient(180deg, #4f7bff 0%, #82a3ff 50%, transparent 100%);
  box-shadow: 0 0 18px rgba(79,123,255,.6);
  transition: height .15s linear;
  pointer-events: none;
}
.step .step-num::after {
  content: '';
  position: absolute;
  left: -36px;
  top: 18px;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: #0a1326;
  border: 2px solid #2a3e6e;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  display: none;
}
.step.active .step-num::after {
  border-color: #4f7bff;
  background: #4f7bff;
  box-shadow: 0 0 0 6px rgba(79,123,255,.15), 0 0 24px rgba(79,123,255,.7);
  transform: scale(1.15);
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(79,123,255,.15), 0 0 24px rgba(79,123,255,.5); }
  50%      { box-shadow: 0 0 0 10px rgba(79,123,255,.05), 0 0 32px rgba(79,123,255,.9); }
}
@media (max-width: 880px) {
  .steps::before, .steps::after { left: 12px; }
}

/* ============================================================
   PROCESS / STEPS  —  premium timeline (all pages)
   ============================================================ */
.steps { margin-top: 36px; position: relative; counter-reset: stepcount; }

/* Vertical gradient rail down the left */
.steps::before {
  content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, rgba(79,123,255,.08), #4f7bff 10%, #7c3aed 50%, #c026d3 90%, rgba(192,38,211,.08));
  display: block;
}
.steps::after { display: none; }

.step {
  counter-increment: stepcount;
  grid-template-columns: 250px 1fr;
  gap: 64px;
  padding: 46px 0 46px 74px;
  border-top: 0;
  align-items: start;
  position: relative;
}
.step:first-child { padding-top: 14px; }

/* Per-phase colour cycling */
.step:nth-child(6n+1) { --sc: #4f7bff; --sc2: #38bdf8; }
.step:nth-child(6n+2) { --sc: #7c3aed; --sc2: #c026d3; }
.step:nth-child(6n+3) { --sc: #0d9488; --sc2: #22d3ee; }
.step:nth-child(6n+4) { --sc: #e11d48; --sc2: #fb7185; }
.step:nth-child(6n+5) { --sc: #f59e0b; --sc2: #fbbf24; }
.step:nth-child(6n+6) { --sc: #06b6d4; --sc2: #5b8bff; }

/* Hollow node on the rail per phase */
.step::before {
  content: ''; position: absolute; left: 20px; top: 56px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #0a1326; border: 2px solid var(--sc, #3a5bd0);
  box-shadow: 0 0 0 5px rgba(10,19,38,.9);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  z-index: 2;
}
.step:first-child::before { top: 24px; }
.step.active::before, .step:hover::before {
  border-color: var(--sc2, #6ea8ff);
  box-shadow: 0 0 0 5px rgba(10,19,38,.9), 0 0 22px color-mix(in srgb, var(--sc, #4f7bff) 80%, transparent);
  transform: scale(1.18);
}

/* Big gradient leading-zero number + label */
.step .step-num {
  font-size: 0; color: transparent;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.step .step-num::before {
  content: counter(stepcount, decimal-leading-zero);
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: 80px; line-height: .85;
  background: linear-gradient(140deg, var(--sc, #5b8bff) 0%, var(--sc2, #38bdf8) 70%, color-mix(in srgb, var(--sc2, #22d3ee) 60%, #fff) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  position: static; width: auto; height: auto; border: 0; box-shadow: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.step:hover .step-num::before { transform: translateY(-3px); }
.step .step-num small {
  font-family: 'Plus Jakarta Sans', sans-serif; font-style: normal;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: color-mix(in srgb, var(--sc, #8fa6d8) 55%, #b9c6e6); margin: 0; display: block;
}

/* Content column — plain, no card */
.step > div:last-child { background: none; border: 0; padding: 0; box-shadow: none; overflow: visible; }
.step > div:last-child::before { display: none; }
.step h3 { font-size: 28px; margin-bottom: 16px; letter-spacing: -.01em; }
.step p { color: #aebbd6; font-size: 16.5px; line-height: 1.65; margin: 0 0 14px; max-width: 72ch; }

/* Arrow bullet lists */
.step ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 2px; }
.step ul li {
  color: #d3dbed; font-size: 16px; line-height: 1.6;
  padding: 11px 0 11px 36px; position: relative; border: 0;
}
.step ul li::before {
  content: '→'; position: absolute; left: 0; top: 11px;
  color: var(--sc2, #6ea8ff); font-weight: 700; font-size: 17px;
  transition: transform .25s;
}
.step ul li:hover::before { transform: translateX(5px); }

/* "Why this matters" callout */
.step-note {
  margin-top: 28px; padding: 22px 28px;
  border-left: 3px solid var(--sc, #5b8bff);
  background: linear-gradient(100deg, color-mix(in srgb, var(--sc, #4f7bff) 16%, transparent), color-mix(in srgb, var(--sc2, #7c3aed) 6%, transparent));
  border-radius: 0 14px 14px 0;
  color: #c2cdea; font-size: 16px; line-height: 1.62; font-style: italic;
}
.step-note b { color: #fff; font-style: normal; }

@media (max-width: 880px) {
  .step { grid-template-columns: 1fr; gap: 18px; padding: 34px 0 34px 58px; }
  .step .step-num { flex-direction: row; align-items: baseline; gap: 16px; }
  .step .step-num::before { font-size: 58px; }
  .steps::before { left: 19px; }
  .step::before { left: 12px; top: 42px; }
  .step:first-child::before { top: 42px; }
  .step h3 { font-size: 23px; }
}

/* ----- Industry tiles: hover lift + ico spin ----- */
.industry .ico { transition: transform .4s cubic-bezier(.2,.9,.3,1.4), background .2s, color .2s; }
.industry:hover .ico { transform: rotate(-10deg) scale(1.1); background: var(--accent); color: white; }

/* ----- Tech tile: glyph float ----- */
.tech-tile .glyph { transition: transform .4s cubic-bezier(.2,.9,.3,1.4); }
.tech-tile:hover .glyph { transform: translateY(-4px) rotate(-6deg); }

/* ----- Mid-CTA: animated orbs ----- */
.mid-cta-inner { position: relative; }
.mid-cta-inner::before { animation: orbDriftA 16s ease-in-out infinite; }
.mid-cta-inner::after { animation: orbDriftB 20s ease-in-out infinite; }
@keyframes orbDriftA {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(40px, -20px, 0) scale(1.1); }
}
@keyframes orbDriftB {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(-40px, 20px, 0) scale(.92); }
}

/* ----- Footer subtle aurora ----- */
footer.site { position: relative; overflow: hidden; }
footer.site::before {
  content: '';
  position: absolute; inset: -60% -10% auto -10%;
  height: 220px;
  background:
    radial-gradient(closest-side at 20% 50%, rgba(34,86,255,.18), transparent 70%),
    radial-gradient(closest-side at 80% 50%, rgba(124,58,237,.16), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: footerAurora 14s ease-in-out infinite alternate;
}
@keyframes footerAurora {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: .9; }
  100% { transform: translate3d(5%, 2%, 0) scale(1.05); opacity: 1; }
}
footer.site > * { position: relative; z-index: 1; }

/* ----- Cursor spotlight (set via JS) ----- */
.with-spotlight { position: relative; overflow: hidden; }
.with-spotlight::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,123,255,.18), transparent 60%);
  left: var(--mx, -50%);
  top: var(--my, -50%);
  transform: translate(-50%, -50%);
  filter: blur(20px);
  pointer-events: none;
  transition: opacity .3s;
  opacity: var(--spot, 0);
  z-index: 0;
}
.with-spotlight > * { position: relative; z-index: 1; }

/* ----- Case visual: glossy shine ----- */
.case-visual { overflow: hidden; }
.case-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 1s ease;
}
.case-card:hover .case-visual::before { transform: translateX(130%); }

/* ----- Blog thumbs: ken-burns drift ----- */
.blog-card .thumb {
  position: relative; overflow: hidden;
}
.blog-card .thumb::before {
  content: '';
  position: absolute; inset: -10%;
  background: inherit;
  animation: kenBurns 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes kenBurns {
  0%   { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.12) translate3d(-2%, 2%, 0); }
}

/* ----- Floating decorative shapes on dark hero section ----- */
.dark-shapes {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.dark-shapes span {
  position: absolute;
  border-radius: 4px;
  background: rgba(130,163,255,.12);
  border: 1px solid rgba(130,163,255,.20);
  animation: shapeFloat 14s ease-in-out infinite;
}
.dark-shapes span:nth-child(1) { width:36px; height:36px; top:15%; left:8%; animation-delay: 0s; }
.dark-shapes span:nth-child(2) { width:22px; height:22px; top:65%; left:12%; animation-delay: -3s; border-radius: 999px; }
.dark-shapes span:nth-child(3) { width:48px; height:48px; top:30%; right:8%; animation-delay: -6s; transform: rotate(45deg); }
.dark-shapes span:nth-child(4) { width:18px; height:18px; bottom:18%; right:14%; animation-delay: -9s; border-radius: 999px; }
.dark-shapes span:nth-child(5) { width:30px; height:30px; bottom:30%; left:45%; animation-delay: -4s; transform: rotate(20deg); }
@keyframes shapeFloat {
  0%, 100% { transform: translate3d(0,0,0) rotate(0); }
  25%      { transform: translate3d(20px, -30px, 0) rotate(15deg); }
  50%      { transform: translate3d(-15px, -15px, 0) rotate(-10deg); }
  75%      { transform: translate3d(10px, 20px, 0) rotate(8deg); }
}

/* ----- FAQ open animation ----- */
details.faq-item[open] .answer {
  animation: answerSlide .4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes answerSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Page-hero meta: subtle slide-in ----- */
.page-hero-meta {
  animation: metaSlide .9s cubic-bezier(.2,.7,.2,1) .35s both;
}
@keyframes metaSlide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ----- Header: subtle separator shimmer on scroll ----- */
header.site {
  transition: border-color .3s, background .3s, box-shadow .3s;
}
header.site.scrolled {
  box-shadow: 0 4px 24px rgba(15,30,60,.06);
  border-bottom-color: transparent;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .who-card.reveal { opacity: 1; transform: none; filter: none; }
  .who-card.reveal .label { opacity: 1; transform: none; }
  .site-aurora { display: none !important; }
}

/* ============================================================
   COLOUR + AMBIENT MOTION LAYER  (site-wide, every page)
   ============================================================ */

/* ----- Global drifting aurora behind all content ----- */
.site-aurora {
  position: fixed; inset: -20vh -10vw; z-index: -4;
  pointer-events: none; overflow: hidden;
}
.site-aurora b {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5; will-change: transform;
}
.site-aurora b:nth-child(1) { width: 46vw; height: 46vw; top: -8%;  left: -6%;
  background: radial-gradient(circle, rgba(34,86,255,.55), transparent 70%); animation: auroraA 28s ease-in-out infinite; }
.site-aurora b:nth-child(2) { width: 40vw; height: 40vw; top: 18%; right: -10%;
  background: radial-gradient(circle, rgba(124,58,237,.45), transparent 70%); animation: auroraB 34s ease-in-out infinite; }
.site-aurora b:nth-child(3) { width: 38vw; height: 38vw; bottom: 4%; left: 22%;
  background: radial-gradient(circle, rgba(6,182,212,.38), transparent 70%); animation: auroraC 30s ease-in-out infinite; }
.site-aurora b:nth-child(4) { width: 30vw; height: 30vw; bottom: -6%; right: 14%;
  background: radial-gradient(circle, rgba(192,38,211,.32), transparent 70%); animation: auroraD 38s ease-in-out infinite; }
@keyframes auroraA { 0%,100%{transform:translate3d(0,0,0) scale(1);} 50%{transform:translate3d(6vw,4vh,0) scale(1.12);} }
@keyframes auroraB { 0%,100%{transform:translate3d(0,0,0) scale(1.05);} 50%{transform:translate3d(-5vw,6vh,0) scale(.92);} }
@keyframes auroraC { 0%,100%{transform:translate3d(0,0,0) scale(1);} 50%{transform:translate3d(4vw,-5vh,0) scale(1.15);} }
@keyframes auroraD { 0%,100%{transform:translate3d(0,0,0) scale(1);} 50%{transform:translate3d(-6vw,-4vh,0) scale(1.1);} }
/* Constellation particle canvas sits above aurora, below the readability veil */
.site-particles {
  position: fixed; inset: 0; z-index: -3;
  pointer-events: none; width: 100%; height: 100%;
}
/* Keep white content readable: soft veil over the animated layers */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(130% 120% at 50% 0%, rgba(255,255,255,.10), rgba(255,255,255,.34) 55%, rgba(255,255,255,.50));
}
section.s, .mid-cta, footer.site { position: relative; }
/* Light sections become frosted glass so the constellation flows through the
   whole page (like the hero) while text stays crisp. Cards remain solid. */
section.s:not(.dark) { background: rgba(255,255,255,.34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
section.s.soft:not(.dark) { background: rgba(243,246,252,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
header.site { z-index: 50; }

/* ----- Palette cycling: assign a colour per card across grids ----- */
.who-grid > *:nth-child(6n+1), .q-grid > *:nth-child(6n+1), .industries > *:nth-child(6n+1),
.tech-grid > *:nth-child(6n+1), .why-grid > *:nth-child(6n+1) { --c:#2256ff; --cs:#e8efff; }
.who-grid > *:nth-child(6n+2), .q-grid > *:nth-child(6n+2), .industries > *:nth-child(6n+2),
.tech-grid > *:nth-child(6n+2), .why-grid > *:nth-child(6n+2) { --c:#7c3aed; --cs:#f1ebfe; }
.who-grid > *:nth-child(6n+3), .q-grid > *:nth-child(6n+3), .industries > *:nth-child(6n+3),
.tech-grid > *:nth-child(6n+3), .why-grid > *:nth-child(6n+3) { --c:#0d9488; --cs:#e2f5f2; }
.who-grid > *:nth-child(6n+4), .q-grid > *:nth-child(6n+4), .industries > *:nth-child(6n+4),
.tech-grid > *:nth-child(6n+4), .why-grid > *:nth-child(6n+4) { --c:#e11d48; --cs:#fde8ec; }
.who-grid > *:nth-child(6n+5), .q-grid > *:nth-child(6n+5), .industries > *:nth-child(6n+5),
.tech-grid > *:nth-child(6n+5), .why-grid > *:nth-child(6n+5) { --c:#f59e0b; --cs:#fef3e2; }
.who-grid > *:nth-child(6n+6), .q-grid > *:nth-child(6n+6), .industries > *:nth-child(6n+6),
.tech-grid > *:nth-child(6n+6), .why-grid > *:nth-child(6n+6) { --c:#06b6d4; --cs:#e3f7fb; }

/* Apply the cycled colour to each card's accent element (light sections) */
section.s:not(.dark) .who-card .label { background: var(--cs); color: var(--c); }
section.s:not(.dark) .who-card:hover .label { background: var(--c); color: #fff; }
section.s:not(.dark) .who-card ul li::before { background: var(--c); }
section.s:not(.dark) .q-card .marker { background: var(--cs); color: var(--c); }
section.s:not(.dark) .industry .ico { background: var(--cs); color: var(--c); }
section.s:not(.dark) .industry:hover { border-color: var(--c); color: var(--c); }
section.s:not(.dark) .tech-tile .glyph { background: var(--cs); color: var(--c); }
section.s:not(.dark) .tech-tile:hover { border-color: var(--c); }
section.s:not(.dark) .why-row .ic { background: var(--cs); color: var(--c); }

/* Coloured gradient bar that wipes across the top of a who-card on hover */
.who-card { position: relative; overflow: hidden; }
.who-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 40%, #fff));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.who-card:hover::after { transform: scaleX(1); }
section.s:not(.dark) .who-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 18px 38px color-mix(in srgb, var(--c) 16%, transparent); }
section.s:not(.dark) .q-card:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: 0 16px 34px color-mix(in srgb, var(--c) 14%, transparent); }
section.s:not(.dark) .why-row:hover { box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 14%, transparent); }

/* ----- Animated gradient headline word ----- */
h1 .accent-word {
  background: linear-gradient(100deg, #2256ff, #7c3aed 40%, #c026d3 65%, #2256ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: wordHue 9s ease-in-out infinite;
}
@keyframes wordHue { 0%,100%{background-position:0% 50%;} 50%{background-position:100% 50%;} }

/* ----- Vibrant gradient primary CTA ----- */
.cta-btn.primary {
  background: linear-gradient(120deg, #2256ff 0%, #5b3df5 55%, #7c3aed 100%);
  background-size: 160% 100%;
  box-shadow: 0 10px 26px rgba(70,80,230,.34);
  animation: ctaShift 7s ease-in-out infinite;
}
.cta-btn.primary:hover { background-position: 100% 0; box-shadow: 0 14px 32px rgba(70,80,230,.5); }
@keyframes ctaShift { 0%,100%{background-position:0% 0;} 50%{background-position:100% 0;} }

/* ----- Eyebrow pill: animated gradient dot pulse keeps it lively ----- */
.eyebrow .dot { animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,86,255,.45); }
  50%     { box-shadow: 0 0 0 6px rgba(34,86,255,0); }
}

/* ----- Section tag number: gentle colour shimmer ----- */
.section-tag .num {
  background: linear-gradient(135deg, var(--accent-soft), #efe9fe);
}

/* ----- Card reveal: add a slight colour-pop scale on entrance ----- */
.q-card.reveal, .who-card.reveal, .why-row.reveal, .tech-tile.reveal, .industry.reveal {
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}

/* ============================================================
   SECTION DEPTH  —  soft drifting colour glow per light section
   (replaces the old floating-shapes; cohesive with the constellation)
   ============================================================ */
section.s:not(.dark) { overflow: hidden; }
section.s > .wrap, section.s > .narrow { position: relative; z-index: 1; }

/* One large, slow, very soft colour glow that drifts inside each light
   section — gives depth that matches the hero without clutter. Colour is
   set per-section in JS via --gx / --gy / --gc. */
.sec-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.sec-glow::before, .sec-glow::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(70px); will-change: transform; opacity: .55;
}
.sec-glow::before {
  width: 42vw; height: 42vw; min-width: 360px; min-height: 360px;
  top: var(--gy, -20%); left: var(--gx, -12%);
  background: radial-gradient(circle, var(--gc, rgba(34,86,255,.30)), transparent 68%);
  animation: secGlowA var(--gd, 26s) ease-in-out infinite;
}
.sec-glow::after {
  width: 34vw; height: 34vw; min-width: 280px; min-height: 280px;
  bottom: var(--gy2, -18%); right: var(--gx2, -10%);
  background: radial-gradient(circle, var(--gc2, rgba(124,58,237,.26)), transparent 68%);
  animation: secGlowB var(--gd2, 32s) ease-in-out infinite;
}
@keyframes secGlowA {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(8vw, 5vh, 0) scale(1.14); }
}
@keyframes secGlowB {
  0%,100% { transform: translate3d(0,0,0) scale(1.06); }
  50%     { transform: translate3d(-7vw, -5vh, 0) scale(.9); }
}

@media (prefers-reduced-motion: reduce) {
  .sec-glow::before, .sec-glow::after { animation: none; }
}

/* ============================================================
   WHO-CARDS — richer hover + reveal motion (all pages)
   ============================================================ */
/* Diagonal light shine that sweeps across the card on hover */
.who-card::before {
  content: ''; position: absolute; top: 0; left: -70%;
  width: 55%; height: 100%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
}
.who-card:hover::before { animation: cardShine 0.9s ease; }
@keyframes cardShine {
  0%   { left: -70%; opacity: 0; }
  18%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Stronger, springier lift + heading colour shift */
.who-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s; }
.who-card:hover { transform: translateY(-7px) scale(1.015); }
section.s:not(.dark) .who-card:hover h3 { color: var(--c); transition: color .25s; }

/* Bullets grow & glow, list items nudge right with a stagger on hover */
.who-card ul li { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.who-card ul li::before { transition: transform .3s, box-shadow .3s, background .3s; }
.who-card:hover ul li { transform: translateX(5px); }
.who-card:hover ul li:nth-child(2) { transition-delay: .05s; }
.who-card:hover ul li:nth-child(3) { transition-delay: .10s; }
.who-card:hover ul li:nth-child(4) { transition-delay: .15s; }
section.s:not(.dark) .who-card:hover ul li::before {
  transform: scale(1.6);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent);
}

/* Label gets a subtle continuous shimmer once revealed */
section.s:not(.dark) .who-card .label {
  background-image: linear-gradient(110deg, var(--cs) 0%, color-mix(in srgb, var(--c) 14%, #fff) 50%, var(--cs) 100%);
  background-size: 220% 100%;
}
.who-card:hover .label { animation: labelSweep 1.1s ease; }
@keyframes labelSweep { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* List items fade up in sequence after the card settles in */
.who-card.reveal ul li {
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.who-card.reveal.in ul li { opacity: 1; transform: translateY(0); }
.who-card.reveal.in ul li:nth-child(1) { transition-delay: .42s; }
.who-card.reveal.in ul li:nth-child(2) { transition-delay: .50s; }
.who-card.reveal.in ul li:nth-child(3) { transition-delay: .58s; }
.who-card.reveal.in ul li:nth-child(4) { transition-delay: .66s; }
.who-card.reveal.delay-1.in ul li:nth-child(1) { transition-delay: .54s; }
.who-card.reveal.delay-2.in ul li:nth-child(1) { transition-delay: .66s; }

@media (prefers-reduced-motion: reduce) {
  .who-card::before { display: none; }
  .who-card:hover { transform: none; }
  .who-card.reveal ul li { opacity: 1; transform: none; }
  .who-card:hover ul li { transform: none; }
}

/* ============================================================
   INDUSTRY TILES — richer interactive cards (all pages)
   ============================================================ */
.industries { gap: 16px; }
.industry {
  position: relative; overflow: hidden;
  padding: 28px 20px 24px;
  border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s, background .3s;
}
.industry .ico {
  width: 52px; height: 52px; margin: 0 auto 14px;
  font-size: 22px; border-radius: 16px;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.4), background .3s, color .3s, box-shadow .3s;
}
/* diagonal shine sweep on hover (reuses cardShine keyframe) */
.industry::before {
  content: ''; position: absolute; top: 0; left: -70%;
  width: 55%; height: 100%; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg);
}
.industry:hover::before { animation: cardShine 0.9s ease; }
/* arrow affordance that fades in on hover */
.industry::after {
  content: '→'; display: block; margin-top: 11px;
  font-size: 15px; font-weight: 700; color: var(--c, var(--accent));
  opacity: 0; transform: translateY(-5px);
  transition: opacity .3s, transform .3s;
}
.industry:hover::after { opacity: 1; transform: translateY(0); }
section.s:not(.dark) .industry:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: color-mix(in srgb, var(--c) 50%, var(--line));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 18%, transparent);
}
section.s:not(.dark) .industry:hover .ico {
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #fff));
  color: #fff; transform: rotate(-8deg) scale(1.12);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent);
}

@media (max-width: 980px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .industry::before { display: none; }
  .industry:hover { transform: none; }
  .industry:hover .ico { transform: none; }
}

/* ============================================================
   WHY ROWS — richer interactive cards (all pages)
   ============================================================ */
.why-grid { gap: 20px; }
.why-row {
  position: relative; overflow: hidden;
  padding: 26px 28px 26px 30px; border-radius: 18px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s, background .3s;
}
/* left accent bar grows on hover */
.why-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 40%, #fff));
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .42s cubic-bezier(.2,.7,.2,1);
}
.why-row:hover::before { transform: scaleY(1); }
/* diagonal shine sweep (reuses cardShine keyframe) */
.why-row::after {
  content: ''; position: absolute; top: 0; left: -70%;
  width: 55%; height: 100%; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg);
}
.why-row:hover::after { animation: cardShine 0.9s ease; }
.why-row .ic {
  width: 48px; height: 48px; border-radius: 14px; font-size: 17px;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.4), background .3s, color .3s, box-shadow .3s;
}
.why-row p { position: relative; z-index: 2; }
section.s:not(.dark) .why-row:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--c) 45%, var(--line));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 16%, transparent);
}
section.s:not(.dark) .why-row:hover .ic {
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #fff));
  color: #fff; transform: rotate(-8deg) scale(1.12);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent);
}
section.s:not(.dark) .why-row:hover b { color: var(--c); transition: color .25s; }

@media (prefers-reduced-motion: reduce) {
  .why-row::after { display: none; }
  .why-row:hover { transform: none; }
  .why-row:hover .ic { transform: none; }
}

/* ============================================================
   Q-CARDS — richer interactive cards (all pages)
   ============================================================ */
.q-grid { gap: 22px; }
.q-card {
  border-radius: 18px; padding: 30px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s, background .3s;
}
/* top accent bar wipes in on hover */
.q-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 40%, #fff));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.q-card:hover::before { transform: scaleX(1); }
.q-card .marker {
  width: 44px; height: 44px; border-radius: 13px; font-size: 17px;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.4), background .3s, color .3s, box-shadow .3s;
}
section.s:not(.dark) .q-card:hover { transform: translateY(-6px) scale(1.015); }
section.s:not(.dark) .q-card:hover .marker {
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #fff));
  color: #fff; transform: rotate(-6deg) scale(1.12);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent);
}
section.s:not(.dark) .q-card:hover h3 { color: var(--c); transition: color .25s; }
/* recolour the existing border-glow to each card's cycling colour */
section.s:not(.dark) .q-card::after {
  background: linear-gradient(135deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 55%, #fff), var(--c, var(--accent)));
  background-size: 200% 200%;
}

@media (prefers-reduced-motion: reduce) {
  .q-card:hover { transform: none; }
  .q-card:hover .marker { transform: none; }
}

/* ============================================================
   TECH TILES — richer, colourful (all pages)
   ============================================================ */
.tech-grid { gap: 16px; }
.tech-tile {
  border-radius: 16px; padding: 26px 16px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s, background .3s;
}
.tech-tile .glyph {
  width: 52px; height: 52px; border-radius: 15px; font-size: 20px;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.4), background .3s, color .3s, box-shadow .3s;
}
.tech-tile span { transition: color .25s; }
.tech-tile span small { transition: color .25s; }
section.s:not(.dark) .tech-tile:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: color-mix(in srgb, var(--c) 50%, var(--line));
  box-shadow: 0 16px 36px color-mix(in srgb, var(--c) 18%, transparent);
}
section.s:not(.dark) .tech-tile:hover .glyph {
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #fff));
  color: #fff; transform: translateY(-3px) rotate(-6deg) scale(1.1);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent);
}
section.s:not(.dark) .tech-tile:hover span { color: var(--c); }
/* recolour the existing border-glow to the tile's cycling colour */
section.s:not(.dark) .tech-tile::after {
  background: linear-gradient(135deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 55%, #fff), var(--c, var(--accent)));
  background-size: 200% 200%;
}
/* image-slot logos (AI page) lift with their tile */
.tech-tile .tech-logo { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tech-tile:hover .tech-logo { transform: translateY(-3px) scale(1.05); }

@media (max-width: 980px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .tech-tile:hover { transform: none; }
  .tech-tile:hover .glyph, .tech-tile:hover .tech-logo { transform: none; }
}

/* ============================================================
   HERO STACK CARDS — colourful service icons (home hero)
   ============================================================ */
.stack-grid > *:nth-child(6n+1) { --sc: #5b8bff; --scl: rgba(91,139,255,.20); }
.stack-grid > *:nth-child(6n+2) { --sc: #a78bfa; --scl: rgba(167,139,250,.20); }
.stack-grid > *:nth-child(6n+3) { --sc: #2dd4bf; --scl: rgba(45,212,191,.20); }
.stack-grid > *:nth-child(6n+4) { --sc: #fb7185; --scl: rgba(251,113,133,.20); }
.stack-grid > *:nth-child(6n+5) { --sc: #fbbf24; --scl: rgba(251,191,36,.20); }
.stack-grid > *:nth-child(6n+6) { --sc: #22d3ee; --scl: rgba(34,211,238,.20); }

.stack-card {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s, border-color .3s, box-shadow .3s;
}
.stack-card .ic {
  background: var(--scl, rgba(79,123,255,.22)); color: var(--sc, #b0c5ff);
  transition: transform .4s cubic-bezier(.2,.9,.3,1.4), background .3s, color .3s, box-shadow .3s;
}
.stack-card b { transition: color .25s; }
.stack-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--sc, #4f7bff) 45%, rgba(255,255,255,.10));
  box-shadow: 0 16px 32px color-mix(in srgb, var(--sc, #4f7bff) 22%, transparent);
}
.stack-card:hover .ic {
  background: linear-gradient(135deg, var(--sc, #4f7bff), color-mix(in srgb, var(--sc, #4f7bff) 55%, #fff));
  color: #08122a;
  transform: rotate(-8deg) scale(1.14);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--sc, #4f7bff) 40%, transparent);
}
.stack-card:hover b { color: var(--sc, #fff); }

@media (prefers-reduced-motion: reduce) {
  .stack-card:hover { transform: none; }
  .stack-card:hover .ic { transform: none; }
}

/* ============================================================
   STAT STRIP — colourful, interactive (all pages)
   ============================================================ */
.stat-strip { position: relative; }
.stat-strip .stat:nth-child(4n+1) { --sc: #2256ff; }
.stat-strip .stat:nth-child(4n+2) { --sc: #7c3aed; }
.stat-strip .stat:nth-child(4n+3) { --sc: #0d9488; }
.stat-strip .stat:nth-child(4n+4) { --sc: #f59e0b; }
.stat-strip .stat {
  padding: 32px 26px;
  transition: background .3s, transform .3s;
}
/* coloured top accent grows on hover */
.stat-strip .stat::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sc, var(--accent)), color-mix(in srgb, var(--sc, var(--accent)) 40%, #fff));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.stat-strip .stat:hover::after { transform: scaleX(1); }
.stat-strip .stat:hover {
  background: color-mix(in srgb, var(--sc, var(--accent)) 6%, white);
}
/* number in the stat's own colour gradient */
.stat-strip .stat b {
  background: linear-gradient(120deg, var(--sc, var(--accent)) 0%, color-mix(in srgb, var(--sc, var(--accent)) 55%, var(--ink)) 50%, var(--sc, var(--accent)) 100%);
  background-size: 200% auto;
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-strip .stat span { transition: color .25s; }
.stat-strip .stat:hover span { color: color-mix(in srgb, var(--sc, var(--accent)) 70%, var(--muted)); }

@media (prefers-reduced-motion: reduce) {
  .stat-strip .stat b { animation: none; }
}

/* ============================================================
   LOGO STRIP — richer marquee (all pages)
   ============================================================ */
.logo-strip:hover .logo-strip-track { animation-play-state: paused; }
.logo-strip-track .logo-cell {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  transition: color .25s, transform .25s;
}
.logo-strip-track .logo-cell::before {
  content: ''; width: 9px; height: 9px; border-radius: 3px; flex: none;
  background: var(--lc, #c3ccdd); transform: rotate(45deg);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.logo-strip-track .logo-cell:nth-child(6n+1) { --lc: #2256ff; }
.logo-strip-track .logo-cell:nth-child(6n+2) { --lc: #7c3aed; }
.logo-strip-track .logo-cell:nth-child(6n+3) { --lc: #0d9488; }
.logo-strip-track .logo-cell:nth-child(6n+4) { --lc: #e11d48; }
.logo-strip-track .logo-cell:nth-child(6n+5) { --lc: #f59e0b; }
.logo-strip-track .logo-cell:nth-child(6n+6) { --lc: #06b6d4; }
.logo-strip-track .logo-cell:hover { color: var(--lc); transform: translateY(-2px); }
.logo-strip-track .logo-cell:hover::before {
  background: var(--lc); transform: rotate(45deg) scale(1.3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lc) 16%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .logo-strip-track { animation: none; }
}
