/* =========================================================================
   Keepflow: AI that keeps work flowing.

   Colour roles follow the brand principle "AI interprets. Workflow
   controls. People decide.": cyan = AI, blue = workflow, violet = people.
   Emerald is reserved for "done" states, amber for "check", red for
   "stop". Fonts are self-hosted (SIL Open Font Licence, see assets/fonts),
   so the site makes no third-party requests.
   ========================================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #3B82F6;
  --secondary: #10B981;
  --neutral-dark: #1F2937;
  --neutral-light: #F9FAFB;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;

  --ink: #050814;
  --navy: #0A1024;
  --paper: #F2F4F8;
  --cyan: #22D3EE;
  --violet: #8B5CF6;
  --amber: #FBBF24;
  --red: #F87171;

  /* principle colours */
  --ai: var(--cyan);
  --flow: var(--primary);
  --human: var(--violet);
  --done: var(--secondary);
  /* legacy aliases used by shared components */
  --people: var(--primary);
  --tech: var(--cyan);
  --growth: var(--violet);
  --creative: #A5B4FC;

  /* theme (dark by default; .theme-light overrides) */
  --bg: var(--ink);
  --fg: var(--neutral-light);
  --muted: #A3ADC2;
  --faint: #808BA3;
  --line: rgba(249, 250, 251, 0.09);
  --line-strong: rgba(249, 250, 251, 0.18);
  --ph-fg: #9FE8F5;
  --ph-bg: rgba(34, 211, 238, 0.07);
  --ph-bd: rgba(34, 211, 238, 0.45);

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(88px, 10vw, 152px);
  --radius: 6px;

  --fs-display: clamp(2.6rem, 6vw, 5.75rem);
  --fs-h3: clamp(1.6rem, 2.4vw, 2.25rem);
  --fs-lead: clamp(1.125rem, 1.45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #4A5368;
  --faint: #5E677D;
  --line: rgba(5, 8, 20, 0.1);
  --line-strong: rgba(5, 8, 20, 0.22);
  --ph-fg: #0E6A80;
  --ph-bg: rgba(34, 211, 238, 0.12);
  --ph-bd: rgba(14, 106, 128, 0.45);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: rgba(59, 130, 246, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}
.theme-light :focus-visible { outline-color: var(--ink); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--neutral-light); color: var(--ink);
  font-weight: 600; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

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

/* ---------- Type tiers ---------- */
.h-display {
  font-size: var(--fs-display);
  font-weight: 700;
  font-stretch: 82%;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Pillar dots ---------- */
.dot {
  display: inline-block;
  width: 0.2em; height: 0.2em;
  border-radius: 50%;
  background: var(--dot-color, var(--people));
  box-shadow: 0 0 0.35em var(--dot-color, var(--people)), 0 0 1.1em color-mix(in srgb, var(--dot-color, var(--people)) 55%, transparent);
  vertical-align: baseline;
  margin-left: 0.05em;
  flex: none;
}
.dot--people { --dot-color: var(--people); }
.dot--tech   { --dot-color: var(--tech); }
.dot--growth { --dot-color: var(--growth); }

/* ---------- Placeholder treatment ---------- */
.ph {
  color: var(--ph-fg);
  background: var(--ph-bg);
  border: 1px dashed var(--ph-bd);
  border-radius: 3px;
  padding: 0.05em 0.35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- ButtonVariants ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out),
              box-shadow 300ms var(--ease-out), transform 200ms var(--ease-out), color 200ms;
}
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--primary); --btn-fg: var(--ink); --btn-bd: var(--primary); }
.btn--primary:hover {
  --btn-bg: #60A5FA; --btn-bd: #60A5FA;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35), 0 8px 36px -6px rgba(59, 130, 246, 0.75);
}
.btn--ghost:hover { --btn-bd: color-mix(in srgb, var(--fg) 50%, transparent); --btn-bg: color-mix(in srgb, var(--fg) 5%, transparent); }
.btn--lg { min-height: 58px; padding: 16px 30px; font-size: 1.0625rem; }

.link {
  display: inline-block;
  font-weight: 500;
  color: var(--fg);
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line-strong), var(--line-strong));
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 350ms var(--ease-out);
}
.link:hover { background-size: 100% 1px, 100% 1px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--neutral-light);
  --fg: var(--neutral-light);
  --line-strong: rgba(249, 250, 251, 0.18);
  border-bottom: 1px solid transparent;
  transition: background-color 300ms, border-color 300ms;
}
.navbar.is-scrolled {
  background: rgba(5, 8, 20, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(249, 250, 251, 0.09);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand__mark { display: inline-flex; gap: 4px; align-items: center; }
.brand__mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.brand__mark i:nth-child(1) { --c: var(--people); }
.brand__mark i:nth-child(2) { --c: var(--tech); }
.brand__mark i:nth-child(3) { --c: var(--growth); }
/* the three dots light up in turn every few seconds: work flowing through */
@keyframes brand-flow { 0%, 16%, 100% { transform: scale(1); opacity: 0.8; } 6% { transform: scale(1.45); opacity: 1; } }
.brand__mark i { animation: brand-flow 5s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.brand__mark i:nth-child(2) { animation-delay: 0.22s; }
.brand__mark i:nth-child(3) { animation-delay: 0.44s; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.03em; }

.navbar__nav { display: flex; align-items: center; gap: 36px; }
.navbar__links { display: flex; align-items: center; gap: 24px; }
.navbar__links a { white-space: nowrap; }
.navbar__links > li > a, .navbar__menu-btn { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-small); font-weight: 500; color: #A3ADC2; transition: color 200ms; }
.navbar__links > li > a:hover, .navbar__menu-btn:hover,
.navbar__links > li > a[aria-current="page"], .navbar__menu-btn.is-current { color: var(--neutral-light); }
.navbar__cta { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }

/* Services dropdown */
.navbar__has-menu { position: relative; }
.navbar__menu-btn { gap: 7px; padding: 0; background: none; border: 0; cursor: pointer; font-family: inherit; }
.navbar__chev { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.navbar__has-menu.is-open .navbar__chev { transform: rotate(180deg); }
.navmenu {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 60; width: 372px; padding: 10px;
  background: #0B1226; border: 1px solid rgba(249, 250, 251, 0.12); border-radius: 12px;
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.8);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms;
}
.navmenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.navbar__has-menu.is-open .navmenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.navmenu ul { display: grid; gap: 2px; }
.navbar__links .navmenu__item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 8px; white-space: normal; color: var(--neutral-light); transition: background-color 150ms; }
.navbar__links .navmenu__item:hover { background: rgba(249, 250, 251, 0.06); }
.navbar__links .navmenu__item[aria-current="page"] { background: rgba(59, 130, 246, 0.14); }
.navmenu__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: rgba(59, 130, 246, 0.16); color: #93B4FF; }
.navmenu__icon svg { width: 20px; height: 20px; }
.navmenu__name { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.navmenu__desc { display: block; margin-top: 3px; font-size: 0.875rem; line-height: 1.4; color: #A3ADC2; }
.navbar__links .navmenu__all { display: flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 12px; border-top: 1px solid rgba(249, 250, 251, 0.09); font-size: var(--fs-small); font-weight: 500; color: #A3ADC2; }
.navbar__links .navmenu__all:hover, .navbar__links .navmenu__all[aria-current="page"] { color: var(--neutral-light); }

.navbar__toggle {
  display: none; width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer; align-items: center; justify-content: center;
}
.navbar__toggle-bars { display: grid; gap: 6px; width: 22px; }
.navbar__toggle-bars i { height: 2px; background: var(--neutral-light); border-radius: 2px; transition: transform 300ms var(--ease-out); }
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bars i:first-child { transform: translateY(4px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bars i:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1080px) {
  .navbar__toggle { display: inline-flex; }
  .navbar__nav {
    position: fixed; inset: 76px 0 0 0;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px;
    padding: 24px var(--gutter) 40px;
    background: var(--ink);
    border-top: 1px solid rgba(249, 250, 251, 0.09);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s 250ms;
    overflow-y: auto;
  }
  .navbar__nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
  .navbar__links { flex-direction: column; align-items: stretch; gap: 0; }
  .navbar__links > li > a {
    display: block; padding: 14px 0;
    font-family: var(--font-display); font-size: 2rem; font-weight: 600; font-stretch: 85%; letter-spacing: -0.03em;
    color: var(--neutral-light); border-bottom: 1px solid rgba(249, 250, 251, 0.09);
  }
  .navbar__cta { min-height: 56px; font-size: 1rem; }
  .navbar__links > li > a, .navbar__menu-btn { display: flex; }
  .navbar__has-menu { position: static; }
  .navbar__menu-btn {
    width: 100%; justify-content: space-between; padding: 14px 0;
    font-family: var(--font-display); font-size: 2rem; font-weight: 600; font-stretch: 85%; letter-spacing: -0.03em;
    color: var(--neutral-light); border-bottom: 1px solid rgba(249, 250, 251, 0.09);
  }
  .navbar__chev { width: 16px; height: 11px; }
  .navmenu { position: static; display: none; width: auto; padding: 4px 0 12px; background: none; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .navmenu::before { display: none; }
  .navbar__has-menu.is-open .navmenu { display: block; transform: none; }
  .navbar__links .navmenu__item { padding: 12px 0; border: 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
  .navbar__links .navmenu__all { margin: 0; padding: 0; border-top: 0; border-bottom: 1px solid rgba(249, 250, 251, 0.09); font-family: var(--font-sans); font-size: 1rem; letter-spacing: 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open .navbar { background: var(--ink); border-bottom-color: rgba(249, 250, 251, 0.09); }
}

/* =========================================================================
   HERO (typography-led; one restrained canvas visual)
   ========================================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 36px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 60% at 10% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(40% 50% at 90% 40%, rgba(34, 211, 238, 0.08), transparent 70%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

/* Animated line fields behind dark sections (drawn by visuals.js) */
.has-flow { position: relative; isolation: isolate; }
.flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1400ms ease; }
.flow-canvas.is-on { opacity: 1; }
.hero__inner { position: relative; }
.hero__title {
  max-width: 11.5ch;
  font-size: clamp(3.2rem, 8vw, 8rem);
  font-weight: 700;
  font-stretch: 84%;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 40px rgba(5, 8, 20, 0.5);
}
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px 48px; margin-top: clamp(28px, 3.4vw, 48px);
}
.hero__lead {
  max-width: 40ch;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #D6DCE8;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  margin-top: clamp(36px, 4.6vw, 64px); padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--muted);
}
.hero__meta ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.hero__meta a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); transition: color 200ms; }
.hero__meta a:hover { color: var(--fg); }

/* the one orchestrated load moment */
.js .hero__title, .js .hero__foot, .js .hero__meta, .js .hero__canvas { opacity: 0; }
.js .hero__title, .js .hero__foot, .js .hero__meta { transform: translateY(18px); }
.js.is-loaded .hero__title { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 800ms var(--ease-out); }
.js.is-loaded .hero__foot { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out) 300ms, transform 900ms var(--ease-out) 300ms; }
.js.is-loaded .hero__meta { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out) 450ms, transform 900ms var(--ease-out) 450ms; }
.js.is-loaded .hero__canvas { opacity: 1; transition: opacity 1600ms ease 500ms; }

@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 38vh; padding-top: 36svh; }
  .hero__title { font-size: clamp(2.9rem, 13vw, 4.25rem); }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* =========================================================================
   SUBPAGE HERO
   ========================================================================= */
.page-hero { position: relative; padding: clamp(150px, 16vw, 210px) 0 clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 70% at 85% 0%, color-mix(in srgb, var(--accent, var(--flow)) 22%, transparent), transparent 70%);
}
.page-hero__crumb { font-size: var(--fs-small); color: var(--muted); margin-bottom: 24px; }
.page-hero__crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.page-hero__crumb a:hover { color: var(--fg); }
.page-hero__title { max-width: 14ch; font-size: clamp(2.8rem, 7vw, 6.75rem); font-weight: 700; font-stretch: 82%; line-height: 0.92; letter-spacing: -0.02em; }
.page-hero__outcome { margin-top: 24px; max-width: 28ch; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; color: color-mix(in srgb, var(--accent, var(--flow)) 55%, white); }
.page-hero__lead { margin-top: 20px; max-width: 56ch; font-size: var(--fs-lead); color: var(--muted); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* =========================================================================
   Shared section plumbing
   ========================================================================= */
.section-head { margin-bottom: clamp(48px, 6vw, 96px); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* split-word heading reveal */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms); }
.js [data-split].is-in .w > span { transform: none; }

/* light/accent sections open like a curtain as they arrive */
[data-curtain] { clip-path: inset(0 calc(var(--curtain, 0) * 3.5vw) round calc(var(--curtain, 0) * 32px)); }


/* small pause/play control for moving content */
.motion-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 16px;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--fg); font-family: var(--font-display); font-size: var(--fs-small); font-weight: 600;
  cursor: pointer; transition: border-color 200ms, background-color 200ms;
}
.motion-toggle:hover { border-color: color-mix(in srgb, var(--fg) 50%, transparent); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.motion-toggle[aria-pressed]::before {
  content: ""; width: 10px; height: 11px;
  background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%);
}
.motion-toggle[aria-pressed="true"]::before { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* =========================================================================
   Section scaffolding
   ========================================================================= */
.section { padding: var(--section-y) 0; position: relative; }
.section + .section:not(.theme-light) { border-top: 1px solid var(--line); }
.theme-light + .theme-light { border-top: 1px solid var(--line); }
.section__more { margin-top: clamp(32px, 4vw, 56px); }

/* =========================================================================
   WHERE DOES WORK GET STUCK? (scrolling statements)
   ========================================================================= */
.stuck { margin-top: clamp(24px, 3vw, 40px); border-top: 2px solid rgba(249, 250, 251, 0.5); }
.stuck__row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 10px 48px; align-items: center;
  padding: clamp(18px, 2.2vw, 30px) 0;
  border-bottom: 1px solid var(--line-strong);
}
.stuck__word {
  font-size: clamp(2.4rem, 6.4vw, 6.25rem);
  font-weight: 800; font-stretch: 75%;
  line-height: 0.88; letter-spacing: 0;
  text-transform: uppercase;
  transition: color 500ms, transform 600ms var(--ease-out);
}
.stuck__text { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; max-width: 30ch; color: #C9D0DD; }
.js .stuck__row:not(.is-current) .stuck__word { color: #1E2744; }
.stuck__row.is-current .stuck__word {
  background: linear-gradient(90deg, var(--fg), color-mix(in srgb, var(--cyan) 60%, var(--fg)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stuck__row:hover .stuck__word { transform: translateX(12px); }
@media (max-width: 760px) { .stuck__row { grid-template-columns: 1fr; } }

/* =========================================================================
   THREE CORE SOLUTIONS (light, editorial rows)
   ========================================================================= */
.sol-list { border-top: 2px solid var(--fg); }
.sol {
  display: grid;
  grid-template-columns: minmax(0, 0.18fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px clamp(24px, 4vw, 64px);
  padding: clamp(36px, 4.6vw, 64px) 0;
  border-bottom: 1px solid var(--line-strong);
}
.sol__num { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--muted); padding-top: 0.6em; }
.sol__title { font-size: clamp(2.2rem, 4.4vw, 4.25rem); font-weight: 700; font-stretch: 80%; line-height: 0.92; letter-spacing: -0.015em; }
.sol__outcome { margin-top: 18px; font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: #93B4FF; max-width: 24ch; }
.theme-light .sol__outcome { color: #1D4ED8; }
.sol__desc { font-size: var(--fs-lead); line-height: 1.5; max-width: 46ch; }
.sol__examples { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--line); }
.sol__examples li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.sol .link { margin-top: 24px; }

/* a thin chain showing the shape of each workflow */
.mini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-top: 22px; font-size: var(--fs-label); font-weight: 500; color: var(--muted); }
.mini-flow li { display: inline-flex; align-items: center; }
.mini-flow li + li::before { content: ""; order: -2; width: 22px; height: 1px; margin: 0 8px; background: var(--line-strong); }
.mini-flow li::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--dotc, var(--flow)); order: -1; margin: 0 8px 0 0; }
.mini-flow li:first-child::after { --dotc: var(--ai); }
.mini-flow li:last-child::after { --dotc: var(--human); }
@media (max-width: 900px) {
  .sol { grid-template-columns: 1fr; gap: 16px; }
  .sol__num { padding-top: 0; }
}
@media (max-width: 480px) { .sol__examples { grid-template-columns: 1fr; } }

/* =========================================================================
   INTERACTIVE DEMO
   ========================================================================= */
.demo-sec { position: relative; overflow: hidden; }
.demo-sec::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 40% at 85% 45%, rgba(34, 211, 238, 0.09), transparent 70%),
    radial-gradient(40% 35% at 5% 80%, rgba(139, 92, 246, 0.08), transparent 70%);
}
.principle-key { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 28px; font-size: var(--fs-small); color: var(--muted); }
.principle-key span { display: inline-flex; align-items: center; gap: 10px; }
.principle-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

.lab {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(14, 22, 48, 0.75), rgba(5, 8, 20, 0.92));
  box-shadow: 0 60px 160px -70px rgba(34, 211, 238, 0.35);
}
.lab__input { padding: clamp(22px, 3vw, 40px); border-right: 1px solid var(--line); display: grid; align-content: start; gap: 18px; }
.lab__biz { font-size: var(--fs-small); color: var(--muted); }
.lab__biz strong { color: var(--fg); font-weight: 500; }
.lab__presets { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.lab__presets legend, .lab__label { padding: 0; margin-bottom: 10px; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.preset {
  display: grid; gap: 4px; width: 100%; text-align: left;
  min-height: 64px; padding: 12px 16px;
  background: rgba(5, 8, 20, 0.5); border: 1px solid var(--line); border-left: 3px solid transparent;
  color: var(--fg); cursor: pointer;
  transition: border-color 200ms, background-color 200ms;
}
.preset:hover { border-color: var(--line-strong); }
.preset[aria-pressed="true"] { border-left-color: var(--ai); background: rgba(34, 211, 238, 0.06); }
.preset--safety[aria-pressed="true"] { border-left-color: var(--red); background: rgba(248, 113, 113, 0.07); }
.preset__tag { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.preset--safety .preset__tag { color: #FCA5A5; }
.preset__text { font-size: var(--fs-small); line-height: 1.4; }
.lab__field textarea {
  width: 100%; min-height: 96px; padding: 12px 14px; resize: vertical;
  background: rgba(5, 8, 20, 0.75); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 1rem; line-height: 1.5;
}
.lab__field textarea:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25); }
.lab__run { justify-self: start; }
.lab__run:disabled { opacity: 0.6; cursor: progress; }
.lab__note { font-size: 0.8125rem; color: var(--faint); }

.lab__pipeline { padding: clamp(22px, 3vw, 40px); display: grid; align-content: start; gap: 20px; scroll-margin-top: 90px; }
.pipe { display: grid; }
.pipe__stage { position: relative; padding: 0 0 22px 60px; }
.pipe__stage:last-child { padding-bottom: 0; }
.pipe__stage:not(:last-child)::before,
.pipe__stage:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 0; width: 2px; }
.pipe__stage:not(:last-child)::before { background: var(--line-strong); }
.pipe__stage:not(:last-child)::after {
  background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent));
  transform-origin: top; transform: scaleY(0); transition: transform 600ms var(--ease-out);
}
.pipe__stage.is-done:not(:last-child)::after { transform: scaleY(1); }
.pipe__stage--ai { --c: var(--ai); }
.pipe__stage--flow { --c: var(--flow); }
.pipe__stage--human { --c: var(--human); }
.pipe__node {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--muted);
  transition: border-color 400ms, color 400ms, box-shadow 400ms, background-color 400ms;
}
.pipe__stage.is-active .pipe__node { color: var(--c); border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 12%, transparent), 0 0 28px color-mix(in srgb, var(--c) 55%, transparent); }
.pipe__stage.is-active .pipe__node::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--c); animation: spin 900ms linear infinite; }
.pipe__stage.is-done .pipe__node { color: var(--ink); background: var(--c); border-color: var(--c); }
.pipe__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-height: 44px; padding-top: 9px; }
.pipe__title { font-size: 1.375rem; font-weight: 700; font-stretch: 88%; letter-spacing: -0.01em; }
.pipe__layer { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--c); }
.pipe__layer::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pipe__body { margin-top: 10px; }
.pipe__empty { font-size: var(--fs-small); color: var(--faint); }
.js .pipe__stage.is-done .pipe__body > * { animation: pipe-in 500ms var(--ease-out) both; }
@keyframes pipe-in { from { opacity: 0; transform: translateY(8px); } }
.pipe__hint { margin-top: 8px; font-size: 0.8125rem; color: var(--faint); }

.kv { display: grid; gap: 6px; }
.kv div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: var(--fs-small); }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; }
.kv--grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.kv--grid div { grid-template-columns: 1fr; gap: 0; padding: 8px 0; border-top: 1px solid var(--line); }
.kv dd.is-missing { color: var(--amber); font-weight: 500; }
.kv dd.is-warn { color: var(--amber); }
.kv dd.is-danger { color: var(--red); }

.checks { display: grid; gap: 6px; }
.check { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline; font-size: var(--fs-small); }
.check__badge { justify-self: start; padding: 2px 8px; font-size: 0.75rem; font-weight: 700; border: 1px solid currentColor; }
.check__text { display: grid; }
.check__text strong { font-weight: 600; }
.check__text span { color: var(--muted); }
.check--pass .check__badge { color: var(--done); }
.check--warn .check__badge { color: var(--amber); }
.check--fail .check__badge, .check--triggered .check__badge { color: var(--red); }
.check--info .check__badge { color: var(--flow); }

.acts { display: grid; gap: 6px; }
.act { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline; font-size: var(--fs-small); }
.act__who { justify-self: start; padding: 2px 8px; font-size: 0.75rem; font-weight: 700; color: var(--ink); background: var(--flow); }
.act--human .act__who { background: var(--human); }
.reply { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--ai); background: rgba(34, 211, 238, 0.06); }
.reply__label { font-size: 0.75rem; color: var(--ai); font-weight: 600; }
.reply__text { margin-top: 4px; font-size: var(--fs-small); }

.lab__outcome { display: none; padding: 16px 18px; border-left: 4px solid var(--done); background: rgba(16, 185, 129, 0.1); font-size: var(--fs-small); }
.lab__outcome.is-shown { display: block; animation: pipe-in 500ms var(--ease-out) both; }
.lab__outcome strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.lab__outcome--warn { border-left-color: var(--amber); background: rgba(251, 191, 36, 0.09); }
.lab__outcome--info { border-left-color: var(--flow); background: rgba(59, 130, 246, 0.1); }
.lab__outcome--danger { border-left-color: var(--red); background: rgba(248, 113, 113, 0.12); }
.lab__outcome--danger strong { color: #FCA5A5; }

.lab__rules { margin-top: 18px; font-size: var(--fs-small); color: var(--muted); }
.lab__rules summary { cursor: pointer; color: var(--fg); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.lab__rules ul { margin-top: 8px; display: grid; gap: 4px; padding-left: 18px; list-style: disc; }

@media (max-width: 960px) {
  .lab { grid-template-columns: 1fr; }
  .lab__input { border-right: 0; border-bottom: 1px solid var(--line); }
  .lab__presets { grid-template-columns: 1fr 1fr; }
  .preset__text { display: none; }
  .preset { min-height: 52px; align-content: center; }
  .preset__tag { font-size: var(--fs-small); color: var(--fg); }
  .lab__run { justify-self: stretch; }
}
@media (max-width: 480px) {
  .kv--grid { grid-template-columns: 1fr; }
  .check, .act { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================================
   WHY KEEPFLOW
   ========================================================================= */
.trio { margin-top: clamp(32px, 4vw, 56px); }
.trio__line { display: flex; align-items: baseline; gap: 0.03em; font-family: var(--font-display); font-size: clamp(2.8rem, 7.4vw, 7.25rem); font-weight: 700; font-stretch: 80%; line-height: 0.95; letter-spacing: -0.015em; }
.trio__line .dot { width: 0.15em; height: 0.15em; margin-left: 0; }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 112px); margin-top: clamp(56px, 7vw, 104px); align-items: start; }
.founder-note { font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.35; letter-spacing: -0.01em; }
.founder-note + p { margin-top: 18px; color: var(--muted); }
.concepts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.concepts li { flex: 1 1 50%; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); display: flex; align-items: center; gap: 10px; }
.concepts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--flow); flex: none; }
.principles { border-top: 1px solid var(--line-strong); }
.principle { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.principle h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 88%; letter-spacing: -0.005em; text-transform: uppercase; }
.principle p { color: var(--muted); }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .principle { grid-template-columns: 1fr; }
  .concepts li { flex-basis: 100%; }
}

/* =========================================================================
   SUBPAGE CONTENT BLOCKS
   ========================================================================= */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 6vw, 112px); align-items: start; }
.split__aside { position: sticky; top: 110px; }
.split__aside .h-display { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 700; font-stretch: 88%; letter-spacing: -0.01em; line-height: 1.1; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.005em; margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 82%, var(--bg)); }
.ticks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 1px solid var(--line-strong); }
.ticks li { display: flex; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.5em; border-radius: 50%; background: var(--c, var(--flow)); box-shadow: 0 0 8px var(--c, var(--flow)); }
.ticks--human { --c: var(--human); }
.ticks--ai { --c: var(--ai); }
@media (max-width: 700px) { .ticks { grid-template-columns: 1fr; } }

.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--fg); }
.layer { padding: 28px 28px 8px 0; }
.layer + .layer { padding-left: 28px; border-left: 1px solid var(--line); }
.layer__title { display: flex; align-items: baseline; gap: 0.1em; font-size: clamp(1.8rem, 3vw, 2.75rem); font-weight: 700; font-stretch: 82%; letter-spacing: -0.01em; line-height: 1; }
.layer__title .dot { width: 0.18em; height: 0.18em; }
.layer p { margin-top: 14px; color: var(--muted); }
.layer ul { margin-top: 14px; display: grid; gap: 6px; font-size: var(--fs-small); }
@media (max-width: 860px) {
  .layers { grid-template-columns: 1fr; }
  .layer, .layer + .layer { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.cta-band { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 70% at 15% 100%, rgba(59, 130, 246, 0.28), transparent 70%),
    radial-gradient(40% 70% at 85% 100%, rgba(139, 92, 246, 0.24), transparent 70%);
}
.cta-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.cta-band__title { font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 800; font-stretch: 76%; line-height: 0.9; letter-spacing: -0.01em; max-width: 13ch; }
.cta-band__text { margin-top: 16px; max-width: 46ch; color: var(--muted); font-size: var(--fs-lead); }

.next-steps { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line-strong); counter-reset: next; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); counter-increment: next; }
.next-steps li::before { content: counter(next); font-family: var(--font-display); font-weight: 700; color: var(--flow); }
.next-steps strong { display: block; font-family: var(--font-display); font-weight: 600; }
.next-steps span { color: var(--muted); font-size: var(--fs-small); }

.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 80px); }
.faq-group__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; font-stretch: 88%; letter-spacing: -0.01em; margin-bottom: 12px; }

.legal { max-width: 74ch; }
.legal .notice { padding: 16px 18px; border-left: 4px solid var(--amber); background: rgba(251, 191, 36, 0.08); color: var(--fg); }
.legal h2 { margin-top: 2.2em; }
.legal-meta { margin-top: 16px; font-size: var(--fs-small); color: var(--muted); }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__aside { position: static; }
}

/* =========================================================================
   STAGES (Discover / Build / Test / Manage)
   ========================================================================= */
.stages { padding: clamp(40px, 5vw, 80px) 0 var(--section-y); }
.stage-list { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.stage-list::before, .stage-list::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-strong); }
.stage-list::after { background: var(--ink); transform-origin: left center; transform: scaleX(var(--sp, 1)); }
.stage { position: relative; padding: 56px 32px 0 0; }
.stage + .stage { padding-left: 32px; border-left: 1px solid var(--line); }
.stage__node {
  position: absolute; top: -9px; left: -9px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line-strong);
  transition: background-color 500ms, border-color 500ms, box-shadow 500ms;
}
.stage__word {
  font-size: clamp(4rem, 10vw, 9.75rem);
  font-weight: 800; font-stretch: 75%;
  line-height: 0.84; letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 700ms var(--ease-out);
}
.stage__note { margin-top: 14px; color: var(--muted); max-width: 34ch; }
.js .stage-list { --sp: 0; }
.js .stage:not(.is-reached) .stage__word { color: #CDD3DE; }
.stage.is-reached .stage__node { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 7px rgba(59, 130, 246, 0.2); }
@media (max-width: 860px) {
  .stage-list { grid-template-columns: 1fr; padding-left: 36px; }
  .stage-list::before, .stage-list::after { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .stage-list::after { transform-origin: center top; transform: scaleY(var(--sp, 1)); }
  .stage, .stage + .stage { padding: 0 0 48px; border-left: 0; }
  .stage__node { left: -45px; top: 0.6em; }
}

/* =========================================================================
   7. TALENT EXPLORER
   ========================================================================= */
.talent { position: relative; padding: var(--section-y) 0; border-top: 1px solid var(--line); overflow: clip; }
.talent::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -20vw; top: 10%; width: 70vw; height: 70%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--explorer-c, var(--people)) 14%, transparent), transparent 75%);
  transition: background 600ms;
}
.talent__head { max-width: 1040px; }
.talent__head .lead { margin-top: 28px; }

.explorer {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.6fr);
  gap: 48px clamp(40px, 6vw, 112px);
  margin-top: clamp(56px, 7vw, 104px);
  align-items: start;
}
.explorer__side { position: sticky; top: 112px; }
.explorer__cats { position: relative; display: grid; border-left: 1px solid var(--line-strong); }
.explorer__cat {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0 16px 28px;
  background: none; border: 0; text-align: left; cursor: pointer;
  color: var(--muted);
}
.explorer__cat-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 700; font-stretch: 80%;
  line-height: 1; letter-spacing: -0.012em;
  transition: color 300ms, transform 500ms var(--ease-out);
}
.explorer__cat-count { font-size: var(--fs-label); white-space: nowrap; }
.explorer__cat:hover { color: var(--fg); }
.explorer__cat[aria-selected="true"] { color: var(--fg); }
.explorer__cat[aria-selected="true"] .explorer__cat-name { color: var(--c); transform: translateX(10px); }
.explorer__indicator {
  position: absolute; left: -1px; top: 0; width: 2px; height: var(--ih, 25%);
  background: var(--ic, var(--people)); box-shadow: 0 0 14px var(--ic, var(--people));
  transform: translateY(var(--iy, 0));
  transition: transform 550ms var(--ease-out), height 550ms var(--ease-out), background-color 300ms;
}
html:not(.js) .explorer__indicator { display: none; }

.explorer__panel[hidden] { display: none; }
.role-list { border-top: 1px solid var(--line-strong); }
.role {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.role::before {
  content: ""; position: absolute; inset: 0 -24px; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 20%, transparent), transparent 75%);
  opacity: 0; transform: scaleX(0.6); transform-origin: left;
  transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out);
}
.role:hover::before, .role:focus-within::before, .role.is-picked::before { opacity: 1; transform: none; }
.role.is-picked::before { opacity: 0.6; }
.role__name {
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  font-weight: 600; font-stretch: 85%;
  line-height: 1.02; letter-spacing: -0.018em;
  transition: transform 500ms var(--ease-out), color 300ms;
}
.role:hover .role__name, .role:focus-within .role__name { transform: translateX(10px); }
.role__desc { margin-top: 10px; color: var(--muted); max-width: 50ch; }

@media (hover: hover) and (pointer: fine) {
  .js .role__desc { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transition: max-height 500ms var(--ease-out), margin-top 500ms var(--ease-out), opacity 400ms; }
  .js .role:hover .role__desc, .js .role:focus-within .role__desc, .js .role.is-picked .role__desc { max-height: 5em; margin-top: 10px; opacity: 1; }
}

.role__add {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 18px 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem;
  transition: border-color 250ms, background-color 250ms;
}
.role__add:hover { border-color: var(--c); }
.role__add-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--c); transition: transform 400ms var(--ease-spring), background-color 300ms; }
.role__add-icon::before, .role__add-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--ink); border-radius: 2px; transition: transform 300ms var(--ease-out), width 300ms, margin 300ms;
}
.role__add-icon::after { transform: rotate(90deg); }
.role__add[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.role__add[aria-pressed="true"] .role__add-icon { transform: rotate(360deg); }
/* plus becomes a tick */
.role__add[aria-pressed="true"] .role__add-icon::before { width: 6px; margin: 1px 0 0 -6px; transform: rotate(45deg); }
.role__add[aria-pressed="true"] .role__add-icon::after { width: 11px; margin: -1px 0 0 -3px; transform: rotate(-50deg); }

.explorer__panel.is-entering .role { animation: role-in 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes role-in { from { opacity: 0; transform: translateX(48px); } }

.team-tray {
  margin-top: 40px; padding: 24px;
  display: grid; gap: 16px;
  background: linear-gradient(160deg, rgba(20, 32, 74, 0.7), rgba(10, 16, 36, 0.9));
  border: 1px solid var(--line-strong);
}
html:not(.js) .team-tray { display: none; }
.team-tray__constellation { display: flex; align-items: center; min-height: 28px; flex-wrap: wrap; gap: 0; }
.tray-dot {
  position: relative; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 12px var(--c);
  animation: tray-pop 500ms var(--ease-spring) both;
}
.tray-dot + .tray-dot { margin-left: 22px; }
.tray-dot + .tray-dot::before { content: ""; position: absolute; right: 100%; top: 50%; width: 22px; height: 1px; background: var(--line-strong); }
.tray-dot--empty { background: none; border: 1px dashed var(--line-strong); box-shadow: none; animation: none; }
@keyframes tray-pop { from { transform: scale(0); } }
.team-tray__summary { font-size: var(--fs-small); color: var(--muted); }
.team-tray__summary strong { color: var(--fg); font-weight: 600; }
.team-tray .btn { justify-self: start; }

@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; gap: 28px; }
  .explorer__side { display: contents; }
  .explorer__cats {
    order: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    border-left: 0; border-bottom: 1px solid var(--line-strong);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .explorer__cats::-webkit-scrollbar { display: none; }
  .explorer__cat { flex: none; scroll-snap-align: start; padding: 10px 22px 14px 0; flex-direction: column; align-items: flex-start; gap: 4px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .explorer__cat[aria-selected="true"] { border-bottom-color: var(--c); }
  .explorer__cat[aria-selected="true"] .explorer__cat-name { transform: none; }
  .explorer__cat-name { font-size: 1.75rem; }
  .explorer__indicator { display: none; }
  .explorer__panels { order: 2; }
  .team-tray {
    order: 3; position: sticky; bottom: 12px; z-index: 5; margin-top: 0;
    grid-template-columns: 1fr auto; align-items: center; padding: 14px 14px 14px 18px;
    background: rgba(10, 16, 36, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .team-tray__constellation { display: none; }
  .team-tray .btn { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; }
  .role { grid-template-columns: 1fr; gap: 14px; }
  .role__add { justify-self: start; }
}

/* =========================================================================
   WORKFLOW DIAGRAMS (used on solution pages)
   ========================================================================= */
.solutions { position: relative; padding: var(--section-y) 0; overflow: hidden; }
.solutions::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 80% 55%, rgba(34, 211, 238, 0.10), transparent 70%),
    radial-gradient(40% 30% at 10% 70%, rgba(59, 130, 246, 0.10), transparent 70%);
}
.system {
  --pad: clamp(20px, 3.2vw, 48px);
  position: relative; isolation: isolate;
  padding: 0 var(--pad) var(--pad);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(14, 22, 48, 0.8), rgba(5, 8, 20, 0.92));
  box-shadow: 0 60px 160px -60px rgba(34, 211, 238, 0.35);
}
.system::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000, transparent);
  mask-image: radial-gradient(80% 70% at 50% 45%, #000, transparent);
}

.demo-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 calc(var(--pad) * -1); border-bottom: 1px solid var(--line-strong); }
.demo-tab {
  position: relative; display: grid; gap: 6px; align-content: start; text-align: left;
  padding: clamp(18px, 2.2vw, 28px) var(--pad);
  background: none; border: 0; cursor: pointer; color: var(--muted);
  transition: background-color 300ms;
}
.demo-tab + .demo-tab { border-left: 1px solid var(--line); }
.demo-tab__num { font-size: var(--fs-label); font-weight: 500; }
.demo-tab__title { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.875rem); font-weight: 700; font-stretch: 82%; line-height: 1.05; letter-spacing: -0.008em; transition: color 300ms; }
.demo-tab:hover .demo-tab__title { color: var(--fg); }
.demo-tab[aria-selected="true"] { background: rgba(34, 211, 238, 0.05); }
.demo-tab[aria-selected="true"] .demo-tab__title { color: var(--fg); }
.demo-tab[aria-selected="true"] .demo-tab__num { color: var(--cyan); }
.demo-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
  transform: scaleX(0); transform-origin: left center; transition: transform 500ms var(--ease-out);
}
.demo-tab[aria-selected="true"]::after { transform: scaleX(1); }

.demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px clamp(32px, 5vw, 88px); align-items: start;
  padding-top: clamp(32px, 4vw, 56px);
}
.demo[hidden] { display: none; }
.demo__label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border: 1px solid rgba(34, 211, 238, 0.4);
  font-size: var(--fs-label); font-weight: 600; color: var(--cyan);
}
.system__live { width: 8px; height: 8px; border-radius: 50%; background: var(--done); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } }
/* the tab already names the demo, so the panel leads with its promise */
.demo__message { margin-top: 22px; font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 700; font-stretch: 82%; line-height: 1; letter-spacing: -0.01em; color: var(--fg); max-width: 18ch; }

/* live workflow: vertical node chain */
.flow__panel { margin-top: 36px; display: grid; }
.flow__step {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto;
  column-gap: 16px; align-items: center; padding-bottom: 20px; color: var(--muted);
}
.flow__step:last-child { padding-bottom: 0; }
.flow__step:not(:last-child)::before,
.flow__step:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; }
.flow__step:not(:last-child)::before { background: var(--line-strong); }
.flow__step:not(:last-child)::after {
  background: linear-gradient(180deg, var(--cyan), var(--people));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
  transform-origin: center top; transform: scaleY(0);
  transition: transform 600ms var(--ease-out);
}
.flow__step.is-done:not(:last-child)::after { transform: scaleY(1); }
.flow__step.is-active:not(:last-child)::before {
  background: repeating-linear-gradient(180deg, rgba(34, 211, 238, 0.85) 0 5px, transparent 5px 11px);
  background-size: 2px 22px; animation: data-flow-v 600ms linear infinite;
}
@keyframes data-flow-v { to { background-position: 0 22px; } }
.flow__node {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); border: 1px solid var(--line-strong); color: var(--muted);
  transition: border-color 400ms, color 400ms, box-shadow 400ms, background-color 400ms;
}
.flow__node svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow__step.is-active .flow__node {
  color: var(--cyan); border-color: rgba(34, 211, 238, 0.6); background: #08202E;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.08), 0 0 30px rgba(34, 211, 238, 0.55);
}
.flow__step.is-active .flow__node::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--cyan); border-right-color: rgba(34, 211, 238, 0.4);
  animation: spin 900ms linear infinite;
}
.flow__step.is-done .flow__node { color: var(--done); border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 20px -4px rgba(16, 185, 129, 0.55); }
.flow__node::after {
  content: ""; position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--done) no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050814' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  transform: scale(0); transition: transform 400ms var(--ease-spring);
}
.flow__step.is-done .flow__node::after { transform: scale(1); }
.flow__label { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--fg); }
.flow__step:not(.is-active):not(.is-done) .flow__label { color: var(--muted); }
.flow__state { font-size: 0.75rem; font-weight: 600; color: var(--faint); white-space: nowrap; }
.flow__state::before { content: "Waiting"; }
.flow__step.is-active .flow__state { color: var(--cyan); }
.flow__step.is-active .flow__state::before { content: "Processing"; }
.flow__step.is-done .flow__state { color: var(--done); }
.flow__step.is-done .flow__state::before { content: "Complete"; }

/* live preview of what the workflow produces */
.preview {
  position: sticky; top: 108px;
  display: flex; flex-direction: column; min-height: 540px;
  background: #070C1C; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -40px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(249, 250, 251, 0.05);
}
.preview__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-label); color: var(--muted); }
.preview__dots { display: inline-flex; gap: 5px; }
.preview__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(249, 250, 251, 0.18); }
.preview__feed { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.pv { max-width: 86%; font-size: var(--fs-small); line-height: 1.5; }
.js .pv { opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 450ms var(--ease-out), transform 600ms var(--ease-out); }
.js .pv.is-shown { opacity: 1; transform: none; }
.pv--event {
  align-self: center; max-width: 100%;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border: 1px dashed var(--line-strong);
  font-size: var(--fs-label); color: var(--muted);
}
.pv__icon { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
.pv__icon--alert { background: #F87171; }
.pv--out { align-self: flex-end; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--people); color: var(--ink); font-weight: 500; }
.pv--in { align-self: flex-start; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: #1A2340; color: var(--fg); }
.pv--fields { align-self: stretch; max-width: 100%; padding: 14px 16px; border: 1px solid rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.06); }
.pv--fields dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px 16px; }
.pv--fields dt { font-size: 0.75rem; color: var(--cyan); }
.pv--fields dd { font-weight: 600; color: var(--fg); }
.pv--card, .pv--notify, .pv--flag {
  align-self: stretch; max-width: 100%; display: grid; gap: 2px;
  padding: 14px 16px; border-left: 3px solid var(--done); background: rgba(16, 185, 129, 0.08);
}
.pv--notify { border-left-color: var(--people); background: rgba(59, 130, 246, 0.1); }
.pv--flag { border-left-color: #FBBF24; background: rgba(251, 191, 36, 0.08); }
.pv strong { font-family: var(--font-display); font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.pv--card span, .pv--notify span, .pv--flag span { color: var(--muted); }
.pv--doc { position: relative; align-self: stretch; max-width: 100%; display: grid; gap: 9px; padding: 18px; background: #0E1630; border: 1px solid var(--line); overflow: hidden; }
.pv__docline { height: 8px; border-radius: 2px; background: rgba(249, 250, 251, 0.14); }
.pv__docline--short { width: 45%; }
.pv__docline--mid { width: 70%; }
.pv--doc.is-shown::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.35), transparent);
  animation: scan 1.6s ease-in-out infinite alternate;
}
@keyframes scan { to { transform: translateY(70px); } }
.preview__note { padding: 0 22px 16px; font-size: 0.75rem; color: var(--faint); }

.system__controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); }
.system__status { font-size: var(--fs-label); color: var(--muted); }
.system__buttons { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .demo-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tab { flex: 0 0 72%; scroll-snap-align: start; }
  .demo { grid-template-columns: 1fr; }
  .preview { position: relative; top: auto; min-height: 0; }
  .flow__step { grid-template-columns: 48px minmax(0, 1fr); }
  .flow__state { grid-column: 2; }
}

/* =========================================================================
   ABOUT: the founder
   ========================================================================= */
.about { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.about__opening { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }
.about__body > p + p { margin-top: 18px; color: var(--muted); max-width: 62ch; }
.about__opening + p { margin-top: 28px; }
.about__creds { margin-top: 36px; }
.about__sign { margin-top: 40px; display: grid; gap: 4px; justify-items: start; }
.about__name { font-family: var(--font-display); font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 700; font-stretch: 85%; line-height: 1.1; }
.about__role { color: var(--muted); margin-bottom: 12px; }
}

/* =========================================================================
   12. FAQ
   ========================================================================= */
.faq { padding: var(--section-y) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px 80px; align-items: start; }
.faq__head { position: sticky; top: 22vh; }
.faq__head .lead { margin-top: 24px; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 48px; padding: 26px 0;
  font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25;
  cursor: pointer; list-style: none; transition: color 200ms;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: #fff; }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--cyan); border-radius: 2px; transition: transform 300ms var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 48px 28px 0; color: var(--muted); max-width: 64ch; }
.faq__item[open] .faq__answer { animation: faq-in 400ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__answer { padding-right: 0; }
}

/* =========================================================================
   13. FINAL CTA
   ========================================================================= */
.cta { position: relative; padding: var(--section-y) 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 12% 100%, rgba(59, 130, 246, 0.35), transparent 70%),
    radial-gradient(35% 50% at 45% 110%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(40% 60% at 80% 105%, rgba(139, 92, 246, 0.32), transparent 70%);
}
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 96px; align-items: start; }
.cta__title { font-size: clamp(3.4rem, 8.6vw, 8.25rem); font-weight: 800; font-stretch: 75%; line-height: 0.86; letter-spacing: -0.01em; }
.cta__lead { margin-top: 28px; font-size: var(--fs-lead); color: var(--muted); max-width: 42ch; }
.cta__contact { margin-top: 40px; display: grid; gap: 12px; }
.cta__contact li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.cta__contact-label { min-width: 96px; font-size: var(--fs-small); color: var(--muted); }

.form {
  padding: clamp(24px, 3vw, 40px);
  background: rgba(10, 16, 36, 0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font-size: var(--fs-small); font-weight: 500; }
.field__optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: rgba(5, 8, 20, 0.7); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 1rem; transition: border-color 200ms, box-shadow 200ms;
}
.field textarea { resize: vertical; min-height: 112px; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; color: var(--fg); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A3ADC2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
.field select option { background: #0A1024; color: #F9FAFB; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(249, 250, 251, 0.32); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); }
.field input[aria-invalid="true"] { border-color: #F87171; }
.field__error { margin-top: 8px; font-size: 0.875rem; color: #FCA5A5; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: var(--fs-small); color: var(--muted);
  transition: border-color 200ms, background-color 200ms, color 200ms;
}
.choice:hover span { border-color: rgba(249, 250, 251, 0.35); color: var(--fg); }
.choice input:checked + span { border-color: var(--primary); background: rgba(59, 130, 246, 0.16); color: var(--fg); }
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form__status { font-size: var(--fs-small); color: var(--muted); }
.form__status.is-success { color: #6EE7B7; }
.form__status.is-error { color: #FCA5A5; }
.form__status.is-info { color: #C9D0DD; }
.form__privacy { margin: 0 0 20px; font-size: 0.875rem; color: var(--muted); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.booking-note { margin-top: 24px; color: var(--muted); }
@media (max-width: 960px) { .cta__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
}

/* =========================================================================
   WHO WE HELP (sector cards) and industry pages
   ========================================================================= */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--fg); }
.sector { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 32px 8px 0; }
.sector + .sector { padding-left: 32px; border-left: 1px solid var(--line); }
.sector__title { font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 700; font-stretch: 82%; letter-spacing: -0.01em; line-height: 1; }
.sector__outcome { margin-top: 16px; font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: #93B4FF; }
.theme-light .sector__outcome { color: #1D4ED8; }
.sector__stuck { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.sector .mini-flow { margin-top: 22px; }
.sector__team { margin-top: 18px; display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-small); }
.sector__team::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--human); box-shadow: 0 0 8px var(--human); }
.sector__team { margin-bottom: 26px; }
.sector .link { margin-top: auto; }
@media (max-width: 960px) {
  .sectors { grid-template-columns: 1fr; }
  .sector, .sector + .sector { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.split .lead + .ticks { margin-top: 28px; }
.pull {
  margin-top: 36px; padding-left: 18px; border-left: 3px solid var(--flow);
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 600;
  line-height: 1.2; letter-spacing: -0.015em; max-width: 28ch;
}
.notice { padding: 16px 18px; border-left: 4px solid var(--amber); background: rgba(251, 191, 36, 0.08); color: var(--fg); font-size: var(--fs-small); }

/* own-numbers calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(10, 16, 36, 0.6); }
.calc__fields { padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; border-right: 1px solid var(--line); }
.calc__field label { display: block; margin-bottom: 8px; font-size: var(--fs-small); font-weight: 500; }
.calc__input { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(5, 8, 20, 0.6); transition: border-color 200ms, box-shadow 200ms; }
.calc__input:hover { border-color: rgba(249, 250, 251, 0.32); }
.calc__input:focus-within { border-color: var(--ai); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25); }
.calc__input span { padding-left: 14px; color: var(--muted); }
.calc__input input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; background: none; border: 0; color: var(--fg); font: inherit; font-size: 1.0625rem; -moz-appearance: textfield; appearance: textfield; }
.calc__input input:focus { outline: none; }
.calc__input input::-webkit-outer-spin-button, .calc__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__result { padding: clamp(22px, 3vw, 36px); display: grid; align-content: center; gap: 12px; }
.calc__big { font-family: var(--font-display); font-size: clamp(2.2rem, 4.2vw, 3.5rem); font-weight: 700; font-stretch: 82%; line-height: 1; letter-spacing: -0.015em; }
.calc__big.is-empty { color: var(--faint); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; }
.calc__sub { color: var(--muted); max-width: 32ch; }
.calc__note { margin-top: 16px; font-size: 0.8125rem; color: var(--faint); }
@media (max-width: 760px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__fields { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* =========================================================================
   Homepage problems (icon rows), service cards, service-page blocks
   ========================================================================= */
.stuck--icons { border-top-width: 1px; border-top-color: var(--line-strong); }
.stuck--icons .stuck__row { padding: clamp(18px, 2vw, 26px) 0; }
.stuck--icons .stuck__word {
  display: flex; align-items: center; gap: 18px;
  font-size: clamp(1.3rem, 2.3vw, 2rem); font-weight: 700; font-stretch: 86%;
  line-height: 1.1; letter-spacing: -0.01em; text-transform: none;
}
.js .stuck--icons .stuck__row:not(.is-current) .stuck__word { color: #B3BCCD; }
.stuck--icons .stuck__row.is-current .stuck__word { background: none; color: var(--fg); }
.stuck__icon {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(10, 16, 36, 0.85); color: #93B4FF;
  transition: border-color 400ms, color 400ms, background-color 400ms;
}
.stuck__icon svg { width: 24px; height: 24px; }
.stuck--icons .stuck__row.is-current .stuck__icon { border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.08); color: var(--cyan); }
.stuck--icons .stuck__text { font-family: var(--font-sans); font-size: var(--fs-lead); font-weight: 400; line-height: 1.45; letter-spacing: 0; color: #C9D0DD; max-width: 38ch; }

.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(24px, 2.6vw, 36px); background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 200ms, box-shadow 250ms, transform 250ms var(--ease-out);
}
.svc-card:hover { border-color: var(--line-strong); box-shadow: 0 20px 50px -26px rgba(5, 8, 20, 0.4); transform: translateY(-2px); }
.svc-card:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.svc-card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(59, 130, 246, 0.1); color: #1D4ED8; }
.svc-card__icon svg { width: 24px; height: 24px; }
.svc-card__title { margin-top: 22px; font-size: clamp(1.6rem, 2.2vw, 2rem); font-weight: 700; font-stretch: 85%; line-height: 1.05; letter-spacing: -0.01em; }
.svc-card__desc { margin-top: 12px; color: var(--muted); }
.svc-card .mini-flow { margin: 20px 0 28px; }
.svc-card__link { margin-top: auto; }
.svc-card__link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.svc-card__link:focus-visible { outline: none; }
.svc-more { color: var(--muted); }
@media (max-width: 960px) { .svc-cards { grid-template-columns: 1fr; } }

.stage__num { margin-bottom: 8px; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0 0 clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.steps li { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.steps__n { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(34, 211, 238, 0.5); border-radius: 50%; color: var(--cyan); font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700; }
.steps p { color: #C9D0DD; font-size: var(--fs-small); line-height: 1.55; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(40px, 6vw, 96px); }
.pair__title { margin-bottom: 24px; font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 700; font-stretch: 82%; line-height: 1; letter-spacing: -0.01em; }
.pair .ticks { grid-template-columns: 1fr; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }

.sub-title { margin: 40px 0 18px; font-size: 1.375rem; font-weight: 700; font-stretch: 88%; letter-spacing: -0.005em; }
.mini-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-card { padding: 20px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; }
.mini-card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(139, 92, 246, 0.1); color: #6D28D9; }
.mini-card__icon svg { width: 22px; height: 22px; }
.mini-card h3 { margin-top: 14px; font-size: 1.125rem; font-weight: 700; }
.mini-card p { margin-top: 6px; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
@media (max-width: 600px) { .mini-cards { grid-template-columns: 1fr; } }

.badge {
  display: inline-flex; align-items: center; margin-bottom: 20px; padding: 6px 12px;
  border: 1px solid rgba(251, 191, 36, 0.5); border-radius: 999px; background: rgba(251, 191, 36, 0.1);
  color: #FCD34D; font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0; text-transform: none;
}
.badge--inline { margin: 0 0 0 8px; padding: 2px 10px; font-size: 0.75rem; vertical-align: middle; }
.theme-light .badge { border-color: rgba(146, 64, 14, 0.35); background: rgba(251, 191, 36, 0.16); color: #92400E; }
.tbc { display: inline-block; padding: 1px 8px; border-radius: 4px; background: rgba(251, 191, 36, 0.12); color: #FCD34D; font-size: 0.875rem; font-weight: 600; }
.theme-light .notice { color: var(--fg); background: rgba(251, 191, 36, 0.14); border-left-color: #D97706; }

.about__photo { width: min(320px, 100%); height: auto; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 12px; margin-bottom: 32px; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); background: #03050D; overflow: hidden; }
.footer__word {
  font-family: var(--font-display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(2rem, 5vw, 4.75rem); line-height: 0.95; letter-spacing: -0.01em;
  color: #1A2240;
  margin: 0 0 64px -0.03em;
}
.footer__word .dot { width: 0.14em; height: 0.14em; margin-right: 0.18em; opacity: 0.8; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px 80px; }
.footer__tagline { margin: 20px 0 28px; max-width: 34ch; color: var(--muted); }
.footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__heading { font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500; color: var(--muted); }
.footer__nav ul { margin-top: 12px; display: grid; gap: 0; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; transition: color 200ms; }
.footer__email { margin: -12px 0 24px; }
.footer__nav a:hover { color: var(--cyan); }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer__nav { grid-template-columns: 1fr 1fr; } .footer__word { white-space: normal; } }

/* =========================================================================
   Reduced motion: everything shows in its final state
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .hero__title, .js .hero__foot, .js .hero__meta, .js .hero__canvas, .flow-canvas,
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; }
  .js .stage-list { --sp: 1; }
  .js .pv { opacity: 1; transform: none; }
  [data-curtain] { clip-path: none; }
}

/* =========================================================================
   Small layout variants
   ========================================================================= */
.demo-tabs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage-list--4 .stage__word { font-size: clamp(1.6rem, 2.4vw, 2.25rem); font-weight: 700; font-stretch: 85%; line-height: 1.05; letter-spacing: -0.01em; text-transform: none; }
.stage-list--4 .stage__note { color: var(--fg); font-size: var(--fs-body); max-width: 30ch; margin-top: 18px; }
.solutions.section { padding: var(--section-y) 0; }
