/* ==========================================================================
   Synapserve — design tokens
   Palette is lifted from the logo: coral + sky, and the indigo they make
   where they overlap. Ink is a deepened version of that overlap.
   ========================================================================== */
:root {
  --ink: #15173D;
  --ink-raised: #1F2255;
  --coral: #EC5A7A;
  --coral-strong: #CF3961;
  --sky: #3FB6F2;
  --indigo: #4655B0;
  --paper: #F4F6FB;
  --white: #FFFFFF;
  --mist: #E2E6F1;
  --text: #15173D;
  --muted: #565B80;
  --line: rgba(21, 23, 61, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --on-dark: #EEF0FA;
  --on-dark-muted: #A9AED3;

  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 168px);
  --radius-l: 28px;
  --radius-m: 16px;
  --radius-s: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--ink); border-radius: var(--radius-s); }
.skip:focus { top: 12px; }

section[id] { scroll-margin-top: 64px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* --- Type ---------------------------------------------------------------- */
.display-2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.section-lede {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  text-wrap: pretty;
}
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .section-lede { margin-top: 0; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-coral { background: var(--coral-strong); color: var(--white); }
.btn-coral:hover { background: #B92D53; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.32); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--mist); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--on-dark);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.site-header.is-solid {
  background: rgba(244, 246, 251, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .header-cta { background: var(--ink); color: var(--white); }
.site-header.is-solid .header-cta:hover { background: var(--ink-raised); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1; letter-spacing: 0.005em; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; opacity: .82; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 22px; height: 2px; margin: auto; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { padding: 8px var(--gutter) 24px; display: grid; gap: 4px; background: var(--paper); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 12px 0; text-decoration: none; font-family: var(--font-display); font-size: 1.6rem; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(720px, 100svh);
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 36px;
  background: radial-gradient(120% 90% at 78% 40%, #232766 0%, var(--ink) 58%);
  color: var(--on-dark);
  overflow: hidden;
}
.synapse { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(21,23,61,.92) 0%, rgba(21,23,61,.6) 36%, rgba(21,23,61,0) 62%),
              linear-gradient(0deg, rgba(21,23,61,.9) 0%, rgba(21,23,61,0) 28%); }
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.hero-status { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 6px 14px 6px 10px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 0.875rem; color: var(--on-dark-muted); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(63,182,242,.6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(63,182,242,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(63,182,242,0); } }

.hero-title {
  margin-top: 28px;
  max-width: 11.5em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.1rem, 7.4vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.018em;
  color: var(--white);
}
.hero-lede { margin-top: 28px; max-width: 46ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero-legend { margin-top: 56px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.legend-hint { font-size: 0.875rem; color: var(--on-dark-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border: 1px solid var(--line-dark); border-radius: 999px;
  background: rgba(255,255,255,.03); color: var(--on-dark); font-size: 0.875rem; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.legend button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--sky)); }
.legend button:hover, .legend button.is-hot { border-color: var(--dot); background: rgba(255,255,255,.08); }

/* Hero entrance: the one orchestrated page-load moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-status, .hero-title, .hero-lede, .hero-actions, .hero-legend { animation: rise 1.1s var(--ease-out) both; }
  .hero-title { animation-delay: .08s; }
  .hero-lede { animation-delay: .22s; }
  .hero-actions { animation-delay: .32s; }
  .hero-legend { animation-delay: .5s; }
  .synapse { animation: fade 1.8s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --- Suite / explorer ---------------------------------------------------- */
.suite { padding: var(--section) 0; }
.explorer { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.explorer-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 100px; }
.group-name { margin: 18px 0 6px 14px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.group-name:first-child { margin-top: 0; }
.explorer-nav button {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 9px 14px; border: 0; border-radius: var(--radius-s); background: none; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; font-weight: 400;
  color: var(--muted); transition: background-color .2s, color .2s;
}
.explorer-nav button small { font-family: var(--font-body); font-size: 0.8125rem; line-height: 1.4; font-weight: 400; }
.explorer-nav button:hover { color: var(--text); background: rgba(21,23,61,.04); }
.explorer-nav button[aria-selected="true"] { color: var(--text); background: var(--white); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(21,23,61,.35); }
.explorer-nav button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--accent, var(--coral)); }

.explorer-panel {
  --accent: var(--coral);
  background: var(--white); border-radius: var(--radius-l);
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 1px 0 var(--line), 0 40px 80px -48px rgba(21,23,61,.4);
  min-height: 640px;
}
.panel-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; }
.panel-name { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; }
.panel-name span { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 1rem; color: var(--muted); }
.panel-desc { color: var(--text); font-size: 1.0625rem; max-width: 46ch; }
.panel-caps { display: grid; gap: 8px; align-content: start; }
.panel-caps li { position: relative; padding-left: 20px; color: var(--muted); font-size: 0.9375rem; }
.panel-caps li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.footnote { margin-top: 20px; font-size: 0.875rem; color: var(--muted); text-align: right; }

.is-switching .panel-copy, .is-switching .mock { opacity: 0; transform: translateY(8px); }
.panel-copy, .mock { transition: opacity .35s ease, transform .5s var(--ease-out); }

/* --- Product mock UI ----------------------------------------------------- */
.mock {
  margin-top: 32px; border: 1px solid var(--mist); border-radius: var(--radius-m);
  background: #FAFBFE; overflow: hidden; font-size: 0.8125rem; line-height: 1.4;
}
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--mist); background: var(--white); }
.mock-bar svg { width: 18px; height: 18px; }
.mock-bar b { font-weight: 600; }
.mock-bar .crumb { color: var(--muted); }
.mock-bar .mock-search { margin-left: auto; width: min(220px, 34%); height: 28px; border-radius: 8px; background: var(--paper); }
.mock-body { padding: 18px; min-height: 300px; }
.mock-ai { display: flex; gap: 10px; align-items: flex-start; margin: 0 18px 18px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(236,90,122,.09), rgba(63,182,242,.09)); }
.mock-ai svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.mock-ai p { color: var(--text); }
.mock-ai strong { font-weight: 600; }

.m-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.m-col h4 { margin: 0 0 8px; font-size: 0.75rem; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; }
.m-card { padding: 10px; margin-bottom: 8px; border-radius: 10px; background: var(--white); border: 1px solid var(--mist); }
.m-card b { display: block; font-weight: 600; }
.m-card span { color: var(--muted); }
.m-meter { height: 4px; margin-top: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.m-meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.m-avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--white); font-size: .6875rem; font-weight: 600; flex: none; }

.m-rows { display: grid; gap: 8px; }
.m-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--white); border: 1px solid var(--mist); border-radius: 10px; }
.m-row .muted { color: var(--muted); }
.m-pill { justify-self: start; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--paper); }
.m-pill[data-s="good"] { background: #E3F5EC; color: #1C7A4C; }
.m-pill[data-s="warn"] { background: #FDF0E0; color: #9A5B0E; }
.m-pill[data-s="info"] { background: #E4F3FC; color: #17689A; }
.m-pill[data-s="hot"] { background: #FCE6EC; color: #A82B4F; }

.m-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.m-panel { padding: 14px; background: var(--white); border: 1px solid var(--mist); border-radius: 12px; }
.m-panel h4 { margin: 0 0 10px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.m-kpi { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.m-kpi small { font-family: var(--font-body); font-size: .75rem; color: #1C7A4C; margin-left: 6px; }
.m-bars { display: grid; gap: 10px; }
.m-bar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 36px; gap: 10px; align-items: center; }
.m-bar .m-meter { margin: 0; height: 8px; }
.m-chart { width: 100%; height: 150px; }

.m-posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.m-poster { aspect-ratio: 4 / 3; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); position: relative; overflow: hidden; }
.m-poster b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.02; position: relative; max-width: 11ch; }
.m-poster span { font-size: .6875rem; opacity: .9; position: relative; }
.m-poster::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -14%; border-radius: 30%; background: rgba(255,255,255,.16); transform: rotate(28deg); }

.m-gantt { display: grid; gap: 9px; }
.m-gantt-head, .m-gantt-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; }
.m-gantt-head div:last-child { display: grid; grid-template-columns: repeat(6, 1fr); color: var(--muted); font-size: .6875rem; }
.m-track { position: relative; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 calc(100%/6 - 1px), var(--mist) calc(100%/6 - 1px) calc(100%/6)); }
.m-track i { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; }

.m-flow { display: flex; align-items: center; gap: 0; padding: 30px 6px; overflow-x: auto; }
.m-node { flex: none; width: 150px; padding: 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--mist); }
.m-node small { display: block; color: var(--muted); font-size: .6875rem; margin-bottom: 4px; }
.m-wire { flex: 1 0 28px; height: 2px; background: linear-gradient(90deg, var(--coral), var(--sky)); position: relative; }
.m-wire::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--sky); border-right: 0; }

.m-chat { display: grid; gap: 10px; max-width: 520px; }
.m-msg { padding: 10px 12px; border-radius: 12px; max-width: 80%; }
.m-msg.them { background: var(--white); border: 1px solid var(--mist); justify-self: start; }
.m-msg.us { background: var(--ink); color: var(--white); justify-self: end; }
.m-msg small { display: block; margin-top: 4px; opacity: .65; font-size: .6875rem; }

.m-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.m-ring { display: grid; justify-items: center; gap: 8px; padding: 16px 10px; background: var(--white); border: 1px solid var(--mist); border-radius: 12px; text-align: center; }
.m-ring svg { width: 74px; height: 74px; }

/* --- Overlap ------------------------------------------------------------- */
.overlap { padding: var(--section) 0; background: var(--white); overflow-x: clip; }
.overlap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.overlap-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; }
.shape { position: absolute; inset: 0; mix-blend-mode: multiply; transition: transform 1.6s var(--ease-out); }
.shape svg { width: 100%; height: 100%; }
.shape-coral { color: var(--coral); transform: translate(-16%, -10%); }
.shape-sky { color: var(--sky); transform: translate(16%, 10%); }
.overlap-art.is-in .shape { transform: none; }
.shape-label { position: absolute; font-size: .9375rem; font-weight: 600; mix-blend-mode: normal; color: var(--ink); white-space: nowrap; }
.shape-coral .shape-label { left: 22%; top: -6%; }
.shape-sky .shape-label { right: 10%; bottom: -7%; }
.overlap-label { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%) rotate(-52deg); color: var(--white); font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1; text-align: center; opacity: 0; transition: opacity .8s 1s; }
.overlap-art.is-in .overlap-label { opacity: 1; }

.layer-list { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; }
.layer-list div { padding-top: 18px; border-top: 1px solid var(--line); }
.layer-list dt { font-weight: 600; margin-bottom: 6px; }
.layer-list dd { color: var(--muted); font-size: .9375rem; }

/* --- Journey (a real sequence, so it is numbered) ------------------------ */
.journey { padding: var(--section) 0; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--coral), var(--sky), var(--coral), var(--indigo), var(--sky)); opacity: .5; }
.steps li { counter-increment: step; position: relative; padding: 0 20px 0 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); font-family: var(--font-display); font-size: 1.35rem; position: relative;
}
.step-product { display: inline-block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; margin-bottom: 8px; }
.step-product[data-tone="coral"] { color: var(--coral-strong); }
.step-product[data-tone="sky"] { color: #1A86C2; }
.step-product[data-tone="indigo"] { color: var(--indigo); }
.steps p { color: var(--muted); font-size: .9375rem; }

/* --- Enterprise ---------------------------------------------------------- */
.enterprise { padding: var(--section) 0; background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.enterprise::after { content: ""; position: absolute; width: 640px; aspect-ratio: 1; right: -220px; top: -260px; border-radius: 34%; transform: rotate(38deg); background: radial-gradient(circle at 30% 30%, rgba(70,85,176,.55), transparent 65%); pointer-events: none; }
.enterprise-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 7vw, 112px); position: relative; z-index: 1; }
.enterprise .section-lede { color: var(--on-dark-muted); margin-bottom: 36px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.spec-list div { padding: 22px 0; border-top: 1px solid var(--line-dark); }
.spec-list dt { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--white); margin-bottom: 8px; }
.spec-list dd { color: var(--on-dark-muted); font-size: .9375rem; }

/* --- Services ------------------------------------------------------------ */
.services { padding: var(--section) 0; }
.services-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 112px); }
.services-intro { position: sticky; top: 120px; align-self: start; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; }
.service-list li { padding: 28px 28px 28px 0; border-top: 1px solid var(--line); }
.service-list li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.service-list h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin-bottom: 10px; }
.service-list p { color: var(--muted); font-size: .9375rem; }

/* --- Scale --------------------------------------------------------------- */
.scale { padding: 0 0 var(--section); }
.scale-title { max-width: 16ch; margin-bottom: 56px; }
.scale-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.scale-step { padding: 28px; border-radius: var(--radius-m); background: var(--white); box-shadow: 0 1px 0 var(--line); border-top: 4px solid var(--accent); }
.scale-step:nth-child(1) { --accent: var(--coral); }
.scale-step:nth-child(2) { --accent: var(--indigo); padding-top: 72px; }
.scale-step:nth-child(3) { --accent: var(--sky); padding-top: 116px; }
.scale-step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; margin-bottom: 12px; }
.scale-step p { color: var(--muted); font-size: .9375rem; }

/* --- CTA ----------------------------------------------------------------- */
.cta { padding: var(--section) 0; background: linear-gradient(180deg, var(--paper), #E9ECF7); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.cta-mark { width: 64px; height: 64px; margin-bottom: 28px; }
.contact-list { margin-top: 40px; display: grid; gap: 14px; }
.contact-list div { display: flex; gap: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.contact-list dt { width: 64px; color: var(--muted); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.access-form { display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 40px); background: var(--white); border-radius: var(--radius-l); box-shadow: 0 1px 0 var(--line), 0 40px 80px -48px rgba(21,23,61,.4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: .875rem; font-weight: 600; padding: 0; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #CDD2E3; border-radius: var(--radius-s); background: var(--paper); transition: border-color .2s, background-color .2s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: var(--white); box-shadow: 0 0 0 3px rgba(70,85,176,.18); }
.field input[aria-invalid="true"] { border-color: var(--coral-strong); }
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-set label { position: relative; }
.chip-set input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-set span { display: inline-block; padding: 7px 14px; border: 1px solid #CDD2E3; border-radius: 999px; font-size: .875rem; transition: background-color .2s, border-color .2s, color .2s; }
.chip-set input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip-set input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.form-status { min-height: 1.4em; font-size: .9375rem; color: var(--muted); }
.form-status[data-state="error"] { color: var(--coral-strong); }
.form-status[data-state="ok"] { color: #1C7A4C; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 80px 0 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.brand-on-dark { color: var(--white); }
.footer-brand p { margin-top: 14px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h3 { font-size: .875rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.footer-col a { text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--white); }
.footer-legal { position: relative; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 28px; font-size: .8125rem; }
.footer-legal::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-dark); }
.legal-links { display: flex; gap: 20px; }
.legal-links a { text-decoration: none; }
.legal-links a:hover { color: var(--white); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .section-head, .overlap-grid, .enterprise-grid, .services-grid, .cta-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .explorer-nav::-webkit-scrollbar { display: none; }
  .group-name { display: none; }
  .explorer-nav button { flex: none; font-size: 1.2rem; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .explorer-nav button small { display: none; }
  .explorer-nav button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .explorer-nav button[aria-selected="true"]::before { display: none; }
  .explorer-panel { min-height: 0; }
  .overlap-art { margin-inline: auto; max-width: 400px; }
  .hero-veil { background: linear-gradient(0deg, rgba(21,23,61,.96) 0%, rgba(21,23,61,.7) 55%, rgba(21,23,61,.45) 100%); }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .hero { padding-top: 120px; }
  .legend-hint { display: none; }
  .hero-legend { margin-top: 40px; }
  .panel-copy, .layer-list, .spec-list, .service-list, .field-row, .scale-row { grid-template-columns: 1fr; }
  .service-list li, .service-list li:nth-child(even) { padding: 24px 0; border-left: 0; }
  .scale-step:nth-child(n) { padding-top: 28px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 0 0 28px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; background: var(--line); }
  .m-cols { grid-template-columns: 1fr 1fr; }
  .m-cols .m-col:nth-child(n+3) { display: none; }
  .m-split { grid-template-columns: 1fr; }
  .m-row { grid-template-columns: minmax(0, 1fr) auto; }
  .m-row > :nth-child(2), .m-row > :nth-child(3) { display: none; }
  .m-gantt-head, .m-gantt-row { grid-template-columns: 84px minmax(0, 1fr); }
  .m-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-posters .m-poster:nth-child(n+5) { display: none; }
  .m-rings { grid-template-columns: 1fr 1fr; }
  .m-rings .m-ring:nth-child(3) { display: none; }
  .mock-bar .mock-search { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footnote { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   Welcome intro (first visit). Timeline starts when JS adds .is-playing:
   0.1s reticle  ·  0.2s wires trace  ·  1.0s shapes materialise and lock
   1.55s ignition  ·  1.7s name decodes  ·  3.0s logo flies into the header
   ========================================================================== */
.intro { display: none; position: fixed; inset: 0; z-index: 200; cursor: pointer; overflow: hidden; }
html.intro-on .intro { display: block; }
html.intro-on body { overflow: hidden; }
html.intro-on .site-header .brand { visibility: hidden; }
html.intro-hold .hero-status, html.intro-hold .hero-title, html.intro-hold .hero-lede,
html.intro-hold .hero-actions, html.intro-hold .hero-legend, html.intro-hold .synapse { animation-play-state: paused; }

.intro-bg { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 46%, #262A6E 0%, #15173D 62%, #0E1030 100%); transition: opacity .8s ease; }
.intro-field { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s ease; }
.intro-flash { position: absolute; left: 50%; top: 44%; width: 120vmax; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(170, 182, 255, .55) 0%, rgba(70, 85, 176, .25) 18%, rgba(21, 23, 61, 0) 46%); }
.intro-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding-bottom: 6vh; }
.intro-mark-wrap { position: relative; }
.intro-mark { width: clamp(132px, 22vw, 200px); height: auto; aspect-ratio: 1; overflow: visible; transform-origin: 0 0; }
.intro-word { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.9rem, 7.5vw, 4.9rem); line-height: 1; letter-spacing: .005em; color: var(--white); opacity: 0; transform-origin: 0 0; white-space: nowrap; }
.intro-word .gl { color: var(--sky); opacity: .75; }
.intro-tag { font-size: .9375rem; letter-spacing: .02em; color: var(--on-dark-muted); opacity: 0; }
.intro-skip { position: absolute; right: 24px; bottom: 22px; padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; background: none; color: var(--on-dark-muted); font-size: .8125rem; cursor: pointer; opacity: 0; transition: opacity .4s, color .2s, border-color .2s; }
.intro-skip:hover { color: var(--white); border-color: rgba(255,255,255,.4); }
.intro-ring { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 1.5px solid rgba(255, 179, 196, .8); opacity: 0; pointer-events: none; }
.intro-ring-2 { border-color: rgba(181, 230, 255, .8); }

/* Initial states */
.im-coral { transform: translate(-20px, -13px); }
.im-sky { transform: translate(20px, 13px); }
.im-fill { opacity: 0; stroke-width: 2; }
.im-wire { stroke-width: 1.6; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.im-core { opacity: 0; }
.im-bracket { opacity: 0; transform-origin: 52px 52px; transform: scale(1.4); }

/* Playing */
.intro.is-playing .im-bracket { animation: im-bracket 1.6s .1s cubic-bezier(.2,.8,.2,1) both; }
.intro.is-playing .im-coral .im-wire { animation: im-draw .85s .2s cubic-bezier(.6,.05,.3,1) both, im-wire-out .7s 1.65s ease both; }
.intro.is-playing .im-sky .im-wire { animation: im-draw .85s .35s cubic-bezier(.6,.05,.3,1) both, im-wire-out .7s 1.65s ease both; }
.intro.is-playing .im-fill { animation: im-fill .6s 1s cubic-bezier(.3,.7,.2,1) both; }
.intro.is-playing .im-coral { animation: im-join-coral .55s 1s cubic-bezier(.7,0,.35,1) both; }
.intro.is-playing .im-sky { animation: im-join-sky .55s 1s cubic-bezier(.7,0,.35,1) both; }
.intro.is-playing .im-core { animation: im-ignite .9s 1.52s cubic-bezier(.2,.8,.2,1) both; }
.intro.is-playing .intro-ring { animation: im-ring 1.1s 1.55s cubic-bezier(.1,.7,.2,1) both; }
.intro.is-playing .intro-ring-2 { animation-delay: 1.68s; }
.intro.is-playing .intro-flash { animation: im-flash 1s 1.5s ease-out both; }
.intro.is-playing .intro-tag { animation: im-tag .7s 2.3s ease both; }
.intro.is-playing .intro-skip { opacity: 1; transition-delay: .6s; }

@keyframes im-draw { to { stroke-dashoffset: 0; } }
@keyframes im-wire-out { to { opacity: 0; } }
@keyframes im-fill { from { opacity: 0; stroke-width: 2; } to { opacity: 1; stroke-width: 16; } }
@keyframes im-join-coral { from { transform: translate(-20px, -13px); } to { transform: translate(0, 0); } }
@keyframes im-join-sky { from { transform: translate(20px, 13px); } to { transform: translate(0, 0); } }
@keyframes im-ignite { 0% { opacity: 0; filter: brightness(3.2) saturate(.4); } 25% { opacity: 1; } 100% { opacity: 1; filter: none; } }
@keyframes im-bracket { 0% { opacity: 0; transform: scale(1.4); } 30% { opacity: .9; transform: scale(1); } 80% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(.86); } }
@keyframes im-ring { 0% { opacity: 0; transform: scale(.3); } 6% { opacity: .9; } 100% { opacity: 0; transform: scale(9); } }
@keyframes im-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes im-tag { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Leaving: background dissolves, logo and name fly into the header */
.intro.is-leaving { pointer-events: none; }
.intro.is-leaving .intro-bg, .intro.is-leaving .intro-field { opacity: 0; }
.intro.is-leaving .intro-tag, .intro.is-leaving .intro-skip, .intro.is-leaving .intro-flash { opacity: 0; transition: opacity .3s; animation: none; }
.intro.is-leaving .intro-mark, .intro.is-leaving .intro-word { transition: transform .85s cubic-bezier(.7,0,.2,1); }
.intro.is-leaving .im-bracket, .intro.is-leaving .intro-ring { opacity: 0; animation: none; transition: opacity .25s; }
html.intro-on { background: #0E1030; }

/* ==========================================================================
   Generated pages: services, regions, insights, privacy
   ========================================================================== */
.subpage { padding-top: 76px; }
.btn-ink { background: var(--ink); color: var(--white); margin-top: 28px; }
.btn-ink:hover { background: var(--ink-raised); }
.display-3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }

.page-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 120% at 85% 20%, #262A6E 0%, var(--ink) 60%); color: var(--on-dark); padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 104px); }
.page-hero-art { position: absolute; z-index: -1; right: max(-120px, -8vw); top: 50%; width: min(560px, 52vw); transform: translateY(-50%) rotate(-8deg); opacity: .22; }
.page-hero-art svg { width: 100%; height: auto; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--on-dark-muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.page-kicker { margin-top: 36px; color: var(--sky); font-weight: 600; font-size: .9375rem; }
.page-title { margin-top: 12px; max-width: 21ch; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 4.8vw, 4.3rem); line-height: .96; letter-spacing: -.015em; color: var(--white); text-wrap: balance; }
.page-lede { margin-top: 24px; max-width: 60ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--on-dark-muted); }
.page-hero .hero-actions { margin-top: 36px; }

.block { padding: clamp(72px, 9vw, 128px) 0; }
.block-tight { padding-top: 0; }
.block-white { background: var(--white); }
.block-ink { background: var(--ink); color: var(--on-dark); }
.block-title { margin-bottom: clamp(36px, 4vw, 56px); max-width: 22ch; }

.problem { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 16px 56px; padding: 28px 0; border-top: 1px solid var(--line); }
.problem:last-child { border-bottom: 1px solid var(--line); }
.problem h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.1; }
.problem p { color: var(--muted); max-width: 62ch; }

.deliver-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.deliver { padding-top: 20px; border-top: 2px solid var(--accent, var(--coral)); }
.deliver:nth-child(3n+2) { --accent: var(--indigo); }
.deliver:nth-child(3n) { --accent: var(--sky); }
.deliver h3 { font-weight: 600; margin-bottom: 8px; }
.deliver p { color: var(--muted); font-size: .9375rem; }

.process-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.process-grid > div { position: sticky; top: 110px; }
.process { counter-reset: step; display: grid; }
.process li { counter-increment: step; position: relative; padding: 0 0 32px 72px; }
.process li::before { content: counter(step); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); font-family: var(--font-display); font-size: 1.3rem; }
.process li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; background: var(--line); }
.process h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin-bottom: 8px; }
.process p { color: var(--muted); }

.engage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.engage { padding: 28px; border-radius: var(--radius-m); background: var(--ink-raised); border: 1px solid var(--line-dark); }
.engage h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; color: var(--white); margin-bottom: 12px; }
.engage p { color: var(--on-dark-muted); font-size: .9375rem; }
.region-strip { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--on-dark-muted); font-size: .9375rem; }
.region-strip ul { display: flex; flex-wrap: wrap; gap: 8px; }
.region-strip a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-dark); border-radius: 999px; text-decoration: none; color: var(--on-dark); transition: border-color .2s, background-color .2s; }
.region-strip a:hover { border-color: var(--sky); background: rgba(255,255,255,.05); }

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 70ch; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 24px; border-radius: var(--radius-m); background: var(--white); box-shadow: 0 1px 0 var(--line); text-decoration: none; border: 1px solid transparent; transition: border-color .2s, transform .3s var(--ease-out); }
.block-white .related a { background: var(--paper); }
.related a:hover { border-color: var(--indigo); transform: translateY(-2px); }
.related strong { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.1; }
.related span { color: var(--muted); font-size: .9375rem; }
.related-big strong { font-size: 1.9rem; }
.hours-note { margin-top: 32px; padding-left: 16px; border-left: 3px solid var(--sky); color: var(--muted); max-width: 70ch; }

.article-grid { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 300px); gap: clamp(32px, 6vw, 96px); justify-content: space-between; }
.article-body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; margin: 48px 0 14px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: 16px; font-size: 1.0625rem; line-height: 1.7; }
.article-body ul { margin: 0 0 20px; display: grid; gap: 8px; }
.article-body li { position: relative; padding-left: 22px; line-height: 1.6; }
.article-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--coral); transform: rotate(45deg); }
.article-body a { color: var(--indigo); }
.article-meta { margin-top: 40px; color: var(--muted); font-size: .875rem; }
.article-aside { position: sticky; top: 110px; align-self: start; display: grid; gap: 12px; padding: 24px; border-radius: var(--radius-m); background: var(--white); box-shadow: 0 1px 0 var(--line); }
.article-aside p { font-size: .875rem; color: var(--muted); }
.article-aside a { display: grid; gap: 4px; text-decoration: none; }
.article-aside strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.article-aside span { color: var(--muted); font-size: .9375rem; }

/* Homepage services list links to service pages */
.service-list a { display: block; text-decoration: none; }
.service-list h3 { transition: color .2s; }
.service-list a:hover h3 { color: var(--indigo); }

/* Form additions */
.field select { width: 100%; padding: 12px 14px; border: 1px solid #CDD2E3; border-radius: var(--radius-s); background: var(--paper); font: inherit; color: inherit; }
.field select:focus { outline: none; border-color: var(--indigo); background: var(--white); box-shadow: 0 0 0 3px rgba(70,85,176,.18); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--indigo); }
.consent a { color: var(--indigo); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: progress; }
.footer-grid-wide { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.footer-note { margin-top: 10px; max-width: 34ch; font-size: .875rem; }

@media (max-width: 960px) {
  .problem, .process-grid, .faq-grid, .article-grid { grid-template-columns: 1fr; }
  .process-grid > div, .article-aside { position: static; }
  .deliver-grid, .related { grid-template-columns: 1fr 1fr; }
  .page-hero-art { opacity: .12; width: 80vw; }
}
@media (max-width: 680px) {
  .deliver-grid, .related, .related-wide { grid-template-columns: 1fr; }
  .footer-grid-wide { grid-template-columns: 1fr 1fr; }
  .process li { padding-left: 62px; }
}

/* ==========================================================================
   AI assistant widget
   ========================================================================== */
.sa-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: .9375rem; cursor: pointer; box-shadow: 0 18px 40px -16px rgba(21,23,61,.7), 0 0 0 1px rgba(255,255,255,.08); transition: transform .3s var(--ease-out), opacity .3s; }
.sa-launcher:hover { transform: translateY(-2px); }
.sa-launcher svg { width: 26px; height: 26px; }
.sa-launcher .sa-live { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
html.intro-on .sa-launcher, html.intro-on .sa-nudge { opacity: 0; pointer-events: none; }
.sa-open .sa-launcher { opacity: 0; pointer-events: none; transform: scale(.9); }

.sa-nudge { position: fixed; right: 20px; bottom: 80px; z-index: 120; max-width: 300px; padding: 14px 40px 14px 16px; border-radius: 16px 16px 4px 16px; background: var(--white); color: var(--text); font-size: .9375rem; line-height: 1.45; box-shadow: 0 24px 48px -20px rgba(21,23,61,.45), 0 0 0 1px var(--line); cursor: pointer; animation: sa-pop .5s var(--ease-out) both; }
.sa-nudge button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; border-radius: 50%; }
.sa-nudge button:hover { background: var(--paper); }
@keyframes sa-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.sa-panel { position: fixed; right: 20px; bottom: 20px; z-index: 130; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: 0 40px 90px -30px rgba(21,23,61,.6), 0 0 0 1px var(--line); transform-origin: bottom right; animation: sa-open .4s var(--ease-out) both; }
.sa-panel[hidden] { display: none; }
@keyframes sa-open { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.sa-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: radial-gradient(120% 140% at 90% 0%, #2A2F78 0%, var(--ink) 60%); color: var(--white); }
.sa-head svg { width: 32px; height: 32px; flex: none; }
.sa-head b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.1; }
.sa-head span { display: block; font-size: .8125rem; color: var(--on-dark-muted); }
.sa-close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--white); font-size: 1.2rem; cursor: pointer; }
.sa-close:hover { background: rgba(255,255,255,.16); }
.sa-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.sa-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.sa-msg p + p { margin-top: 8px; }
.sa-msg ul { margin: 6px 0; padding-left: 18px; list-style: disc; }
.sa-msg a { color: var(--indigo); }
.sa-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--mist); border-bottom-left-radius: 4px; }
.sa-me { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.sa-me a { color: var(--sky); }
.sa-note { align-self: center; font-size: .8125rem; color: #1C7A4C; background: #E3F5EC; padding: 6px 12px; border-radius: 999px; }
.sa-err { align-self: stretch; font-size: .875rem; color: #A82B4F; background: #FCE6EC; padding: 10px 12px; border-radius: 12px; }
.sa-typing { display: inline-flex; gap: 4px; }
.sa-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: sa-dot 1.2s infinite; }
.sa-typing i:nth-child(2) { animation-delay: .15s; }
.sa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sa-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.sa-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.sa-chips button { padding: 7px 12px; border: 1px solid #CDD2E3; border-radius: 999px; background: var(--white); font-size: .8125rem; cursor: pointer; transition: border-color .2s, background-color .2s; }
.sa-chips button:hover { border-color: var(--indigo); background: #EEF0FA; }
.sa-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--mist); background: var(--white); }
.sa-form textarea { flex: 1; resize: none; max-height: 120px; min-height: 44px; overflow-y: auto; scrollbar-width: none; padding: 10px 12px; border: 1px solid #CDD2E3; border-radius: 12px; background: var(--paper); font: inherit; font-size: .9375rem; line-height: 1.4; }
.sa-form textarea:focus { outline: none; border-color: var(--indigo); background: var(--white); }
.sa-send { flex: none; width: 44px; border: 0; border-radius: 12px; background: var(--coral-strong); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.sa-send:disabled { opacity: .5; cursor: default; }
.sa-send svg { width: 18px; height: 18px; }
.sa-legal { padding: 0 14px 12px; background: var(--white); font-size: .75rem; color: var(--muted); line-height: 1.4; }
.sa-legal a { color: var(--indigo); }
@media (max-width: 520px) {
  .sa-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .sa-launcher { right: 14px; bottom: 14px; }
  .sa-launcher .sa-label { display: none; }
  .sa-launcher { padding: 12px; }
  .sa-nudge { right: 14px; bottom: 74px; max-width: calc(100vw - 28px); }
}
.field input, .field select { min-height: 50px; }
.form-note { font-size: .8125rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--indigo); }
