/* =========================================================
   ASAA Solutions — Shared Stylesheet
   Design tokens, layout, and components used on all 9 pages.
   ========================================================= */

:root {
  /* Brand colors, sampled from Assets/logo/asaa-logo-full.png */
  --navy: #0b2a55;
  --navy-deep: #071b38;
  --blue: #1170d6;
  --blue-deep: #0c5aab;
  --teal: #00a888;
  --lime: #6fb52c;
  --danger: #b3392a;
  --danger-bg: rgba(179, 57, 42, 0.07);

  --bg: #fdfdfc;
  --surface: #ffffff;
  --surface-tint: #f7f6f3;
  --border: #e9e9e4;
  --border-strong: #d9d9d3;

  --ink: #1c2430;
  --ink-soft: #4a5568;
  --ink-faint: #7a8496;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
  --space-6: 4.5rem;
  --space-7: 5.5rem;

  --shadow-sm: 0 2px 10px rgba(11, 42, 85, 0.05);
  --shadow-md: 0 16px 40px rgba(11, 42, 85, 0.10);

  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:not(.btn):not(.nav-link):not(.dropdown a):not(.footer-col a):not(.brand):hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.15s ease;
}
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
.container-wide { max-width: min(1320px, 94vw); }

section { padding-block: var(--space-6); }
@media (max-width: 700px) {
  section { padding-block: var(--space-5); }
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

.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;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 4.2vw + 1rem, 4.2rem); }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.85rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--ink-soft); line-height: 1.7; }

em, .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--blue-deep);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.lede {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}
.section-head p { margin-bottom: 0; }

.scene-statement {
  max-width: 700px;
}
.scene-statement p:last-child { margin-bottom: 0; }

/* ---------- Split scene (intro + content, alternating sides) ---------- */
.scene {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: var(--space-6);
  align-items: start;
}
.scene.reverse .scene-content { order: -1; }

.scene-intro .eyebrow { margin-bottom: var(--space-2); }
.scene-intro p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--navy); background: var(--surface); }

.btn-accent {
  background: var(--blue);
  color: #fff;
}
.btn-accent:hover { background: var(--blue-deep); box-shadow: var(--shadow-md); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.brand img { height: 51px; width: auto; }
.brand-word {
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-word small {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links > li { position: relative; }

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0.5rem 0.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--blue); }

.nav-caret {
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-top: -3px;
  transition: transform 0.2s ease;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

@media (min-width: 981px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.dropdown-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
  }
}
.has-dropdown.dropdown-open .nav-caret { transform: rotate(225deg) translateY(2px); }
.nav-current-section > .nav-link { color: var(--blue); }

.dropdown a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.dropdown a:hover { background: var(--surface-tint); color: var(--blue-deep); }
.dropdown a span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 0.1rem;
}

.nav-cta { display: flex; align-items: center; gap: var(--space-2); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--header-h, 72px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2.25rem;
  position: relative;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(11,42,85,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,42,85,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 6.95fr 5.05fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-inner { max-width: 780px; }
.hero .hero-inner { max-width: 700px; }

.hero h1 { margin-bottom: 0.5em; font-size: clamp(2.3rem, 5.5vw + 1rem, 4.6rem); line-height: 1.05; white-space: nowrap; }
.hero .lede { font-size: clamp(1.05rem, 0.35vw + 0.95rem, 1.3rem); }
.hero .btn-row { flex-wrap: nowrap; }

/* =========================================================
   Hero visual — ERP / CRM / eCommerce mock application panels
   Real HTML/CSS/SVG only. No images, no canvas.
   ========================================================= */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 0.95 / 1;
  justify-self: end;
}
.hero-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.hero-panel {
  position: absolute;
  width: 52.5%;
  height: 47%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(11, 42, 85, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.panel-erp {
  left: 0%; top: -3%; z-index: 1;
  box-shadow: 0 2px 3px rgba(11, 42, 85, 0.05), 0 8px 16px rgba(11, 42, 85, 0.08);
}
.panel-crm {
  left: 47.5%; top: 20%; z-index: 2;
  box-shadow: 0 4px 8px rgba(11, 42, 85, 0.08), 0 18px 34px rgba(11, 42, 85, 0.14);
}
.panel-ecom {
  left: 37%; top: 58.5%; z-index: 3;
  box-shadow: 0 8px 14px rgba(11, 42, 85, 0.12), 0 30px 50px -8px rgba(11, 42, 85, 0.22);
}

.panel-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 0.6em;
  background: linear-gradient(180deg, rgba(11, 42, 85, 0.015), transparent);
  border-bottom: 1px solid rgba(11, 42, 85, 0.06);
  flex-shrink: 0;
}
.panel-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(11, 42, 85, 0.06); }
.panel-name { font-size: 0.78rem; font-weight: 700; color: var(--navy); white-space: nowrap; letter-spacing: -0.01em; }
.panel-actions { margin-left: auto; display: flex; align-items: center; gap: 0.4em; color: var(--ink-faint); }
.panel-icon-sm { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-avatar {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--navy);
  font-size: 0.44rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-body { display: flex; flex: 1; min-height: 0; }
.panel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.18em;
  padding: 0.5em 0.4em;
  border-right: 1px solid rgba(11, 42, 85, 0.06);
  background: rgba(11, 42, 85, 0.012);
  flex-shrink: 0;
  width: 30%;
}
.side-icon {
  display: flex;
  align-items: center;
  gap: 0.35em;
  color: var(--ink-faint);
  padding: 0.24em 0.3em;
  border-radius: 5px;
  font-size: 0.42rem;
  font-weight: 600;
  white-space: nowrap;
}
.side-icon svg { width: 9px; height: 9px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-icon em { font-style: normal; }
.side-icon.active { color: var(--blue-deep); background: var(--surface); box-shadow: 0 1px 2px rgba(11, 42, 85, 0.08); }

.panel-main {
  flex: 1;
  min-width: 0;
  padding: 0.45em 0.5em;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  overflow: hidden;
}

/* Shared: KPI row (all three panels) */
.panel-kpi-row { display: flex; gap: 0.3em; }
.panel-kpi {
  flex: 1;
  min-width: 0;
  background: var(--surface-tint);
  border: 1px solid rgba(11, 42, 85, 0.05);
  border-radius: 6px;
  padding: 0.3em 0.35em;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
}
.panel-kpi-value { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 0.67rem; color: var(--navy); white-space: nowrap; }
.panel-kpi-label { font-size: 0.4rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-faint); font-weight: 600; }
.panel-kpi-trend { font-size: 0.4rem; font-weight: 700; }
.panel-kpi-trend.up { color: #05806a; }
.panel-chart-label { font-size: 0.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-faint); }

/* ERP + eCommerce: line chart */
.panel-linechart { width: 100%; height: auto; display: block; flex-shrink: 0; }
.chart-line.erp { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.chart-area.erp { fill: var(--blue); opacity: 0.08; }
.chart-line.ecom { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.chart-area.ecom { fill: var(--teal); opacity: 0.08; }

/* CRM: pipeline funnel — horizontal decreasing bars */
.funnel-bars { display: flex; flex-direction: column; gap: 0.2em; }
.funnel-row { display: flex; align-items: center; gap: 0.35em; }
.funnel-label { width: 4.8em; flex-shrink: 0; font-size: 0.4rem; font-weight: 600; color: var(--ink-soft); }
.funnel-track { flex: 1; height: 8px; background: rgba(11, 42, 85, 0.05); border-radius: 3px; overflow: hidden; }
.funnel-bar { display: block; height: 100%; background: var(--lime); border-radius: 3px; }
.funnel-value { width: 2.4em; flex-shrink: 0; text-align: right; font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 0.42rem; color: var(--navy); }

/* ERP: inventory table */
.panel-table { width: 100%; border-collapse: collapse; font-size: 0.42rem; }
.panel-table th { text-align: left; color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.36rem; padding: 0.15em 0.2em; border-bottom: 1px solid rgba(11, 42, 85, 0.07); }
.panel-table td { padding: 0.2em 0.2em; color: var(--ink-soft); border-bottom: 1px solid rgba(11, 42, 85, 0.045); white-space: nowrap; }
.status-pill { display: inline-block; padding: 0.08em 0.45em; border-radius: 999px; font-size: 0.34rem; font-weight: 700; }
.status-pill.ok { background: rgba(0, 168, 136, 0.12); color: #05806a; }
.status-pill.warn { background: rgba(230, 160, 30, 0.15); color: #9c6a0a; }

/* CRM + eCommerce: compact list */
.panel-list { display: flex; flex-direction: column; }
.panel-list li {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.42rem;
  color: var(--ink-soft);
  padding: 0.18em 0;
  border-bottom: 1px solid rgba(11, 42, 85, 0.05);
  white-space: nowrap;
  overflow: hidden;
}
.panel-list li span { overflow: hidden; text-overflow: ellipsis; }
.panel-list li em { margin-left: auto; font-style: normal; color: var(--navy); font-weight: 700; flex-shrink: 0; }

.hero-page {
  padding-block: var(--space-6) var(--space-5);
}
.hero-page .eyebrow { margin-bottom: var(--space-2); }

/* =========================================================
   Core Capabilities — Enterprise Dashboard Modules
   Real HTML/CSS/SVG only. No images, no canvas.
   ========================================================= */
.capability-showcase { position: relative; overflow: hidden; }
.capability-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(11, 42, 85, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 42, 85, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}
.capability-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.28; pointer-events: none; }
.capability-glow-a { top: -8%; left: -6%; width: 320px; height: 320px; background: var(--blue); }
.capability-glow-b { bottom: -12%; right: -6%; width: 300px; height: 300px; background: var(--teal); }
.capability-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.3;
  animation: cap-particle-float 9s ease-in-out infinite;
}
.capability-particle.p1 { top: 12%; left: 22%; background: var(--blue); animation-duration: 8s; }
.capability-particle.p2 { top: 30%; left: 82%; background: var(--teal); animation-duration: 10s; animation-delay: 1s; }
.capability-particle.p3 { top: 62%; left: 6%; background: var(--lime); animation-duration: 9s; animation-delay: 2s; }
.capability-particle.p4 { top: 78%; left: 60%; background: var(--blue); animation-duration: 11s; animation-delay: 0.6s; }
.capability-particle.p5 { top: 46%; left: 46%; background: var(--teal); animation-duration: 9.5s; animation-delay: 1.5s; }
@keyframes cap-particle-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(6px); }
}
.cap-icon-defs, .diff-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.capability-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}
.capability-module {
  grid-column: span 12;
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(11, 42, 85, 0.07);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.6s ease;
}
.capability-module.is-visible { opacity: 1; transform: translateY(0); }
.capability-module:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(11, 42, 85, 0.25), 0 10px 24px rgba(11, 42, 85, 0.1);
  border-color: rgba(17, 112, 214, 0.25);
}
.mod-crm { transition-delay: 0.08s; }
.mod-integration { transition-delay: 0.16s; }
.mod-analytics { transition-delay: 0.08s; }
.mod-ecommerce { transition-delay: 0.16s; }
.mod-managed { transition-delay: 0.24s; }

@media (min-width: 981px) {
  .mod-erp { grid-column: span 7; }
  .mod-crm { grid-column: span 5; }
  .mod-integration { grid-column: span 12; }
  .mod-analytics, .mod-ecommerce, .mod-managed { grid-column: span 4; }
}

.cap-head { display: flex; gap: 0.9rem; margin-bottom: var(--space-3); position: relative; z-index: 1; }
.cap-icon-badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.capability-module:hover .cap-icon-badge { transform: scale(1.06); }
.badge-blue { background: rgba(17, 112, 214, 0.12); color: var(--blue-deep); }
.badge-lime { background: rgba(111, 181, 44, 0.14); color: #4a7a1e; }
.badge-teal { background: rgba(0, 168, 136, 0.12); color: #05806a; }
.cap-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cap-icon-sm { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cap-head h3 { font-size: 1.05rem; margin-bottom: 0.3em; color: var(--navy); }
.cap-head p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0; }
.cap-viz { position: relative; z-index: 1; }

/* ERP — lifecycle stage tracker */
.lifecycle-track { position: relative; height: 4px; background: rgba(11, 42, 85, 0.08); border-radius: 999px; margin: 1.4rem 0 0.9rem; overflow: hidden; }
.lifecycle-fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 999px; transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.mod-erp.is-visible .lifecycle-fill { width: 100%; }
.lifecycle-stages { display: flex; justify-content: space-between; }
.lifecycle-stage { display: flex; flex-direction: column; align-items: center; gap: 0.35em; font-size: 0.72rem; font-weight: 600; color: var(--ink-faint); }
.stage-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); transition: background 0.3s ease, border-color 0.3s ease; }
.lifecycle-stage.is-passed .stage-dot, .lifecycle-stage.is-active .stage-dot { background: var(--blue); border-color: var(--blue); }
.lifecycle-stage.is-active { color: var(--blue-deep); }

/* CRM — customer lifecycle journey */
.journey-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-faint); margin-bottom: 0.7em; display: block; }
.journey-track { position: relative; display: flex; justify-content: space-between; padding-top: 0.6rem; margin-bottom: 1rem; }
.journey-track::before { content: ""; position: absolute; top: calc(0.6rem + 4px); left: 5%; right: 5%; height: 2px; background: var(--border); }
.journey-progress { position: absolute; top: calc(0.6rem + 4px); left: 5%; height: 2px; width: 0%; background: linear-gradient(90deg, var(--lime), var(--teal)); transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.mod-crm.is-visible .journey-progress { width: 90%; }
.journey-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4em; font-size: 0.68rem; font-weight: 600; color: var(--ink-faint); }
.journey-node::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.journey-node.is-passed::before, .journey-node.is-current::before { background: var(--lime); border-color: var(--lime); }
.journey-node.is-current { color: #4a7a1e; }

/* System Integration — connection diagram */
.integration-diagram { position: relative; min-height: 190px; }
.integration-svg { width: 100%; height: auto; display: block; }
.int-line { fill: none; stroke: url(#int-grad); stroke-width: 1.6; opacity: 0.55; stroke-linecap: round; }
.int-packet { opacity: 0; transition: opacity 0.4s ease 0.6s; }
.mod-integration.is-visible .int-packet { opacity: 1; }
.packet-blue { fill: var(--blue); filter: drop-shadow(0 0 3px rgba(17, 112, 214, 0.7)); }
.packet-lime { fill: var(--lime); filter: drop-shadow(0 0 3px rgba(111, 181, 44, 0.7)); }
.packet-teal { fill: var(--teal); filter: drop-shadow(0 0 3px rgba(0, 168, 136, 0.7)); }
.packet-ink { fill: var(--ink-faint); filter: drop-shadow(0 0 3px rgba(122, 132, 150, 0.6)); }
.int-node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 0.4em; font-size: 0.92rem; font-weight: 700; white-space: nowrap; transform: translate(-50%, -50%); }
.int-node-erp { top: 25%; left: 14.5%; color: var(--blue-deep); }
.int-node-crm { top: 75%; left: 14.5%; color: #4a7a1e; }
.int-node-ecom { top: 25%; left: 85.5%; color: #05806a; }
.int-node-custom { top: 75%; left: 85.5%; color: var(--ink-soft); }
.int-node-hub {
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}

/* Shared — honest capability feature list (replaces fabricated stats/charts) */
.cap-feature-list { display: flex; flex-direction: column; gap: 0.6em; margin-top: 1.1rem; }
.cap-feature-item { display: flex; align-items: center; gap: 0.6em; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.cap-feature-item .cap-icon-sm { flex-shrink: 0; color: var(--teal); width: 17px; height: 17px; }

/* Managed Services — status monitor */
.status-list { display: flex; flex-direction: column; gap: 0.5em; margin-bottom: 0.9rem; }
.status-list li { display: flex; align-items: center; gap: 0.6em; font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.status-list em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 0.72rem; color: #4a7a1e; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex-shrink: 0; animation: status-pulse 2.4s ease-in-out infinite; }
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 181, 44, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(111, 181, 44, 0); }
}

/* ---------- Stage tracker — reusable horizontal process visual ----------
   Used across content pages in place of the generic .tpl-timeline dot-list,
   inspired by the Core Capabilities lifecycle-bar pattern above. Page-scoped
   content, shared shell. */
.stage-tracker { margin-block: var(--space-4) var(--space-2); }
.stage-track { position: relative; height: 4px; background: rgba(11, 42, 85, 0.08); border-radius: 999px; margin-bottom: 1.8rem; overflow: hidden; }
.stage-fill { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, var(--blue), var(--teal) 60%, var(--lime)); border-radius: 999px; }
.stage-list { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.stage-item { flex: 1 1 0; min-width: 160px; text-align: center; }
.stage-item .stage-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); margin-bottom: 0.7em; box-shadow: 0 0 0 4px rgba(17, 112, 214, 0.12); }
.stage-item h4 { font-size: 0.95rem; margin-bottom: 0.3em; color: var(--navy); }
.stage-item p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Icon-badge slot — reuses the Core Capabilities icon-badge/sprite
   technique on .card / .check-tile elsewhere on the site ---------- */
.card:hover .cap-icon-badge, .check-tile:hover .cap-icon-badge, .simple-card:hover .cap-icon-badge { transform: scale(1.06); }
.card .cap-icon-badge, .check-tile .cap-icon-badge, .simple-card .cap-icon-badge { margin-bottom: var(--space-2); }

/* ---------- About: mission flow + platform chips ---------- */
.mission-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.9rem; margin-top: var(--space-4); }
.mission-node { display: flex; flex-direction: column; align-items: center; gap: 0.5em; font-size: 0.78rem; font-weight: 700; color: var(--navy); max-width: 110px; text-align: center; }
.mission-node .cap-icon-badge { width: 52px; height: 52px; }
.mission-plus, .mission-arrow { font-size: 1.3rem; font-weight: 700; color: var(--ink-faint); flex-shrink: 0; }
.mission-hub em { color: var(--blue-deep); }

.platform-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-3); }
.platform-chip { padding: 0.4em 0.9em; border-radius: 999px; background: var(--surface-tint); border: 1px solid var(--border); font-size: 0.82rem; font-weight: 600; color: var(--navy); }

/* ---------- Section-fill decorative panels ---------- */
.section-fill { display: grid; grid-template-columns: 1fr; }
.mission-emblem, .platform-stack, .factory-scene { display: none; }

@media (min-width: 981px) {
  .section-fill { grid-template-columns: minmax(0, 640px) 1fr; column-gap: var(--space-6); align-items: center; }
  .section-fill > .section-head { margin-bottom: 0; }

  .mission-emblem { display: flex; align-items: center; justify-content: center; }
  .tile-cube { width: 100%; max-width: 220px; margin-inline: auto; text-align: center; }
  .tile-cube svg { display: block; width: 100%; height: auto; margin-inline: auto; }
  .tile-shadow { fill: rgba(11, 42, 85, 0.08); }
  .tile-face {
    stroke: var(--bg);
    stroke-width: 2;
    stroke-linejoin: round;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .tile-top { fill: var(--blue); transform: translate(0, -34px) rotate(-7deg); }
  .tile-left { fill: var(--lime); transform: translate(-38px, 20px) rotate(9deg); }
  .tile-right { fill: var(--teal); transform: translate(38px, 20px) rotate(-9deg); }
  .tile-cube.is-assembled .tile-face { transform: none; }
  .tile-cube.is-assembled .tile-left { transition-delay: 0.05s; }
  .tile-cube.is-assembled .tile-right { transition-delay: 0.15s; }
  .tile-cube.is-assembled .tile-top { transition-delay: 0.28s; }
  .tile-label {
    margin-top: 0.6em;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.25;
  }
  @media (prefers-reduced-motion: reduce) {
    .tile-face { transition: none !important; transform: none !important; }
  }

  .platform-stack { display: block; position: relative; height: 220px; }
  .platform-stub {
    position: absolute;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    padding: var(--space-3) var(--space-4);
    background: var(--surface);
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-weight: 700;
    text-align: center;
    color: var(--navy);
  }
  .platform-stub-blue { top: 0; transform: translateX(-24px) rotate(-5deg); z-index: 1; border-color: rgba(17, 112, 214, 0.35); }
  .platform-stub-lime { top: 60px; transform: translateX(18px) rotate(3deg); z-index: 2; border-color: rgba(111, 181, 44, 0.4); }
  .platform-stub-teal { top: 120px; transform: translateX(-10px) rotate(-2deg); z-index: 3; border-color: rgba(0, 168, 136, 0.4); }

  .factory-scene { display: block; position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
  .factory-illustration { display: block; width: 100%; height: auto; }
  .factory-illustration .fl-f1 { fill-opacity: 0.03; }
  .factory-illustration .fl-f2 { fill-opacity: 0.07; }
  .factory-illustration .fl-f3 { fill-opacity: 0.1; }
  .factory-lens {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2.5px solid var(--blue);
    background: radial-gradient(circle, rgba(17, 112, 214, 0.18), rgba(17, 112, 214, 0.02) 70%);
    box-shadow: 0 0 0 4px rgba(17, 112, 214, 0.08);
    transition: left 1.1s cubic-bezier(0.65, 0, 0.35, 1), top 1.1s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
  }
  .factory-callout {
    position: absolute;
    transform: translate(-50%, 0);
    background: var(--surface);
    border: 1px solid rgba(11, 42, 85, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 0.5em 0.8em;
    min-width: 160px;
    text-align: center;
    transition: left 1.1s cubic-bezier(0.65, 0, 0.35, 1), top 1.1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
    pointer-events: none;
  }
  .factory-callout strong { display: block; font-size: 1.02rem; color: var(--navy); }
  .factory-callout span { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.15em; line-height: 1.3; }
  .factory-callout.is-fading { opacity: 0; }
  .factory-lens.c-lime { border-color: var(--lime); background: radial-gradient(circle, rgba(111, 181, 44, 0.2), rgba(111, 181, 44, 0.02) 70%); box-shadow: 0 0 0 4px rgba(111, 181, 44, 0.09); }
  .factory-lens.c-teal { border-color: var(--teal); background: radial-gradient(circle, rgba(0, 168, 136, 0.2), rgba(0, 168, 136, 0.02) 70%); box-shadow: 0 0 0 4px rgba(0, 168, 136, 0.09); }
  .factory-callout.c-blue strong { color: var(--blue-deep); }
  .factory-callout.c-lime strong { color: #4a7a1e; }
  .factory-callout.c-teal strong { color: #067a63; }
}
@media (prefers-reduced-motion: reduce) {
  .factory-lens, .factory-callout { transition: none; }
}

@media (max-width: 700px) {
  .stage-track { display: none; }
  .stage-list { flex-direction: column; align-items: stretch; gap: var(--space-4); }
  .stage-item { text-align: left; display: flex; gap: 0.8em; align-items: flex-start; }
  .stage-item .stage-dot { margin-top: 0.35em; margin-bottom: 0; flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .capability-module { opacity: 1 !important; transform: none !important; transition: none !important; }
  .capability-particle { animation: none !important; }
  .lifecycle-fill { width: 100% !important; transition: none !important; }
  .journey-progress { width: 90% !important; transition: none !important; }
  .int-packet { opacity: 0 !important; }
  .status-dot { animation: none !important; }
  .nav-links, .dropdown, .nav-caret { transition: none !important; }
}

/* ---------- Trust strip (stat bar) ---------- */
.trust-strip { padding-top: var(--space-4); }
.trust-accent {
  width: 96px;
  height: 3px;
  margin: 0 auto var(--space-4);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--lime) 100%);
}
.trust-accent.trust-accent-bottom { margin-top: var(--space-5); margin-bottom: 0; }
.trust-copy {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  color: var(--navy);
  font-size: clamp(1.15rem, 1vw + 0.95rem, 1.4rem);
  line-height: 1.4;
  margin-bottom: var(--space-4);
}

.stat-bar {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 820px;
  margin-inline: auto;
}
.stat-bar .stat {
  flex: 1 1 0;
  min-width: 180px;
  text-align: center;
  padding-inline: var(--space-4);
  border-left: 1px solid var(--border);
}
.stat-bar .stat:first-child { border-left: none; }
.stat-bar .stat-num {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 2vw + 1rem, 2.6rem);
  color: var(--navy);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: calc(clamp(2rem, 2vw + 1rem, 2.6rem) * 1.3);
  margin-bottom: 0.2em;
  white-space: nowrap;
}
.stat-bar .stat-num.text-stat { font-size: clamp(1.3rem, 1.2vw + 1rem, 1.7rem); }
.stat-bar .stat-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}
/* ---------- Our Clients (marquee) ---------- */
.clients-strip { padding-block: var(--space-5); }
.clients-eyebrow { justify-content: center; margin-bottom: var(--space-4); text-align: center; display: flex; font-size: 1.05rem; }
.client-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: var(--space-7);
  animation: marquee-scroll 22s linear infinite;
}
.client-marquee:hover .marquee-track,
.client-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
.marquee-logo {
  flex-shrink: 0;
  height: 44px;
  display: flex;
  align-items: center;
}
.marquee-logo img {
  height: 100%;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(45%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.marquee-logo:hover img {
  opacity: 1;
  filter: grayscale(0%);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Support: coverage arc gauge ---------- */
.coverage-gauge { display: flex; flex-direction: column; align-items: center; gap: 0.5em; margin-top: var(--space-3); }
.coverage-gauge svg { width: 130px; height: auto; }
.coverage-track { fill: none; stroke: var(--border); stroke-width: 8; stroke-linecap: round; }
.coverage-fill { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 132; }
.coverage-fill-standard { stroke: var(--blue); stroke-dashoffset: 79; }
.coverage-fill-full { stroke: var(--teal); stroke-dashoffset: 4; }
.coverage-caption { font-size: 0.78rem; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Outsourcing: back-office process flow ---------- */
.process-flow { display: flex; align-items: stretch; gap: var(--space-3); overflow-x: auto; padding-bottom: 0.5rem; }
.flow-stage { flex: 1 1 220px; min-width: 220px; background: var(--surface-tint); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); }
.flow-stage-head { display: flex; align-items: center; gap: 0.6em; margin-bottom: var(--space-2); }
.flow-stage-head .cap-icon-badge { width: 36px; height: 36px; margin-bottom: 0; }
.flow-stage-head h3 { font-size: 1rem; margin-bottom: 0; }
.flow-item { padding-block: 0.6em; border-top: 1px solid var(--border); }
.flow-item:first-of-type { border-top: none; }
.flow-item h4 { font-size: 0.9rem; margin-bottom: 0.2em; color: var(--navy); }
.flow-item p { font-size: 0.82rem; margin-bottom: 0; color: var(--ink-soft); }
.flow-arrow { align-self: center; font-size: 1.4rem; font-weight: 700; color: var(--ink-faint); flex-shrink: 0; }
@media (max-width: 700px) {
  .process-flow { flex-direction: column; overflow-x: visible; }
  .flow-arrow { display: none; }
}

/* ---------- Outsourcing: fit-check badges ---------- */
.fit-check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.fit-check-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6em;
  background: var(--surface);
  border: 1px solid rgba(11, 42, 85, 0.06);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.fit-check-item p { margin: 0; font-size: 0.92rem; color: var(--ink); font-weight: 500; }
@media (max-width: 700px) {
  .fit-check-grid { grid-template-columns: 1fr; }
}

/* ---------- Generic two-column content grid (Services sub-pages) ---------- */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
@media (max-width: 700px) {
  .two-col-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ---------- Manifesto split panel (Our Approach / Our Promise) ---------- */
.manifesto {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto auto;
  background: linear-gradient(to right, rgba(17, 112, 214, 0.035) 50%, rgba(111, 181, 44, 0.05) 50%);
  border: 1px solid rgba(11, 42, 85, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.manifesto-divider {
  position: absolute;
  top: var(--space-5);
  bottom: var(--space-5);
  left: 50%;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}
.manifesto-half {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / -1;
  padding: var(--space-6) var(--space-5);
}
.manifesto-approach { grid-column: 1; }
.manifesto-promise { grid-column: 2; }
.manifesto-tab {
  grid-row: 1;
  align-self: start;
  margin: 0 0 var(--space-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.manifesto-approach .manifesto-tab { color: var(--blue-deep); }
.manifesto-promise .manifesto-tab { color: #4a7a1e; }
.manifesto-half h2 { grid-row: 2; align-self: start; margin: 0 0 0.5em; max-width: 640px; }
.manifesto-lead {
  grid-row: 3;
  align-self: start;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 0.7em;
  max-width: 640px;
}
.manifesto-body { grid-row: 4; align-self: start; margin: 0; color: var(--ink-soft); max-width: 640px; }
.manifesto-footnote {
  grid-row: 5;
  align-self: end;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid rgba(11, 42, 85, 0.06);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card h3 { margin-bottom: 0.4em; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* ---------- Values ledger ---------- */
.values-ledger {
  display: flex;
  flex-direction: column;
}
.value-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--border);
  outline: none;
}
.value-row:first-child { border-top: none; padding-top: 0; }
.value-row:last-child { padding-bottom: 0; }
.value-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ink-faint);
  transition: color 0.35s ease;
}
.value-row-blue:hover .value-num, .value-row-blue:focus .value-num { color: var(--blue-deep); }
.value-row-teal:hover .value-num, .value-row-teal:focus .value-num { color: var(--teal); }
.value-row-lime:hover .value-num, .value-row-lime:focus .value-num { color: #4a7a1e; }
.value-row-navy:hover .value-num, .value-row-navy:focus .value-num { color: var(--navy); }
.value-copy h3 { margin-bottom: 0.3em; color: var(--navy); }
.value-copy p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Ecosystem phase tabs ---------- */
.eco-tabs { margin-top: var(--space-2); }
.eco-tab-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-5);
}
.eco-tab {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}
.eco-tab:hover { color: var(--navy); }
.eco-tab.is-active { color: var(--blue-deep); }
.eco-tab-indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.eco-panels { display: grid; }
.eco-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.eco-panel.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.eco-panel p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68ch;
  margin: 0;
}

/* ---------- Leadership profiles ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.leader-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.leader-mono {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
}
.leader-mono-blue { background: rgba(17, 112, 214, 0.1); }
.leader-mono-teal { background: rgba(0, 168, 136, 0.1); }
.leader h3 { margin-bottom: 0.35em; }
.leader-role {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.leader-role-blue { background: rgba(17, 112, 214, 0.1); color: var(--blue-deep); }
.leader-role-teal { background: rgba(0, 168, 136, 0.1); color: #067a63; }
.leader p { margin: 0; color: var(--ink-soft); }
.team-note {
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px dashed var(--border);
}
.team-note .eyebrow { justify-content: center; margin-bottom: var(--space-2); }
.team-note p:last-child { max-width: 62ch; margin-inline: auto; margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Engagement accordion ---------- */
.engage-steps {
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--border);
}
.engage-step { border-bottom: 1px solid var(--border); }
.engage-step summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-4);
}
.engage-step summary::-webkit-details-marker { display: none; }
.engage-num {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink-faint);
  width: 2.4rem;
  transition: color 0.3s ease;
}
.engage-step summary h4 {
  flex: 1;
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  transition: color 0.3s ease;
}
.engage-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.engage-step[open] .engage-chevron { transform: rotate(-135deg); }
.engage-step[open] .engage-num,
.engage-step[open] summary h4 { color: var(--blue-deep); }
.engage-body {
  margin: 0 0 var(--space-4) calc(2.4rem + var(--space-3));
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- Process matrix ---------- */
.process-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.process-cell {
  padding: var(--space-5) var(--space-4);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: background-color 0.3s ease;
}
.process-cell:hover, .process-cell:focus { background: rgba(17, 112, 214, 0.035); }
.process-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--ink-faint);
  margin-bottom: 0.4em;
}
.process-cell h3 { margin-bottom: 0.35em; color: var(--navy); }
.process-cell p { margin: 0; color: var(--ink-soft); }

/* ---------- Service index ---------- */
.service-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-6);
  row-gap: var(--space-6);
}
.service-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid currentColor;
}
.service-group-blue .service-group-label { color: var(--blue-deep); }
.service-group-teal .service-group-label { color: #067a63; }
.service-group-lime .service-group-label { color: #4a7a1e; }
.service-group-navy .service-group-label { color: var(--navy); }
.service-entry { padding-block: var(--space-3); border-top: 1px solid var(--border); }
.service-entry:first-of-type { border-top: none; padding-top: 0; }
.service-entry h4 { margin-bottom: 0.3em; color: var(--navy); font-size: 1.12rem; }
.service-entry p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Engagement ghost-numeral steps ---------- */
.engagement-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  text-align: center;
}
.engagement-step { position: relative; padding-top: var(--space-4); }
.engagement-ghost {
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 7rem;
  line-height: 1;
  color: var(--navy);
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.engagement-step h4, .engagement-step p { position: relative; z-index: 1; }
.engagement-step h4 { margin-bottom: 0.4em; color: var(--navy); }
.engagement-step p { margin: 0; color: var(--ink-soft); max-width: 34ch; margin-inline: auto; }

/* ---------- Fit self-assessment checklist ---------- */
.fit-quiz {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 720px;
  margin-inline: auto;
}
.fit-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.fit-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.fit-check-mark {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0.1em;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.fit-check-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.2s ease;
}
.fit-check-input:focus-visible ~ .fit-check-mark {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.fit-check-input:checked ~ .fit-check-mark::after { transform: rotate(-45deg) scale(1); }
.fit-option-blue:has(.fit-check-input:checked) { border-color: var(--blue-deep); background: rgba(17, 112, 214, 0.045); }
.fit-option-blue .fit-check-input:checked ~ .fit-check-mark { background: var(--blue-deep); border-color: var(--blue-deep); }
.fit-option-teal:has(.fit-check-input:checked) { border-color: #067a63; background: rgba(0, 168, 136, 0.06); }
.fit-option-teal .fit-check-input:checked ~ .fit-check-mark { background: #067a63; border-color: #067a63; }
.fit-option-lime:has(.fit-check-input:checked) { border-color: #4a7a1e; background: rgba(111, 181, 44, 0.07); }
.fit-option-lime .fit-check-input:checked ~ .fit-check-mark { background: #4a7a1e; border-color: #4a7a1e; }
.fit-option-text { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }

/* ---------- Method steps (ordinal-word) ---------- */
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.method-order {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}
.method-order::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 0.6em;
  background: currentColor;
  opacity: 0.55;
}
.method-step-blue .method-order { color: var(--blue-deep); }
.method-step-teal .method-order { color: #067a63; }
.method-step-lime .method-order { color: #4a7a1e; }
.method-step h4 { margin-bottom: 0.4em; color: var(--navy); }
.method-step p { margin: 0; color: var(--ink-soft); }

/* ---------- Hiring process conversation thread ---------- */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 640px;
  margin-inline: auto;
}
.chat-bubble {
  position: relative;
  max-width: 78%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
}
.chat-bubble h4 { margin: 0 0 0.3em; color: var(--navy); }
.chat-bubble p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.chat-bubble-left { align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble-right { align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid transparent;
}
.chat-bubble-left::after { left: 22px; }
.chat-bubble-right::after { right: 22px; }
.chat-bubble-blue { background: rgba(17, 112, 214, 0.08); }
.chat-bubble-blue::after { border-top-color: rgba(17, 112, 214, 0.08); }
.chat-bubble-teal { background: rgba(0, 168, 136, 0.08); }
.chat-bubble-teal::after { border-top-color: rgba(0, 168, 136, 0.08); }
.chat-bubble-lime { background: rgba(111, 181, 44, 0.09); }
.chat-bubble-lime::after { border-top-color: rgba(111, 181, 44, 0.09); }
.chat-bubble-navy { background: rgba(11, 42, 85, 0.07); }
.chat-bubble-navy::after { border-top-color: rgba(11, 42, 85, 0.07); }

/* ---------- Inbox thread (what happens after you reach out) ---------- */
.inbox-thread {
  max-width: 680px;
  margin-inline: auto;
  border-top: 1px solid var(--border);
}
.inbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease;
}
.inbox-row:hover { background: var(--surface-tint); }
.inbox-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.45em;
}
.inbox-dot-blue { background: var(--blue); }
.inbox-dot-teal { background: var(--teal); }
.inbox-dot-lime { background: var(--lime); }
.inbox-body { flex: 1; min-width: 0; }
.inbox-body h4 { margin: 0 0 0.25em; color: var(--navy); }
.inbox-body p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.inbox-when {
  flex-shrink: 0;
  margin-top: 0.32em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ---------- Expanding reason row ---------- */
.reason-hint, .fit-hint {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--ink-faint);
  opacity: 0.75;
  margin: 0 0 var(--space-2);
}
.reason-hint { text-align: right; }
.fit-hint { text-align: center; }
.reason-row {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.reason-seg {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  min-height: 320px;
  padding: var(--space-6) var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  outline: none;
  will-change: flex-grow;
  transition: flex-grow 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reason-seg + .reason-seg { border-left: 1px solid rgba(11, 42, 85, 0.05); }
.reason-seg-blue { background: rgba(17, 112, 214, 0.06); }
.reason-seg-teal { background: rgba(0, 168, 136, 0.06); }
.reason-seg-lime { background: rgba(111, 181, 44, 0.07); }
.reason-seg-navy { background: rgba(11, 42, 85, 0.05); }
.reason-seg:hover, .reason-seg:focus {
  flex-grow: 2.35;
}
.reason-index {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--navy);
  opacity: 0.28;
  margin-bottom: var(--space-2);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reason-seg:hover .reason-index, .reason-seg:focus .reason-index { opacity: 0.4; }
.reason-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--navy);
}
.reason-desc-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reason-seg:hover .reason-desc-wrap, .reason-seg:focus .reason-desc-wrap {
  grid-template-rows: 1fr;
}
.reason-desc {
  margin: 0.6em 0 0;
  overflow: hidden;
  min-height: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reason-seg:hover .reason-desc, .reason-seg:focus .reason-desc {
  opacity: 1;
}

/* ---------- Stepper / process ---------- */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  position: relative;
}
.stepper.steps-3 { grid-template-columns: repeat(3, 1fr); }
.stepper.vertical {
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.stepper.vertical .step {
  border-top: none;
  border-left: 2px solid var(--border-strong);
  padding-top: 0;
  padding-left: var(--space-3);
}

.step {
  border-top: 2px solid var(--border-strong);
  padding-top: var(--space-2);
}
.step .num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--blue-deep);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.3em;
}
.step h4 { margin-bottom: 0.35em; }
.step p { font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Timeline-Rail (steps, full-width connected) ---------- */
.tpl-timeline {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 22px;
  bottom: calc(-1 * var(--space-5));
  width: 2px;
  background: var(--border-strong);
}
.timeline-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--navy);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: 0.2em;
}
.timeline-marker::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--navy);
}
.timeline-body { padding-top: 0; }
.timeline-body h4 { margin-bottom: 0.35em; }
.timeline-body p { margin-bottom: 0; }

/* ---------- Quote-Feature (testimonials) ---------- */
.testimonial-carousel {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
  display: grid;
}
.quote-slide {
  grid-area: 1 / 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.quote-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.quote-slide blockquote {
  text-align: left;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  color: var(--ink);
  line-height: 1.7;
  margin: 0 0 var(--space-4);
  max-width: 56ch;
}
.testimonial-signature {
  width: 100%;
  max-width: 56ch;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
}
.testimonial-signature .testimonial-person { justify-content: flex-start; }
.testimonial-signature .testimonial-person .name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.carousel-dots {
  grid-area: 2 / 1;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--space-5);
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.carousel-dot:hover { background: var(--blue); }
.carousel-dot.is-active { background: var(--blue-deep); transform: scale(1.25); }

/* ---------- Comparison-Split (Support tiers) ---------- */
.tpl-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 980px;
  margin-inline: auto;
}
.tpl-compare .tier { padding: var(--space-5) var(--space-4); }
.tpl-compare .tier h3 { font-size: clamp(1.4rem, 1vw + 1rem, 1.7rem); }

/* ---------- Checklist-Band (tile grid) ---------- */
.tpl-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.tpl-checklist-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tpl-checklist-grid.stack { grid-template-columns: 1fr; gap: var(--space-2); }
.check-tile {
  background: var(--surface);
  border: 1px solid rgba(11, 42, 85, 0.06);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.check-tile .mark {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.check-tile p { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: var(--space-2); }
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist .mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-top: 0.15em;
}
.checklist p { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.testimonial {
  background: var(--surface);
  border: 1px solid rgba(11, 42, 85, 0.06);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.testimonial blockquote {
  margin: 0 0 var(--space-3);
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.65;
}
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.testimonial-person img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-person .name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.testimonial-person .role { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Tags / pills ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface);
}

/* ---------- Industry profile blocks ---------- */
.industry-category { margin-bottom: var(--space-2); }
.industry-category h3 {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
  margin-bottom: var(--space-3);
}
.industry-category h3 .cap-icon-badge { width: 30px; height: 30px; margin-bottom: 0; }
.industry-category h3 .cap-icon { width: 16px; height: 16px; }
.cat-manufacturing .tag, .cat-regulated .tag, .cat-supply .tag { transition: border-color 0.2s ease, color 0.2s ease; }
.cat-manufacturing .tag { border-color: rgba(17, 112, 214, 0.35); color: var(--blue-deep); }
.cat-regulated .tag { border-color: rgba(0, 168, 136, 0.35); color: #05806a; }
.cat-supply .tag { border-color: rgba(111, 181, 44, 0.4); color: #4a7a1e; }

.profile {
  padding-block: var(--space-4);
  padding-left: var(--space-4);
  border-top: 1px solid var(--border);
  border-left: 3px solid transparent;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4);
}
.profile:first-of-type { border-top: none; }
.profile.cat-manufacturing { border-left-color: var(--blue); }
.profile.cat-regulated { border-left-color: var(--teal); }
.profile.cat-supply { border-left-color: var(--lime); }
.profile .cap-icon-badge { width: 40px; height: 40px; margin-bottom: 0.6rem; }
.profile .tag { margin-bottom: 0.75rem; display: inline-block; margin-left: 0.6em; }
.profile h3.title { font-size: 1.3rem; color: var(--navy); margin-bottom: 0.5em; text-transform: none; letter-spacing: 0; }
.profile .reality { color: var(--ink-soft); }
.profile .helps li {
  padding: 0.4rem 0;
  border: none;
  color: var(--ink);
  font-size: 0.96rem;
}
.profile .helps li::before { content: "— "; color: var(--blue-deep); font-weight: 700; }

/* ---------- Comparison tiers (Support page) ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.tier {
  border: 1px solid rgba(11, 42, 85, 0.06);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--surface);
}
.tier.premium { border-color: var(--blue); box-shadow: var(--shadow-md); }
.tier h3 { margin-bottom: 0.4em; }
.tier .tier-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
  font-weight: 700;
  margin-bottom: 0.5em;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(11, 42, 85, 0.07);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.cta-band:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(11, 42, 85, 0.25), 0 10px 24px rgba(11, 42, 85, 0.1);
  border-color: rgba(17, 112, 214, 0.25);
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
}
.cta-band h2 {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  color: var(--navy);
  margin-bottom: 0.4em;
}
.cta-band p {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}
.cta-band .btn-row {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: center;
}

@media (max-width: 700px) {
  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-band h2 { grid-column: 1; grid-row: 1; }
  .cta-band p { grid-column: 1; grid-row: 2; margin-inline: auto; }
  .cta-band .btn-row {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
    margin-top: var(--space-2);
  }
}

/* ---------- Subtle closing strip (Home CTA) ---------- */
.cta-attached { padding-bottom: 0; }
.cta-subtle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
  border-top: 1px solid var(--border);
}
.cta-subtle h2 {
  grid-column: 1;
  grid-row: 1;
  color: var(--navy);
  margin-bottom: 0.4em;
}
.cta-subtle p {
  grid-column: 1;
  grid-row: 2;
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}
.cta-subtle .btn-row {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: center;
}

@media (max-width: 700px) {
  .cta-subtle {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-subtle h2 { grid-column: 1; grid-row: 1; }
  .cta-subtle p { grid-column: 1; grid-row: 2; margin-inline: auto; }
  .cta-subtle .btn-row {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
    margin-top: var(--space-3);
  }
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.field-error {
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 500;
}
.form-status {
  margin-top: var(--space-3);
  font-size: 0.9rem;
  color: var(--ink-soft);
  min-height: 1.4em;
}

/* ---------- Info list (Contact page) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.info-item {
  border: 1px solid rgba(11, 42, 85, 0.06);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
}
.info-item-head { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.4em; }
.info-item-head .cap-icon-badge { width: 32px; height: 32px; margin-bottom: 0; }
.info-item-head .cap-icon { width: 16px; height: 16px; }
.info-item .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 0.3em;
  display: block;
}
.info-item .value { font-weight: 600; color: var(--navy); font-size: 1.02rem; }
.info-item a.value:hover { color: var(--blue); }

/* ---------- Category / role cards (Blog, Careers) ---------- */
.simple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.simple-card {
  border: 1px solid rgba(11, 42, 85, 0.06);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--surface);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.simple-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.simple-card h4 { margin-bottom: 0.3em; }
.simple-card p { font-size: 0.92rem; margin-bottom: 0; }

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  color: var(--ink-soft);
}

.signup-row {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin-top: var(--space-3);
}
.signup-row input {
  flex: 1;
  padding: 0.8em 1em;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: inherit;
}
.signup-row button {
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer-brand img { height: 40px; margin-bottom: var(--space-2); }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: var(--space-2);
}
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 0.92rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 981px) and (max-width: 1099px) {
  /* Text column is narrowest just above the tablet breakpoint; step the
     subhead down slightly so it still wraps to 3 lines instead of 4. */
  .hero .lede { font-size: 1rem; }
}
@media (min-width: 981px) and (max-width: 1199px) {
  /* Panel internals use fixed rem/px sizing, so below the container's max-width
     cap the shrinking box lets that fixed-size content eat a larger share of
     the panel, tightening the ERP/CRM clearance to almost nothing. Step the
     panels down slightly in this band to restore a safe content margin. */
  .hero-panel { width: 51%; height: 45.7%; }
  .panel-crm { left: 49%; }
  .panel-ecom { top: 68%; }
}

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .manifesto {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    background: none;
  }
  .manifesto-divider { display: none; }
  .manifesto-half {
    grid-column: 1;
    grid-template-rows: auto;
    grid-row: auto;
    padding: var(--space-5) var(--space-4);
  }
  .manifesto-approach { background: rgba(17, 112, 214, 0.035); }
  .manifesto-promise { background: rgba(111, 181, 44, 0.05); border-top: 1px solid var(--border); }
  .reason-row { flex-direction: column; }
  .reason-seg {
    flex: none;
    min-height: 0;
    padding: var(--space-4) var(--space-4);
  }
  .reason-seg + .reason-seg { border-left: none; border-top: 1px solid rgba(11, 42, 85, 0.05); }
  .reason-index { font-size: 1.35rem; margin-bottom: var(--space-1); }
  .reason-hint { display: none; }
  .reason-desc-wrap { grid-template-rows: 1fr; }
  .reason-desc {
    opacity: 1;
    overflow: visible;
  }
  .profile { grid-template-columns: 1fr; }
  .scene { grid-template-columns: 1fr; gap: var(--space-4); }
  .scene.reverse .scene-content { order: 0; }
  .tpl-compare { grid-template-columns: 1fr; }
  .tpl-checklist-grid, .tpl-checklist-grid.cols-3 { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-module { grid-column: span 1; }
  .mod-integration { grid-column: span 2; }
  .hero-grid-layout { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-visual { max-width: 600px; justify-self: center; }
}

@media (max-width: 980px) {
  /* Nav collapses to the hamburger menu starting at the tablet tier, not just
     phone widths — the full inline nav + logo + CTA button don't fit in the
     701-980px range (confirmed via measurement: ~118px overflow at 768px). */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    inset: var(--header-h, 72px) 0 0 0;
    background: var(--bg);
    padding: var(--space-3);
    overflow-y: auto;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }

  body.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  body.nav-open .nav-link { padding: 0.9rem 0.2rem; border-bottom: 1px solid var(--border); }
  body.nav-open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  body.nav-open .has-dropdown.dropdown-open .dropdown { max-height: 260px; }
  body.nav-open .nav-caret { transition: transform 0.2s ease; }
  body.nav-open .dropdown-open .nav-caret { transform: rotate(225deg) translateY(2px); }

  body.nav-open .nav-toggle span { transform: rotate(45deg); }
  body.nav-open .nav-toggle span::before { top: 0; transform: rotate(0deg); opacity: 0; }
  body.nav-open .nav-toggle span::after { top: 0; transform: rotate(90deg); }
}

@media (max-width: 700px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.cols-2 { grid-template-columns: 1fr; }
  .stepper, .stepper.steps-3 { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .value-row { grid-template-columns: 3rem 1fr; gap: var(--space-2); }
  .value-num { font-size: 1.6rem; }
  .eco-tab-nav { flex-direction: column; gap: 0; border-bottom: none; }
  .eco-tab { text-align: left; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
  .eco-tab-indicator { display: none; }
  .leader-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .engage-num { width: 1.8rem; font-size: 1.1rem; }
  .engage-body { margin-left: calc(1.8rem + var(--space-2)); }
  .chat-bubble { max-width: 88%; }
  .inbox-row { flex-wrap: wrap; }
  .inbox-when { order: 3; flex-basis: 100%; margin-left: calc(10px + var(--space-3)); margin-top: 0.3em; }
  .process-map { grid-template-columns: 1fr; }
  .process-cell { border-right: none; }
  .service-index { grid-template-columns: 1fr; row-gap: var(--space-5); }
  .engagement-steps { grid-template-columns: 1fr; gap: var(--space-6); }
  .engagement-ghost { font-size: 5rem; top: -0.9rem; }
  .fit-option { padding: var(--space-3); gap: var(--space-2); }
  .method-steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .simple-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.half { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .signup-row { flex-direction: column; }
  .stat-bar { flex-direction: column; gap: var(--space-3); }
  .stat-bar .stat { border-left: none; padding-inline: 0; }
  .trust-accent.trust-accent-bottom { margin-top: var(--space-4); }
  .marquee-track { gap: var(--space-5); }
  .marquee-logo { height: 36px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-module, .mod-integration { grid-column: span 1; }
  .card-grid.cols-4 { grid-template-columns: 1fr; }

  .hero .btn-row { flex-wrap: wrap; }

  .hero-visual {
    max-width: 460px;
    aspect-ratio: auto;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  .hero-panel {
    position: static;
    width: 100% !important;
    height: auto !important;
  }
}
