/* =====================================================================
   Aarvik Digital: site styles
   Layout patterns modelled on Ramp's marketing site (see docs/ramp-pattern-analysis.md);
   all visuals, copy and code are original. Tokens: design-system/aarvik-digital/MASTER.md
   ===================================================================== */

@font-face {
  font-family: "Aspekta";
  src: url("../fonts/aspekta-variable.woff2") format("woff2");
  font-weight: 50 1000;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/roboto-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

/* ---------- Tokens (v4: dark ember default, warm light variant) ----------
   The page is light; sections marked .zone-dark redefine the tokens for a dark band. */
:root {
  color-scheme: light;
  --bg: #f6f3ef;
  --bg-2: #efebe6;
  --surface: #ece7e1;
  --surface-2: #e2dcd5;
  --ink: #141215;
  --ink-2: #3b373e;
  --muted: #69636e;
  --line: rgba(20, 18, 21, 0.09);
  --line-strong: rgba(20, 18, 21, 0.18);
  --accent: #d90a2c;
  --accent-hover: #b40824;
  --accent-text: #c4082a;
  --accent-soft: rgba(217, 10, 44, 0.08);
  --on-accent: #ffffff;
  --ember: #ff5b1f;
  --ember-deep: #7a0718;
  --ember-grad: linear-gradient(180deg, #ff7a3d 0%, #e5182f 48%, #8f0a1f 100%);
  --ember-text: linear-gradient(100deg, #ff6a2b 0%, #e0112f 55%, #b30a2a 100%);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  --glass-line: rgba(20, 18, 21, 0.08);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shell: rgba(20, 18, 21, 0.035);
  --band: #0c0b0d;
  --band-2: #18161a;
  --band-ink: #f4f1ee;
  --band-muted: #a29ca8;
  --band-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 1px 2px rgba(60, 20, 20, 0.05), 0 24px 48px -28px rgba(120, 20, 30, 0.25);
  --glow: 0 0 0 0 transparent;
  --grain-opacity: 0.035;

  --font: "Aspekta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-display: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);
  --t-section: clamp(2rem, 1.35rem + 2.2vw, 3.25rem);
  --t-block: 1.375rem;

  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --header-h: 76px;

  --r-control: 999px;
  --r-card: 24px;
  --r-shell: 30px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* z-index scale */
  --z-grain: 40;
  --z-header: 50;
  --z-drawer: 60;
  --z-skip: 70;
}

/* dark zones: any element with .zone-dark (hero runs, stats bento, inner heroes, footer) */
.zone-dark {
  color-scheme: dark;
  --bg: #0b0a0c;
  --bg-2: #100e11;
  --surface: #141215;
  --surface-2: #1c191e;
  --ink: #f4f1ee;
  --ink-2: #d2ccd4;
  --muted: #a19aa6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent-text: #ff5d6f;
  --accent-soft: rgba(255, 70, 90, 0.12);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  --glass-line: rgba(255, 255, 255, 0.08);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shell: rgba(255, 255, 255, 0.025);
  --band: #070608;
  --band-2: #141215;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 48px -28px rgba(0, 0, 0, 0.8);
  --glow: 0 30px 90px -30px rgba(255, 60, 30, 0.5);
  --grain-opacity: 0.05;
}

/* ---------- Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  border-radius: var(--r-control);
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--surface); }

/* ---------- Type ------------------------------------------------------ */
.display {
  font-size: var(--t-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.h-section {
  font-size: var(--t-section);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 20ch;
}
.h-block {
  font-size: var(--t-block);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}
.body { color: var(--ink-2); max-width: 65ch; }
.body + .body { margin-top: 1em; }
.small { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.label {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head { display: grid; gap: 16px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lead { margin-top: 4px; }

/* ---------- Buttons & links ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-control);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--secondary { background: var(--surface-2); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--small { min-height: 40px; padding: 0 14px; font-size: 0.9375rem; border-radius: 6px; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--accent-hover); }
  .btn--secondary:hover { background: var(--line-strong); }
  .btn--dark:hover { background: var(--ink-2); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.text-link i { font-size: 0.8em; transition: transform 0.2s var(--ease); }
@media (hover: hover) {
  .text-link:hover { color: var(--accent-text); }
  .text-link:hover i { transform: translateX(4px); }
}

/* ---------- Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-solid { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a[aria-current="page"] { color: var(--accent-text); }
@media (hover: hover) { .nav a:hover { background: var(--surface); color: var(--ink); } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}
.menu-toggle:active { transform: scale(0.94); }

.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-drawer);
  background: var(--bg);
  padding: 16px var(--gutter) 32px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.drawer.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s;
}
.drawer nav { display: grid; }
.drawer a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}
.drawer a[aria-current="page"] { color: var(--accent-text); }
.drawer .btn { margin-top: 24px; width: 100%; border-bottom: 0; }

@media (max-width: 1080px) {
  .site-header .nav, .header-actions .btn--secondary { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .header-actions .btn--primary { display: none; }
}

/* ---------- Email capture --------------------------------------------- */
.capture {
  display: flex;
  gap: 6px;
  max-width: 480px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
}
.capture input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 1rem;
}
.capture input::placeholder { color: var(--muted); }
.capture input:focus { outline: none; }
.capture:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.capture .btn { min-height: 48px; }
.capture-note { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 480px) {
  .capture { flex-direction: column; }
  .capture .btn { width: 100%; }
}

/* ---------- Hero ------------------------------------------------------ */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-copy .capture { margin-top: 8px; width: 100%; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden],
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs [aria-current] { color: var(--ink-2); }

.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--hero { aspect-ratio: 5 / 4; }
.media--wide { aspect-ratio: 16 / 10; }
.media--tall { aspect-ratio: 4 / 5; }

.mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.mosaic .media { aspect-ratio: auto; height: clamp(220px, 32vw, 420px); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .media { height: 240px; }
}

/* ---------- Homepage silk hero ---------------------------------------- */
/* Homepage: the header floats over the full-bleed hero until the page scrolls */
.page-home .site-header { margin-bottom: calc(-1 * var(--header-h)); }
.hero-silk {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: max(680px, 100svh);
  padding: calc(var(--header-h) + clamp(40px, 10vh, 120px)) 0 clamp(32px, 7vh, 72px);
  color: var(--ink);
  /* static fallback (no WebGL) and first paint before the shader starts */
  background:
    radial-gradient(70% 55% at 50% 108%, #ff6a2b 0%, transparent 62%),
    radial-gradient(90% 70% at 50% 120%, #d90a2c 0%, transparent 70%),
    var(--bg);
}
.hero-silk canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-silk.is-live canvas { opacity: 1; }
/* copy on the left, orchestration card on the right, proof strip across the bottom */
.hero-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: 1fr auto;
  gap: 40px clamp(24px, 4vw, 64px);
  width: 100%;
}
.hero-v2-copy { display: grid; align-content: center; gap: 28px; }
.hero-silk .display { font-size: clamp(3rem, 1.2rem + 5vw, 6.25rem); line-height: 1; letter-spacing: -0.03em; }
.hero-v2-copy .lead { color: var(--ink-2); max-width: 40ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }
.hero-v2-copy .capture {
  max-width: 480px;
  background: rgba(255, 250, 250, 0.82);
  border-color: rgba(17, 16, 19, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (prefers-reduced-transparency: reduce) {
  .hero-v2-copy .capture { background: #fffafa; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* rotating first word (interactive.js); the h1's accessible name stays fixed */
.rot { display: block; position: relative; height: 1.08em; overflow: hidden; }
.rot-word {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.1em;
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
}
.rot-word.is-out { transform: translateY(-100%); opacity: 0; }
.rot-word.is-in { transform: translateY(100%); opacity: 0; transition: none; }
.hero-v2-visual { display: grid; align-items: center; justify-items: end; }

.proof {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 16, 19, 0.12);
}
.proof-stats { display: flex; gap: clamp(20px, 3vw, 40px); list-style: none; }
.proof-stats li { display: grid; gap: 2px; }
.proof-stats strong { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.proof-stats span { max-width: 16ch; color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.proof-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.proof-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 250, 250, 0.7);
  box-shadow: 0 0 0 1px rgba(17, 16, 19, 0.1);
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
@media (hover: hover) { .proof-chips a:hover { background: #fff; } }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 400 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.scroll-cue i { animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(4px); } }
@media (max-width: 960px) {
  .hero-v2 { grid-template-columns: 1fr; }
  .hero-v2-visual { justify-items: stretch; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .hero-silk { min-height: 0; padding: calc(var(--header-h) + 32px) 0 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .rot-word, .scroll-cue i { animation: none; transition: none; }
}

/* ---------- Hero orchestration card (build.py orch_card, interactive.js) --- */
.orch {
  width: min(480px, 100%);
  padding: 16px 18px 14px;
  border-radius: 20px;
  background: rgba(255, 250, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(17, 16, 19, 0.07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #111013;
}
.orch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 14px; }
.orch-tasks { display: flex; flex-wrap: wrap; gap: 2px; }
.orch-tasks button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #615d66;
  font: 500 0.75rem/1 var(--font);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.orch-tasks button[aria-pressed="true"] { background: #111013; color: #fff; }
@media (hover: hover) { .orch-tasks button:hover:not([aria-pressed="true"]) { color: #111013; } }
.orch-map { position: relative; height: 250px; margin: 0 -4px; }
.orch-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orch-col { position: absolute; top: 0; left: var(--x); color: #615d66; font: 400 0.625rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); }
.orch-edge { stroke: rgba(17, 16, 19, 0.16); stroke-width: 1; transition: stroke 0.3s ease, stroke-width 0.3s ease; }
.orch-edge--sys { stroke-dasharray: 2 4; }
.orch-edge.is-on { stroke: var(--accent); stroke-width: 1.75; stroke-dasharray: none; }
.orch-edge.is-hl { stroke: rgba(217, 10, 44, 0.5); stroke-width: 1.5; }
.orch-packet { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(217, 10, 44, 0.7)); }
.orch-packet-halo { fill: rgba(217, 10, 44, 0.16); }
.orch-node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border: 1px solid rgba(17, 16, 19, 0.1);
  border-radius: 10px;
  background: #fff;
  color: #111013;
  font: inherit;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  cursor: default;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.orch-node i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--accent-text); font-size: 0.6875rem; }
.orch-node b { font-size: 0.75rem; font-weight: 600; }
.orch-node--orch { background: #111013; color: #fff; border-color: #111013; }
.orch-node--orch i { color: #ff6b81; }
.orch-node--sys { border-color: transparent; background: rgba(255, 255, 255, 0.55); }
.orch-node--sys i { color: #615d66; }
.orch-node--sys b { font-weight: 500; color: #3a373d; }
.orch-node.is-done { border-color: rgba(217, 10, 44, 0.35); }
.orch-node.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 10, 44, 0.14); }
.orch-node--sys.is-active i, .orch-node--human.is-approved i { background: var(--accent); color: #fff; }
.orch-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.orch-status { display: flex; align-items: baseline; gap: 10px; min-height: 1.5em; padding-top: 10px; border-top: 1px solid rgba(17, 16, 19, 0.07); font-size: 0.8125rem; font-weight: 500; line-height: 1.45; }
.orch-count { flex: none; color: var(--accent-text); font: 500 0.6875rem/1.6 var(--mono); letter-spacing: 0.06em; }
.orch-count:empty { display: none; }
.orch-status.is-role { color: #3a373d; font-weight: 400; }
@media (max-width: 960px) { .orch { width: 100%; } }
@media (max-width: 520px) {
  .orch { padding: 14px 12px 12px; }
  .orch-node { padding: 4px 7px 4px 4px; }
  .orch-node--sys { padding: 4px; }
  .orch-node--sys b { display: none; }
  .orch-col { font-size: 0.5625rem; letter-spacing: 0.06em; }
}
@media (prefers-reduced-motion: reduce) {
  .orch-node, .orch-edge { transition: none; }
}

/* ---------- Logo marquee ---------------------------------------------- */
.logos { padding-block: clamp(2rem, 4vw, 3rem); }
.logos-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.logos-head p { color: var(--muted); font-size: 0.9375rem; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
  width: max-content;
  list-style: none;
  animation: marquee 70s linear infinite;
}
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; }
.marquee-track img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
}
.zone-dark .marquee-track img { filter: grayscale(1) invert(1) brightness(1.4); opacity: 0.55; mix-blend-mode: screen; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .pause-btn { display: none; }
}

/* ---------- Feature row (four-up) -------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  list-style: none;
}
.feature { display: grid; gap: 10px; align-content: start; }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 1.125rem;
}
.feature h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 0.9375rem; }
.feature .text-link { font-size: 0.9375rem; margin-top: auto; }

/* ---------- Geometric marks ---------------------------------------------
   Line marks from build.py; stroke stays 1.25px at any size. */
.mark, .cap-mark, .tile-mark { display: block; overflow: visible; }
.mark *, .cap-mark *, .tile-mark * { vector-effect: non-scaling-stroke; stroke-width: 1.25px; }
.feature-mark { display: block; width: 56px; height: 56px; color: var(--accent-text); }
.feature-mark .mark { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.tile-mark { flex: none; width: 44px; height: 44px; color: var(--ink-2); transition: transform 0.6s var(--ease), color 0.25s ease; }
@media (hover: hover) {
  .feature:hover .feature-mark .mark,
  .card:hover .feature-mark .mark { transform: rotate(-8deg); }
  .tile:hover .tile-mark { transform: rotate(-8deg) scale(1.05); color: var(--accent-text); }
}
@media (prefers-reduced-motion: reduce) {
  .feature-mark .mark, .tile-mark { transition: none; }
}
/* text-only heroes (Blog, Contact): a large mark beside the headline */
.hero-marked {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero-mark { width: clamp(140px, 18vw, 240px); height: auto; color: var(--accent-text); }
.hero-mark * { vector-effect: non-scaling-stroke; stroke-width: 1.25px; }
.location .feature-mark { width: 44px; height: 44px; margin-bottom: 6px; }
@media (max-width: 640px) {
  .hero-marked { grid-template-columns: 1fr; }
  .hero-mark { width: 96px; order: -1; }
}

/* ---------- Capability panels (homepage) ---------------------------------
   Full-bleed row of numbered colour panels; each panel is one link. */
.caps-section { padding-bottom: 0; }
.caps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}
.cap {
  --cap-fg: var(--ink);
  --cap-muted: var(--ink-2);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 48px;
  height: 100%;
  min-height: clamp(360px, 32vw, 460px);
  padding: clamp(28px, 3vw, 44px);
  color: var(--cap-fg);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.15s var(--ease);
}
.cap:active { transform: scale(0.99); }
.cap--blush { background: #fbe1e4; --cap-fg: #111013; --cap-muted: #3a2f33; }
.cap--ink   { background: #111013; --cap-fg: #f6f3f0; --cap-muted: #c9c3cc; }
.cap--stone { background: #e8e5e1; --cap-fg: #111013; --cap-muted: #3a373d; }
.cap--red   { background: #d90a2c; --cap-fg: #ffffff; --cap-muted: #fff7f8; }
.cap-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cap-mark { width: clamp(84px, 8vw, 112px); height: auto; transition: transform 0.6s var(--ease); }
.cap-num { font: 400 0.875rem/1 var(--mono); letter-spacing: 0.02em; }
.cap-body { display: grid; gap: 12px; align-content: end; }
.cap-title { font-size: clamp(1.625rem, 1.2rem + 1vw, 2.125rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.cap-desc { color: var(--cap-muted); font-size: 1.0625rem; line-height: 1.5; max-width: 32ch; }
.cap-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font: 400 0.8125rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cap-more i { font-size: 0.75rem; transition: transform 0.25s var(--ease); }
@media (hover: hover) {
  .cap:hover .cap-mark { transform: rotate(-8deg) scale(1.04); }
  .cap:hover .cap-more i { transform: translateX(4px); }
  .cap--blush:hover { background: #f8d3d8; }
  .cap--ink:hover { background: #1d1a1f; }
  .cap--stone:hover { background: #dedad5; }
  .cap--red:hover { background: #c4082a; }
}
.cap:focus-visible { outline-offset: -6px; outline-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .cap-mark, .cap-more i { transition: none; }
}
@media (max-width: 1024px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .caps { grid-template-columns: 1fr; }
  .cap { min-height: 300px; gap: 32px; }
}

/* ---------- Split panel ------------------------------------------------ */
.panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: 24px;
  background: var(--surface);
}
.panel-copy { display: grid; gap: 18px; align-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.875rem;
}
.panel .media { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }

/* ---------- Tabs (interactive list) ------------------------------------ */
.tabs {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.tablist { display: grid; gap: 4px; }
.tab {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 56px;
  padding: 16px 0 16px 20px;
  border: 0;
  border-left: 2px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.tab-desc { display: none; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); border-left-color: var(--accent); }
.tab[aria-selected="true"] .tab-desc { display: block; }
@media (hover: hover) { .tab:hover { color: var(--ink); } }
.tab:active { transform: scale(0.99); }
.tabpanel { display: grid; gap: 20px; }
.tabpanel[hidden] { display: none; }
.tabpanel .media { aspect-ratio: 4 / 3; }
.tabpanel-body { display: grid; gap: 14px; }
.tabpanel-body h3 { font-size: 1.0625rem; font-weight: 600; margin-top: 8px; }
.ticks { display: grid; gap: 10px; list-style: none; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: 0.9375rem; }
.ticks i { margin-top: 4px; color: var(--accent-text); font-size: 0.875rem; }
@media (max-width: 860px) { .tabs { grid-template-columns: 1fr; } }

/* ---------- Statement split ------------------------------------------- */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
}
.statement-copy {
  display: grid;
  gap: 20px;
  align-content: center;
  padding: clamp(1.75rem, 5vw, 4rem);
}
.statement-copy blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.statement .media { border-radius: 0; min-height: 320px; }
@media (max-width: 860px) {
  .statement { grid-template-columns: 1fr; }
  .statement .media { min-height: 240px; order: -1; }
}

/* ---------- Dark stats band ------------------------------------------- */
.band { background: var(--band); color: var(--band-ink); }
.band .h-section { color: var(--band-ink); }
.band .lead { color: var(--band-muted); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.stat {
  display: grid;
  gap: 8px;
  padding: 28px 26px 30px;
  border: 1px solid var(--band-line);
  border-radius: var(--r-card);
  background: var(--band-2);
}
.stat-value {
  font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--band-muted); font-size: 0.9375rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Tile grid --------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.tile {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 220px;
  padding: 26px 26px 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.15s var(--ease);
}
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tile h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.tile-top i { color: var(--muted); font-size: 1.125rem; }
.tile p { align-self: end; color: var(--muted); font-size: 0.9375rem; max-width: 34ch; }
.tile .tile-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; }
.tile .tile-cta i { font-size: 0.8em; transition: transform 0.2s var(--ease); }
.tile:active { transform: scale(0.99); }
@media (hover: hover) {
  .tile:hover { background: var(--surface-2); }
  .tile:hover .tile-cta i { transform: translateX(4px); }
}
.tile--photo { padding: 0; overflow: hidden; grid-template-rows: auto auto; gap: 0; }
.tile--photo .media { border-radius: 0; aspect-ratio: 16 / 10; }
.tile--photo .tile-body { display: grid; gap: 8px; padding: 20px 22px 24px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Cards (two-up media) -------------------------------------- */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  list-style: none;
}
.card-media { display: grid; gap: 18px; }
.card-media .media { aspect-ratio: 4 / 3; }
.card-media h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.card-media p { color: var(--muted); font-size: 0.9375rem; max-width: 52ch; }
@media (max-width: 760px) { .cards-2 { grid-template-columns: 1fr; } }

/* ---------- Plain card grid (channels, features) ----------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
}
.card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.card h3 { font-size: 1.0625rem; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Values list ------------------------------------------------ */
.values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.values-list { display: grid; list-style: none; }
.values-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.values-list li:first-child { border-top: 1px solid var(--line); }
.values .media { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } .values .media { aspect-ratio: 16 / 10; } }

/* ---------- Locations --------------------------------------------------- */
.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
}
.location { display: grid; gap: 8px; padding: 24px; border-radius: var(--r-card); background: var(--surface); }
.location h3 { font-size: 1.0625rem; font-weight: 600; }
.location p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- FAQ ---------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform 0.25s var(--ease);
}
.faq[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
@media (hover: hover) { .faq summary:hover { color: var(--accent-text); } }

/* ---------- Closing CTA ------------------------------------------------- */
.cta {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 24px;
  background: var(--surface);
}

/* ---------- Blog --------------------------------------------------------- */
.post-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 24px;
  background: var(--surface);
}
.post-feature .media { aspect-ratio: 16 / 10; }
.post-meta { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 860px) { .post-feature { grid-template-columns: 1fr; } .post-feature .media { order: -1; } }
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.notice i { margin-top: 4px; color: var(--accent-text); }

/* ---------- Contact form ------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field-hint { font-size: 0.875rem; color: var(--muted); }
.field-error { display: none; font-size: 0.875rem; color: var(--accent-text); }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); }
.field.has-error .field-error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-size: 0.9375rem; color: var(--ink-2); }
.check input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.form-status { font-size: 0.9375rem; color: var(--ink-2); }
.contact-aside { display: grid; gap: 28px; }
.contact-block { display: grid; gap: 6px; }
.contact-block a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
@media (hover: hover) { .contact-block a:hover { color: var(--accent-text); } }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--band); color: var(--band-ink); padding-block: clamp(3.5rem, 7vw, 6rem) 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--band-line);
}
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand p { color: var(--band-muted); font-size: 0.9375rem; max-width: 34ch; }
.footer-col h2 { margin-bottom: 12px; font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--band-muted); }
.footer-col ul { list-style: none; display: grid; }
.footer-col a, .footer-col span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--band-ink);
  font-size: 0.9375rem;
  text-decoration: none;
}
@media (hover: hover) { .footer-col a:hover { color: #ff6b81; } }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  color: var(--band-muted);
  font-size: 0.875rem;
}
.social { display: flex; gap: 4px; list-style: none; }
.social a {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-control);
  color: var(--band-ink);
  text-decoration: none;
}
@media (hover: hover) { .social a:hover { background: var(--band-2); } }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal ------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
}

/* ---------- Brand, placeholders, variants ------------------------------- */
.brand { gap: 10px; text-decoration: none; }
/* logo: "Aarvik" heavy + "Digital" regular, outlined from Aspekta (build/render_logo.py) */
.brand { color: var(--ink); }
.brand-logo { display: block; height: 24px; width: auto; }
@media (max-width: 520px) { .brand-logo { height: 21px; } }

.media--placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  background:
    radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0) 0 0 / 18px 18px,
    var(--surface);
}
.placeholder-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}
.mosaic .media--placeholder, .statement .media--placeholder { min-height: 320px; }

.tiles--2, .tiles--n2, .tiles--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* five items: a row of two wide tiles, then a row of three */
.tiles--n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles--n5 > li { grid-column: span 2; }
.tiles--n5 > li:nth-child(-n + 2) { grid-column: span 3; }
@media (max-width: 960px) {
  .tiles--n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--n5 > li, .tiles--n5 > li:nth-child(-n + 2) { grid-column: auto; }
  .tiles--n5 > li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .tiles--n2, .tiles--n4, .tiles--n5 { grid-template-columns: 1fr; }
  .tiles--n5 > li:last-child { grid-column: auto; }
}
@media (max-width: 600px) { .tiles--2 { grid-template-columns: 1fr; } }
.tile--photo h3 { font-size: 1.125rem; line-height: 1.35; }

.card-grid--caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--caps .card { background: var(--bg); border: 0; padding: clamp(24px, 3vw, 36px); gap: 14px; }
.card-grid--caps .chips li { background: var(--surface); }
@media (max-width: 760px) { .card-grid--caps { grid-template-columns: 1fr; } }

.social--light a { color: var(--ink); }
@media (hover: hover) { .social--light a:hover { background: var(--surface); } }

/* =====================================================================
   Layer inspired by integratedbio.com's patterns, in Aarvik's colours
   ===================================================================== */
:root { --giant-muted: #8a8590; }
.zone-dark { --giant-muted: #77707d; }

/* ---------- Header: links and CTA grouped on the right ------------------ */
.header-actions .nav { margin-right: 12px; }
@media (max-width: 1080px) { .header-actions .nav { display: none; } }
.site-header .container { gap: 20px; }
.nav-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  box-shadow: 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav-pill .nav { gap: 0; }
.nav-pill .nav a {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font: 400 0.8125rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-pill .nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: 500 0.8125rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s var(--ease);
}
.nav-cta:active { transform: scale(0.97); }
@media (hover: hover) { .nav-cta:hover { background: var(--accent-hover); } }
.nav-pill .menu-toggle { width: 40px; height: 40px; }
@media (max-width: 960px) {
  .nav-pill .nav-cta { display: none; }
  .nav-pill { padding: 2px; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-pill { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Labels, highlights, split buttons -------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip-dot { width: 7px; height: 7px; border-radius: 1px; background: var(--accent); flex: none; }
.section--surface .chip, .panel .chip, .statement .chip { background: var(--bg); }
.band .chip, .form-band .chip, .news-card--ink .chip { background: var(--band-2); color: var(--band-muted); }
.hl {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em;
}

.btn-split {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}
.btn-split:active { transform: scale(0.98); }
.btn-split-label {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font: 500 0.8125rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn-split-arrow {
  display: inline-grid;
  place-items: center;
  width: 48px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}
.btn-split-arrow i { transition: transform 0.25s var(--ease); }
@media (hover: hover) {
  .btn-split:hover .btn-split-label { background: var(--ink-2); }
  .btn-split:hover .btn-split-arrow { background: var(--accent-hover); }
  .btn-split:hover .btn-split-arrow i { transform: translateX(3px); }
}
.site-footer .btn-split-label, .form-band .btn-split-label { background: #fdfdfc; color: #111013; }
@media (hover: hover) {
  .site-footer .btn-split:hover .btn-split-label, .form-band .btn-split:hover .btn-split-label { background: #e8e5e1; }
}

/* ---------- Inner-page hero ------------------------------------------- */
.page-hero { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }
.giant {
  display: grid;
  margin-top: 8px;
  font-size: clamp(3rem, 1.2rem + 7vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.giant-muted { color: var(--giant-muted); }
.page-hero-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
}
.page-hero-row .lead { justify-self: end; max-width: 40ch; color: var(--ink-2); }
.page-hero-mark { display: block; width: 56px; height: 56px; color: var(--accent-text); }
.page-hero-mark .mark { width: 100%; height: 100%; }
.media--banner, .silk-banner { margin-top: clamp(1.5rem, 3vw, 2.5rem); aspect-ratio: 21 / 9; border-radius: 20px; }
.silk-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(110% 85% at 88% 18%, #f4b4bc 0%, transparent 55%),
    radial-gradient(80% 70% at 30% 95%, #e76476 0%, transparent 60%),
    radial-gradient(60% 55% at 102% 62%, #c6183b 0%, transparent 58%),
    #fdf0f1;
}
.silk-banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; }
.silk-banner.is-live canvas { opacity: 1; }
@media (max-width: 760px) {
  .page-hero-row { grid-template-columns: 1fr; }
  .page-hero-row .lead { justify-self: start; }
  .page-hero-mark { width: 44px; height: 44px; }
  .media--banner, .silk-banner { aspect-ratio: 4 / 3; border-radius: 16px; }
}

/* ---------- Statements: brighten word by word as they scroll in -------- */
.statements-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}
.statements-side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.statements-list { display: grid; gap: clamp(3rem, 8vw, 6.5rem); }
.statement-count { margin-bottom: 16px; color: var(--muted); font: 400 0.75rem/1 var(--mono); letter-spacing: 0.08em; }
.statement-text {
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement-text .w { animation: word-in linear both; animation-timeline: view(); animation-range: entry 30% cover 42%; }
    .drift-text { animation: drift linear both; animation-timeline: view(); }
  }
}
@keyframes word-in { from { opacity: 0.2; } to { opacity: 1; } }
.statements-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.statements-progress, .statements-index { display: none; }
@media (max-width: 760px) {
  .statements-grid { grid-template-columns: 1fr; }
  .statements-side { position: static; }
}

/* Live mode (site.js, motion allowed): no pinning, the section keeps its natural height. As it
   scrolls through the viewport the active statement lights word by word, then slides up and the
   next one (peeking dimmed below) takes over. */
.is-live .statements-progress {
  display: block;
  height: 1px;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  background: var(--line);
}
.statements-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}
.is-live .statements-side { position: static; }
.is-live .statements-index {
  display: inline-flex;
  gap: 6px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
}
.statements-current { color: var(--ink); }
/* The stage clips the list: tallest statement plus a peek of the next (height set by site.js),
   fading out at the bottom edge. */
.is-live .statements-stage {
  height: clamp(14rem, 40svh, 24rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
}
/* Live mode sits tighter than the stacked list: smaller gap so the next statement peeks in close,
   less bottom padding because the stage never leaves a blank band under the last statement. */
.statements.is-live { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.is-live .statements-list {
  gap: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  transition: transform 700ms cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.is-live .statement-item {
  opacity: 0;
  transition: opacity 450ms cubic-bezier(.16, 1, .3, 1);
}
.is-live .statement-item.is-active { opacity: 1; }
.is-live .statement-item.is-next,
.is-live .statement-item.is-prev { opacity: 0.75; }
/* Last statement: aligned to the stage bottom, the one before fades out above it (no blank band). */
.is-live .statements-stage.is-last {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 42%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 42%);
}
.is-live .statement-count { display: none; }
.is-live .statement-text .w { animation: none; opacity: 0.2; transition: opacity 120ms linear; }

/* ---------- Transition statement -------------------------------------- */
.drift { overflow: hidden; padding-inline: var(--gutter); background: var(--bg); }
.drift-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-block: clamp(1.75rem, 4vw, 3.75rem);
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.34fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}
.drift-label {
  color: var(--red);
  font: 500 0.68rem/1.35 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.drift-statement {
  max-width: 18ch;
  font-size: clamp(2rem, 1.15rem + 3.4vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}
.drift-statement strong { color: var(--red); font-weight: inherit; }
.drift-mark {
  width: clamp(3.25rem, 6vw, 5rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ember-text);
  box-shadow: 0 16px 30px -22px rgba(217, 10, 44, 0.9);
}
@media (max-width: 640px) {
  .drift-inner { grid-template-columns: 1fr auto; }
  .drift-label { grid-column: 1 / -1; }
  .drift-statement { max-width: 12ch; }
  .drift-mark { align-self: end; }
}

/* ---------- News / insights cards -------------------------------------- */
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.count { margin-left: 6px; color: var(--muted); font: 400 0.75rem/1 var(--mono); vertical-align: super; }
.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(12px, 1.5vw, 20px);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.news-feature .media { aspect-ratio: 4 / 3; }
.news-feature-body { display: grid; gap: 14px; padding: clamp(8px, 2vw, 24px); }
.news-feature h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.news-card { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border-radius: 16px; }
.news-card .media { aspect-ratio: 16 / 9; border-radius: 0; }
.news-card-body { display: grid; gap: 12px; align-content: start; padding: 20px 22px 26px; }
.news-card h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.3; }
.news-card--light { background: var(--surface); }
.news-card--ink { background: var(--band); color: var(--band-ink); }
@media (max-width: 760px) {
  .news-feature, .news-grid { grid-template-columns: 1fr; }
}

/* ---------- Tiles: red arrow square; FAQ: plus toggle ------------------- */
.tile { padding-bottom: 72px; }
.tile .tile-cta { font: 400 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.tile-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}
@media (hover: hover) { .tile:hover .tile-arrow { transform: translateX(3px); background: var(--accent-hover); } }
.faq summary { font-size: 1.125rem; font-weight: 400; }
.faq-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  font-size: 0.875rem;
  transition: transform 0.3s var(--ease);
}
.faq[open] .faq-toggle { transform: rotate(45deg); }

/* ---------- Footer: statement, mono columns, giant wordmark ------------- */
.site-footer { overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6rem) 24px; }
.site-footer .footer-top {
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 0;
}
.footer-lead { display: grid; gap: 24px; align-content: start; }
.footer-statement {
  max-width: 16ch;
  color: var(--band-ink);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.footer-wordmark {
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  color: var(--band-ink);
  font-size: clamp(3rem, 15.6vw, 14rem); /* spans ~85-98% of the container, never wider */
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.85;
  white-space: nowrap;
}
.site-footer .footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--band-line);
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 900px) { .site-footer .footer-top { grid-template-columns: 1fr 1fr; } .footer-lead { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer .footer-top { grid-template-columns: 1fr; } }

/* ---------- Contact: dark "message us" band ----------------------------- */
.form-band { background: var(--band); color: var(--band-ink); }
.form-band .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.form-band .h-section { color: var(--band-ink); }
.form-band .lead, .form-band .small, .form-band .label, .form-band .field-hint,
.form-band .check, .form-band .form-status, .form-band .optional { color: var(--band-muted); }
.form-band .contact-block a, .form-band .social a { color: var(--band-ink); }
@media (hover: hover) { .form-band .contact-block a:hover { color: #ff6b81; } .form-band .social a:hover { background: var(--band-2); } }
.form-band .field label { color: var(--band-muted); font: 400 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.form-band .field input, .form-band .field select, .form-band .field textarea {
  background: var(--band-2);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--band-ink);
}
.form-band .field input::placeholder, .form-band .field textarea::placeholder { color: var(--band-muted); }
.form-band .field-error { color: #ff8597; }
.form-band .field.has-error input, .form-band .field.has-error textarea { border-color: #ff8597; }
@media (max-width: 900px) { .form-band .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Spacing helpers --------------------------------------------- */
.stack-lg { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.mt-0 { margin-top: 0; }

/* ---------- Team: group jump list, sticky intro + portrait grid ---------- */
.team-jump { border-bottom: 1px solid var(--line); }
.team-jump .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.team-total { margin: 0; color: var(--muted); font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.team-total span { color: var(--ink); }
.team-jump-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.team-jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease);
}
.team-jump-list a:active { transform: scale(0.98); }
@media (hover: hover) { .team-jump-list a:hover { background: var(--surface); border-color: transparent; } }

.team-group { scroll-margin-top: 64px; }
.team-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.team-intro { position: sticky; top: 96px; display: grid; gap: 16px; justify-items: start; }
.team-intro .h-section, .team-intro .lead { margin: 0; }
.team-mark { width: 72px; height: 72px; color: var(--ink-2); }
.team-mark .mark { width: 100%; height: 100%; }
.team-count { margin: 8px 0 0; color: var(--muted); font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.team-count span { color: var(--accent-text); }

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; margin: 0; padding: 0; list-style: none; }
.people--lead { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
.person { display: grid; align-content: start; gap: 6px; }
.person-photo {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
  aspect-ratio: 1;
}
.person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.4s ease, transform 0.6s var(--ease);
}
@media (hover: hover) {
  .person:hover .person-photo img { filter: none; transform: scale(1.03); }
}
.person-name { margin: 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.person--lead .person-name { font-size: 1.375rem; }
.person-role { margin: 0; color: var(--muted); font: 500 0.75rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.person-bio { margin-top: 8px; border-top: 1px solid var(--line); }
.person-bio summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}
.person-bio summary::-webkit-details-marker { display: none; }
.person-bio[open] .faq-toggle { transform: rotate(45deg); }
.person-bio p { margin: 0 0 8px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }

@media (max-width: 960px) {
  .team-split { grid-template-columns: 1fr; }
  .team-intro { position: static; }
}
@media (max-width: 640px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .people--lead { grid-template-columns: 1fr; }
  .person-name { font-size: 1rem; }
  .person--lead .person-name { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .person-photo img { transition: none; }
  .person:hover .person-photo img { transform: none; }
}

/* =====================================================================
   AI-era components (build.py: prose_split, flow, shift, own_stack,
   industry_links, packages, industries, glossary, guides). Same tokens,
   radii and type scale as everything above.
   ===================================================================== */

/* ---------- Seven tiles: a row of three, then a row of four ------------- */
.tiles--n7 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tiles--n7 > li { grid-column: span 3; }
.tiles--n7 > li:nth-child(-n + 3) { grid-column: span 4; }
@media (max-width: 960px) {
  .tiles--n7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--n7 > li, .tiles--n7 > li:nth-child(-n + 3) { grid-column: auto; }
  .tiles--n7 > li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .tiles--n7 { grid-template-columns: 1fr; }
  .tiles--n7 > li:last-child { grid-column: auto; }
}

/* ---------- Silk banner with a line mark -------------------------------- */
.silk-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 7%;
  width: clamp(110px, 20vw, 260px);
  aspect-ratio: 1;
  color: #ffffff;
  transform: translateY(-50%);
  pointer-events: none;
}
.silk-mark .mark { width: 100%; height: 100%; }
.silk-mark .mark * { stroke-width: 1.5px; }

/* ---------- Prose split -------------------------------------------------- */
.prose-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}
.prose-split .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.prose p { color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.65; max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }
.prose p:first-child { color: var(--ink); }
@media (max-width: 860px) {
  .prose-split { grid-template-columns: 1fr; }
  .prose-split .section-head { position: static; }
}

/* ---------- Flow: numbered stages on a hairline track ------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 32px 24px;
  list-style: none;
}
.flow-step { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.flow-step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--accent);
}
.flow-num { color: var(--accent-text); font: 400 0.75rem/1 var(--mono); letter-spacing: 0.08em; }
.flow-step h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.flow-step p { color: var(--muted); font-size: 0.9375rem; }
.flow--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow--n3 .flow-step h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; }
@media (max-width: 760px) { .flow--n3 { grid-template-columns: 1fr; } }

/* ---------- Shift: problem -> what runs instead ------------------------- */
.shift { display: grid; gap: 12px; list-style: none; }
.shift-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 2.5vw, 32px);
  border-radius: var(--r-card);
  background: var(--bg);
}
.shift-from, .shift-to { display: grid; gap: 8px; }
.shift-from p { color: var(--muted); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); letter-spacing: -0.02em; line-height: 1.3; }
.shift-to h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.shift-to p { color: var(--ink-2); font-size: 0.9375rem; }
.shift-tag { color: var(--muted); font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.shift-tag--on { color: var(--accent-text); }
.shift-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
}
@media (max-width: 760px) {
  .shift-row { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(90deg); }
}

/* ---------- What you keep + stack --------------------------------------- */
.own-stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); }
.own-stack .section-head { margin-bottom: 24px; }
.own .ticks li { font-size: 1rem; }
.stack-groups { display: grid; gap: 22px; }
.stack-group { display: grid; gap: 10px; }
@media (max-width: 860px) { .own-stack { grid-template-columns: 1fr; } }

/* ---------- Industry links (home) --------------------------------------- */
.ind-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; }
.ind-link {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 84px;
  padding: 18px 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s var(--ease);
}
.ind-link:active { transform: scale(0.99); }
.ind-mark { flex: none; width: 40px; height: 40px; color: var(--accent-text); }
.ind-mark .mark { width: 100%; height: 100%; }
.ind-name { flex: 1; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.ind-link > i { color: var(--muted); font-size: 0.8125rem; transition: transform 0.2s var(--ease), color 0.2s ease; }
@media (hover: hover) {
  .ind-link:hover { background: var(--surface); border-color: transparent; }
  .ind-link:hover > i { color: var(--accent-text); transform: translateX(3px); }
}
@media (max-width: 1024px) { .ind-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ind-links { grid-template-columns: 1fr; } }

/* ---------- Engagement packages ----------------------------------------- */
.packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.package {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.5vw, 30px);
  border-radius: var(--r-card);
  background: var(--bg);
}
.package-who { color: var(--muted); font: 400 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.package h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 450; letter-spacing: -0.03em; line-height: 1.1; }
.package .ticks { margin-bottom: 8px; }
.package .btn-split { margin-top: auto; }
.package--ink { background: var(--band); color: var(--band-ink); }
.package--ink .package-who, .package--ink .ticks li { color: var(--band-muted); }
.package--ink .btn-split-label { background: #fdfdfc; color: #111013; }
@media (max-width: 1100px) { .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .packages { grid-template-columns: 1fr; } }

/* ---------- Industries page --------------------------------------------- */
.industries { list-style: none; }
.industry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.industry:last-child { border-bottom: 1px solid var(--line); }
.industry-intro { display: grid; gap: 14px; align-content: start; }
.industry-intro .h-block { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 450; letter-spacing: -0.03em; line-height: 1.1; }
.industry-sols { display: grid; gap: 10px; margin-top: 6px; }
.industry-uses { display: grid; gap: 16px; align-content: start; }
.industry-uses .ticks li { font-size: 1rem; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.link-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) { .link-chips a:hover { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; } }
@media (max-width: 860px) { .industry { grid-template-columns: 1fr; } }

/* ---------- Glossary ----------------------------------------------------- */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; }
.term { padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.term dt { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.term dd { margin: 6px 0 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.term:target { background: var(--accent-soft); }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }

/* ---------- Guide cards (now links) ------------------------------------- */
a.news-card { color: inherit; text-decoration: none; transition: transform 0.15s var(--ease); }
a.news-card:active { transform: scale(0.99); }
.news-card .media img { transition: transform 0.6s var(--ease); }
@media (hover: hover) {
  a.news-card:hover .media img { transform: scale(1.03); }
  a.news-card:hover .news-card-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.15em; }
}
.news-card-title { display: block; font-size: 1.25rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.3; }
.news-card-meta { color: var(--muted); font: 400 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.news-card--ink .news-card-meta { color: var(--band-muted); }
.news-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .news-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .news-grid--3 { grid-template-columns: 1fr; } }
.news-feature .btn-split { margin-top: 6px; }

/* ---------- Guide (article) pages --------------------------------------- */
.article-hero .display { max-width: 22ch; margin-top: 8px; }
.article-hero .lead { margin-top: 18px; max-width: 58ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; color: var(--muted); font: 400 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.article-toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.article-toc ol { display: grid; gap: 2px; list-style: none; counter-reset: toc; border-left: 1px solid var(--line); }
.article-toc li { counter-increment: toc; }
.article-toc ol a {
  display: block;
  padding: 8px 0 8px 16px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}
.article-toc ol a::before { content: counter(toc, decimal-leading-zero) "\00a0\00a0"; color: var(--accent-text); font: 400 0.75rem/1 var(--mono); }
@media (hover: hover) { .article-toc ol a:hover { color: var(--ink); } }
.article-body { max-width: 70ch; }
.article-body section { scroll-margin-top: 88px; }
.article-body section + section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.article-body h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); font-weight: 450; letter-spacing: -0.03em; line-height: 1.15; }
.article-body h3 { margin: 22px 0 10px; font-size: 1.0625rem; font-weight: 600; }
.article-body .body { font-size: 1.0625rem; line-height: 1.7; }
.article-body .ticks { margin-block: 16px; }
.article-body .ticks li { font-size: 1rem; line-height: 1.6; }
.takeaways { display: grid; gap: 14px; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(22px, 3vw, 32px); border-radius: var(--r-card); background: var(--surface); }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; }
}

/* =====================================================================
   Interactive blocks (build.py agent_demo, flow examples, tool_cards,
   readiness quiz, savings calculator; behaviour in interactive.js)
   ===================================================================== */

/* ---------- Agent demo: WhatsApp chat beside the run log ---------------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.demo-phone, .demo-log { display: flex; flex-direction: column; height: 540px; border-radius: 24px; overflow: hidden; }
.demo-phone { background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.demo-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.demo-avatar .mark { width: 24px; height: 24px; }
.demo-who { display: grid; gap: 2px; }
.demo-who strong { font-size: 0.9375rem; font-weight: 600; }
.demo-who small { color: var(--muted); font: 400 0.6875rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.demo-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow-y: auto;
  list-style: none;
  background: var(--surface);
  scroll-behavior: smooth;
}
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 0.9375rem; line-height: 1.45; }
.msg--in { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.msg--out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg[hidden], .demo-step[hidden], .demo-typing[hidden] { display: none; }
.demo-typing { align-self: flex-end; display: flex; gap: 5px; padding: 13px 14px; border-radius: 16px 16px 4px 16px; background: var(--accent-soft); }
.demo-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); animation: typing 1s infinite ease-in-out; }
.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.is-new { animation: msg-in 0.4s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.demo-log { padding: 20px 22px; background: var(--band); color: var(--band-ink); }
.demo-log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--band-line); }
.demo-log .label { color: var(--band-muted); }
.demo-log .pause-btn { color: var(--band-ink); border-color: var(--band-line); background: transparent; }
@media (hover: hover) { .demo-log .pause-btn:hover { background: var(--band-2); } }
.demo-steps { flex: 1; display: flex; flex-direction: column; overflow-y: auto; list-style: none; scroll-behavior: smooth; }
.demo-step {
  display: grid;
  grid-template-columns: 44px 16px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--band-line);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.demo-time { color: var(--band-muted); font: 400 0.75rem/1 var(--mono); }
.demo-step i { color: #ff6b81; font-size: 0.8125rem; }
.demo-step--human { margin-top: 6px; padding-inline: 10px; border: 0; border-radius: 10px; background: rgba(217, 10, 44, 0.22); grid-template-columns: 34px 16px minmax(0, 1fr); }
.demo-step--human i { color: #fff; }
.demo-note { display: flex; gap: 8px; align-items: baseline; margin-top: 14px; color: var(--band-muted); font-size: 0.8125rem; line-height: 1.45; }
@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo-phone { height: 460px; }
  .demo-log { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-typing span, .is-new { animation: none; }
  .demo-chat, .demo-steps { scroll-behavior: auto; }
}

/* ---------- Live pipeline: the track fills stage by stage --------------- */
.flow--live .flow-step::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
}
.flow-eg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}
.flow-eg i { font-size: 0.6875rem; }
.flow--live.is-armed .flow-step::after { transform: scaleX(0); }
.flow--live.is-armed .flow-step::before { background: var(--line-strong); }
.flow--live.is-armed .flow-eg { opacity: 0; transform: translateY(6px); }
.flow--live.is-running .flow-step::after { transform: scaleX(1); transition: transform 0.7s var(--ease) calc(var(--i) * 0.55s); }
.flow--live.is-running .flow-step::before { background: var(--accent); transition: background-color 0.2s ease calc(var(--i) * 0.55s); }
.flow--live.is-running .flow-eg { opacity: 1; transform: none; transition: opacity 0.45s ease calc(var(--i) * 0.55s + 0.45s), transform 0.45s var(--ease) calc(var(--i) * 0.55s + 0.45s); }

/* ---------- Tool cards: two boxed colour panels ------------------------- */
.caps--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.caps--boxed { gap: 16px; }
.caps--boxed .cap { border-radius: var(--r-card); min-height: clamp(300px, 26vw, 380px); }
@media (max-width: 700px) { .caps--n2 { grid-template-columns: 1fr; } }

/* ---------- Readiness quiz ------------------------------------------------ */
.quiz-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.quiz-wrap .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.quiz-card { padding: clamp(22px, 4vw, 44px); border-radius: 24px; background: var(--surface); scroll-margin-top: calc(var(--header-h) + 24px); }
.quiz-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.quiz-count { flex: none; color: var(--muted); font: 400 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.quiz-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.quiz-bar span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 0.4s var(--ease); }
.quiz-q { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-q[hidden], .quiz[hidden], .quiz-result[hidden], .quiz-level[hidden], .quiz-nav [hidden] { display: none; }
.quiz-q + .quiz-q { margin-top: 32px; }
.js .quiz-q + .quiz-q { margin-top: 0; }
.quiz-legend { display: flex; gap: 14px; margin-bottom: 20px; padding: 0; font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); font-weight: 450; letter-spacing: -0.03em; line-height: 1.2; }
.quiz-n { flex: none; padding-top: 0.55em; color: var(--accent-text); font: 400 0.75rem/1 var(--mono); letter-spacing: 0.06em; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s var(--ease);
}
.quiz-opt:active { transform: scale(0.99); }
.quiz-opt input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quiz-opt input:checked { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--accent); }
.quiz-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
@media (hover: hover) { .quiz-opt:hover { border-color: var(--line-strong); } }
.quiz-nav { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.quiz-nav [data-quiz-submit] { margin-left: auto; }
.quiz-error { min-height: 1.5em; margin-top: 10px; color: var(--accent-text); font-size: 0.9375rem; }
.quiz-result { display: grid; gap: 18px; outline: none; }
.quiz-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.quiz-score .label { width: 100%; order: -1; }
.quiz-score-n { font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.quiz-score-of { color: var(--muted); font-size: 1.25rem; }
.quiz-level { display: grid; gap: 14px; }
.quiz-level h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 450; letter-spacing: -0.03em; line-height: 1.1; }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.quiz-retake { justify-self: start; padding: 0; border: 0; background: none; cursor: pointer; }
@media (max-width: 900px) {
  .quiz-wrap { grid-template-columns: 1fr; }
  .quiz-wrap .section-head { position: static; }
}

/* ---------- Savings calculator ------------------------------------------- */
.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.roi-form { display: grid; gap: 28px; }
.roi-field { display: grid; gap: 10px; }
.roi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.roi-row label { font-size: 1rem; font-weight: 500; }
.roi-row output { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.roi-field input[type="range"] { width: 100%; height: 28px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.roi-field input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--p, 50%), var(--line-strong) var(--p, 50%)); }
.roi-field input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--p, 50%), var(--line-strong) var(--p, 50%)); }
.roi-field input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; appearance: none; -webkit-appearance: none; box-shadow: var(--shadow); }
.roi-field input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.roi-result { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--band); color: var(--band-ink); }
.roi-result .label { color: var(--band-muted); }
.roi-big { display: grid; gap: 8px; font-size: clamp(3rem, 2rem + 3.5vw, 4.75rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.roi-unit { color: var(--band-muted); font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.roi-list { display: grid; margin: 0; }
.roi-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--band-line); }
.roi-list dt { color: var(--band-muted); font-size: 0.9375rem; }
.roi-list dd { margin: 0; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.roi-note { color: var(--band-muted); font-size: 0.8125rem; line-height: 1.5; }
.roi-result .btn-split-label { background: #fdfdfc; color: #111013; }
@media (max-width: 900px) { .roi { grid-template-columns: 1fr; } }

/* =====================================================================
   v4 layer (2026-11-06): dark ember default + warm light theme.
   Patterns taken from a user-supplied reference: floating glass pill nav, centred hero over a
   rising glow, numbered expanding cards, bento grids, pill buttons with a nested arrow circle,
   glow CTA band and a giant fading wordmark in the footer. Copy and sections are Aarvik's own.
   ===================================================================== */

/* ---------- Base, grain, theme transition ------------------------------ */
body { background: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  body, .site-header .container, .card, .tile, .cap, .stat, .package { transition: background-color 0.45s var(--ease), color 0.45s var(--ease); }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--ember); color: #fff; }
.section--surface { background: var(--bg-2); }

/* ---------- Type ------------------------------------------------------ */
.h-section { font-weight: 450; letter-spacing: -0.04em; }
.ember-text, .hl {
  font-style: normal;
  text-decoration: none;
  background: var(--ember-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head { gap: 18px; }

/* ---------- Pills, chips ----------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--glass-line), var(--glass-hi);
  color: var(--ink-2);
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill--ember { background: var(--ember-grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 24px -10px rgba(255, 80, 30, 0.7); }
.chip,
.section--surface .chip, .panel .chip, .statement .chip,
.band .chip, .form-band .chip, .news-card--ink .chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--glass-line), var(--glass-hi);
  color: var(--ink-2);
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px 1px rgba(255, 90, 40, 0.75); }
.chips li { border-radius: 999px; padding: 7px 14px; background: var(--shell); box-shadow: 0 0 0 1px var(--glass-line); }
.card-grid--caps .chips li { background: var(--shell); }

/* ---------- Buttons ---------------------------------------------------- */
.btn, .btn--small { border-radius: 999px; transition: background-position 0.5s var(--spring), box-shadow 0.3s var(--spring), transform 0.3s var(--spring), color 0.2s ease; }
.btn--primary {
  background: var(--ember-grad);
  background-size: 100% 180%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 30px -14px rgba(230, 30, 40, 0.8);
}
.btn--ghost { background: var(--glass); color: var(--ink); box-shadow: 0 0 0 1px var(--glass-line), var(--glass-hi); }
@media (hover: hover) {
  .btn--primary:hover { background: var(--ember-grad); background-size: 100% 180%; background-position: 0 100%; transform: translateY(-1px); }
  .btn--ghost:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--glass-hi); transform: translateY(-1px); }
}
.btn-split {
  align-items: center;
  gap: 0;
  padding: 5px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--spring), box-shadow 0.3s ease;
}
.btn-split-label,
.site-footer .btn-split-label, .form-band .btn-split-label, .package--ink .btn-split-label, .roi-result .btn-split-label {
  min-height: 42px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  background: none;
  color: var(--bg);
}
.btn-split-arrow { width: 42px; height: 42px; border-radius: 50%; background: var(--ember-grad); transition: transform 0.4s var(--spring); }
.site-footer .btn-split, .form-band .btn-split, .package--ink .btn-split, .roi-result .btn-split { background: #f4f1ee; }
.site-footer .btn-split-label, .form-band .btn-split-label, .package--ink .btn-split-label, .roi-result .btn-split-label { color: #141215; }
@media (hover: hover) {
  .btn-split:hover .btn-split-label,
  .site-footer .btn-split:hover .btn-split-label, .form-band .btn-split:hover .btn-split-label { background: none; }
  .btn-split:hover .btn-split-arrow { background: var(--ember-grad); transform: scale(1.06); }
  .btn-split:hover .btn-split-arrow i { transform: translate(2px, -1px); }
}
.text-link:hover { color: var(--accent-text); }
.pause-btn { border-radius: 999px; border-color: var(--glass-line); background: var(--shell); }

/* ---------- Header: floating glass pill -------------------------------- */
.site-header, .site-header.is-solid {
  height: var(--header-h);
  padding-top: 12px;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header .container {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--container);
  height: 58px;
  padding-inline: 22px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 64%, transparent);
  box-shadow: 0 0 0 1px var(--glass-line), var(--glass-hi);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header .container { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header .nav { margin-inline: auto; gap: 2px; }
.site-header .nav a { min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-size: 0.875rem; }
.site-header .nav a[aria-current="page"] { color: var(--ink); background: var(--shell); box-shadow: 0 0 0 1px var(--glass-line); }
@media (hover: hover) { .site-header .nav a:hover { background: var(--shell); color: var(--ink); } }
.header-actions { margin-left: 0; gap: 6px; }
.header-actions .btn--small { min-height: 42px; padding: 0 18px; }
.menu-toggle { border-radius: 50%; }
@media (max-width: 1080px) {
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .site-header .container { width: calc(100% - 24px); padding-inline: 16px 6px; }
}
.drawer { inset: calc(var(--header-h) + 8px) 12px auto 12px; max-height: calc(100dvh - var(--header-h) - 20px); border-radius: var(--r-card); background: var(--bg); box-shadow: 0 0 0 1px var(--glass-line), var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .drawer nav > * { opacity: 0; transform: translateY(14px); transition: opacity 0.4s var(--ease), transform 0.6s var(--spring); }
  .drawer.is-open nav > * { opacity: 1; transform: none; }
  .drawer.is-open nav > :nth-child(2) { transition-delay: 40ms; }
  .drawer.is-open nav > :nth-child(3) { transition-delay: 80ms; }
  .drawer.is-open nav > :nth-child(4) { transition-delay: 120ms; }
  .drawer.is-open nav > :nth-child(5) { transition-delay: 160ms; }
  .drawer.is-open nav > :nth-child(6) { transition-delay: 200ms; }
  .drawer.is-open nav > :nth-child(n + 7) { transition-delay: 240ms; }
}

/* ---------- Email capture ---------------------------------------------- */
.capture { border: 0; border-radius: 999px; background: var(--glass); box-shadow: 0 0 0 1px var(--glass-line), var(--glass-hi); }
.capture input { padding-left: 18px; }
.capture:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-soft); }
.capture .btn { border-radius: 999px; }
@media (max-width: 480px) { .capture { border-radius: 26px; } }

/* ---------- Homepage hero (centred over the rising glow) --------------- */
.page-home .site-header { margin-bottom: calc(-1 * var(--header-h)); }
.hero-v4 { display: grid; justify-items: center; gap: clamp(44px, 6vw, 80px); width: 100%; }
.hero-v4-copy { display: grid; justify-items: center; gap: 26px; max-width: 980px; text-align: center; }
.hero-eyebrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-silk .display { font-size: clamp(3rem, 0.9rem + 6.6vw, 7.25rem); font-weight: 450; line-height: 0.98; letter-spacing: -0.05em; }
.hero-v4 .rot-word { right: 0; text-align: center; text-decoration-color: var(--ember); }
.hero-v4-copy .lead { max-width: 56ch; color: var(--ink-2); margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.hero-actions .capture { flex: 0 1 470px; }
.hero-actions .btn--ghost { min-height: 60px; padding-inline: 26px; }
.hero-v4-visual { width: min(780px, 100%); }
.bezel {
  padding: 8px;
  border-radius: var(--r-shell);
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--glass-line), var(--glow);
}
.bezel > .orch { width: 100%; border-radius: calc(var(--r-shell) - 8px); }
.agent-orch-stage {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: clamp(0.75rem, 2vw, 1.5rem) 0;
  border-radius: var(--r-shell);
  background: #fff;
}
.agent-orch-stage .bezel { position: relative; z-index: 1; width: min(780px, 100%); margin-inline: auto; }
.agent-orch-stage .orch { min-height: 390px; }
@media (max-width: 640px) {
  .agent-orch-stage { border-radius: 0; }
  .agent-orch-stage .orch { min-height: 0; }
}
.hero-v4 .proof { width: 100%; border-top-color: var(--line); }
.proof-chips a { background: var(--glass); box-shadow: 0 0 0 1px var(--glass-line), var(--glass-hi); color: var(--ink); }
@media (hover: hover) { .proof-chips a:hover { background: var(--surface-2); } }
@media (max-width: 640px) {
  .hero-silk { padding: calc(var(--header-h) + 40px) 0 28px; }
  .hero-actions .btn--ghost { width: 100%; min-height: 52px; }
  .hero-actions .capture { flex-basis: 100%; }
}

/* orchestration card, themed */
.orch {
  padding: 18px 20px 16px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--glass-line);
  color: var(--ink);
}
.orch-tasks button { min-height: 30px; padding: 0 12px; border-radius: 999px; color: var(--muted); }
.orch-tasks button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .orch-tasks button:hover:not([aria-pressed="true"]) { color: var(--ink); } }
.orch-map { height: 270px; }
.orch-col { color: var(--muted); }
.orch-edge { stroke: var(--line-strong); }
.orch-node { border-color: var(--glass-line); border-radius: 999px; padding-right: 12px; background: var(--surface); color: var(--ink); }
.orch-node i { border-radius: 50%; }
.orch-node--orch { background: var(--ember-grad); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 70, 30, 0.8); }
.orch-node--orch i { color: #fff; }
.orch-node--sys { background: var(--shell); }
.orch-node--sys i { color: var(--muted); }
.orch-node--sys b { color: var(--ink-2); }
.orch-status { border-top-color: var(--line); }
.orch-status.is-role { color: var(--ink-2); }

/* ---------- Logos ------------------------------------------------------- */
.logos { border-block: 1px solid var(--line); }
.marquee-track img { mix-blend-mode: multiply; opacity: 0.6; }

/* ---------- Statements ------------------------------------------------- */
.statements-progress span { background: var(--ember-text); }
.is-live .statements-index { border-radius: 999px; border-color: var(--glass-line); background: var(--shell); }

/* ---------- Four ways: numbered cards, the active one expands in ember -- */
.caps-section { padding-bottom: var(--section-y); }
.caps-section .caps { display: flex; gap: 12px; min-height: clamp(440px, 40vw, 540px); }
.caps-section .caps > li { flex: 1 1 0; min-width: 0; transition: flex-grow 0.8s var(--spring); }
.caps-section .caps > li:hover,
.caps-section .caps > li:focus-within,
.caps-section .caps:not(:hover):not(:focus-within) > li:first-child { flex-grow: 2.7; }
.caps-section .cap,
.caps--boxed .cap {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--glass-line), var(--glass-hi);
  --cap-fg: var(--ink);
  --cap-muted: var(--muted);
}
.caps-section .cap { min-height: 100%; gap: 24px; padding: clamp(22px, 2.4vw, 34px); }
.caps-section .cap::before,
.caps--boxed .cap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 70% at 50% -5%, #ffc184 0%, #ff6a2b 24%, #d90a2c 52%, rgba(120, 8, 24, 0.6) 72%, transparent 92%),
    #121013;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.cap-top, .cap-body { position: relative; }
.caps-section .cap-num { order: -1; font: 300 clamp(2.5rem, 1.6rem + 2.4vw, 3.75rem)/1 var(--font); letter-spacing: -0.04em; color: var(--muted); opacity: 0.55; transition: color 0.5s, opacity 0.5s; }
.caps-section .cap-mark { width: clamp(52px, 4.5vw, 72px); color: var(--muted); transition: color 0.5s, transform 0.6s var(--ease); }
.caps-section .cap-title { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); }
.caps-section .cap-desc,
.caps-section .cap-more { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.6s var(--spring), max-height 0.6s var(--spring); }
.caps-section .caps > li:hover .cap,
.caps-section .caps > li:focus-within .cap,
.caps-section .caps:not(:hover):not(:focus-within) > li:first-child .cap { --cap-fg: #f6f2ee; --cap-muted: #f1d9d3; box-shadow: 0 0 0 1px rgba(255, 120, 80, 0.35); }
.caps-section .caps > li:hover .cap::before,
.caps-section .caps > li:focus-within .cap::before,
.caps-section .caps:not(:hover):not(:focus-within) > li:first-child .cap::before { opacity: 1; }
.caps-section .caps > li:hover :is(.cap-desc, .cap-more),
.caps-section .caps > li:focus-within :is(.cap-desc, .cap-more),
.caps-section .caps:not(:hover):not(:focus-within) > li:first-child :is(.cap-desc, .cap-more) { max-height: 12em; opacity: 1; transform: none; transition-delay: 0.15s; }
.caps-section .caps > li:hover :is(.cap-num, .cap-mark),
.caps-section .caps > li:focus-within :is(.cap-num, .cap-mark),
.caps-section .caps:not(:hover):not(:focus-within) > li:first-child :is(.cap-num, .cap-mark) { color: #fff; opacity: 0.95; }
@media (max-width: 900px) {
  .caps-section .caps { flex-direction: column; min-height: 0; }
  .caps-section .caps > li { flex: none; }
  .caps-section .cap { min-height: 260px; }
  .caps-section .cap-desc, .caps-section .cap-more { max-height: none; opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .caps-section .caps > li, .caps-section .cap::before, .caps-section .cap-desc, .caps-section .cap-more { transition: none; }
}
/* two tool cards: the second is the ember one */
.caps--boxed li:nth-child(2) .cap { --cap-fg: #f6f2ee; --cap-muted: #f1d9d3; }
.caps--boxed li:nth-child(2) .cap::before { opacity: 1; }
@media (hover: hover) {
  .caps--boxed li:first-child .cap:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--glass-hi); }
  .caps-section .cap:hover, .caps--boxed .cap:hover { background: var(--glass); }
}

/* ---------- Glass cards (shared look) ---------------------------------- */
.card, .tile, .location, .news-card--light, .news-feature, .panel, .statement, .cta, .post-feature,
.package, .demo-phone, .ind-link, .shift-row, .quiz-card, .takeaways, .stat, .team-jump-list a {
  border: 0;
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--glass-line), var(--glass-hi);
}
.card, .tile, .panel, .statement, .cta, .post-feature, .package, .quiz-card, .news-feature { border-radius: var(--r-card); }
.card-grid--caps .card { background: var(--glass); }
.msg--in { background: var(--surface); box-shadow: 0 0 0 1px var(--glass-line); }
@media (hover: hover) {
  .tile:hover, .ind-link:hover { background: var(--glass); box-shadow: 0 0 0 1px rgba(255, 110, 70, 0.4), var(--glow); }
}
.tile, .ind-link, .card { transition: box-shadow 0.4s var(--ease), transform 0.4s var(--spring); }
@media (hover: hover) { .tile:hover { transform: translateY(-3px); } }
.tile-arrow { border-radius: 50%; background: var(--ember-grad); }
.feature-mark, .page-hero-mark, .hero-mark { color: var(--ember); }
.flow-step { border-top-color: var(--line-strong); }
.flow-num, .quiz-n { color: var(--ember); }

/* ---------- Agents bento: the middle card is lifted and lit ------------- */
.section--bento .features { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.section--bento .feature {
  position: relative;
  overflow: hidden;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-card);
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--glass-line), var(--glass-hi);
}
.section--bento .feature .feature-mark { width: 64px; height: 64px; margin-bottom: clamp(40px, 6vw, 90px); }
.section--bento .feature h3 { font-size: 1.25rem; font-weight: 500; }
.section--bento .feature:nth-child(2) { box-shadow: 0 0 0 1px rgba(255, 110, 70, 0.3), var(--glow); }
.section--bento .feature:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 80%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 106, 43, 0.85), rgba(217, 10, 44, 0.45) 45%, transparent 75%);
  pointer-events: none;
}
.section--bento .feature:nth-child(2) > * { position: relative; }
.section--bento .feature:nth-child(2) .feature-mark { width: 96px; height: 96px; }
@media (max-width: 900px) { .section--bento .features { grid-template-columns: 1fr; } }

/* ---------- Band as bento: head in the middle, stats around it ---------- */
.band { background: var(--bg); color: var(--ink); }
.band .h-section { color: var(--ink); }
.band .lead { color: var(--muted); }
.bento-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px; }
.bento-band .stats { display: contents; }
.bento-head {
  position: relative;
  overflow: hidden;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: 420px;
  padding: clamp(26px, 3vw, 44px);
  border-radius: var(--r-card);
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--glass-line), var(--glass-hi);
}
.bento-head::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 70%;
  background: radial-gradient(40% 50% at 50% 50%, rgba(255, 106, 43, 0.35), transparent 70%);
  pointer-events: none;
}
.bento-mark { position: absolute; top: clamp(26px, 3vw, 40px); left: 50%; width: 120px; color: var(--ember); transform: translateX(-50%); }
.bento-head .h-section { position: relative; max-width: 16ch; }
.bento-head .lead { position: relative; }
.bento-band .stat {
  position: relative;
  overflow: hidden;
  align-content: end;
  min-height: 200px;
  padding: 28px;
  border-radius: var(--r-card);
}
.bento-band .stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(255, 92, 30, 0.55), rgba(217, 10, 44, 0.18) 50%, transparent);
  pointer-events: none;
}
.bento-band .stat > * { position: relative; z-index: 1; }
.bento-band .stat:nth-child(1) { grid-column: 1; grid-row: 1; }
.bento-band .stat:nth-child(2) { grid-column: 3; grid-row: 1 / span 2; }
.bento-band .stat:nth-child(3) { grid-column: 1; grid-row: 2; }
.bento-band .stat-value { font-size: clamp(3rem, 2rem + 3vw, 4.75rem); font-weight: 400; }
.bento-band .stat-label { color: var(--ink-2); }
@media (max-width: 900px) {
  .bento-band { grid-template-columns: 1fr 1fr; }
  .bento-head { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .bento-band .stat:nth-child(n) { grid-column: auto; grid-row: auto; }
  .bento-band .stat:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .bento-band { grid-template-columns: 1fr; }
  .bento-band .stat:nth-child(3) { grid-column: auto; }
}

/* ---------- Packages / engagement models: middle one is featured -------- */
.package--ink {
  position: relative;
  overflow: hidden;
  background: #121013;
  color: #f4f1ee;
  box-shadow: 0 0 0 1px rgba(255, 110, 70, 0.4), var(--glow);
}
.package--ink::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 140px;
  background: radial-gradient(70% 100% at 50% 0%, rgba(255, 106, 43, 0.6), rgba(217, 10, 44, 0.25) 50%, transparent 80%);
  pointer-events: none;
}
.package--ink > * { position: relative; }
.package--ink .ticks li { color: #d8d2da; }
.package--ink .package-who { color: #f1c9bf; }

/* ---------- Demo, dark panels, inner banners --------------------------- */
.demo-log, .roi-result, .news-card--ink { background: #121013; box-shadow: 0 0 0 1px var(--glass-line); }
.demo-log { position: relative; overflow: hidden; }
.silk-banner { border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--glass-line); background: radial-gradient(70% 70% at 50% 110%, #ff6a2b, #d90a2c 40%, transparent 75%), var(--bg); }
.page-hero-row { border-top-color: var(--line); }
.giant { font-weight: 450; letter-spacing: -0.05em; }

/* ---------- FAQ -------------------------------------------------------- */
.faq-toggle { border-radius: 50%; background: var(--shell); box-shadow: 0 0 0 1px var(--glass-line); }

/* ---------- Forms ------------------------------------------------------ */
.field input, .field select, .field textarea { border-radius: 14px; background: var(--shell); border-color: var(--glass-line); }
.form-band { background: var(--bg-2); color: var(--ink); }
.form-band .h-section { color: var(--ink); }
.form-band .lead, .form-band .small, .form-band .label, .form-band .field-hint,
.form-band .check, .form-band .form-status, .form-band .optional, .form-band .field label { color: var(--muted); }
.form-band .contact-block a, .form-band .social a { color: var(--ink); }
.form-band .field input, .form-band .field select, .form-band .field textarea { background: var(--shell); border-color: var(--glass-line); color: var(--ink); }
.form-band .btn-split { background: var(--ink); }
.form-band .btn-split-label { color: var(--bg); }

/* ---------- Footer: glow CTA, columns, giant fading wordmark ----------- */
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--band);
  color: var(--band-ink);
  padding-top: 0;
  --ink: #f4f1ee;
  --ink-2: #d2ccd4;
  --muted: #a19aa6;
  --line: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.1);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --bg: #070608;
}
.footer-cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding: clamp(5rem, 11vw, 9rem) var(--gutter) clamp(4rem, 8vw, 6.5rem);
  text-align: center;
  border-bottom: 1px solid var(--band-line);
}
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0 -40vw;
  z-index: -1;
  background:
    radial-gradient(38% 60% at 50% 100%, rgba(255, 150, 80, 0.55), transparent 70%),
    radial-gradient(60% 85% at 50% 105%, rgba(255, 80, 30, 0.75), rgba(217, 10, 44, 0.45) 40%, transparent 72%),
    radial-gradient(90% 100% at 50% 110%, rgba(120, 8, 24, 0.8), transparent 75%);
}
.footer-eyebrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer-cta .footer-statement { max-width: 18ch; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem); font-weight: 450; letter-spacing: -0.045em; line-height: 1.02; }
.footer-sub { max-width: 52ch; color: var(--band-muted); }
.footer-lead { gap: 14px; }
.footer-lead .brand { color: var(--band-ink); }
.footer-about { color: var(--band-muted); font-size: 0.9375rem; max-width: 30ch; }
.footer-signoff {
  margin-top: clamp(2.75rem, 6vw, 5.75rem);
}
.footer-signoff-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--band-line);
  color: var(--band-muted);
  font: 400 0.6875rem/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-wordmark {
  display: block;
  margin: clamp(1.35rem, 3vw, 2.5rem) 0 clamp(1.25rem, 2vw, 1.75rem);
  color: #f4f1ee;
  text-decoration: none;
}
.footer-wordmark-logo { display: block; width: 100%; height: auto; }
.site-footer .footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-footer .footer-bottom > :last-child { text-align: right; }
@media (max-width: 900px) {
  .site-footer .footer-bottom { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-bottom > :nth-child(2) { text-align: right; }
  .site-footer .footer-bottom > :last-child { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 600px) {
  .footer-signoff-meta { display: grid; gap: 5px; }
  .site-footer .footer-bottom { grid-template-columns: 1fr; }
  .site-footer .footer-bottom > :nth-child(2),
  .site-footer .footer-bottom > :last-child { grid-column: auto; text-align: left; }
}

/* ---------- Scroll entry (scroll-driven where supported) ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transform: translateY(22px); }
  .js [data-reveal].is-in { transition: opacity 0.6s var(--ease), transform 0.9s var(--spring); }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes v4-rise { from { transform: translateY(28px); } }
    .section-head, .bezel, .bento-band .stat, .caps-section .caps > li, .tiles > li, .news-feature {
      animation: v4-rise linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}
.shift-arrow { border-radius: 50%; background: var(--ember-grad); box-shadow: 0 8px 20px -10px rgba(255, 80, 30, 0.8); }
.footer-cta { overflow: hidden; }
/* collapsed cards: number + title only; description width only once expanded */
.caps-section .cap-mark { flex: none; opacity: 0; transition: opacity 0.4s ease, color 0.5s, transform 0.6s var(--ease); }
.caps-section .caps > li:hover .cap-desc,
.caps-section .caps > li:focus-within .cap-desc,
.caps-section .caps:not(:hover):not(:focus-within) > li:first-child .cap-desc { min-width: 26ch; }
.caps-section .caps > li:hover .cap-mark,
.caps-section .caps > li:focus-within .cap-mark,
.caps-section .caps:not(:hover):not(:focus-within) > li:first-child .cap-mark { opacity: 1; }
@media (max-width: 900px) { .caps-section .cap-mark { opacity: 1; } }
.ember-text { white-space: nowrap; }
/* 12px floor for any visible label */
.orch-col, .orch-count, .shift-tag { font-size: 0.75rem; }
@media (max-width: 520px) { .orch-col { font-size: 0.75rem; letter-spacing: 0.02em; } }
.demo-who small { font-size: 0.75rem; }

/* ---------- Mixed zones (2026-11-06): light page, dark bands ------------ */
.zone-dark { background: var(--bg); color: var(--ink); }
.zone-dark .section--surface { background: var(--bg-2); }
.site-header { margin-bottom: calc(-1 * var(--header-h)); }
.page-hero.zone-dark { padding: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) 0 clamp(3rem, 6vw, 5rem); }
/* header pill follows the zone under it (site.js adds .zone-dark to the header) */
.site-header.zone-dark { background: transparent; }
.caps-section .cap::before, .caps--boxed .cap::before { transition: opacity 0.25s ease; }

/* ---------- V5 service + technology navigation ----------------------- */
.nav-mega { display: flex; align-items: center; }
.nav-mega-trigger {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 0.875rem; white-space: nowrap; cursor: pointer;
}
.nav-mega-trigger i { font-size: 0.65rem; transition: transform 0.2s ease; }
.nav-mega-trigger[aria-expanded="true"], .nav-mega.is-current .nav-mega-trigger {
  color: var(--ink); background: var(--shell); box-shadow: 0 0 0 1px var(--glass-line);
}
.nav-mega-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
@media (hover: hover) { .nav-mega-trigger:hover { color: var(--ink); background: var(--shell); } }
.mega {
  position: fixed; inset: 64px auto auto 50%; width: 100vw; transform: translateX(-50%); z-index: calc(var(--z-header) - 1);
  max-height: calc(100dvh - var(--header-h)); overflow: auto;
  background: color-mix(in srgb, var(--bg) 97%, transparent); border-top: 1px solid var(--glass-line);
  border-bottom: 1px solid var(--glass-line); box-shadow: 0 24px 60px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.mega[hidden] { display: none; }
.site-header .mega-inner.container {
  width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); height: auto; margin-inline: auto;
  padding: 20px var(--gutter) 28px; border-radius: 0; background: transparent; box-shadow: none;
  display: block; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.mega-head { display: flex; justify-content: flex-end; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.site-header .nav .mega-head a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0; border-radius: 0; font-weight: 600; }
.mega-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 38px; padding-top: 18px; }
.mega-categories { display: grid; align-content: start; gap: 4px; }
.mega-category {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 50px;
  padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink);
  text-align: left; font: inherit; font-weight: 600; cursor: pointer;
}
.mega-category[aria-selected="true"] { background: var(--shell); box-shadow: 0 0 0 1px var(--glass-line); }
.mega-category i { font-size: .7rem; color: var(--muted); }
.mega-panel { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-content: start; gap: 8px 24px; }
.mega-panel[hidden] { display: none; }
.site-header .nav .mega-link {
  display: grid; gap: 5px; align-content: start; min-height: 82px; padding: 12px 10px; border-radius: 12px;
  color: var(--ink); white-space: normal;
}
.mega-link strong { font-size: .94rem; font-weight: 600; }
.mega-link span { color: var(--muted); font-size: .8rem; line-height: 1.4; }
@media (hover:hover) { .site-header .nav .mega-link:hover { background: var(--shell); } }

.drawer-catalog { display: grid; gap: 0; padding-block: 8px; border-bottom: 1px solid var(--line); }
.drawer .drawer-parent { color: var(--ink); font-weight: 650; }
.drawer-catalog details { border-top: 1px solid var(--line); }
.drawer-catalog summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 4px; color: var(--ink-2); cursor: pointer; }
.drawer-catalog summary::-webkit-details-marker { display: none; }
.drawer-catalog details[open] summary i { transform: rotate(180deg); }
.drawer-catalog details > div { display: grid; padding: 0 0 10px 14px; }
.drawer-catalog details a { min-height: 42px; padding-block: 10px; font-size: .9rem; }

/* ---------- Catalogue pages ------------------------------------------ */
.catalog-section:nth-of-type(even) { background: var(--surface); }
.catalog-group { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: clamp(36px,7vw,96px); align-items: start; }
.catalog-group-head { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.catalog-ai { max-width: 52ch; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.catalog-ai strong { color: var(--ink); }
.catalog-links { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); }
.catalog-links li { border-bottom: 1px solid var(--line); }
.catalog-links li:nth-child(odd) { border-right: 1px solid var(--line); }
.catalog-links a { display: flex; justify-content: space-between; gap: 18px; min-height: 128px; padding: 22px; color: var(--ink); text-decoration: none; }
.catalog-links a > span { display: grid; gap: 9px; align-content: start; }
.catalog-links strong { font-size: clamp(1.05rem,1rem + .25vw,1.25rem); }
.catalog-links small { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.catalog-links i { margin-top: 5px; color: var(--accent-text); transition: transform .25s ease; }
@media (hover:hover) { .catalog-links a:hover { background: var(--shell); } .catalog-links a:hover i { transform: translateX(4px); } }
.form-privacy { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.catalog-hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: clamp(36px,6vw,88px); align-items: center; }
.catalog-hero-copy { display: grid; gap: 24px; align-content: center; }
.catalog-hero .giant { font-size: clamp(3.4rem,2rem + 4vw,7.4rem); }
.catalog-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.catalog-hero-actions > p { display: grid; color: var(--muted); font-size: .86rem; }
.catalog-hero-actions strong { color: var(--ink); font-size: 1.35rem; }
.catalog-visual { margin: 0; overflow: hidden; border-radius: var(--r-card); background: #100e11; box-shadow: 0 0 0 1px var(--glass-line), var(--glow); }
.catalog-visual svg { display: block; width: 100%; height: auto; }
.catalog-rings { stroke-width: 2; opacity: .68; }
.catalog-path { stroke-width: 3; }
.catalog-path--soft { stroke-width: 1; opacity: .28; }
.catalog-node { filter: drop-shadow(0 0 12px rgba(255,90,50,.8)); }
.catalog-stack { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: clamp(36px,7vw,92px); align-items: start; }
.catalog-stack .chips { display: flex; flex-wrap: wrap; gap: 9px; }
.catalog-integration { padding: clamp(24px,4vw,40px); border-radius: var(--r-card); background: var(--shell); box-shadow: 0 0 0 1px var(--glass-line); }
.catalog-integration .label { margin-bottom: 18px; }
.people--catalog { grid-template-columns: repeat(4,minmax(0,1fr)); }
.proof-impact { background: var(--bg); color: var(--ink); }
.catalog-close { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(40px,8vw,110px); align-items: center; padding: clamp(36px,6vw,72px); border-radius: var(--r-card); background: var(--shell); box-shadow: 0 0 0 1px var(--glass-line), var(--shadow); }
.catalog-close > div { display: grid; gap: 20px; }
.catalog-close .capture { max-width: 520px; }
.catalog-next { list-style: none; display: grid; border-top: 1px solid var(--line); }
.catalog-next li { display: grid; grid-template-columns: 42px 1fr; gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.catalog-next li > span { grid-row: 1 / 3; color: var(--accent-text); font: 500 .75rem/1.5 var(--mono); }
.catalog-next strong { font-size: 1rem; }
.catalog-next p { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) {
  .catalog-group { grid-template-columns: 1fr; }
  .catalog-group-head { position: static; }
  .catalog-hero-grid, .catalog-stack, .catalog-close { grid-template-columns: 1fr; }
  .catalog-hero-grid { align-items: start; }
  .people--catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .catalog-links { grid-template-columns: 1fr; }
  .catalog-links li:nth-child(odd) { border-right: 0; }
  .catalog-links a { min-height: 108px; padding-inline: 6px; }
}

/* =====================================================================
   V5.1 conversion and light-canvas system
   User-approved background palette: #fff and #f9f9f9 only.
   The homepage hero and global footer intentionally remain dark.
   ===================================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #f9f9f9;
  --surface: #f9f9f9;
  --surface-2: #f9f9f9;
  --shell: #f9f9f9;
  --line: rgba(20, 18, 21, 0.08);
  --line-strong: rgba(20, 18, 21, 0.16);
  --glass-line: rgba(20, 18, 21, 0.08);
  --section-y: clamp(4rem, 7.5vw, 7.5rem);
}

html {
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 18px);
}
body { background: #ffffff; }
button, a, [role="button"], summary {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, select { font-size: max(1rem, 16px); }

.section--surface,
.catalog-section:nth-of-type(even),
.form-band,
.band { background: #f9f9f9; }

/* The only dark page regions. */
.page-home main > .zone-dark:first-child,
.site-footer {
  color-scheme: dark;
  --bg: #0b0a0c;
  --bg-2: #100e11;
  --surface: #141215;
  --surface-2: #1c191e;
  --shell: rgba(255, 255, 255, 0.025);
  --ink: #f4f1ee;
  --ink-2: #d2ccd4;
  --muted: #a19aa6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass-line: rgba(255, 255, 255, 0.08);
  background: #0b0a0c;
  color: var(--ink);
}

/* Inner-page heroes are light and clear of the overlaid header. */
.page-hero {
  padding: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) 0 clamp(3rem, 6vw, 5rem);
  background: #ffffff;
  color: var(--ink);
}
.page-contact .page-hero { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-contact .page-hero-row { margin-bottom: 0; }

/* Navigation prioritises a visible contact action at every width. */
.cta-short { display: none; }
.header-cta { min-width: 138px; }
@media (max-width: 520px) {
  .site-header .container { gap: 8px; }
  .brand-logo { width: 130px; }
  .header-actions { gap: 4px; }
  .header-actions .header-cta { display: inline-flex; min-width: 0; padding-inline: 14px; }
  .cta-wide { display: none; }
  .cta-short { display: inline; }
}

/* Light vector service and technology artwork. */
.catalog-visual {
  background: #f9f9f9;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -40px rgba(60, 20, 30, 0.32);
}
.catalog-visual svg { aspect-ratio: 16 / 9; }

.detail-jump {
  position: sticky;
  top: var(--header-h);
  z-index: calc(var(--z-header) - 2);
  background: color-mix(in srgb, #ffffff 94%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.detail-jump .container { display: flex; align-items: center; gap: 4px; min-height: 54px; overflow-x: auto; scrollbar-width: none; }
.detail-jump .container::-webkit-scrollbar { display: none; }
.detail-jump span { margin-right: auto; padding-right: 18px; font-weight: 650; white-space: nowrap; }
.detail-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.detail-jump .detail-jump-cta { background: var(--accent); color: #ffffff; }
.section-anchor { display: block; height: 0; scroll-margin-top: calc(var(--header-h) + 70px); }
@media (max-width: 760px) {
  .detail-jump span { display: none; }
  .detail-jump .container { padding-block: 7px; }
  .detail-jump .detail-jump-cta { display: none; }
}

/* ---------- Flat interaction system ----------------------------------- */
button, [role="button"], input[type="button"], input[type="submit"] {
  background-image: none;
  box-shadow: none;
  filter: none;
}
.btn, .nav-cta, .btn-split, .btn-split-label, .btn-split-arrow,
.menu-toggle, .pause-btn, .tile-arrow, .shift-arrow, .faq-toggle,
.detail-jump .detail-jump-cta, .orch-tasks button, .quiz-nav button {
  box-shadow: none !important;
  filter: none !important;
}
.btn--primary, .nav-cta, .btn-split-arrow, .tile-arrow, .shift-arrow,
.detail-jump .detail-jump-cta, .orch-node--orch {
  background: var(--accent) !important;
  color: #fff;
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  box-shadow: none !important;
}
.btn--secondary, .pause-btn, .menu-toggle, .faq-toggle {
  background: var(--surface-2);
}
.btn:hover, .btn:active, .nav-cta:hover, .nav-cta:active,
.btn-split:hover, .btn-split:active, .btn-split:hover .btn-split-arrow,
.menu-toggle:hover, .menu-toggle:active, .pause-btn:hover, .pause-btn:active {
  transform: none !important;
  box-shadow: none !important;
}
.btn--primary:hover, .nav-cta:hover, .btn-split:hover .btn-split-arrow,
.detail-jump .detail-jump-cta:hover {
  background: var(--accent-hover) !important;
}
.site-footer .btn-split, .form-band .btn-split,
.package--ink .btn-split, .roi-result .btn-split {
  box-shadow: none !important;
}

/* Long pages read as chapters, not one continuous wall of cards. */
.section-head { max-width: 760px; }
.prose { max-width: 68ch; }
.card p, .feature p, .flow-step p, .catalog-links small { max-width: 58ch; }
.h-section { max-width: 18ch; }
.section + .section { border-top: 1px solid rgba(20, 18, 21, 0.035); }

/* Contact conversion: form first, fewer visible fields, direct alternatives. */
.form-band .contact-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: start;
}
.contact-form {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #ffffff;
  box-shadow: 0 22px 60px -46px rgba(60, 20, 30, 0.34);
}
.form-intro { display: grid; gap: 14px; margin-bottom: 8px; }
.contact-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-card);
  background: #ffffff;
  border: 1px solid var(--line);
}
.form-more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-more summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  cursor: pointer;
  font-weight: 600;
}
.form-more summary::-webkit-details-marker { display: none; }
.form-more summary i { color: var(--muted); transition: transform .2s ease; }
.form-more[open] summary i { transform: rotate(180deg); }
.form-more-fields { display: grid; gap: 20px; padding: 4px 0 24px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-status { max-width: 62ch; }
@media (max-width: 900px) {
  .form-band .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}
@media (max-width: 520px) {
  .contact-form, .contact-aside { padding: 22px 18px; border-radius: 18px; }
  .form-actions > * { width: 100%; }
}

/* ---------- Hero, shortened (2026-11-06) ------------------------------------
   One clear message per screen: shorter lead, tighter rhythm, and on phones the
   capability chips step aside (they repeat the main menu) so the CTA stays in view. */
.hero-v4-copy .lead { max-width: 44ch; }
@media (max-width: 640px) {
  .hero-v4 { gap: 32px; }
  .hero-v4-copy { gap: 20px; }
  .hero-v4 .proof-chips { display: none; }
  .hero-v4 .proof { padding-top: 20px; }
}

/* Proof strip sits on the brightest part of the glow: lift the labels to near-white
   and seat the strip on a soft dark band so every label clears 4.5:1. */
.hero-v4 .proof { position: relative; isolation: isolate; }
.hero-v4 .proof::before {
  content: "";
  position: absolute;
  inset: -12px -50vw -40px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 10, 12, 0) 0%, rgba(11, 10, 12, 0.62) 35%, rgba(11, 10, 12, 0.72) 100%);
  pointer-events: none;
}
.hero-v4 .proof-stats span { color: rgba(244, 241, 238, 0.86); font-size: 0.875rem; font-weight: 450; }
.hero-v4 .proof-chips a { background: rgba(11, 10, 12, 0.45); }

/* Hero eyebrow, minimal (2026-11-06): a quiet tag, not a glossy button.
   No gradient, no glow: hairline outline, one red status dot, muted mono label. */
.hero-eyebrow .pill--ember,
.footer-eyebrow .pill--ember {
  gap: 10px;
  height: 30px;
  padding: 0 14px 0 12px;
  background: rgba(11, 10, 12, 0.35);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 238, 0.16);
  color: rgba(244, 241, 238, 0.82);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-shadow: none;
  filter: none;
}
.hero-eyebrow .pill--ember::before,
.footer-eyebrow .pill--ember::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}
.hero-eyebrow .pill--ember::after, .footer-eyebrow .pill--ember::after { content: none; }

/* Agent demo on phones (2026-11-06): drop the square white stage behind the rounded
   bezel, give the map more height, and slim the chips so Sales and AI Manager never overlap. */
@media (max-width: 640px) {
  .agent-orch-stage { padding: 0; background: transparent; overflow: visible; }
}
@media (max-width: 520px) {
  .agent-orch-stage .orch-map { height: 300px; }
  .agent-orch-stage .orch-node:not(.orch-node--sys) { gap: 0; padding: 5px 10px; }
  .agent-orch-stage .orch-node:not(.orch-node--sys):not(.orch-node--human) i { display: none; }
  .agent-orch-stage .orch-col { letter-spacing: 0; }
  /* oversight column sits a little further right on narrow maps (edges follow the chips) */
  .agent-orch-stage .orch-node--orch, .agent-orch-stage .orch-node--human { --x: 67% !important; }
}

/* Workflow picker (2026-11-06): one segmented track instead of two wrapped rows.
   Desktop: all five fit in the track. Phones: the track scrolls sideways with snap,
   a fade on the right edge hints at more, and each option keeps a 40px touch height. */
.orch-head { flex-direction: column; align-items: stretch; }
.orch-tasks {
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.orch-tasks::-webkit-scrollbar { display: none; }
.orch-tasks button { flex: 1 0 auto; min-height: 40px; padding: 0 16px; white-space: nowrap; scroll-snap-align: start; }
@media (max-width: 640px) {
  .orch-tasks {
    margin-inline: -4px;
    padding-right: 48px; /* the last option can scroll clear of the fade */
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .orch-tasks button { flex: none; }
}

/* Agent demo stage: no white plate behind the bezel at any size (user, 2026-11-06),
   and the workflow track may never widen the card (it scrolls inside instead). */
.agent-orch-stage { padding: 0; background: transparent; overflow: visible; border-radius: 0; }
.agent-orch-stage .bezel, .agent-orch-stage .orch, .orch-head { min-width: 0; max-width: 100%; }
.orch-tasks { width: 100%; max-width: 100%; min-width: 0; }

/* Workflow picker, light (user, 2026-11-06): no black pill. The selected option is a
   pale red tint with red text on the light track; others stay muted ink. */
.orch-tasks { background: #f6f6f6; box-shadow: inset 0 0 0 1px rgba(20, 18, 21, 0.06); }
.orch-tasks button[aria-pressed="true"] {
  background: #fdebec;
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(217, 10, 44, 0.18) !important;
}
@media (hover: hover) { .orch-tasks button:hover:not([aria-pressed="true"]) { background: #fff; color: var(--ink); } }

/* Silk banners are dark on every page (user, 2026-11-06): dark fallback before WebGL paints. */
.silk-banner { background: radial-gradient(70% 70% at 50% 110%, #ff6a2b, #d90a2c 40%, transparent 75%), #0b0a0c; box-shadow: none; }
.silk-banner .silk-mark { color: #f4f1ee; }

/* Footer CTA (user, 2026-11-06): full-bleed glow band, seen through the same fluted
   glass as the home hero (44px ribs, 30px on phones). Text stays above the glass. */
.site-footer { overflow-x: clip; }
.footer-cta {
  --rib: 44px;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--gutter), calc(50vw - 600px));
  isolation: isolate;
}
.footer-cta::before { inset: 0; }
.footer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 236, 226, 0.10) calc(var(--rib) * 0.22),
    rgba(255, 255, 255, 0) calc(var(--rib) * 0.5),
    rgba(11, 10, 12, 0) calc(var(--rib) * 0.72),
    rgba(11, 10, 12, 0.22) calc(var(--rib) * 0.95),
    rgba(11, 10, 12, 0.34) var(--rib));
}
@media (max-width: 640px) { .footer-cta { --rib: 30px; } }

/* Agent demo spacing (2026-11-06): one centred axis. The head centres over the card,
   the card widens to 880px, the head-to-card gap tightens, the stage drops its extra
   bottom margin, and the five workflows share the track equally on desktop. */
#agent-demo { padding-block: clamp(3.5rem, 7vw, 6rem); }
#agent-demo .section-head {
  justify-items: center;
  max-width: 880px;
  margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
}
#agent-demo .section-head .lead { max-width: 52ch; }
#agent-demo .agent-orch-stage { margin-bottom: 0; }
#agent-demo .agent-orch-stage .bezel { width: min(880px, 100%); }
@media (min-width: 641px) {
  #agent-demo .orch-tasks button { flex: 1 1 0; padding-inline: 10px; }
}
@media (max-width: 640px) {
  #agent-demo .section-head { justify-items: start; text-align: left; }
}

/* 12px floor (2026-11-06 iPhone pass). */
.drift-label, .footer-signoff-meta span { font-size: 0.75rem !important; }

/* Photo bands and labelled placeholders (2026-11-06): a wide 21:9 photo between
   sections (4:3 on phones). Until a photo is added, the slot shows its name. */
.section--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.media--wide { aspect-ratio: 21 / 9; border-radius: var(--r-card); overflow: hidden; }
.media--wide img { width: 100%; height: 100%; object-fit: cover; }
.media--placeholder.media--wide, .media--placeholder.media--banner { min-height: 0; }
@media (max-width: 640px) { .media--wide { aspect-ratio: 4 / 3; } }

/* 2026-11-07 (user): the ember glow showed as a bright orange strip under the stats band.
   Run the band to the bottom of the hero and settle it into near-solid dark. */
.hero-v4 .proof::before {
  bottom: -240px;
  background: linear-gradient(180deg, rgba(11, 10, 12, 0) 0%, rgba(11, 10, 12, 0.62) 22%, rgba(11, 10, 12, 0.8) 55%, rgba(11, 10, 12, 0.94) 100%);
}

/* ---------- Flat buttons (user, 2026-11-07: "upgrade all buttons, use flat") ----------
   One system for every button: solid fill, no shadow, gradient or nested circle.
   Sentence-case Aspekta label (no mono caps), arrow inline with the label.
   Hover turns the fill brand red and slides the arrow; press nudges down 1px. */
.btn, .btn--small, .btn-split {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 500 1rem/1 var(--font, inherit);
  letter-spacing: -0.005em;
  text-transform: none;
  white-space: nowrap;
  text-decoration: none;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}
.btn--small, .header-actions .btn--small { --btn-h: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn:active, .btn-split:active { transform: translateY(1px) !important; }
.btn:focus-visible, .btn-split:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Primary: brand red */
.btn--primary { background-color: var(--accent) !important; color: #fff; }

/* Secondary / ghost: hairline outline, fills softly on hover */
.btn--ghost, .btn--secondary {
  background-color: transparent !important;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

/* Split CTA: solid ink pill, label + bare arrow */
.btn-split { background-color: var(--ink) !important; color: var(--bg); padding: 0 22px 0 24px; }
.btn-split .btn-split-label,
.site-footer .btn-split-label, .form-band .btn-split-label, .package--ink .btn-split-label, .roi-result .btn-split-label {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none !important;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.btn-split .btn-split-arrow {
  display: inline-grid;
  place-items: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none !important;
  color: inherit;
  font-size: 0.875rem;
  transform: none !important;
}
.btn-split .btn-split-arrow i, .btn-split .btn-split-arrow svg { transition: transform 0.25s var(--ease); }

/* On dark bands the split CTA flips to a light pill */
.zone-dark .btn-split, .site-footer .btn-split, .form-band .btn-split,
.package--ink .btn-split, .roi-result .btn-split { background-color: #f4f1ee !important; color: #141215; }
.zone-dark .btn--ghost, .zone-dark .btn--secondary { color: #f4f1ee; border-color: rgba(244, 241, 238, 0.28); }

@media (hover: hover) {
  .btn--primary:hover { background-color: var(--accent-hover) !important; }
  .btn--ghost:hover, .btn--secondary:hover { background-color: rgba(20, 18, 21, 0.05) !important; border-color: rgba(20, 18, 21, 0.32); }
  .zone-dark .btn--ghost:hover, .zone-dark .btn--secondary:hover { background-color: rgba(244, 241, 238, 0.08) !important; border-color: rgba(244, 241, 238, 0.5); }
  .btn-split:hover,
  .zone-dark .btn-split:hover, .site-footer .btn-split:hover, .form-band .btn-split:hover,
  .package--ink .btn-split:hover, .roi-result .btn-split:hover { background-color: var(--accent) !important; color: #fff; }
  .btn-split:hover .btn-split-arrow i, .btn-split:hover .btn-split-arrow svg { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-split, .btn-split .btn-split-arrow i { transition: none; }
}
/* older flatten rule painted a darker square behind the arrow on hover */
.btn-split:hover .btn-split-arrow, .btn-split:focus-visible .btn-split-arrow,
a.btn-split:hover span.btn-split-arrow { background: none !important; }
/* the contact form band is light now, so its submit stays the solid ink pill */
.form-band .btn-split { background-color: var(--ink) !important; color: var(--bg); }

/* ---------- Spotlight ring hover (user, 2026-11-07, option D of docs/button-options.html) ----------
   On hover the button settles to near-black. A thin ember edge lights up where the pointer is,
   with a faint red glow inside. site.js sets --mx / --my (px) on pointermove. Mouse only.
   Red primary buttons keep their red and get a lighter peach ring. */
.btn-split, .btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  --ring-a: #ff7a3d;
  --ring-b: #d90a2c;
  --glow: rgba(217, 10, 44, 0.28);
}
.btn--primary { --ring-a: #ffd2bd; --ring-b: #ff8a5c; --glow: rgba(255, 150, 110, 0.22); }
.btn-split > *, .btn--primary > * { position: relative; }
.btn-split::after, .btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(90px 90px at var(--mx) var(--my), var(--ring-a), var(--ring-b) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity 0.3s ease;
}
.btn-split::before, .btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(120px 80px at var(--mx) var(--my), var(--glow), transparent 70%);
  transition: opacity 0.3s ease;
}
@media (hover: hover) {
  .btn-split:hover,
  .zone-dark .btn-split:hover, .site-footer .btn-split:hover, .form-band .btn-split:hover,
  .package--ink .btn-split:hover, .roi-result .btn-split:hover {
    background-color: #0d0c0e !important;
    color: #fff;
  }
  .btn--primary:hover { background-color: var(--accent-hover) !important; }
  .btn-split:hover::after, .btn-split:hover::before,
  .btn--primary:hover::after, .btn--primary:hover::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-split::after, .btn-split::before, .btn--primary::after, .btn--primary::before { transition: none; }
}
