/* ==========================================================================
   Quasphere — Global Stylesheet
   ========================================================================== */

:root {
  --navy: #0b1324;
  --text: #3d4a5c;
  --text-light: #5b6779;
  --blue: #1f5eff;
  --blue-dark: #1546d1;
  --teal: #06b6d4;
  --pink: #7c5cff;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e2e8f0;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.82);
  --grad: linear-gradient(120deg, #1f5eff 0%, #3b82f6 45%, #06b6d4 100%);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px rgba(15, 35, 80, 0.10);
  --shadow-sm: 0 8px 24px rgba(15, 35, 80, 0.06);
  --max-width: 1280px;
  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.22;
  font-weight: 700;
}

h1 { font-size: 2.65rem; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--text); }

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

section { padding: 60px 0; }

.section-tight { padding: 36px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d3d9e2;
  box-shadow: 0 4px 14px rgba(26, 30, 38, 0.05);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-head p { margin-top: 10px; font-size: 1.02rem; }

.section-head.align-left { margin: 0 0 26px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #7e8fad, #64799e);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(126, 143, 173, 0.28);
}

.btn-primary:hover { background: linear-gradient(135deg, #64799e, #526381); transform: translateY(-2px); }

.btn-outline {
  background: rgba(255, 255, 255, 0.75);
  border-color: #d3d9e2;
  color: var(--blue);
}

.btn-outline:hover { background: var(--white); border-color: var(--blue); transform: translateY(-2px); }

.btn-outline.on-dark { background: transparent; border-color: rgba(255, 255, 255,0.6); color: var(--white); }
.btn-outline.on-dark:hover { background: rgba(255, 255, 255,0.12); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 248, 251, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1560px;            /* wider than the content column: 7 nav items + 2 buttons need ~1420px */
  margin: 0 auto;
  gap: 16px;
}

/* Spark Q wordmark: media/brand/quasphere-logo.svg */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

@media (max-width: 560px) {
  .logo img { height: 40px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: block;
  padding: 10px 9px;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links > li > a:hover,
.nav-links > li.active > a { background: var(--bg-alt); color: var(--blue); }

.has-mega { display: flex; align-items: center; gap: 4px; }
.has-mega svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-links > li:hover .has-mega svg { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-links > li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
}

.mega-menu a:hover { background: var(--bg-alt); color: var(--blue); }

.mega-menu a .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  margin-top: 6px;
  flex-shrink: 0;
}

/* narrow single-column dropdown (Solutions, Resources) */
.mega-menu.mega-sm { width: 280px; grid-template-columns: 1fr; }

/* group label inside a dropdown, spans both columns */
.mega-menu .mega-label {
  grid-column: 1 / -1;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 10px 12px 2px;
}

.mega-menu .mega-label:not(:first-child) { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 52px;
  background: linear-gradient(180deg, #e6ebf5 0%, #f6f8fb 100%);
  overflow: hidden;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}

.hero::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(150, 164, 188, 0.42), transparent 70%);
  top: -140px; right: -100px;
}

.hero::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(123, 141, 172, 0.36), transparent 70%);
  bottom: -160px; left: -80px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-grid.reverse { grid-template-columns: 0.9fr 1.1fr; }
.hero-grid.reverse .hero-visual { order: -1; }

.hero h1 { margin-bottom: 14px; }
.hero .lead { font-size: 1.12rem; color: var(--text); max-width: 560px; }

.hero-visual {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #27303f 0%, #7e8fad 55%, #96a4bc 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255,0.35), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(255, 255, 255,0.25), transparent 50%);
}

.hero-visual .glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .glyph svg { width: 96px; height: 96px; opacity: 0.9; }

.hero-visual .hero-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Brand illustrations (assets/images/, built by tools/site-generator/illustrations.py) */
.hero-visual.hero-visual-art {
  height: auto;
  aspect-ratio: 16 / 9;
  background: #f3f5fa;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 70px rgba(26, 30, 38, 0.14);
}
.hero-visual.hero-visual-art::before { display: none; }
.hero-visual.hero-visual-art .hero-visual-image { display: block; }

.hero-visual.hero-visual-photo {
  background: #2d3749;
  border: 1px solid rgba(175, 186, 205, 0.2);
  height: auto;
  aspect-ratio: 16 / 9;
  box-shadow:
    0 22px 42px rgba(42, 52, 68, 0.24),
    0 14px 34px rgba(172, 183, 202, 0.18),
    0 0 0 1px rgba(255, 255, 255,0.05) inset;
}

.hero-visual.hero-visual-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(185, 193, 207, 0.14), transparent 36%),
    radial-gradient(circle at 76% 84%, rgba(187, 195, 209, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(44, 54, 71, 0.09), rgba(25, 29, 37, 0.14));
}

.hero-visual.hero-visual-photo::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -24px;
  height: 34px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(157, 170, 193, 0.34);
  filter: blur(18px);
}

.hero-visual.hero-visual-photo .hero-visual-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.08) saturate(1.06) contrast(1.02);
}

.hero-center { text-align: center; }
.hero-center .lead { max-width: 680px; margin: 0 auto; }
.hero-center .btn-row { justify-content: center; }

.hero.compact { padding: 44px 0 40px; }
.hero.compact h1 { font-size: 2.1rem; }

/* breadcrumb-ish tag row inside hero */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(255, 255, 255,0.85);
  border: 1px solid #d3d9e2;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 18px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(26, 30, 38, 0.05);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; }

.card ul { margin-top: 4px; }
.card ul li {
  font-size: 0.92rem;
  color: var(--text);
  padding: 5px 0 5px 20px;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.card-accent:nth-of-type(3n+1) { border-color: #bfc7d4; }
.card-accent:nth-of-type(3n+2) { border-color: #bbc3d0; }
.card-accent:nth-of-type(3n+3) { border-color: #c7ced9; }

.card-accent:nth-of-type(3n+1) ul li::before { background: var(--blue); }
.card-accent:nth-of-type(3n+2) ul li::before { background: var(--teal); }
.card-accent:nth-of-type(3n+3) ul li::before { background: var(--pink); }

/* icon badge for value props */
.icon-badge {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--white);
  box-shadow: 0 8px 18px rgba(150, 164, 188, 0.25);
}

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

.icon-badge.b1 { background: linear-gradient(135deg, #7e8fad, #9daac1); }
.icon-badge.b2 { background: linear-gradient(135deg, #97a5bd, #96a4bc); }
.icon-badge.b3 { background: linear-gradient(135deg, #27303f, #425069); }
.icon-badge.b4 { background: linear-gradient(135deg, #7b8dac, #354054); }

/* ---------- Stats ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.stat .num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(120deg, var(--blue), #93a1ba);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label { font-weight: 600; color: var(--navy); margin: 6px 0 6px; }
.stat p.desc { font-size: 0.88rem; color: var(--text-light); }

/* ---------- Testimonial ---------- */
.testimonial {
  border-left: 4px solid var(--blue);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 32px 36px;
  font-size: 1.1rem;
  color: var(--navy);
  font-style: italic;
  max-width: 900px;
  margin: 0 auto;
}

.proof-logos {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.proof-logos .logo-chip {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
}

/* ---------- Process steps (numbered 2x2 or 4-across) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 32px;
}

.process-step .step-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.process-step .step-num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-light);
  font-size: 0.95rem;
}

.process-step .step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.process-step:nth-child(4n+2) .step-line { background: linear-gradient(90deg, var(--teal), transparent); }
.process-step:nth-child(4n+3) .step-line { background: linear-gradient(90deg, var(--pink), transparent); }
.process-step:nth-child(4n+4) .step-line { background: linear-gradient(90deg, var(--blue-dark), transparent); }

/* ---------- Vertical timeline (Quality & Security) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 26px 0;
  align-items: center;
}

.timeline-item .num-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  z-index: 1;
}

.timeline-item:nth-child(2) .num-dot { border-color: var(--teal); }
.timeline-item:nth-child(3) .num-dot { border-color: var(--pink); }
.timeline-item:nth-child(4) .num-dot { border-color: var(--blue-dark); }

.timeline-item .tl-content { text-align: right; padding-right: 20px; }
.timeline-item .tl-empty { padding-left: 20px; }
.timeline-item:nth-child(even) .tl-content { order: 2; text-align: left; padding-right: 0; padding-left: 20px; }
.timeline-item:nth-child(even) .tl-empty { order: 1; padding-left: 0; }

/* ---------- Split content block (icon/text two-col, image replaced with gradient panel) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split.reverse .split-visual { order: 2; }

.split-visual {
  height: 300px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #27303f, #7e8fad 55%, #96a4bc);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #27303f, #7e8fad);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255,0.18), transparent 70%);
  top: -120px; right: -60px;
  border-radius: 50%;
}

.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255, 255, 255,0.85); max-width: 620px; margin: 14px auto 0; }
.cta-banner .btn-row { justify-content: center; }

/* three-step cta cards (consultation / proposal / onboarding) */
.step-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.step-card {
  background: rgba(255, 255, 255,0.08);
  border: 1px solid rgba(255, 255, 255,0.18);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: left;
}

.step-card h4 { color: var(--white); margin-bottom: 8px; }
.step-card p { color: rgba(255, 255, 255,0.78); font-size: 0.9rem; }

/* ---------- Services grid page ---------- */
.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(26, 30, 38, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.service-card .icon-badge { margin-bottom: 12px; }
.service-card p { flex: 1; font-size: 0.93rem; margin-bottom: 12px; }
.service-card .learn-more { font-weight: 600; color: var(--blue); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.service-card .learn-more svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.service-card:hover .learn-more svg { transform: translateX(4px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255,0.72);
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255,0.1);
}

.footer-grid .logo img { height: 56px; }

.footer-grid p.desc { font-size: 0.9rem; margin-top: 14px; max-width: 280px; color: rgba(255, 255, 255,0.66); }

.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255, 255, 255,0.68); transition: color 0.15s ease; }
.footer-col ul li a:hover { color: #9facc3; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.contact-info-card .row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-card .row:last-child { border-bottom: none; }

.contact-info-card .row .ic {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-info-card .row .ic svg { width: 20px; height: 20px; }

form.contact-form {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form label { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: block; }

.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--navy);
  background: var(--bg);
  transition: border-color 0.15s ease;
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.thank-you-panel {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}

.thank-you-panel .kpi {
  font-family: var(--font-head);
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 700;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

.breadcrumb a { color: var(--blue); font-weight: 500; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.mt-md { margin-top: 22px; }
.bg-alt { background: var(--bg-alt); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  h1 { font-size: 2.1rem; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid.reverse .hero-visual { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr; gap: 28px; }
  .step-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Header has 7 items + 2 buttons (~1420px). Drop the secondary button first,
   then collapse into the hamburger menu before the row runs out of space.
   Keep 1260px in sync with NAV_BREAKPOINT in js/main.js. */
@media (max-width: 1600px) {
  .nav-cta .btn-outline { display: none; }
}

@media (max-width: 1260px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 2px;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 18px 40px rgba(26, 30, 38, 0.12);
  }

  body.nav-open .mega-menu,
  body.nav-open .mega-menu.mega-sm {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    width: auto; grid-template-columns: 1fr;
    box-shadow: none; border: none; padding: 4px 0 4px 14px;
    display: none;
  }

  body.nav-open li.mega-open .mega-menu { display: grid; }
}

@media (max-width: 760px) {
  .nav-cta .btn-outline { display: none; }
  section { padding: 44px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .proof-logos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 22px; }
  .timeline-item, .timeline-item:nth-child(even) { grid-template-columns: 1fr; text-align: left; }
  .timeline-item .tl-content, .timeline-item:nth-child(even) .tl-content { text-align: left; padding: 0 0 0 56px; order: 1; }
  .timeline-item .tl-empty, .timeline-item:nth-child(even) .tl-empty { display: none; }
  .timeline-item .num-dot { left: 22px; }

  body.has-mobile-sticky-cta { padding-bottom: 84px; }
  .mobile-sticky-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    z-index: 240;
    background: rgba(255, 255, 255,0.9);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(26, 30, 38, 0.18);
    padding: 8px;
    backdrop-filter: blur(6px);
  }
  .mobile-sticky-cta .btn {
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.84rem;
  }
}

/* ==========================================================================
   Utilities — anti-spam honeypot & 404 page
   ========================================================================== */

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 24px;
}

.error-page .code {
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: 1;
  font-weight: 700;
  background: linear-gradient(120deg, var(--blue), var(--teal) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.error-page h1 { margin-bottom: 12px; }
.error-page p { max-width: 560px; margin: 0 auto 26px; }
.error-page .btn-row { justify-content: center; }


/* ==========================================================================
   Technology & AI division components (added Nov 2026)
   ========================================================================== */

/* Unfilled placeholder - highlighted so it is impossible to miss in review.
   The deploy pipeline refuses to publish while any "[FILL:" text remains. */
.fill {
  background: #fff3b0;
  color: #7a5b00;
  border-radius: 4px;
  padding: 0 4px;
  font-style: normal;
  font-weight: 600;
}

/* "Answer first" block directly under a hero (read by Google and AI engines) */
.answer-block {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
}

.last-updated { font-size: 0.82rem; color: var(--text-light); margin-top: 18px; }

/* "Technologies we work with" strip */
.tech-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.tech-strip .label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); margin-right: 4px; }
.tech-strip .chip {
  background: rgba(255, 255, 255,0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

/* Check-list used inside sections (not cards) */
.check-list { display: grid; gap: 10px; margin-top: 18px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 10px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.check-list.cols-2 { grid-template-columns: 1fr 1fr; gap: 10px 32px; }

/* Data tables (pricing, comparisons, glossary) */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--white); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 560px; }
table.data-table th, table.data-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data-table th { font-family: var(--font-head); font-weight: 600; color: var(--navy); background: var(--bg-alt); font-size: 0.88rem; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table td strong { color: var(--navy); }

/* Pricing plan cards */
.price-card { display: flex; flex-direction: column; }
.price-card .plan-for { font-size: 0.88rem; color: var(--text-light); margin-bottom: 14px; }
.price-card .price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.price-card .price small { font-size: 0.9rem; font-weight: 500; color: var(--text-light); }
.price-card ul { flex: 1; margin: 16px 0 22px; }
.price-card.featured { border-color: var(--blue); box-shadow: var(--shadow); }

/* Segment / "who we serve" tiles */
.tile-link { display: block; height: 100%; }
.tile-link .learn-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: var(--blue); font-size: 0.9rem; }

/* Comparison of "typical vendor" vs us */
.compare-col h3 { margin-bottom: 14px; }
.compare-col.muted { background: var(--bg-alt); }

/* Long-form article / legal page typography */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.55rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose .table-wrap { margin: 18px 0 22px; }

.takeaways {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 8px 0 30px;
}
.takeaways h2 { font-size: 1.1rem; margin: 0 0 10px; }
.takeaways ul { margin-bottom: 0; }

.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  border-top: 1px solid var(--border);
  margin-top: 40px; padding-top: 24px;
}
.author-box .avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #7e8fad, #96a4bc);
}
.article-meta { font-size: 0.88rem; color: var(--text-light); margin-top: 6px; }

/* FAQ hub grouping */
.faq-group + .faq-group { margin-top: 36px; }
.faq-group > h2 { font-size: 1.5rem; margin-bottom: 20px; }

/* Glossary */
.glossary-list { display: grid; gap: 16px; }
.glossary-list dt { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.glossary-list dd { margin: 4px 0 0; }
.glossary-list .term { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; }

/* Placeholder screenshot frame (CloudLens) */
.shot-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  color: var(--text-light); font-size: 0.9rem;
  background: var(--white);
}

@media (max-width: 760px) {
  .check-list.cols-2 { grid-template-columns: 1fr; }
  .answer-block { padding: 20px; }
  .author-box { flex-direction: column; }
}

/* Process steps in 3 or 4 columns (collapse on smaller screens) */
.process-grid.process-cols-3 { grid-template-columns: repeat(3, 1fr); }
.process-grid.process-cols-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step p { font-size: 0.93rem; margin-top: 6px; }

/* Footer contact list and legal links */
.footer-contact { margin-top: 16px; }
.footer-contact li { font-size: 0.88rem; margin-bottom: 6px; }
.footer-contact address { font-style: normal; line-height: 1.5; }
.footer-contact a { color: rgba(255, 255, 255,0.78); }
.footer-contact a:hover, .footer-legal a:hover { color: #9facc3; }
.footer-legal a { color: rgba(255, 255, 255,0.72); }
.footer-bottom p { color: rgba(255, 255, 255,0.66); }
.site-footer .fill { background: rgba(255, 243, 176, 0.9); }

@media (max-width: 980px) {
  .process-grid.process-cols-3, .process-grid.process-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .process-grid.process-cols-3, .process-grid.process-cols-4 { grid-template-columns: 1fr; }
}

/* Small phones: logo + header button + menu toggle must fit in one row.
   Below 480px the sticky bottom bar (js/main.js) carries the "Book a call"
   button instead, so the header copy is hidden. */
@media (max-width: 560px) {
  .nav-wrap { padding: 14px 16px; gap: 10px; }
  .nav-cta .btn-primary { padding: 9px 14px; font-size: 0.8rem; box-shadow: none; }
}
@media (max-width: 480px) {
  .nav-cta .btn-primary { display: none; }
}
/* Let grid columns shrink below their content width, and long button labels
   wrap, so forms and button rows never push the page sideways on small phones. */
.contact-grid > * { min-width: 0; }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; justify-content: center; }
}

/* Calculators */
.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.calc-grid > * { min-width: 0; }
.calc-grid .card:hover { transform: none; }
.calc-field { padding: 14px 0; border-bottom: 1px solid var(--border); }
.calc-field:last-child { border-bottom: none; }
.calc-field label { display: block; font-weight: 600; color: var(--navy); font-size: 0.92rem; margin-bottom: 6px; }
.calc-input { display: flex; align-items: center; gap: 8px; }
.calc-input span { font-weight: 600; color: var(--text-light); }
.calc-input input {
  width: 100%; max-width: 220px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-family: var(--font-body); font-size: 1rem; color: var(--navy); background: var(--bg);
}
.calc-input input:focus { outline: none; border-color: var(--blue); }
.calc-help { font-size: 0.82rem; color: var(--text-light); margin-top: 6px; }
.calc-results { position: sticky; top: 96px; }
.calc-results .calc-big { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.calc-results .calc-big small { font-size: 0.95rem; font-weight: 500; color: var(--text-light); }
.calc-sub { margin-top: 8px; color: var(--text); }
.calc-note { font-size: 0.82rem; color: var(--text-light); margin-top: 14px; }
@media (max-width: 980px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}

/* Illustrative CloudLens dashboard (sample data) */
.dash-mock {
  margin: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px 20px 14px;
  font-size: 0.85rem;
}
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dash-title { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.dash-badge { font-size: 0.72rem; font-weight: 600; color: var(--text-light); background: var(--bg-alt); border-radius: 999px; padding: 3px 10px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-kpis > div { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.dash-kpis .k { display: block; font-size: 0.72rem; color: var(--text-light); }
.dash-kpis .v { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-top: 2px; }
.dash-kpis .v small { font-size: 0.72rem; font-weight: 500; color: var(--text-light); }
.dash-chart { margin-top: 14px; }
.dash-chart-title { font-weight: 600; color: var(--navy); font-size: 0.82rem; }
.dash-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 2px; color: var(--text); font-size: 0.76rem; }
.dash-key { display: inline-flex; align-items: center; gap: 6px; }
.dash-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dash-chart svg { width: 100%; height: auto; display: block; }
.dash-chart svg [fill]:hover { opacity: 0.85; }
.dash-grid { stroke: var(--border); stroke-width: 1; }
.dash-base { stroke: #c5ccd8; stroke-width: 1; }
.dash-axis { fill: var(--text-light); font-size: 9px; font-family: var(--font-body); }
.dash-total { fill: var(--text); font-size: 9px; font-weight: 600; font-family: var(--font-body); }
.dash-list { margin-top: 10px; border-top: 1px solid var(--border); }
.dash-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.dash-list li b { color: var(--navy); white-space: nowrap; }
.dash-mock figcaption { margin-top: 8px; font-size: 0.72rem; color: var(--text-light); }
@media (max-width: 480px) {
  .dash-kpis { grid-template-columns: 1fr 1fr; }
}

/* CloudLens screenshots (from the cloudlens.online live demo) */
.cl-shot { margin: 0; }
.cl-shot img {
  width: 100%; height: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  background: var(--white);
}
.cl-shot figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--text-light); }
.cl-shot figcaption a { color: var(--blue); }
.cl-tour { display: grid; gap: 28px; }

/* Careers: job / internship accordions */
.job-list { display: grid; gap: 12px; }
.job { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
.job[open] { border-color: #abb6ca; box-shadow: var(--shadow-sm); }
.job summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px;
}
.job summary::-webkit-details-marker { display: none; }
.job summary::after { content: "+"; font-family: var(--font-head); font-size: 1.3rem; color: var(--blue); margin-left: auto; }
.job[open] summary::after { content: "\2212"; }
.job-title { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.job-meta { font-size: 0.82rem; color: var(--text-light); }
.job-body { padding: 0 20px 20px; }
.job-body h4 { margin: 16px 0 6px; font-size: 0.95rem; }
.job-body ul { list-style: disc; margin-left: 20px; }
.job-body li { margin-bottom: 4px; font-size: 0.94rem; }
.job-body p { margin-top: 10px; font-size: 0.94rem; }
.contact-form input[type="file"] { padding: 10px; background: var(--white); }


/* FAQ accordions (all FAQ blocks; answers stay in the HTML for search engines) */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
.faq-item[open] { border-color: #abb6ca; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 14px 48px 14px 18px; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1rem; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--blue); font-weight: 500;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-item p { padding: 0 18px 16px; font-size: 0.95rem; }
.faq-item p a { color: var(--blue); }

/* Compact mobile rhythm */
@media (max-width: 760px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 40px 0 36px; }
  .hero.compact { padding: 34px 0 30px; }
  .card, .service-card { padding: 18px; }
  .cta-banner { padding: 32px 22px; }
  .section-head { margin-bottom: 22px; }
  .section-head.align-left { margin-bottom: 20px; }
  .hero-visual:not(.hero-visual-photo):not(.hero-visual-art) { display: none; }   /* icon-only panel */
  .stat .num { font-size: 2rem; }
  .site-footer { padding-top: 36px; }
}

/* Home: compact statistic tiles ("What problem do we solve?") */
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tile { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; }
.stat-tile .n {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1.1;
  background: linear-gradient(120deg, var(--blue), #93a1ba); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-tile p { font-size: 0.92rem; color: var(--navy); margin-top: 6px; }
.stat-tile .src { display: block; font-size: 0.74rem; color: var(--text-light); margin-top: 8px; }
@media (max-width: 980px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-tiles { grid-template-columns: 1fr; } }

/* Closing call-to-action: less space around the banner */
section.section-cta { padding: 12px 0 56px; }

/* Icon cards: text wrapper (lets phones place the icon beside the text) */
.icon-grid .card > div:last-child h3 { margin-bottom: 6px; }

/* ---------- Phone layout: denser grids, shorter pages ---------- */
@media (max-width: 760px) {
  section.section-cta { padding: 4px 0 40px; }

  /* service / audience link cards: two per row, short descriptions */
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }   /* minmax: long words can't widen the page */
  .link-grid .service-card { min-width: 0; }
  .link-grid .service-card h3 { overflow-wrap: anywhere; hyphens: auto; }
  .link-grid .service-card { padding: 14px; }
  .link-grid .service-card .icon-badge { width: 36px; height: 36px; margin-bottom: 10px; }
  .link-grid .service-card .icon-badge svg { width: 18px; height: 18px; }
  .link-grid .service-card h3 { font-size: 0.98rem; }
  .link-grid .service-card p {
    font-size: 0.82rem; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .link-grid .service-card .learn-more { font-size: 0.8rem; }

  /* icon cards ("Why us"): icon beside the text */
  .icon-grid .card { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
  .icon-grid .icon-badge { width: 38px; height: 38px; margin: 2px 0 0; }
  .icon-grid .icon-badge svg { width: 18px; height: 18px; }

  /* stats: three across */
  .stats-bar { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 12px; }
  .stats-bar .stat .num { font-size: 1.5rem; }
  .stats-bar .stat .label { font-size: 0.78rem; line-height: 1.3; }
  .stats-bar .stat p.desc { display: none; }

  .stat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-tile { padding: 14px; }
  .stat-tile .n { font-size: 1.5rem; }
  .stat-tile p { font-size: 0.82rem; }

  /* hero photo is decorative: skip it on phones */
  .hero-visual-photo { display: none; }
  .hero-visual-art { display: block; margin-top: 8px; }

  /* footer: two columns instead of one long list */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-col ul li { margin-bottom: 6px; }
  .footer-col ul li a { font-size: 0.84rem; }
}
@media (max-width: 360px) {
  .link-grid { grid-template-columns: 1fr; }
}

/* Link cards: icon beside the title (all sizes) - shorter cards, same content */
.link-grid .service-card { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-content: start; }
.link-grid .service-card .icon-badge { width: 40px; height: 40px; margin: 0; align-self: center; }
.link-grid .service-card .icon-badge svg { width: 19px; height: 19px; }
.link-grid .service-card h3 { align-self: center; margin: 0; font-size: 1.05rem; }
.link-grid .service-card p, .link-grid .service-card .learn-more { grid-column: 1 / -1; }
.link-grid .service-card p { margin: 10px 0 10px; }
.link-grid .service-card .learn-more { align-self: end; }

/* Icon cards ("Why us" etc.): icon beside the text (all sizes) */
.icon-grid .card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.icon-grid .icon-badge { width: 40px; height: 40px; margin: 2px 0 0; }
.icon-grid .icon-badge svg { width: 19px; height: 19px; }

/* The [hidden] attribute must win over component display rules (e.g. .form-row { display: grid }) */
[hidden] { display: none !important; }

/* Contact form: requirement-specific question groups */
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; }
.form-group {
  display: grid; gap: 14px;
  background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px;
}
.form-group-title { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.form-group-note { font-size: 0.9rem; margin-top: -6px; }
.check-group { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.check-group legend { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; padding: 0; width: 100%; }
.contact-form label.check {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: 0.88rem; color: var(--text); margin: 0; cursor: pointer;
}
.contact-form label.check input { width: auto; accent-color: var(--blue); }

/* ---------- Round 9 (Nov 2026): proof strip, notices, newsletter, search, code, print ---------- */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 0.9fr 1fr; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hero-note { margin-top: 14px; font-size: 0.92rem; color: var(--text-light); }
.hero-note a { color: var(--blue); font-weight: 600; }

.proof-strip { padding: 18px 0; border-bottom: 1px solid var(--border); background: var(--white); }
.proof-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 22px; list-style: none; margin: 0; padding: 0; }
.proof-list li { display: flex; flex-direction: column; gap: 2px; font-size: 0.86rem; color: var(--text-light); line-height: 1.35; }
.proof-list strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); }

.faq-more { margin-top: 16px; font-size: 0.92rem; color: var(--text-light); }
.faq-more a { color: var(--blue); font-weight: 600; }

.notice { border-left: 4px solid var(--blue); background: var(--bg-alt); padding: 14px 18px; border-radius: 8px; font-size: 0.92rem; color: var(--text); margin: 0; }
.article-note { margin-top: 10px; font-size: 0.86rem; color: var(--text-light); }
.article-note a { color: var(--blue); }

.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 28px; background: var(--white); }
.callout > div:first-child { flex: 1 1 420px; }
.callout h2 { font-size: 1.4rem; margin: 6px 0 8px; }

.form-intro { margin-bottom: 18px; color: var(--text-light); }
.form-aside { margin-top: 14px; font-size: 0.88rem; color: var(--text-light); }
.form-aside a { color: var(--blue); font-weight: 600; }
.hero-center .breadcrumb { justify-content: center; }

.newsletter { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.newsletter h2 { margin: 6px 0 8px; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.newsletter-form input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--white); }
.newsletter-form .form-status { flex-basis: 100%; margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--blue-dark); }
.newsletter-form .form-status:empty { display: none; }
.form-fine { flex-basis: 100%; margin: 0; font-size: 0.8rem; color: var(--text-light); }
.form-fine a { color: var(--blue); }

.site-search { display: flex; gap: 10px; max-width: 460px; margin: 18px auto 6px; }
.site-search input[type="search"] { flex: 1 1 auto; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }

.term-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.term-link:hover { color: var(--blue); }

.prose pre { background: #1a1e26; color: #e7e9ee; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: 0.84rem; line-height: 1.55; margin: 14px 0 18px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }
.prose :not(pre) > code { background: var(--bg-alt); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .proof-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .proof-list { grid-template-columns: repeat(2, 1fr); }
  .proof-list li:last-child { grid-column: 1 / -1; }
  .callout { padding: 20px; }
}
@media (max-width: 480px) {
  .site-search { flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .mobile-sticky-cta, .section-cta, .calc-save, .hero .btn-row { display: none !important; }
  body { background: #ffffff; }
  section { padding: 16px 0 !important; }
}

/* ==========================================================================
   Shared surface compatibility: frosted surfaces and the floating proof card
   ========================================================================== */
.faq-item, .job, .stat-tile, .contact-info-card, form.contact-form, .table-wrap,
.glossary-list .term, .callout, .thank-you-panel, .dash-mock, .answer-block, .stats-bar {
  background: var(--glass);
  border-width: 1px;
}
.faq-item, .job, .glossary-list .term { border-radius: 16px; }
.answer-block { border-left: 4px solid var(--teal); }
.notice { border-left-color: var(--teal); }

/* Home: the proof strip floats as a glass card over the end of the hero */
.proof-strip { background: transparent; border-bottom: 0; padding: 0 0 8px; position: relative; z-index: 2; }
.proof-strip .proof-list {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e4e7ed;
  border-radius: 22px;
  padding: 22px 28px;
  box-shadow: 0 16px 40px rgba(26, 30, 38, 0.08);
  margin-top: -30px;
}
.proof-list strong { color: var(--blue); }

/* Closing banner: rounded gradient panel with a soft glow */
.cta-banner { box-shadow: 0 24px 60px rgba(126, 143, 173, 0.22); }
.cta-banner::before { background: radial-gradient(circle, rgba(150, 164, 188, 0.35), transparent 70%); }
.cta-banner .btn-primary { background: var(--white); color: var(--blue); box-shadow: none; }
.cta-banner .btn-primary:hover { background: #f0f3f9; }

@media (max-width: 760px) {
  .proof-strip .proof-list { margin-top: -20px; padding: 18px; }
}

/* Page photos (assets/images/, made by tools/site-generator/photos.py) */
.page-banner-section { padding: 0 0 8px; margin-top: -18px; position: relative; z-index: 2; }
.page-banner { margin: 0; }
.page-banner img, .article-cover img, .story-photo img {
  width: 100%; height: auto; display: block;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(26, 30, 38, 0.12);
  background: #f3f5fa;
}
.article-cover { margin: 0 0 28px; }
.article-cover img { border-radius: 18px; }
.story-photo { margin: 0 0 18px; }
.story-photo img { border-radius: 20px; }
@media (max-width: 760px) {
  .page-banner-section { margin-top: -10px; }
  .page-banner img { border-radius: 16px; }
}

/* ---------- Premium polish (Nov 2026): glass icon tiles, motion, hover and focus ---------- */
/* Icon tiles: glossy highlight on the gradient, two-tone icon inside */
.icon-badge {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -10px 18px rgba(0, 0, 0, 0.08),
              0 8px 18px rgba(150, 164, 188, 0.25);
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1), box-shadow 0.3s ease;
}
.icon-badge::before {
  content: "";
  position: absolute;
  inset: 0 0 52% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.icon-badge svg { position: relative; z-index: 1; }
.contact-info-card .row .ic { background: linear-gradient(135deg, #e8eaef, #d6dbe3); box-shadow: inset 0 1px 0 #ffffff; }

/* Scroll reveal (class added by js/main.js only for content below the fold) */
main .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
main .reveal.is-visible { opacity: 1; transform: none; }

/* Hover: cards lift and pick up a accent edge; icons nudge; photos breathe */
.card, .service-card, .faq-item, .job, .stat-tile { transition: transform 0.25s cubic-bezier(.2, .7, .2, 1), box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.6s ease; }
.card:hover, .service-card:hover { border-color: rgba(126, 143, 173, 0.32); box-shadow: 0 18px 44px rgba(26, 30, 38, 0.10); }
.service-card:hover .icon-badge, .card:hover .icon-badge { transform: translateY(-2px) scale(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255,.45), 0 12px 24px rgba(150, 164, 188, 0.32); }
.faq-item:hover, .job:hover { border-color: rgba(126, 143, 173, 0.28); }
.stat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.hero-visual-art .hero-visual-image { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.hero-visual-art:hover .hero-visual-image { transform: scale(1.025); }
.btn:active { transform: translateY(0) scale(0.98); }
.nav-links > li > a, .mega-menu a, .footer-col ul li a, .learn-more { transition: color 0.2s ease, background 0.2s ease; }

/* Keyboard focus that is easy to see on every interactive element */
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(150, 164, 188, 0.6);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  main .reveal { opacity: 1; transform: none; }
}

/* 3D glass feature icons (pilot; assets/icons/, made by tools/site-generator/icon_pilot.py) */
.icon-glass { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; flex-shrink: 0;
  border: 1px solid #dfe3ea; box-shadow: 0 10px 22px rgba(26, 30, 38, 0.08);
  /* soft light-teal glow pooled at the bottom of the tile, under the icon */
  background: radial-gradient(ellipse 80% 42% at 50% 98%, rgba(150, 164, 188, 0.45), rgba(150, 164, 188, 0) 72%), #ffffff;
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1); }
.icon-glass img { width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 6px 7px rgba(150, 164, 188, 0.5)); }   /* teal shadow that follows the icon's shape */
.link-grid .service-card.has-glass { grid-template-columns: 64px 1fr; column-gap: 14px; }
.link-grid .service-card.has-glass .icon-glass { align-self: center; }
.service-card:hover .icon-glass { transform: translateY(-2px) scale(1.06) rotate(-2deg); }
@media (max-width: 760px) {
  .icon-glass { width: 48px; height: 48px; border-radius: 14px; }
  .link-grid .service-card.has-glass { grid-template-columns: 48px 1fr; }
}

/* ---------- Client case studies (tools/site-generator/case_studies.py) ---------- */
.case-intro { text-align: center; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.case-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.case-nav .chip { background: var(--glass); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
  font-size: 0.85rem; font-weight: 600; color: var(--navy); transition: border-color 0.2s ease, color 0.2s ease; }
.case-nav .chip:hover { border-color: var(--blue); color: var(--blue); }
html { scroll-padding-top: 96px; }
.case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px;
  box-shadow: 0 10px 30px rgba(26, 30, 38, 0.05); display: flex; flex-direction: column; }
.case:target { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(150, 164, 188, 0.25); }
.case-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.case-pill { font-size: 0.74rem; font-weight: 600; color: var(--blue); background: var(--bg-alt); border-radius: 999px; padding: 3px 10px; }
.case-pill-multi { color: #ffffff; background: linear-gradient(135deg, #7e8fad, #93a1ba); }
.case h3 { font-size: 1.15rem; margin-bottom: 6px; }
.case-who { font-size: 0.88rem; color: var(--text-light); }
.case-flow { font-size: 0.88rem; margin-top: 4px; }
.case-flow a { color: var(--blue); font-weight: 600; }
.case-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.case-result { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.case-result .v, .case-mini-stat .v { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  line-height: 1.15; color: var(--blue); }
.case-result .l { display: block; font-size: 0.8rem; line-height: 1.4; margin-top: 4px; color: var(--text); }
.case-story summary { cursor: pointer; font-weight: 600; color: var(--blue); font-size: 0.92rem; }
.case-story h4 { margin: 12px 0 4px; font-size: 0.95rem; }
.case-story p { font-size: 0.92rem; }
.case-quote { margin: 16px 0 0; padding: 14px 16px; border-left: 3px solid var(--teal); background: var(--bg-alt);
  border-radius: 0 12px 12px 0; margin-top: auto; }
.case-story + .case-quote { margin-top: 16px; }
.case-quote p { font-style: italic; color: var(--navy); font-size: 0.93rem; }
.case-quote footer { margin-top: 6px; font-size: 0.78rem; color: var(--text-light); }
.case-mini .case-mini-stat { flex: 1; font-size: 0.88rem; margin: 6px 0 12px; }
.case-mini .case-mini-stat .v { display: inline; font-size: 1.25rem; margin-right: 4px; }
.case-mini h3 { font-size: 1.02rem; }
@media (max-width: 980px) { .case-list { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .case-results { grid-template-columns: 1fr; } .case { padding: 18px; } }
.case-pill-cl { color: var(--blue); background: #ffffff; border: 1px solid #abb6ca; }

/* ---------- Mobile fixes (Nov 2026) ---------- */
/* While the menu is open, the page behind stops scrolling and the sticky call bar steps aside. */
body.nav-open { overflow: hidden; }
body.nav-open .mobile-sticky-cta { display: none; }
/* Wide tables scroll inside their own box instead of pushing past the screen edge */
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.prose pre { max-width: 100%; white-space: pre; }
.prose pre code { white-space: pre; }
@media (max-width: 760px) {
  table.data-table { min-width: 520px; font-size: 0.88rem; }
  table.data-table th, table.data-table td { padding: 10px 12px; }
  .table-wrap { position: relative; }
}
/* Hub pages: a wide editorial visual under the heading */
.hub-slider { max-width: 860px; margin: 0 auto; }
/* readable small labels on phones */
@media (max-width: 760px) {
  .case-pill { font-size: 0.8rem; }
  .stat-tile .src { font-size: 0.78rem; }
}

/* Collapsed menu: a tapped item keeps a sticky "hover" on phones; never let the desktop hover position
   (translateX(-50%)) move an expanded dropdown off the screen. */
@media (max-width: 1260px) {
  body.nav-open .nav-links > li .mega-menu,
  body.nav-open .nav-links > li:hover .mega-menu { position: static; left: auto; transform: none; width: auto; max-width: 100%; }
  body.nav-open .mega-menu a { white-space: normal; }
}

/* ---------- Large screens (Nov 2026): the layout grows with the monitor ----------
   1366-1599px: 1200px column (unchanged). Wider screens: the column widens to ~88% of the screen (up to 1680px)
   and the whole type scale (rem-based) grows a little, so the page fills the screen without over-long text lines.
   Reading blocks (paragraphs, articles, section intros) keep a comfortable width measured in rem. */
body { font-size: 1rem; }
.section-head { max-width: 45rem; }
.hero .lead { max-width: 35rem; }
.hero-center .lead { max-width: 42.5rem; }
.prose { max-width: 47.5rem; }
.answer-block { max-width: 56rem; }
.cta-banner p { max-width: 38.75rem; }
.hub-slider { max-width: 54rem; }
@media (min-width: 1600px) {
  html { font-size: 106.25%; }                       /* 17px */
  :root { --max-width: min(88vw, 1440px); }
  .nav-wrap { max-width: calc(var(--max-width) + 48px); }
  .logo img { height: 3rem; }
  .footer-grid .logo img { height: 3.5rem; }
}
@media (min-width: 1900px) {
  html { font-size: 112.5%; }                        /* 18px */
  :root { --max-width: min(86vw, 1680px); }
}
@media (min-width: 2400px) {
  html { font-size: 125%; }                          /* 20px on 2.5K/4K monitors at 100% zoom */
  :root { --max-width: min(84vw, 2000px); }
}

/* Quasphere base layout layer. Existing component hooks remain compatible with every page. */
body { background: var(--bg); line-height: 1.75; }
h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4vw, 4.25rem); letter-spacing: -0.055em; line-height: 1.09; }
h2 { font-size: clamp(1.9rem, 2.8vw, 3rem); letter-spacing: -0.045em; line-height: 1.18; }
h3 { letter-spacing: -0.025em; line-height: 1.35; }
section { padding: 88px 0; }
.section-tight { padding: 42px 0; }
.container { padding-inline: 32px; }
.section-head { margin-bottom: 38px; }
.section-head p { max-width: 42rem; }
.section-head:not(.align-left) p { margin-inline: auto; }
.eyebrow, .hero-tag {
  color: var(--blue);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  text-transform: uppercase;
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 20px;
}
.eyebrow::before, .hero-tag::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--teal);
  margin-right: 12px;
  vertical-align: middle;
}
.site-header { background: rgba(235, 240, 248, 0.96); backdrop-filter: blur(12px); }
.nav-wrap { padding: 19px 32px; max-width: 1480px; gap: 24px; }
.logo img { width: 190px; height: auto; }
.nav-links { gap: 3px; }
.nav-links > li > a { font-size: 0.8rem; border-radius: 2px; padding: 10px 8px; }
.nav-links > li > a:hover, .nav-links > li.active > a { background: transparent; color: var(--blue); }
.nav-cta { gap: 14px; }
.nav-cta > .btn-outline { display: none; }
.nav-cta .btn { font-size: 0.78rem; padding: 11px 18px; }
.mega-menu { border-radius: 4px; background: var(--white); box-shadow: var(--shadow); padding: 22px; }
.mega-menu a { border-radius: 2px; }
.mega-menu .dot { background: var(--teal); box-shadow: none; }
@media (min-width: 1261px) {
  .nav-links > li:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
.btn {
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 15px 24px;
  letter-spacing: 0.005em;
  justify-content: center;
  min-height: 48px;
}
.btn-primary { background: var(--navy); color: var(--white); box-shadow: none; }
.btn-primary:hover { background: #343c49; box-shadow: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: #8893a7; }
.btn-outline:hover { background: var(--white); border-color: var(--navy); transform: translateY(-1px); }
.hero { background: var(--bg); padding: 88px 0 72px; border-bottom: 1px solid var(--border); }
.hero::before, .hero::after { display: none; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 64px; }
.hero .lead { font-size: 1.05rem; line-height: 1.8; margin-top: 24px; }
.hero.compact { padding: 80px 0 64px; }
.hero.compact h1 { font-size: clamp(2.4rem, 4vw, 4rem); }
.hero-center .lead { max-width: 45rem; }
.breadcrumb { font-size: 0.75rem; letter-spacing: 0.025em; margin-bottom: 24px; }
.editorial-visual { position: relative; margin: 0; min-width: 0; }
.editorial-visual img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.editorial-visual figcaption {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); margin-top: 14px; display: flex; justify-content: space-between; gap: 16px;
}
.page-banner-section { margin: 0; padding: 40px 0 8px; }
.page-banner img, .article-cover img, .story-photo img {
  border-radius: 3px; border: 0; box-shadow: none; background: var(--bg-alt);
}
.page-banner img { max-height: 500px; object-fit: cover; }
.article-cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.story-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.card, .service-card, .case, .stat-tile {
  border-radius: 4px; box-shadow: none; background: var(--white); border-color: var(--border); padding: 30px;
}
.card:hover, .service-card:hover, .case:hover, .stat-tile:hover {
  transform: translateY(-3px); border-color: #6d84ac; box-shadow: var(--shadow-sm);
}
.card-accent:nth-of-type(n) { border-color: var(--border); }
.icon-badge, .icon-badge.b1, .icon-badge.b2, .icon-badge.b3, .icon-badge.b4 {
  border-radius: 2px; background: var(--bg-alt); color: var(--blue); box-shadow: none; border: 1px solid var(--border);
}
.icon-badge::before { display: none; }
.card:hover .icon-badge, .service-card:hover .icon-badge { transform: none; box-shadow: none; }
.icon-glass { width: 46px; height: 46px; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.icon-glass img { filter: none; }
.service-card:hover .icon-glass { transform: translateY(-2px); }
.link-grid .service-card.has-glass { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; }
.link-grid .service-card p { margin: 6px 0 18px; }
.link-grid .service-card h3 { font-weight: 600; }
.service-card .learn-more { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.025em; margin-top: 8px; }
.process-step { background: transparent; border-radius: 0; box-shadow: none; }
.step-num { background: none; color: var(--blue); border: 1px solid var(--border); border-radius: 50%; box-shadow: none; }
.step-line { background: var(--border); }
.answer-block { background: transparent; border: 0; border-left: 1px solid var(--teal); border-radius: 0; box-shadow: none; }
.contact-info-card, form.contact-form, .faq-item, .job, .table-wrap, .callout, .thank-you-panel,
.glossary-list .term, .stats-bar { border-radius: 4px; box-shadow: none; }
.contact-info-card .row .ic { background: var(--bg-alt); box-shadow: none; color: var(--blue); }
.contact-form input, .contact-form select, .contact-form textarea { border-radius: 2px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(10, 52, 150, 0.12); }
.faq-item summary, .job summary { font-weight: 500; }
.table-wrap { background: var(--white); }
.data-table thead th { background: var(--navy); color: var(--white); }
.data-table td, .data-table th { border-color: var(--border); }
.cta-banner { border-radius: 4px; background: var(--navy); box-shadow: none; padding: 68px 48px; }
.cta-banner::before { display: none; }
.cta-banner .eyebrow { color: #6e97f6; }
.cta-banner h2 { font-size: clamp(2rem, 3.2vw, 3.4rem); }
.cta-banner .btn-primary { background: #6e97f6; color: #191d24; }
.cta-banner .btn-primary:hover { background: #95b3f8; }
.cta-banner .btn-outline { border-color: #727f94; color: var(--white); }
.site-footer { background: #151920; padding-top: 70px; }
.footer-grid { gap: 34px; }
.footer-grid .logo img { width: 200px; height: auto; }
.footer-grid p.desc { line-height: 1.8; }
.footer-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6e97f6; }
.footer-col ul li a { font-size: 0.8rem; }
.footer-col ul li a:hover { color: #95b3f8; }
.footer-bottom p { color: #b6bcc8; font-size: 0.74rem; }
.proof-strip { padding: 0; background: var(--white); border-bottom: 1px solid var(--border); }
.proof-strip .proof-list { margin: 0; padding: 30px 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.proof-list li { padding-left: 20px; border-left: 1px solid var(--border); font-size: 0.75rem; }
.proof-list li:first-child { padding-left: 0; border-left: 0; }
.proof-list strong { color: var(--navy); font-size: 1.2rem; font-weight: 500; margin-bottom: 6px; }
.case-pill { border-radius: 2px; }
.case-pill-multi { background: var(--navy); }
.case-pill-cl { border-color: var(--border); }
.case-result { border-radius: 2px; }
.case-quote { border-radius: 0; }
.avatar { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 2px; color: var(--blue); display: grid; place-items: center; font-size: 1.1rem; letter-spacing: 0.06em; }
.mobile-sticky-cta { background: var(--bg); border-color: var(--border); box-shadow: none; }
.home-hero { padding: 86px 0 64px; background: #191d24; color: var(--white); }
.home-hero .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
.home-hero h1 { color: var(--white); font-size: clamp(3rem, 5.2vw, 5.5rem); max-width: 12ch; }
.home-hero h1 em { font-style: normal; color: #6e97f6; }
.home-hero .hero-tag { color: #6e97f6; margin-bottom: 30px; }
.home-hero .lead { color: #bec4ce; max-width: 33rem; }
.home-hero .btn-primary { background: #6e97f6; color: #191d24; }
.home-hero .btn-primary:hover { background: #95b3f8; }
.home-hero .btn-outline { color: var(--white); border-color: #6b788e; }
.home-hero .btn-outline:hover { background: #2b323e; }
.home-hero .editorial-visual { align-self: stretch; min-height: 450px; }
.home-hero .editorial-visual img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.home-hero .hero-footnote { color: #a0a9b8; margin-top: 32px; font-size: 0.75rem; letter-spacing: 0.04em; }
.home-hero .hero-footnote a { color: #95b3f8; text-decoration: underline; text-underline-offset: 4px; }
.hub-slider .editorial-visual img { aspect-ratio: 21 / 9; }
.article-note { margin-top: 12px; font-size: 0.75rem; color: var(--text-light); }
.home-statement { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 64px; align-items: start; }
.home-statement h2 { max-width: 25ch; }
.home-statement p { max-width: 41rem; margin-top: 24px; font-size: 1.05rem; }
.capability-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.capability-heading h2 { max-width: 20ch; }
.capability-heading > p { max-width: 26rem; font-size: 0.92rem; }
.capability-list { border-top: 1px solid var(--border); }
.capability-row { display: grid; grid-template-columns: 65px 1fr 1.2fr 40px; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--border); align-items: start; }
.capability-index { color: var(--blue); font-size: 0.72rem; letter-spacing: 0.12em; padding-top: 6px; }
.capability-row h3 { font-size: 1.45rem; }
.capability-row p { font-size: 0.9rem; }
.capability-row .row-links { display: flex; gap: 9px 16px; flex-wrap: wrap; margin-top: 12px; }
.row-links a { color: var(--blue); font-size: 0.75rem; border-bottom: 1px solid var(--border); }
.capability-arrow { color: var(--blue); font-size: 1.5rem; text-align: right; }
.product-feature { background: #dae0ea; }
.product-feature .split { gap: 64px; }
.product-feature .cl-shot { border: 1px solid #acb7cb; padding: 16px; border-radius: 4px; background: var(--white); transform: rotate(-1deg); }
.product-feature .cl-shot img { border-radius: 2px; box-shadow: none; }
.product-feature .check-list { margin-top: 22px; }
.product-feature .cl-shot figcaption { font-size: 0.68rem; margin-top: 12px; }
.home-audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.home-audience a { padding: 26px 0; border-top: 1px solid var(--border); }
.home-audience h3 { font-size: 1.15rem; margin-bottom: 12px; }
.home-audience p { font-size: 0.85rem; }
.home-audience span { display: block; color: var(--blue); font-size: 0.75rem; margin-top: 22px; }
.engagement-note { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); max-width: 44rem; }
.engagement-note strong { color: var(--navy); font-weight: 600; }
.home-sector-links { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--border); }
.home-sector-links a { color: var(--blue); font-size: 0.85rem; }
.capability-map { margin: 28px 0 0; padding: 24px; border: 1px solid var(--border); background: var(--white); }
.capability-map .map-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 16px; }
.capability-map .map-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.map-flow div { border-left: 1px solid var(--teal); padding-left: 14px; }
.map-flow strong { display: block; font-size: 0.85rem; color: var(--navy); font-weight: 600; }
.map-flow span { display: block; font-size: 0.76rem; margin-top: 4px; }
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: #0c3fb5; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 999; background: var(--navy); color: var(--white); padding: 12px 20px; }
.skip-link:focus { top: 10px; }
@media (min-width: 1600px) {
  :root { --max-width: 1400px; }
  html { font-size: 106.25%; }
}
@media (min-width: 1900px) { :root { --max-width: 1560px; } html { font-size: 112.5%; } }
@media (min-width: 2400px) { :root { --max-width: 1720px; } html { font-size: 118.75%; } }
@media (max-width: 1260px) {
  .nav-wrap { padding: 16px 24px; }
  body.nav-open .nav-links { background: var(--bg); }
  .nav-links > li > a { font-size: 0.95rem; padding: 12px; }
}
@media (max-width: 980px) {
  .hero-grid, .home-hero .hero-grid, .home-statement { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-grid.reverse { grid-template-columns: minmax(0, 1fr); }
  .hero-grid.reverse .editorial-visual { order: 0; }
  .home-hero h1 { max-width: 14ch; }
  .home-hero .editorial-visual { min-height: 360px; }
  .home-hero .editorial-visual img { position: static; aspect-ratio: 16 / 9; height: auto; }
  .editorial-visual img { aspect-ratio: 16 / 9; }
  .home-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-heading { align-items: start; flex-direction: column; gap: 20px; }
  .capability-row { grid-template-columns: 35px 1fr 1fr 24px; gap: 20px; }
}
@media (max-width: 760px) {
  section { padding: 58px 0; }
  .container { padding-inline: 22px; }
  .hero, .hero.compact { padding: 54px 0 44px; }
  .hero h1 { font-size: clamp(2.35rem, 8.5vw, 3.5rem); }
  .hero .lead { font-size: 0.98rem; }
  .home-hero h1 { font-size: clamp(2.9rem, 11vw, 4.1rem); }
  .home-hero .editorial-visual { min-height: 0; }
  .home-hero .hero-grid { gap: 36px; }
  .btn { white-space: normal; font-size: 0.8rem; padding: 13px 18px; }
  .nav-wrap { padding: 14px 20px; gap: 12px; }
  .logo img { width: 166px; height: auto; }
  .nav-cta .btn { padding: 10px 14px; min-height: 42px; }
  .proof-strip .proof-list { margin: 0; padding: 24px 0; gap: 22px; }
  .proof-list li { padding-left: 0; border: 0; }
  .proof-list strong { font-size: 1.1rem; }
  .card, .service-card, .case { padding: 22px; }
  .link-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .link-grid .service-card p { display: block; overflow: visible; -webkit-line-clamp: unset; font-size: 0.9rem; }
  .link-grid .service-card h3 { font-size: 1.12rem; }
  .link-grid .service-card { padding: 24px; }
  .cta-banner { padding: 44px 24px; }
  .capability-row { grid-template-columns: 28px minmax(0, 1fr) 22px; gap: 14px; }
  .capability-row > div:nth-child(3) { grid-column: 2; }
  .capability-arrow { grid-column: 3; grid-row: 1; }
  .product-feature .split { gap: 32px; }
  .product-feature .cl-shot { transform: none; padding: 10px; }
  .footer-grid { gap: 32px 20px; }
  .footer-grid .logo img { width: 180px; }
  .capability-map .map-flow { grid-template-columns: 1fr; gap: 20px; }
  .home-audience { gap: 24px; }
  .home-audience h3 { font-size: 1.05rem; }
}
@media (max-width: 390px) {
  .logo img { width: 145px; }
  .nav-cta .btn { font-size: 0.7rem; padding-inline: 10px; }
  .home-audience { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Quasphere modern technology layer: light, crisp, cobalt and cyan.
   ========================================================================== */
body { background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 800; }
h1 { letter-spacing: -0.045em; line-height: 1.06; }
h2 { letter-spacing: -0.035em; line-height: 1.14; font-weight: 800; }
h3 { font-weight: 700; letter-spacing: -0.02em; }
h1 em, h2 em, .grad-text {
  font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blue);
}
a { transition: color .2s ease; }
.bg-alt { background: var(--bg-alt); }
.eyebrow, .hero-tag {
  display: inline-flex; align-items: center; gap: 8px; color: var(--blue); background: #eef3ff;
  border: 1px solid #d6e2ff; border-radius: 999px; padding: 6px 14px 6px 12px; text-transform: none;
  font-size: 0.8rem; letter-spacing: 0; font-weight: 600; margin-bottom: 20px;
}
.eyebrow::before, .hero-tag::before {
  width: 8px; height: 8px; border-radius: 50%; margin: 0; background: var(--grad);
  box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.14);
}
.site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(226, 232, 240, 0.9); box-shadow: none; }
.nav-links > li > a { font-size: 0.86rem; font-weight: 500; color: #334155; border-radius: 8px; padding: 9px 11px; }
.nav-links > li > a:hover, .nav-links > li.active > a { background: #f1f5ff; color: var(--blue); }
.mega-menu { border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 30px 70px rgba(15, 35, 80, 0.14); }
.mega-menu a { border-radius: 10px; }
.mega-menu a:hover { background: #f4f7ff; }
.mega-menu .dot { background: var(--grad); }
.btn { border-radius: 999px; font-weight: 600; font-size: 0.9rem; padding: 14px 26px; min-height: 48px; letter-spacing: 0; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 10px 26px rgba(31, 94, 255, 0.28); }
.btn-primary:hover { background: var(--grad); color: #fff; box-shadow: 0 14px 34px rgba(31, 94, 255, 0.36); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid #cfd8e6; }
.btn-outline:hover { background: #fff; color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.nav-cta .btn { font-size: 0.84rem; padding: 10px 20px; min-height: 42px; }

.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(6, 182, 212, 0.16), transparent 60%),
    radial-gradient(800px 520px at 0% 0%, rgba(31, 94, 255, 0.12), transparent 60%),
    radial-gradient(600px 400px at 60% 110%, rgba(124, 92, 255, 0.10), transparent 60%),
    #fbfcff;
}
.hero::before {
  display: block; content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15, 35, 80, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 35, 80, 0.05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero > .container { position: relative; z-index: 1; }
.hero .lead { color: #475569; font-size: 1.1rem; }
.breadcrumb, .breadcrumb a { color: #64748b; }
.editorial-visual img, .page-banner img, .article-cover img, .story-photo img {
  border-radius: 22px; border: 1px solid rgba(226, 232, 240, 0.9); box-shadow: 0 30px 70px rgba(15, 35, 80, 0.14); background: #eef3fb;
}
.editorial-visual figcaption { text-transform: none; letter-spacing: 0; font-size: 0.78rem; color: #64748b; }

.home-hero { background:
    radial-gradient(900px 520px at 90% 0%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(800px 560px at 0% 10%, rgba(31, 94, 255, 0.14), transparent 60%),
    radial-gradient(700px 420px at 55% 115%, rgba(124, 92, 255, 0.12), transparent 60%),
    #fbfcff; color: var(--navy); padding: 96px 0 80px; }
.home-hero h1 { color: var(--navy); max-width: 15ch; font-size: clamp(2.9rem, 5vw, 4.9rem); }
.home-hero .hero-tag { color: var(--blue); margin-bottom: 26px; }
.home-hero .lead { color: #475569; max-width: 36rem; font-size: 1.15rem; }
.home-hero .btn-primary { background: var(--grad); color: #fff; }
.home-hero .btn-primary:hover { background: var(--grad); }
.home-hero .btn-outline { color: var(--navy); border-color: #cfd8e6; }
.home-hero .btn-outline:hover { background: #fff; }
.home-hero .editorial-visual img { border-radius: 26px; }
.home-hero .hero-footnote { color: #64748b; }
.home-hero .hero-footnote a { color: var(--blue); }
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tech-chips span { font-size: 0.78rem; font-weight: 600; color: #334155; background: rgba(255, 255, 255, 0.85); border: 1px solid #dbe3ef; border-radius: 999px; padding: 6px 12px; }

.card, .service-card, .case, .stat-tile { border-radius: 18px; border: 1px solid var(--border); background: #fff; box-shadow: 0 1px 2px rgba(15, 35, 80, 0.04); position: relative; }
.card:hover, .service-card:hover, .case:hover, .stat-tile:hover { transform: translateY(-4px); border-color: #c7d6f5; box-shadow: 0 22px 50px rgba(15, 35, 80, 0.10); }
.icon-badge, .icon-badge.b1, .icon-badge.b2, .icon-badge.b3, .icon-badge.b4 { border-radius: 12px; background: #eef3ff; color: var(--blue); border: 1px solid #dbe5ff; }
.service-card .learn-more, .row-links a, .home-audience span, .home-sector-links a { color: var(--blue); font-weight: 600; }
.step-num { background: var(--grad); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(31, 94, 255, 0.25); }
.answer-block { border-left: 3px solid var(--blue); background: #f6f9ff; border-radius: 0 14px 14px 0; padding: 20px 24px; }
.contact-info-card, form.contact-form, .faq-item, .job, .table-wrap, .callout, .thank-you-panel, .glossary-list .term, .stats-bar { border-radius: 16px; border-color: var(--border); }
.contact-form input, .contact-form select, .contact-form textarea { border-radius: 10px; border-color: #d5dde9; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.12); }
.data-table thead th { background: #0f1b33; }
.avatar { border-radius: 14px; background: var(--grad); color: #fff; border: 0; font-weight: 700; }

.proof-strip { background: #fff; }
.proof-list strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.proof-list li { font-size: 0.82rem; color: #475569; }

.capability-list { border-top: 0; display: grid; gap: 16px; }
.capability-row { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 32px; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.capability-row:hover { box-shadow: 0 22px 50px rgba(15, 35, 80, 0.10); border-color: #c7d6f5; transform: translateY(-3px); }
.capability-index { font-weight: 700; font-size: 0.85rem; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.row-links a { border: 1px solid #dbe5ff; background: #f5f8ff; border-radius: 999px; padding: 5px 12px; font-size: 0.78rem; }
.row-links a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.capability-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #f1f5ff; font-size: 1.2rem; }
.capability-row:hover .capability-arrow { background: var(--grad); color: #fff; }
.home-audience a { border: 1px solid var(--border); border-radius: 18px; padding: 26px; background: #fff; transition: box-shadow .25s ease, transform .25s ease; }
.home-audience a:hover { box-shadow: 0 22px 50px rgba(15, 35, 80, 0.10); transform: translateY(-3px); }
.capability-map { border-radius: 18px; }
.map-flow div { border-left: 3px solid var(--teal); }

.product-feature { background: linear-gradient(180deg, #f4f7fb 0%, #eef4ff 100%); }
.product-feature .cl-shot { transform: none; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 30px 70px rgba(15, 35, 80, 0.14); padding: 12px; }
.product-feature .cl-shot img { border-radius: 12px; }

.cta-banner { border-radius: 28px; color: #fff; padding: 72px 56px; position: relative; overflow: hidden;
  background: radial-gradient(700px 360px at 100% 0%, rgba(6, 182, 212, 0.45), transparent 60%), radial-gradient(600px 360px at 0% 100%, rgba(124, 92, 255, 0.35), transparent 60%), linear-gradient(120deg, #0b1a3d 0%, #1438a8 55%, #1f5eff 100%); }
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); }
.cta-banner .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.cta-banner .btn-primary:hover { background: #fff; color: var(--blue-dark); }
.cta-banner .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-banner .btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }

.site-footer { background: radial-gradient(800px 400px at 100% 0%, rgba(31, 94, 255, 0.22), transparent 60%), #0b1324; }
.footer-col h4 { color: #7dd3fc; letter-spacing: 0.08em; }
.footer-col ul li a, .footer-grid p.desc { color: #b6c2d4; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom p { color: #8a97ab; }
.mobile-sticky-cta { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.skip-link { background: var(--blue); border-radius: 10px; }
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 1260px) { body.nav-open .nav-links { background: #fff; } }
@media (max-width: 760px) {
  .home-hero { padding: 60px 0 52px; }
  .capability-row { padding: 22px; }
  .cta-banner { padding: 44px 24px; border-radius: 22px; }
  .editorial-visual img, .page-banner img, .article-cover img, .story-photo img { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .card, .service-card, .capability-row, .home-audience a { transition: none; } }

/* Story layouts read top-down beside a tall image column */
.split:has(.story-photo) { align-items: start; }


/* ==========================================================================
   Quasphere motion and interaction layer (balanced). Everything degrades to a
   static, fully readable layout without JavaScript or with reduced motion.
   ========================================================================== */
@property --q-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes q-spin { to { --q-angle: 360deg; } }
@keyframes q-float-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(40px, 30px, 0) scale(1.08); } }
@keyframes q-float-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-50px, -20px, 0) scale(0.94); } }
@keyframes q-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes q-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes q-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 94, 255, 0.45); } 100% { box-shadow: 0 0 0 14px rgba(31, 94, 255, 0); } }
@keyframes q-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero: drifting light orbs, entrance, and a tiltable visual */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; z-index: 0; }
.hero-orb-a { width: 420px; height: 420px; left: -120px; top: -80px; background: radial-gradient(circle, rgba(31, 94, 255, 0.55), transparent 70%); animation: q-float-a 16s ease-in-out infinite; }
.hero-orb-b { width: 380px; height: 380px; right: -60px; top: 40px; background: radial-gradient(circle, rgba(6, 182, 212, 0.5), transparent 70%); animation: q-float-b 19s ease-in-out infinite; }
.hero-orb-c { width: 300px; height: 300px; left: 45%; bottom: -160px; background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 70%); animation: q-float-a 22s ease-in-out infinite reverse; }
.home-hero .hero-grid > div > * { animation: q-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.home-hero .hero-grid > div > :nth-child(2) { animation-delay: .08s; }
.home-hero .hero-grid > div > :nth-child(3) { animation-delay: .16s; }
.home-hero .hero-grid > div > :nth-child(4) { animation-delay: .24s; }
.home-hero .hero-grid > div > :nth-child(5) { animation-delay: .32s; }
.home-hero .hero-grid > div > :nth-child(6) { animation-delay: .40s; }
.home-hero .hero-visual { animation: q-rise 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
[data-tilt] { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
[data-tilt] img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
.hero-visual::after { content: ""; position: absolute; inset: 0; border-radius: 26px; pointer-events: none;
  background: radial-gradient(500px 300px at var(--mx, 70%) var(--my, 20%), rgba(255, 255, 255, 0.35), transparent 60%); opacity: 0; transition: opacity .4s ease; }
.hero-visual:hover::after { opacity: 1; }

/* Primary buttons: light sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: translateX(-120%) skewX(-20deg); }
.btn-primary:hover::after { animation: q-shine .9s ease; }

/* Glowing animated gradient border on key surfaces */
.glow-border, .product-feature .cl-shot, .cta-banner { position: relative; }
.glow-border::before, .product-feature .cl-shot::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--q-angle), rgba(31, 94, 255, 0.0), #1f5eff, #06b6d4, #7c5cff, rgba(31, 94, 255, 0.0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: q-spin 6s linear infinite; opacity: .85;
}
.cta-banner::before { content: ""; display: block; position: absolute; inset: -40%; pointer-events: none; opacity: .35;
  background: conic-gradient(from var(--q-angle), transparent 0 60%, rgba(125, 211, 252, 0.55) 75%, transparent 90%); animation: q-spin 12s linear infinite; }
.cta-banner > * { position: relative; z-index: 1; }

/* Technology ticker */
.tech-marquee { padding: 34px 0 30px; background: #fff; border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee-label { text-align: center; font-size: 0.78rem; font-weight: 600; color: #64748b; margin: 0 0 18px; letter-spacing: 0.02em; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; gap: 14px; padding: 0 7px; margin: 0; list-style: none; animation: q-marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: #334155; padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: linear-gradient(180deg, #fff, #f7f9fd); transition: color .2s ease, border-color .2s ease; }
.marquee-track li:hover { color: var(--blue); border-color: #c7d6f5; }

/* Capability explorer (tabs) */
.capability-media { display: none; margin: 0; }
.capability-list.is-tabs { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.cap-tablist { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55)); backdrop-filter: blur(8px); box-shadow: 0 20px 50px rgba(15, 35, 80, 0.06); }
.cap-tab { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.3;
  color: #334155; background: transparent; border: 1px solid transparent; border-radius: 16px; padding: 16px 18px; cursor: pointer; position: relative; overflow: hidden; transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.cap-tab .cap-tab-num { font-size: 0.78rem; color: #94a3b8; min-width: 22px; }
.cap-tab:hover { background: rgba(255, 255, 255, 0.7); color: var(--navy); }
.cap-tab[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #d6e2ff; box-shadow: 0 16px 40px rgba(15, 35, 80, 0.10); }
.cap-tab[aria-selected="true"] .cap-tab-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cap-tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.cap-tab[aria-selected="true"]::after { transform: scaleX(1); transition: transform var(--cap-dwell, 7s) linear; }
.capability-list.is-tabs .capability-row { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "body"; gap: 0; padding: 0; overflow: hidden; position: relative; border-radius: 24px; transform: none; box-shadow: 0 24px 60px rgba(15, 35, 80, 0.08); }
.capability-list.is-tabs .capability-row:hover { transform: none; }
.capability-list.is-tabs .capability-row[hidden] { display: none; }
.capability-list.is-tabs .capability-row:not([hidden]) { animation: q-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.capability-list.is-tabs .capability-media { grid-area: media; display: block; position: relative; overflow: hidden; height: clamp(240px, 24vw, 330px); }
.capability-list.is-tabs .capability-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 45, 0) 35%, rgba(8, 18, 45, 0.78) 100%); }
.capability-list.is-tabs .capability-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.capability-list.is-tabs .capability-row:hover .capability-media img { transform: scale(1.04); }
.capability-list.is-tabs .capability-index { grid-area: media; align-self: start; justify-self: start; z-index: 2; margin: 20px 0 0 24px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); font-size: 0.75rem; -webkit-text-fill-color: var(--blue); color: var(--blue); }
.capability-list.is-tabs .capability-row h3 { grid-area: media; align-self: end; z-index: 2; margin: 0; padding: 0 32px 24px; font-size: clamp(1.35rem, 2vw, 1.75rem); color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }
.capability-list.is-tabs .capability-row > div { grid-area: body; padding: 22px 32px 28px; }
.capability-list.is-tabs .capability-row p { font-size: 1rem; margin: 0; max-width: 62ch; }
.capability-list.is-tabs .capability-row .row-links { margin-top: 16px; }
.capability-list.is-tabs .capability-arrow { grid-area: media; align-self: start; justify-self: end; z-index: 2; margin: 18px 20px 0 0; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); }

/* Carousels (service and case-study sliders) */
.services-showcase { background: #fff; }
.carousel { position: relative; margin-top: 8px; }
.carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin: -14px -14px 0; padding: 14px 14px 22px; outline: none; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 20px; }
.carousel-track { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.carousel-slide { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; min-width: 0; }
.case-carousel .carousel-slide { flex-basis: calc((100% - 40px) / 3); }
.carousel-controls { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.carousel-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #cfd8e6; background: #fff; color: var(--navy); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.carousel-btn:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }
.carousel-btn:disabled { opacity: .4; cursor: default; transform: none; background: #fff; color: var(--navy); border-color: #cfd8e6; }
.carousel-progress { flex: 1; height: 3px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.carousel-progress span { display: block; height: 100%; width: 25%; background: var(--grad); border-radius: 3px; transform-origin: left; transition: width .3s ease, margin-left .3s ease; }

.media-card, .case-card { display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--border); color: inherit; text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 35, 80, 0.04); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.media-card:hover, .case-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(15, 35, 80, 0.14); border-color: #c7d6f5; }
.media-card-img, .case-card-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #eef3fb; }
.media-card-img img, .case-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.media-card-img::after, .case-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 19, 36, 0.35)); opacity: 0; transition: opacity .4s ease; }
.media-card:hover .media-card-img img, .case-card:hover .case-card-img img { transform: scale(1.07); }
.media-card:hover .media-card-img::after, .case-card:hover .case-card-img::after { opacity: 1; }
.media-card-body, .case-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.media-card-tag { font-size: 0.72rem; font-weight: 700; color: var(--blue); letter-spacing: 0.02em; }
.media-card-title, .case-card-title { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--navy); line-height: 1.3; letter-spacing: -0.015em; }
.media-card-text { font-size: 0.88rem; color: #475569; line-height: 1.55; flex: 1; }
.media-card-more, .case-card .learn-more { font-size: 0.84rem; font-weight: 600; color: var(--blue); margin-top: 4px; }
.media-card-more span { display: inline-block; transition: transform .25s ease; }
.media-card:hover .media-card-more span { transform: translateX(4px); }
.case-card .case-pill { align-self: flex-start; }
.case-card .case-mini-stat { flex: 1; font-size: 0.88rem; color: #475569; margin: 4px 0 6px; line-height: 1.55; }
.case-card .case-mini-stat .v { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; margin-right: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Image hover across inner pages */
.editorial-visual, .story-photo, .page-banner, .article-cover { overflow: visible; }
.editorial-visual img, .story-photo img, .page-banner img, .article-cover img { transition: transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease; }
.story-photo:hover img, .page-banner:hover img, .article-cover:hover img { transform: scale(1.015); box-shadow: 0 40px 80px rgba(15, 35, 80, 0.18); }

/* Process timeline that fills as it scrolls into view */
.process-grid .step-line { position: relative; overflow: hidden; }
.process-grid .step-line::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.4, 0, .2, 1); }
.process-grid.js-timeline .process-step { opacity: .45; transition: opacity .5s ease; }
.process-grid.js-timeline .process-step.is-active { opacity: 1; }
.process-grid .process-step.is-active .step-line::after { transform: scaleX(1); }
.process-grid .process-step.is-active .step-num { animation: q-pulse 1.2s ease-out 1; }

/* Scroll reveal variants */
main .reveal.reveal-zoom { transform: scale(.96); }
main .reveal.reveal-zoom.is-visible { transform: none; }

@media (max-width: 1100px) {
  .carousel-slide { flex-basis: calc((100% - 40px) / 3); }
  .case-carousel .carousel-slide { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 900px) {
  .capability-list.is-tabs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cap-tablist { flex-direction: row; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -22px; padding: 4px 22px 8px; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; scroll-snap-type: x proximity; }
  .cap-tablist::-webkit-scrollbar { display: none; }
  .cap-tab { flex: 0 0 auto; width: auto; padding: 11px 16px; font-size: 0.88rem; border-color: var(--border); background: #fff; scroll-snap-align: start; }
  .capability-list.is-tabs .capability-row { grid-column: 1; grid-row: auto; }
  .carousel-slide { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 760px) {
  .capability-list.is-tabs .capability-row h3 { padding: 0 20px 18px; font-size: 1.25rem; }
  .capability-list.is-tabs .capability-index { margin: 14px 0 0 16px; }
  .capability-list.is-tabs .capability-arrow { margin: 12px 14px 0 0; }
  .capability-list.is-tabs .capability-row > div { padding: 18px 20px 22px; }
  .capability-list.is-tabs .capability-media { height: 210px; }
  .carousel-slide, .case-carousel .carousel-slide { flex-basis: 82%; }
  .hero-orb { filter: blur(50px); opacity: .45; }
  .hero-orb-a { width: 280px; height: 280px; }
  .hero-orb-b { width: 260px; height: 260px; }
  .tech-marquee { padding: 26px 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .marquee-track, .glow-border::before, .product-feature .cl-shot::before, .cta-banner::before,
  .home-hero .hero-grid > div > *, .home-hero .hero-visual, .capability-list.is-tabs .capability-row:not([hidden]) { animation: none !important; }
  .marquee { overflow-x: auto; }
  .btn-primary:hover::after { animation: none; }
  [data-tilt], [data-tilt] img, .media-card, .case-card, .media-card-img img, .case-card-img img, .carousel-viewport { transition: none; scroll-behavior: auto; }
  .cap-tab::after { transition: none !important; }
  .process-grid.js-timeline .process-step { opacity: 1; }
  .process-grid .step-line::after { transform: scaleX(1); transition: none; }
}

/* Homepage hero: rotating headline, glass stage, floating fact cards */
.home-hero { position: relative; overflow: hidden; isolation: isolate; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(31, 94, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 94, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); }
.home-hero .hero-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 64px; }
.home-hero h1 { max-width: none; font-size: clamp(2.6rem, 4.4vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero-rotator { display: grid; margin-top: 4px; white-space: nowrap; }
.hero-rotator > span { grid-area: 1 / 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 0.08em;
  opacity: 0; transform: translateY(0.45em); filter: blur(6px); transition: opacity .55s ease, transform .65s cubic-bezier(.2, .7, .2, 1), filter .55s ease; }
.hero-rotator > span.is-current { opacity: 1; transform: none; filter: none; }
.hero-rotator > span.is-leaving { opacity: 0; transform: translateY(-0.45em); filter: blur(6px); }
.home-hero .lead { max-width: 34rem; margin-top: 22px; }
.home-hero .btn-row { margin-top: 30px; }
.home-hero .hero-footnote { margin-top: 30px; font-size: 0.85rem; letter-spacing: 0; }
.hero-live { display: inline-block; vertical-align: middle; margin: -2px 9px 0 2px; width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); animation: q-live 2.2s ease-out infinite; }
@keyframes q-live { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } }
.hero-stage { position: relative; padding: 34px 26px; }
.hero-stage::before { content: ""; position: absolute; inset: 0; border-radius: 34px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.25)); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 40px 90px rgba(15, 35, 80, 0.12), inset 0 1px 0 #fff; backdrop-filter: blur(10px); }
.home-hero .hero-visual { height: auto; min-height: 0; background: none; box-shadow: none; overflow: visible; border-radius: 24px; }
.home-hero .hero-visual::before { display: none; }
.home-hero .hero-visual img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 24px; border: 0; box-shadow: 0 24px 50px rgba(15, 35, 80, 0.14); }
.hero-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 22px 50px rgba(15, 35, 80, 0.16); backdrop-filter: blur(14px); color: var(--navy); font-size: 0.8rem; line-height: 1.35; }
.hero-float strong { display: block; font-family: var(--font-head); font-size: 0.9rem; color: var(--navy); }
.hero-float-sub { display: block; color: #64748b; font-size: 0.76rem; }
.hero-float-label { display: inline-block; font-size: 0.68rem; font-weight: 700; color: var(--blue); background: #eef3ff; border-radius: 999px; padding: 3px 9px; margin-bottom: 6px; }
.hero-float-a { flex-direction: column; align-items: flex-start; gap: 0; width: 220px; left: -38px; bottom: 9%; }
.hero-spark { width: 100%; height: 38px; margin-top: 10px; display: block; }
.hero-spark-line { stroke-dasharray: 220; stroke-dashoffset: 220; animation: q-draw 2.4s .9s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes q-draw { to { stroke-dashoffset: 0; } }
.hero-float-b { top: 4%; right: -30px; }
.hero-float-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35); }
.hero-float-c { right: -18px; bottom: -14px; }
.hero-float-steps { display: flex; gap: 4px; }
.hero-float-steps i { width: 9px; height: 26px; border-radius: 4px; background: var(--grad); opacity: .35; }
.hero-float-steps i:nth-child(2) { opacity: .65; }
.hero-float-steps i:nth-child(3) { opacity: 1; }
@keyframes q-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero-float-a, .hero-float-b, .hero-float-c { opacity: 0; animation: q-pop .7s cubic-bezier(.2, .7, .2, 1) forwards, q-bob 7s ease-in-out 1.4s infinite; }
.hero-float-a { animation-delay: .6s, 1.4s; }
.hero-float-b { animation-delay: .8s, 2s; animation-duration: .7s, 8s; }
.hero-float-c { animation-delay: 1s, 2.6s; animation-duration: .7s, 9s; }
@keyframes q-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  .hero-float-a { left: -14px; }
  .hero-float-b { right: -10px; }
  .hero-float-c { right: -6px; }
}
@media (max-width: 980px) {
  .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-stage { max-width: 640px; }
}
@media (max-width: 760px) {
  .home-hero h1 { font-size: clamp(2.05rem, 10vw, 3.2rem); }
  .hero-rotator { font-size: 0.84em; }
  .hero-stage { padding: 18px 14px; margin: 0 4px; }
  .hero-stage::before { border-radius: 26px; }
  .home-hero .hero-stage .hero-visual { display: block; }
  .home-hero .hero-visual img { aspect-ratio: 4 / 3; border-radius: 18px; }
  .hero-float { padding: 10px 12px; border-radius: 14px; }
  .hero-float-a { width: 178px; left: -2px; bottom: -18px; }
  .hero-float-b { right: -2px; top: -16px; }
  .hero-float-c { display: none; }
  .hero-float strong { font-size: 0.8rem; }
  .hero-float-icon { width: 28px; height: 28px; flex-basis: 28px; border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float-a, .hero-float-b, .hero-float-c { opacity: 1; animation: none !important; }
  .hero-spark-line { animation: none; stroke-dashoffset: 0; }
  .hero-live { animation: none; }
  .hero-rotator > span { transition: none; filter: none; }
}

/* ---------- Compact footer ---------- */
.site-footer { padding: 40px 0 14px; font-size: 0.8rem; }
.footer-grid { grid-template-columns: 1.3fr 1.9fr 1.25fr 0.7fr 0.95fr; gap: 26px; padding-bottom: 22px; }
.footer-grid .logo img { width: 148px; height: auto; }
.footer-grid p.desc { font-size: 0.8rem; line-height: 1.55; margin-top: 10px; max-width: 270px; }
.footer-contact { margin-top: 12px; }
.footer-contact li { font-size: 0.78rem; margin-bottom: 4px; line-height: 1.45; }
.footer-col h4 { font-size: 0.68rem; margin-bottom: 10px; }
.footer-col ul li { margin-bottom: 5px; line-height: 1.4; }
.footer-col ul li a { font-size: 0.8rem; }
.footer-grid > .footer-col:nth-child(2) ul { columns: 2; column-gap: 22px; }
.footer-grid > .footer-col:nth-child(2) ul li { break-inside: avoid; }
.footer-bottom { padding-top: 14px; gap: 6px 16px; }
.footer-bottom p { font-size: 0.72rem; }
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.9fr 1.3fr 0.8fr 1.05fr; gap: 24px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 32px; }
  .footer-grid > div:first-child p.desc { max-width: 300px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr; }
  .footer-grid > .footer-col:nth-child(2) { grid-column: 1 / -1; }
  .footer-grid > .footer-col:nth-child(2) ul { columns: 3; }
}
@media (max-width: 760px) {
  .site-footer { padding-top: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .footer-grid > div:first-child { display: block; }
  .footer-grid > .footer-col:nth-child(2), .footer-grid > .footer-col:nth-child(3) { grid-column: 1 / -1; }
  .footer-grid > .footer-col:nth-child(2) ul, .footer-grid > .footer-col:nth-child(3) ul { columns: 2; column-gap: 16px; }
  .footer-grid > .footer-col:nth-child(3) ul li { break-inside: avoid; }
  .footer-col ul li { margin-bottom: 4px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
