/* Datablend360 — shared styles (v2: colour-chapter design) */
:root {
  --midnight: #0b1230;
  --ink: #0b1230;
  --ink-soft: #4a5272;
  --white: #ffffff;
  --mist: #eef0f8;
  --line: #d8dcec;
  --cobalt: #2547f4;
  --violet: #6a2fd8;
  --magenta: #d11a6c;
  --sun: #ffb81c;
  --blue: #2547f4;
  --purple: #6a2fd8;
  --pink: #d11a6c;
  --orange: #f5a01b;
  --cyan: #14b3c8;
  --green: #1fae6b;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --bar: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 8px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.agents :focus-visible, .nav :focus-visible, .chapter :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--sun); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; line-height: .98; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(3.2rem, 8vw, 6.75rem); font-stretch: 80%; letter-spacing: -.005em; }
h2 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h3 { font-size: 1.5rem; font-stretch: 90%; line-height: 1.15; letter-spacing: -.01em; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-soft); max-width: 34em; line-height: 1.55; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1rem/1 var(--font-body); padding: 1rem 1.6rem; min-height: 52px;
  border-radius: 999px; border: 2px solid var(--midnight); background: var(--midnight); color: var(--white);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--midnight); border-color: var(--midnight); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--midnight); }
.btn--light:hover { background: var(--sun); border-color: var(--sun); color: var(--midnight); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--midnight); }

/* Header + navigation */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1.5rem; height: var(--bar); }
.logo { display: block; width: 168px; height: 44px; flex: none; background: url("logo-full.png") -45px -62px / 252px auto no-repeat; }
.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav > a:not(.btn), .sub-toggle {
  font: 600 1rem var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: .5rem 0; position: relative; display: inline-flex; align-items: center; gap: .35rem;
}
.nav > a:not(.btn)::after, .sub-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--magenta), var(--violet), var(--cobalt), var(--cyan), var(--green));
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav > a:not(.btn):hover::after, .nav > a[aria-current]::after, .sub-toggle:hover::after, .has-sub.open .sub-toggle::after, .has-sub.current .sub-toggle::after { transform: scaleX(1); }
.sub-toggle svg { transition: transform .2s; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: -1.25rem; padding-top: 14px; width: 440px; display: none; }
.has-sub.open .sub { display: block; }
@media (hover: hover) and (min-width: 861px) { .has-sub:hover .sub { display: block; } }
.sub-box { background: var(--white); border: 2px solid var(--midnight); border-radius: 18px; padding: .5rem; box-shadow: 0 24px 48px rgba(11,18,48,.18); }
.sub a { display: grid; gap: .1rem; padding: .85rem 1rem .85rem 1.25rem; border-radius: 12px; text-decoration: none; position: relative; }
.sub a::before { content: ""; position: absolute; left: 0; top: .85rem; bottom: .85rem; width: 5px; border-radius: 3px; background: var(--c); }
.sub a:hover, .sub a:focus-visible { background: var(--mist); }
.sub strong { font-family: var(--font-display); font-stretch: 90%; font-size: 1.15rem; }
.sub span { color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }
.nav-book { display: none; }
.header-book { min-height: 46px; padding: .7rem 1.25rem; font-size: .95rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--midnight); border-radius: 12px; width: 46px; height: 46px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-book { display: none; }
  .nav {
    position: fixed; inset: var(--bar) 0 0 0; background: var(--midnight); color: var(--white);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; margin: 0;
    padding: 1.5rem var(--gutter) 2rem; overflow-y: auto; display: none;
  }
  .nav.open { display: flex; }
  .nav > a:not(.btn), .sub-toggle { color: var(--white); font: 800 2.4rem/1 var(--font-display); font-stretch: 75%; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .nav > a:not(.btn)::after, .sub-toggle::after { display: none; }
  .sub-toggle svg { display: none; }
  .has-sub { display: contents; }
  .sub { position: static; display: block; width: auto; padding: 0; }
  .sub-box { background: none; border: 0; box-shadow: none; padding: .5rem 0 0; }
  .sub a { padding: .6rem 0 .6rem 1.25rem; }
  .sub a::before { top: .6rem; bottom: .6rem; }
  .sub a:hover, .sub a:focus-visible { background: rgba(255,255,255,.08); }
  .sub strong { font-size: 1.25rem; color: var(--white); }
  .sub span { color: #b8c0e0; }
  .nav-book { display: inline-flex; margin-top: 1.75rem; align-self: flex-start; }
  .nav > a[aria-current] { color: var(--sun); }
}

/* Scroll ring */
.ring { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; z-index: 55; border: 0; padding: 0; border-radius: 50%; background: var(--midnight); color: var(--white); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 8px 24px rgba(11,18,48,.3); }
.ring.show { opacity: 1; transform: none; pointer-events: auto; }
.ring svg.r { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .track { stroke: rgba(255,255,255,.2); }
.ring .prog { stroke: var(--sun); stroke-linecap: round; }
.ring .arrow { position: relative; }

/* Hero */
.hero { position: relative; overflow-x: clip; color: var(--white);
  background: radial-gradient(60% 75% at 6% 0%, #2547f4 0%, transparent 70%), radial-gradient(50% 65% at 100% 0%, #d11a6c 0%, transparent 65%), radial-gradient(45% 60% at 82% 100%, #f5a01b 0%, transparent 65%), radial-gradient(40% 55% at 100% 62%, #14b3c8 0%, transparent 65%), #5a2bd0; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: 1.75rem; max-width: 9em; }
.hero .lede { margin-bottom: 2.25rem; color: rgba(255,255,255,.94); }
.hero :focus-visible { outline-color: var(--sun); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.dial { --s: min(46vw, 560px); --r: calc(var(--s) * .42 * .89); position: relative; width: var(--s); aspect-ratio: 1; justify-self: end; margin-right: -2%; }
.sweep { position: absolute; inset: 0; }
.dial-ring {
  position: absolute; inset: 8%; border-radius: 50%;
  background: conic-gradient(from 0deg, #f5a01b, #d11a6c, #6a2fd8, #2547f4, #14b3c8, #1fae6b, #f5a01b);
  -webkit-mask: radial-gradient(farthest-side, transparent 78%, #000 78.5%);
  mask: radial-gradient(farthest-side, transparent 78%, #000 78.5%);
}
.dial-ticks { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial::before { content: ""; position: absolute; inset: 2%; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }
.dial-ticks line { stroke: rgba(255,255,255,.6); stroke-width: .35; stroke-linecap: round; }
.dial-ticks line.major { stroke: #fff; stroke-width: .6; }
.dial-sources { list-style: none; margin: 0; padding: 0; }
.dial-sources li {
  position: absolute; left: 50%; top: 50%; white-space: nowrap;
  transform: rotate(var(--d)) translateY(calc(var(--r) * -1)) rotate(calc(var(--d) * -1)) translate(-50%, -50%);
  background: var(--white); color: var(--midnight); font: 700 clamp(.8rem, 1.2vw, 1rem)/1 var(--font-body);
  padding: .5rem .9rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(11,18,48,.22);
}
.dial-core { position: absolute; inset: 27%; border-radius: 50%; background: var(--midnight); color: var(--white); display: grid; place-content: center; text-align: center; }
.dial-core strong { font: 800 clamp(2.4rem, 6vw, 4.6rem)/.9 var(--font-display); font-stretch: 75%; letter-spacing: -.02em; }
.dial-core span { margin-top: .4rem; color: #b8c0e0; font-weight: 600; font-size: clamp(.8rem, 1.2vw, 1rem); }
@media (prefers-reduced-motion: no-preference) {
  .sweep { -webkit-mask: conic-gradient(#000 var(--a), transparent var(--a)); mask: conic-gradient(#000 var(--a), transparent var(--a)); animation: sweep 1.8s cubic-bezier(.5,0,.2,1) both; }
  .dial-sources li { animation: dial-pop .45s ease both; animation-delay: calc(var(--i) * 300ms + 150ms); }
  .dial-core { animation: dial-pop .6s ease 1.7s both; }
}
@keyframes sweep { from { --a: 0deg; } to { --a: 360deg; } }
@keyframes dial-pop { from { opacity: 0; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .dial { --s: min(88vw, 440px); justify-self: center; margin: 0; }
}

.platforms { border-block: 1px solid var(--line); padding: 1.5rem 0; }
.platforms .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2.25rem; }
.platforms strong { font-family: var(--font-display); font-stretch: 90%; font-size: 1.15rem; margin-right: .5rem; }
.platforms span { font-weight: 600; color: var(--ink-soft); }

/* Sections */
.section { padding: clamp(72px, 10vw, 144px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* Service chapters */
.chapters-intro { padding: clamp(72px, 10vw, 144px) 0 clamp(32px, 5vw, 56px); }
.chapter {
  position: sticky; top: var(--bar); min-height: calc(100vh - var(--bar));
  display: flex; align-items: center; background: var(--bg); color: var(--white);
  padding: clamp(44px, 6vw, 88px) 0; border-radius: 32px 32px 0 0; box-shadow: 0 -16px 40px rgba(11,18,48,.18); overflow: hidden;
}
.chapter .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.chapter h3 { font-size: clamp(3.2rem, 8.5vw, 7.5rem); font-stretch: 75%; line-height: .95; letter-spacing: -.005em; margin-bottom: 1.5rem; }
.chapter p { color: rgba(255,255,255,.92); font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 28em; margin-bottom: 2rem; }
.chapter ul { list-style: none; margin: 0; padding: 0; }
.chapter li { border-top: 1px solid rgba(255,255,255,.4); padding: 1.1rem 0; font: 700 clamp(1.25rem, 2vw, 1.65rem)/1.2 var(--font-display); font-stretch: 90%; }
.chapter li:last-child { border-bottom: 1px solid rgba(255,255,255,.4); }
@media (max-width: 860px) {
  .chapter { position: relative; top: auto; min-height: 0; margin-top: -32px; }
  .chapters-intro + .chapter { margin-top: 0; }
  .chapter .wrap { grid-template-columns: 1fr; }
}

/* Agents */
.agents { background: var(--midnight); color: var(--white); }
.agents .lede, .agents .demo-note { color: #b8c0e0; }
.demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.demo-tabs { display: grid; gap: .75rem; }
.demo-tabs button { text-align: left; font: inherit; color: var(--white); cursor: pointer; background: transparent; border: 1.5px solid rgba(255,255,255,.25); border-left: 8px solid var(--c); border-radius: 14px; padding: 1rem 1.25rem; display: grid; gap: .15rem; transition: background .2s; }
.demo-tabs strong { font-family: var(--font-display); font-stretch: 90%; font-size: 1.25rem; letter-spacing: -.01em; }
.demo-tabs span { color: #b8c0e0; font-size: .95rem; }
.demo-tabs button:hover { background: rgba(255,255,255,.08); }
.demo-tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); border-color: var(--white); border-left-color: var(--c); }
.demo-tabs button[aria-selected="true"] span { color: var(--ink-soft); }
.demo-panel { background: var(--white); color: var(--ink); border-radius: 20px; padding: clamp(20px, 3vw, 32px); min-height: 380px; }
.agents .demo-panel :focus-visible { outline-color: var(--cobalt); }
.demo-trigger { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.demo-signal { font: 800 1.5rem/1.15 var(--font-display); font-stretch: 85%; letter-spacing: -.01em; max-width: 18em; }
.demo-trigger .btn { min-height: 46px; padding: .75rem 1.25rem; }
.demo-trigger .btn:disabled { opacity: .6; cursor: default; background: var(--midnight); border-color: var(--midnight); }
.demo-steps { list-style: none; margin: 0; padding: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.step-item { position: relative; padding-left: 2rem; }
.step-item::before { content: ""; position: absolute; left: 0; top: .5rem; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.step-item::after { content: ""; position: absolute; left: 6px; top: 1.5rem; bottom: -1.25rem; width: 2px; background: var(--line); }
.step-item:last-child::after { display: none; }
.step-item strong { display: block; font-family: var(--font-display); font-stretch: 90%; font-size: 1.1rem; }
.step-item p { color: var(--ink-soft); max-width: 36em; }
.step-item .btn { margin-top: .75rem; min-height: 44px; padding: .65rem 1.15rem; }
.step-item .step-done { margin-top: .75rem; color: var(--ink); font-weight: 700; }
.demo-note { margin-top: 1.25rem; font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) { .step-item { animation: stepin .45s ease both; } }
@keyframes stepin { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } .demo-panel { min-height: 0; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: s; }
.step { counter-increment: s; border-top: 3px solid var(--c); padding-top: 1.25rem; }
.step:nth-child(1) { --c: var(--cobalt); } .step:nth-child(2) { --c: var(--violet); } .step:nth-child(3) { --c: var(--magenta); }
.step::before { content: counter(s); display: block; font: 800 5rem/.9 var(--font-display); font-stretch: 75%; color: var(--c); margin-bottom: 1rem; }
.step h3 { margin-bottom: .6rem; font-size: 1.9rem; }
.step p { color: var(--ink-soft); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--midnight); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.contact .lede { color: #b8c0e0; margin: 1.5rem 0 2rem; }
.contact .direct a { font-weight: 700; color: var(--white); }
.contact :focus-visible { outline-color: var(--sun); }
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--midnight); background: var(--white); border: 2px solid var(--midnight); border-radius: 14px; padding: .9rem 1rem; min-height: 54px; }
.field textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; }
@media (max-width: 800px) { .contact .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #070b1f; border-top: 1px solid rgba(255,255,255,.12); color: #b8c0e0; padding: 2.5rem 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer .brand { font: 800 1.4rem var(--font-display); font-stretch: 75%; color: var(--white); }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* Service detail pages */
.page-hero { position: relative; overflow: hidden; background: var(--accent); color: var(--white); padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 112px); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); margin: 1.5rem 0 1.5rem; max-width: 11em; }
.page-hero .lede { color: rgba(255,255,255,.92); }
.back { text-decoration: none; font-weight: 700; display: inline-flex; gap: .5rem; align-items: center; }
.back:hover { text-decoration: underline; }
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 3px solid var(--accent); }
.cap { padding: 2.25rem 2rem 2.5rem 0; border-bottom: 1px solid var(--line); }
.cap:nth-child(even) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--line); }
.cap h3 { margin-bottom: .6rem; font-size: 1.8rem; }
.cap p { color: var(--ink-soft); max-width: 30em; }
@media (max-width: 760px) { .caps { grid-template-columns: 1fr; } .cap, .cap:nth-child(even) { padding: 1.75rem 0; border-left: 0; } }
.cta-band { background: var(--midnight); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { max-width: 12em; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.other { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Service chapter visuals + reveal */
.side { display: grid; gap: 1.75rem; }
.viz { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.viz .flow { stroke-dasharray: 8 12; }
.viz .bar { transform-box: fill-box; transform-origin: bottom; }
.viz .trend { stroke-dasharray: 1; stroke-dashoffset: 0; }
.viz .node, .viz .pulse { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .js .chapter h3, .js .chapter p, .js .chapter .btn, .js .chapter li, .js .chapter .viz { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .js .chapter p { transition-delay: .1s; } .js .chapter .btn { transition-delay: .2s; }
  .js .chapter .viz { transition-delay: .15s; }
  .js .chapter li:nth-child(1) { transition-delay: .35s; } .js .chapter li:nth-child(2) { transition-delay: .45s; }
  .js .chapter li:nth-child(3) { transition-delay: .55s; } .js .chapter li:nth-child(4) { transition-delay: .65s; }
  .js .chapter.in h3, .js .chapter.in p, .js .chapter.in .btn, .js .chapter.in li, .js .chapter.in .viz { opacity: 1; transform: none; }

  .viz .flow { animation: flow 1.1s linear infinite paused; }
  .in .viz .flow { animation-play-state: running; }
  .js .viz .bar { transform: scaleY(0); }
  .in .viz .bar { transform: none; transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(.4s + var(--k) * 90ms); }
  .js .viz .trend { stroke-dashoffset: 1; }
  .js .viz .trend-dot { opacity: 0; }
  .in .viz .trend { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease 1.1s; }
  .in .viz .trend-dot { opacity: 1; transition: opacity .3s ease 2.2s; }
  .js .viz .link { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .viz .node { transform: scale(0); }
  .in .viz .link { stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease; transition-delay: calc(.4s + var(--k) * 110ms); }
  .in .viz .node { transform: none; transition: transform .5s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(.9s + var(--k) * 110ms); }
  .in .viz .pulse { animation: pulse 2.4s ease-out 1.8s infinite; }
}
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }

/* Service pages: hero graphic, card reveal, demos */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.viz-wrap .viz { max-width: 520px; margin-left: auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .viz-wrap .viz { margin: 0; max-width: 400px; } }

.cap { position: relative; transition: transform .3s ease; }
.cap h3 { transition: color .25s ease, transform .3s ease; }
.cap:hover h3 { color: var(--accent); transform: translateX(6px); }
.cap::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--accent); transition: width .4s ease; }
.cap:hover::after { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .js .cap { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--n, 0) * 120ms); }
  .js .cap.in { opacity: 1; transform: none; }
  .js .cap.in:hover { transition-delay: 0s; }
}

.lab { background: var(--mist); }
.lab-card { background: var(--white); border: 2px solid var(--midnight); border-radius: 22px; padding: clamp(18px, 3vw, 36px); }
.lab .demo-note { color: var(--ink-soft); }
.seg { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; background: var(--mist); border-radius: 999px; margin-bottom: 1.5rem; }
.seg button { font: 700 .95rem var(--font-body); color: var(--ink); background: transparent; border: 0; border-radius: 999px; padding: .65rem 1.2rem; min-height: 44px; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { background: rgba(11,18,48,.08); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--white); }
.pipe { width: 100%; height: auto; }
.lab-stats { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: baseline; margin-top: 1rem; }
.lab-stats strong { font: 800 2.4rem/1 var(--font-display); font-stretch: 80%; color: var(--accent); }
.lab-stats .note { color: var(--ink-soft); max-width: 34em; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.kpi { border: 1.5px solid var(--line); border-radius: 16px; padding: 1rem 1.25rem; display: grid; gap: .25rem; }
.kpi span { color: var(--ink-soft); font-weight: 600; }
.kpi strong { font: 800 clamp(1.8rem, 4vw, 3rem)/1 var(--font-display); font-stretch: 80%; font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 2vw, 24px); align-items: end; height: 220px; }
.bars > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; text-align: center; }
.bars i { display: block; background: var(--accent); border-radius: 8px 8px 0 0; transition: height .8s cubic-bezier(.2,.8,.2,1); }
.bars span { font-weight: 600; color: var(--ink-soft); font-size: .9rem; }
.chat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.asks { display: grid; gap: .75rem; }
.asks button { text-align: left; font: 600 1rem/1.35 var(--font-body); color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-left: 6px solid var(--accent); border-radius: 14px; padding: 1rem 1.15rem; cursor: pointer; transition: background .2s, border-color .2s; }
.asks button:hover { background: var(--mist); }
.asks button[aria-pressed="true"] { border-color: var(--midnight); border-left-color: var(--accent); background: var(--mist); }
.thread { min-height: 260px; display: grid; align-content: start; gap: .9rem; }
.thread .empty { color: var(--ink-soft); padding: 1rem 0; }
.bubble { padding: .9rem 1.15rem; border-radius: 18px; max-width: 34em; }
.bubble.you { background: var(--midnight); color: var(--white); justify-self: end; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--mist); border-bottom-left-radius: 4px; display: grid; gap: .75rem; }
.bubble small { color: var(--ink-soft); }
.mini { display: grid; gap: .5rem; }
.mini > div { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .75rem; align-items: center; font-size: .95rem; }
.mini span { font-weight: 600; }
.mini b { height: 12px; background: var(--white); border-radius: 6px; overflow: hidden; display: block; }
.mini i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 6px; transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.8,.2,1) .2s; }
.bubble.in .mini i { transform: none; }
.mini em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.typing { display: inline-flex; gap: 5px; width: fit-content; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mini i { transform: none; transition: none; } .typing i { animation: none; } }
@media (max-width: 860px) { .chat { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr; } }
