/* Nodalis AI — site styles
   Colour carries meaning across the site:
   amber = business data / Business Centre, teal = plant data / Smooth Operator,
   violet = agents, ink = source systems and text. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0F1E36;
  --ink-2: #3A4761;
  --ink-3: #5C6880;
  --paper: #F3F5F9;
  --white: #FFFFFF;
  --snow: #F7F9FC;
  --line: #DCE2EC;
  --line-2: #C3CCDB;

  --night: #0F1E36;
  --night-2: #172A49;
  --night-line: #2B4066;
  --night-text: #C6D0E1;
  --night-mute: #93A1BA;

  --amber: #F5A524;
  --amber-deep: #8F5B00;
  --amber-tint: #FDF1D8;
  --teal: #17B3A3;
  --teal-deep: #0A6B61;
  --teal-tint: #DCF4F0;
  --violet: #7357FF;
  --violet-deep: #5236DB;
  --violet-tint: #ECE8FF;

  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 30, 54, .05), 0 18px 40px -20px rgba(15, 30, 54, .28);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--ink); font-weight: 700; text-wrap: balance; }
p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; }
::selection { background: var(--violet-tint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

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

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: var(--snow); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
.h-display {
  font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.022em;
  font-weight: 720;
  font-stretch: 86%;
}
.h-section {
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.375rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 700;
  font-stretch: 88%;
}
.h-card {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -.012em;
  font-weight: 660;
  font-stretch: 92%;
}
.lead {
  font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}
.muted { color: var(--ink-3); }
.small { font-size: .9375rem; }
.measure { max-width: 64ch; }

.link {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.link:hover { color: var(--violet-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--ink); color: var(--snow); }
.btn--primary:hover { background: #22365A; }
.btn-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none;
  box-shadow: 0 0 0 3px rgba(245, 165, 36, .28);
}
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--snow); }
.btn--light { background: var(--snow); color: var(--ink); }
.btn--light:hover { background: var(--white); }
.btn--ghost-light { border-color: rgba(247, 249, 252, .55); color: var(--snow); background: transparent; }
.btn--ghost-light:hover { border-color: var(--snow); background: rgba(247, 249, 252, .08); }
.btn--sm { padding: 11px 18px; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 245, 249, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.brand img { display: block; height: 48px; width: auto; }
.nav-panel { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-size: 1rem; font-weight: 550; color: var(--ink);
}
.nav-links a:hover { background: rgba(15, 30, 54, .06); }
.nav-links a[aria-current="page"] { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .9375rem; cursor: pointer;
}
.menu-icon { position: relative; width: 16px; height: 10px; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.menu-icon::before { top: 0; }
.menu-icon::after { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px;
    box-shadow: 0 24px 40px -24px rgba(15, 30, 54, .25);
  }
  .nav-panel.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .nav-links a[aria-current="page"] { background: none; box-shadow: none; color: var(--violet-deep); }
  .nav-panel .btn { align-self: flex-start; }
}
@media (max-width: 480px) {
  .brand img { height: 38px; }
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(80px, 10vw, 128px); }
.sec--white { background: var(--white); }
.sec--night { background: var(--night); color: var(--night-text); }
.sec--night h2, .sec--night h3 { color: var(--snow); }
.sec--night .lead { color: var(--night-text); }
.sec--tight-top { padding-top: clamp(40px, 5vw, 64px); }

.sec-head { display: grid; gap: 20px; max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-foot { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(72px, 9vw, 112px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy { display: grid; gap: 28px; align-content: center; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9375rem; color: var(--ink-3); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--ink); }
.dot--biz { background: var(--amber); }
.dot--ops { background: var(--teal); }
.dot--agent { background: var(--violet); }
.dot--src { border-radius: 3px; background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }

.product-badge {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 1rem; color: var(--ink);
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Graph panel ---------- */
.graph-panel {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  height: clamp(580px, 50vw, 660px); padding: 16px;
  background-color: var(--white);
  background-image: radial-gradient(circle at 1px 1px, #D3DAE6 1.1px, transparent 1.7px);
  background-size: 22px 22px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.graph-panel--short { height: clamp(520px, 44vw, 600px); }
.graph-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 4px 6px 0;
  list-style: none; font-size: .8125rem; font-weight: 600; color: var(--ink-2);
}
.graph-legend li { display: inline-flex; align-items: center; gap: 7px; }
.graph-stage { position: relative; flex: 1 1 auto; min-height: 260px; }
.graph-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }

.agent-card {
  flex: none; display: grid; gap: 10px; min-height: 176px; align-content: start;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px 18px; box-shadow: 0 12px 30px -18px rgba(15, 30, 54, .4);
}
.agent-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1rem; color: var(--ink); }
.agent-name::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--violet); box-shadow: 0 0 0 4px var(--violet-tint);
}
.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1.4;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px;
}
.agent-text { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.card-controls { display: flex; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 14px; height: 14px; }

.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; list-style: none; }
.path li { display: inline-flex; align-items: center; }
.path li + li::before {
  content: ""; width: 12px; height: 2px; background: var(--line-2); margin: 0 3px;
}
.pill {
  display: inline-block; font-size: .8125rem; font-weight: 600; line-height: 1.35;
  padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pill--biz { background: var(--amber-tint); color: var(--amber-deep); box-shadow: none; }
.pill--ops { background: var(--teal-tint); color: var(--teal-deep); box-shadow: none; }
.pill--agent { background: var(--violet-tint); color: var(--violet-deep); box-shadow: none; }
.pill--src { background: var(--white); color: var(--ink); }

@media (max-width: 1040px) {
  .graph-panel { height: auto; }
  .graph-stage { flex: none; height: 400px; }
}
@media (max-width: 560px) {
  .graph-stage { height: 340px; }
  .agent-card { min-height: 0; }
}

/* ---------- Problem / module rows ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.module { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink); }
.module p { font-size: 1.0625rem; }
.module--biz { border-top-color: var(--amber); }
.module--ops { border-top-color: var(--teal); }
.module--agent { border-top-color: var(--violet); }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 56px) clamp(32px, 5vw, 64px); }
.sec--night .module { border-top-color: var(--night-line); }
.sec--night .module--ops { border-top-color: var(--teal); }
.sec--night .module--biz { border-top-color: var(--amber); }
.sec--night .module--agent { border-top-color: var(--violet); }

@media (max-width: 860px) {
  .trio { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
}

.plain-list { list-style: none; display: grid; gap: 8px; font-size: 1rem; }
.plain-list li { position: relative; padding-left: 20px; }
.plain-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--node, var(--ink-3));
}

/* ---------- Steps (a real sequence) ---------- */
.steps {
  list-style: none; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px);
}
.steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px);
}
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step-node {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.125rem;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink);
}
.step-node--src { border-radius: 12px; }
.step-node--graph { background: linear-gradient(90deg, var(--amber) 0 50%, var(--teal) 50% 100%); border-color: var(--ink); }
.step-node--agent { background: var(--violet); border-color: var(--violet); color: var(--white); }
.step-node--act { background: var(--ink); color: var(--snow); }
.step p { font-size: 1.0625rem; }
.step .aside { font-size: .9375rem; color: var(--ink-3); border-left: 2px solid var(--line); padding-left: 12px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before {
    top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 14px);
  }
  .step { grid-template-columns: 46px minmax(0, 1fr); column-gap: 20px; }
  .step > :not(.step-node) { grid-column: 2; }
  .step-node { grid-row: 1 / span 3; }
}

/* ---------- Products split ---------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px); display: grid; gap: 22px; align-content: start;
}
.product--bc { background: var(--amber-tint); --node: var(--amber); }
.product--so { background: var(--teal-tint); --node: var(--teal); }
.product-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1rem; color: var(--ink); }
.product h3 {
  font-size: clamp(1.75rem, 1.15rem + 1.6vw, 2.5rem); line-height: 1.04; letter-spacing: -.025em;
  font-stretch: 84%; font-weight: 720; max-width: 16ch;
}
.product p { color: var(--ink-2); max-width: 46ch; }
.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px; font-size: 1.0625rem; color: var(--ink); }
.feature-list li::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%; margin-top: .45em;
  background: var(--node, var(--violet)); box-shadow: 0 0 0 3px rgba(255, 255, 255, .8);
}
.product .link { margin-top: 6px; width: fit-content; }
.product-art { position: absolute; right: 18px; top: 18px; width: 150px; opacity: .9; pointer-events: none; }

@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
  .product-art { width: 130px; }
}

/* ---------- Comparison ---------- */
.compare { border-top: 2px solid var(--ink); }
.compare-row {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.15fr);
  border-bottom: 1px solid var(--line);
}
.compare-row > * { padding: 20px 24px 20px 0; font-size: 1.0625rem; }
.compare-row > .us { padding-left: 24px; background: var(--violet-tint); color: var(--ink); }
.compare-row--head > * { font-weight: 650; font-size: 1rem; color: var(--ink); padding-block: 16px; }
.compare-label { font-weight: 650; color: var(--ink); }
.compare-them { color: var(--ink-3); }
.sec--white .compare-row > .us { background: var(--violet-tint); }

@media (max-width: 760px) {
  .compare-row { grid-template-columns: 1fr; padding-block: 12px 16px; }
  .compare-row--head { display: none; }
  .compare-row > * { padding: 4px 0; }
  .compare-row > .us { padding: 10px 14px; border-radius: 12px; margin-top: 6px; }
  .compare-row > [data-label]::before {
    content: attr(data-label); display: block; font-size: .8125rem; font-weight: 650; color: var(--ink-3);
  }
  .compare-row > .us[data-label]::before { color: var(--violet-deep); }
}

/* ---------- Persona tabs ---------- */
.tabs { display: grid; gap: 24px; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  appearance: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font: 600 .98rem/1 var(--body); padding: 12px 16px; border-radius: 999px;
}
.tab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.tab:hover { border-color: var(--line-2); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--snow); border-color: var(--ink); }
.tabpanel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px);
  align-items: start; padding: clamp(24px, 4vw, 44px);
  background: var(--paper); border-radius: var(--r-lg);
}
.tabpanel[hidden] { display: none; }
.tabpanel-copy { display: grid; gap: 20px; }
.panel-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mini-head { font-family: var(--body); font-size: .9375rem; font-weight: 650; color: var(--ink-3); margin-bottom: 10px; }
.agent-output {
  display: grid; gap: 14px; padding: 24px 26px; border-radius: var(--r-md);
  background: var(--night); color: var(--night-text);
}
.agent-output .agent-name { color: var(--snow); }
.agent-output .agent-name::before { box-shadow: 0 0 0 4px rgba(115, 87, 255, .3); }
.agent-output .tag { color: var(--night-mute); border-color: var(--night-line); }
.agent-output p { font-size: 1.0625rem; line-height: 1.55; color: #E3E8F1; }
.agent-output .assigned { font-size: .9375rem; color: var(--night-mute); border-top: 1px solid var(--night-line); padding-top: 12px; }

@media (max-width: 860px) {
  .tabpanel { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .panel-lists { grid-template-columns: 1fr; }
}

/* ---------- Industries (night) ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.industry {
  display: grid; gap: 20px; align-content: start; padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--night-line);
}
.industry h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.08; letter-spacing: -.02em; font-stretch: 86%; font-weight: 700; }
.industry > p { color: var(--night-text); }
.industry--ops { --node: var(--teal); }
.industry--biz { --node: var(--amber); }
.sectors { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.sectors li {
  font-size: .875rem; font-weight: 600; color: var(--snow); padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--night-line); background: rgba(255, 255, 255, .03);
}
.questions { list-style: none; display: grid; gap: 10px; }
.questions li {
  font-size: 1.0625rem; color: #E3E8F1; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border-left: 3px solid var(--node, var(--violet));
}
.works-with { font-size: .9375rem; color: var(--night-mute); }
.works-with b { color: var(--snow); font-weight: 600; }

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
}

/* ---------- Phases (a real sequence) ---------- */
.phases {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.phases--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phase { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px 28px 0 0; }
.phase::before {
  content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
}
.sec--white .phase::before { background: var(--white); }
.phase:last-child::before { background: var(--ink); }
.phase-num { font-size: .9375rem; font-weight: 650; color: var(--ink-3); }
.phase p { font-size: 1.0625rem; }
.phase .dur { font-size: .9375rem; color: var(--ink-3); }

@media (max-width: 960px) {
  .phases, .phases--3 { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); gap: 28px; }
  .phase { padding: 0 0 0 28px; }
  .phase::before { top: 2px; left: -8px; }
}

/* ---------- Phase detail (How we work) ---------- */
.phase-rows { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.phase-row {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px); padding-block: 32px; border-bottom: 1px solid var(--line);
}
.phase-row h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.02em; font-stretch: 86%; }
.phase-row .phase-num { display: block; margin-bottom: 8px; }
.phase-row .dur { display: block; margin-top: 10px; font-size: .9375rem; color: var(--ink-3); }

@media (max-width: 860px) {
  .phase-row { grid-template-columns: 1fr; }
}

/* ---------- Pipeline (Business Centre) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pipe-col {
  position: relative; display: grid; gap: 14px; align-content: start;
  background: var(--paper); border-radius: var(--r-md); padding: 24px;
}
.pipe-col + .pipe-col::before {
  content: ""; position: absolute; left: -24px; top: 50%; width: 20px; height: 2px; background: var(--ink);
}
.pipe-col + .pipe-col::after {
  content: ""; position: absolute; left: -8px; top: calc(50% - 5px);
  border-left: 7px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.pipe-col h3 { font-size: 1.25rem; font-stretch: 92%; }
.pipe-col p { font-size: .9375rem; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }

@media (max-width: 960px) {
  .pipeline { grid-template-columns: 1fr; gap: 28px; }
  .pipe-col + .pipe-col::before { left: 50%; top: -24px; width: 2px; height: 20px; }
  .pipe-col + .pipe-col::after {
    left: calc(50% - 5px); top: -8px;
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-top: 7px solid var(--ink); border-bottom: 0;
  }
}

/* ---------- Definition list (first agents) ---------- */
.deflist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px); }
.deflist > div { display: grid; gap: 6px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.deflist dt { font-family: var(--display); font-weight: 660; font-size: 1.25rem; color: var(--ink); font-stretch: 92%; display: flex; align-items: center; gap: 10px; }
.deflist dt::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--node, var(--violet)); flex: none; }
.deflist dd { margin: 0; font-size: 1.0625rem; }
dl { margin: 0; }

@media (max-width: 760px) {
  .deflist { grid-template-columns: 1fr; }
}

/* ---------- Architecture (Smooth Operator) ---------- */
.arch { display: grid; max-width: 920px; }
.arch-layer { display: grid; gap: 14px; border-radius: var(--r-md); padding: clamp(20px, 3vw, 28px); }
.arch-layer h3 { font-size: 1.25rem; font-stretch: 92%; }
.arch-layer p { font-size: 1rem; }
.arch-layer--plant { background: var(--white); border: 1px solid var(--line); }
.arch-layer--edge { background: var(--teal-tint); border: 2px solid var(--teal); }
.arch-layer--cloud { background: transparent; border: 1.5px dashed var(--line-2); }
.arch-flow {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding: 14px clamp(20px, 3vw, 28px);
}
.flow { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.flow svg { width: 18px; height: 26px; flex: none; color: var(--ink); }
.flow--muted { color: var(--ink-3); font-weight: 550; }

@media (max-width: 640px) {
  .arch-flow { grid-template-columns: 1fr; }
}

/* ---------- Explorer (Knowledge graph page) ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.explorer .graph-panel { height: 600px; }
.explorer-side {
  display: grid; gap: 22px; align-content: start; padding: clamp(22px, 3vw, 30px);
  background: var(--paper); border-radius: var(--r-lg);
}
.entity-list { display: flex; flex-wrap: wrap; gap: 6px; }
.entity-btn {
  appearance: none; cursor: pointer; border: 0; font: 600 .8125rem/1.35 var(--body);
  padding: 5px 11px; border-radius: 999px;
}
.entity-btn[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.focus-box { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.focus-title { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; font-weight: 700; color: var(--ink); font-stretch: 88%; letter-spacing: -.015em; }
.relations { list-style: none; display: grid; gap: 10px; font-size: .98rem; color: var(--ink-2); }
.relations li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

@media (max-width: 1000px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer .graph-panel { height: auto; }
}

/* ---------- Teach-it rows (Knowledge graph page) ---------- */
.teach { display: grid; gap: 16px; }
.teach-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 16px; align-items: center;
}
.say {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; font-size: 1.125rem; color: var(--ink); line-height: 1.45;
}
.say small { display: block; font-size: .8125rem; font-weight: 650; color: var(--ink-3); margin-bottom: 6px; }
.becomes { display: grid; place-items: center; color: var(--ink); }
.becomes svg { width: 26px; height: 18px; }
.rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .98rem; color: var(--ink-2); }

@media (max-width: 760px) {
  .teach-row { grid-template-columns: 1fr; }
  .becomes { justify-items: start; padding-left: 20px; }
  .becomes svg { transform: rotate(90deg); }
}

/* ---------- Answer card ---------- */
.answer {
  display: grid; gap: 16px; max-width: 780px; padding: clamp(24px, 4vw, 36px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.answer-q { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; font-weight: 680; color: var(--ink); font-stretch: 90%; }
.answer-a { font-size: 1.0625rem; color: var(--ink-2); }
.answer-path { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Two-column intro split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 2px solid var(--ink); max-width: 880px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0;
  font-family: var(--display); font-size: 1.3rem; line-height: 1.25; font-weight: 660; color: var(--ink); font-stretch: 92%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink);
  transition: transform .2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq-body { padding: 0 0 24px; max-width: 68ch; font-size: 1.0625rem; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px; align-items: end; padding: clamp(36px, 6vw, 72px);
  background: var(--ink); color: var(--night-text); border-radius: var(--r-lg);
}
.cta h2 { color: var(--snow); }
.cta-copy { display: grid; gap: 18px; position: relative; z-index: 1; }
.cta-copy p { max-width: 52ch; }
.cta-action { display: grid; gap: 16px; justify-items: start; position: relative; z-index: 1; }
.email-big {
  font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 700;
  letter-spacing: -.02em; font-stretch: 86%; color: var(--snow); text-decoration: none;
  border-bottom: 3px solid var(--amber); padding-bottom: 2px; line-height: 1.15; overflow-wrap: anywhere;
}
.email-big:hover { border-bottom-color: var(--snow); }
.cta-art { position: absolute; right: -40px; top: -40px; width: 300px; opacity: .55; pointer-events: none; }

@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; }
  .cta-art { width: 200px; right: -50px; top: -50px; opacity: .35; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.email-card {
  display: grid; gap: 18px; align-content: start; padding: clamp(28px, 4vw, 44px);
  background: var(--ink); color: var(--night-text); border-radius: var(--r-lg);
}
.email-card h2 { color: var(--snow); font-size: 1.25rem; font-family: var(--body); font-weight: 650; }
.copy-status { font-size: .9375rem; color: var(--night-mute); min-height: 1.5em; }
.form {
  display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.form h2 { font-size: 1.5rem; font-stretch: 90%; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: .98rem; color: var(--ink); padding: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 13px 14px;
}
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); }
.input[aria-invalid="true"] { border-color: #C2341F; }
textarea.input { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice input + span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  border: 1.5px solid var(--line-2); font-size: .9375rem; font-weight: 600; color: var(--ink); background: var(--white);
}
.choice input:checked + span { background: var(--ink); color: var(--snow); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.field-error { font-size: .9375rem; color: #A62B18; font-weight: 600; }
.form-note { font-size: .9375rem; color: var(--ink-3); }
.form-status { font-size: .9375rem; color: var(--ink-2); min-height: 1.5em; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 96px); }
.page-hero-copy { display: grid; gap: 26px; }
.page-hero-copy > * { max-width: 900px; }
.page-hero + .sec--tight-top { padding-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding-block: 72px 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand .brand img { height: 48px; }
.footer-brand p { max-width: 34ch; font-size: 1rem; }
.footer-col h2 { font-family: var(--body); font-size: .9375rem; font-weight: 650; color: var(--snow); margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: 1rem; }
.footer-links a { text-decoration: none; color: var(--night-text); }
.footer-links a:hover { color: var(--snow); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9375rem; color: var(--night-mute);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; align-content: center; gap: 26px; padding-block: 80px; }

.sec--night .product-name { color: var(--snow); }
.split > .sec-head { margin-bottom: 0; }
.email-card .mini-head { color: var(--snow); }
