/* ============================================================
   Artifinance — institutional finance redesign (v2, restructured)
   Tokens + base + app-first layout
   ============================================================ */

/* self-hosted fonts — keeps CSP font-src 'self' */
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/hanken-400.woff2") format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/hanken-500.woff2") format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/hanken-600.woff2") format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/hanken-700.woff2") format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/hanken-800.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/plexmono-400.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/plexmono-500.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/plexmono-600.woff2") format("woff2")}

:root {
  /* theme-independent */
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --maxw: 1480px;
  --radius: 14px;

  /* 8pt spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px;
  --s6: 64px; --s7: 96px; --s8: 128px; --s9: 160px;

  /* ---- DARK is the default theme ----
     Elevation: each surface steps measurably lighter than --paper so cards,
     panels and sections actually separate (>=1.3:1 against the base). */
  --paper:    oklch(0.150 0.014 264);   /* base plane */
  --paper-2:  oklch(0.238 0.016 264);   /* section tint (>=1.3:1 vs paper) */
  --paper-3:  oklch(0.292 0.017 264);   /* inset / track */
  --card:     oklch(0.278 0.018 264);   /* raised surface (>=1.4:1 vs paper) */
  --card-2:   oklch(0.324 0.019 264);   /* surface on a surface */
  --ink:      oklch(0.972 0.004 265);
  --ink-2:    oklch(0.770 0.014 265);
  --ink-3:    oklch(0.642 0.014 265);
  --line:     oklch(1 0 0 / 0.12);
  --line-2:   oklch(1 0 0 / 0.20);
  --hairline: oklch(1 0 0 / 0.07);      /* top-edge highlight on raised surfaces */

  --accent:    oklch(0.600 0.165 256);
  --accent-2:  oklch(0.730 0.150 252);
  --accent-3:  oklch(0.820 0.120 210);  /* cyan end of the signature spectrum */
  --accent-wash: oklch(0.600 0.165 256 / 0.18);
  /* warmth layer — a friendly amber/coral that plays against the cobalt so the
     page reads alive, not all-gravitas. ARIA's antenna + accents pick this up. */
  --warm:      oklch(0.800 0.150 62);   /* amber */
  --warm-2:    oklch(0.720 0.170 36);   /* coral */
  --warm-wash: oklch(0.800 0.150 62 / 0.16);
  --seal:      oklch(0.730 0.150 158);
  --seal-wash: oklch(0.730 0.150 158 / 0.16);
  --warn:      oklch(0.760 0.130 64);

  /* the six app accents — promoted from per-tile decoration to a brand device */
  --app-erp:   #5d7bff;
  --app-crm:   #1ec9b7;
  --app-hr:    #f0b25a;
  --app-sec:   #b48cff;
  --app-tax:   #37c98c;
  --app-legal: #97a0ff;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.45), 0 1px 1px oklch(0 0 0 / 0.30);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.50), 0 2px 5px oklch(0 0 0 / 0.40);
  --shadow-lg: 0 40px 90px -24px oklch(0 0 0 / 0.78), 0 12px 32px -12px oklch(0 0 0 / 0.55);
  /* reusable raised-surface treatment: top-edge highlight + lift shadow */
  --raise:    inset 0 1px 0 var(--hairline), var(--shadow-md);
  --raise-lg: inset 0 1px 0 var(--hairline), var(--shadow-lg);
}

/* ---- LIGHT theme (opt-in via the nav toggle) ---- */
:root[data-theme="light"] {
  --paper:    oklch(0.988 0.004 95);
  --paper-2:  oklch(0.968 0.005 95);
  --paper-3:  oklch(0.948 0.006 95);
  --card:     oklch(1 0 0);
  --card-2:   oklch(0.985 0.004 95);
  --ink:      oklch(0.225 0.014 262);
  --ink-2:    oklch(0.448 0.012 262);
  --ink-3:    oklch(0.575 0.012 262);
  --line:     oklch(0.900 0.006 262);
  --line-2:   oklch(0.848 0.008 262);
  --hairline: oklch(1 0 0 / 0.80);

  --accent:    oklch(0.487 0.140 256);
  --accent-2:  oklch(0.410 0.140 256);
  --accent-3:  oklch(0.560 0.110 220);
  --accent-wash: oklch(0.487 0.140 256 / 0.08);
  --warm:      oklch(0.700 0.150 56);
  --warm-2:    oklch(0.640 0.175 34);
  --warm-wash: oklch(0.700 0.150 56 / 0.12);
  --seal:      oklch(0.535 0.108 158);
  --seal-wash: oklch(0.535 0.108 158 / 0.10);
  --warn:      oklch(0.66 0.13 64);

  --shadow-sm: 0 1px 2px oklch(0.235 0.013 262 / 0.06), 0 1px 1px oklch(0.235 0.013 262 / 0.05);
  --shadow-md: 0 6px 18px oklch(0.235 0.013 262 / 0.08), 0 2px 4px oklch(0.235 0.013 262 / 0.05);
  --shadow-lg: 0 30px 70px -20px oklch(0.235 0.013 262 / 0.16), 0 10px 24px -10px oklch(0.235 0.013 262 / 0.09);
  --raise:    inset 0 1px 0 var(--hairline), var(--shadow-md);
  --raise-lg: inset 0 1px 0 var(--hairline), var(--shadow-lg);
}

/* keep the browser UI (scrollbars, form controls) in sync with the theme */
:root { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400; letter-spacing: -0.005em;
}
/* NOTE: do NOT put overflow:clip/hidden on <body> or on the main sections —
   it silently breaks IntersectionObserver's viewport root (kills the console
   auto-boot + scroll-reveal). Horizontal overflow is contained at its source
   instead: .hero { overflow:hidden } and .pf-stage { overflow:clip }. */
::selection { background: var(--accent-wash); }
/* Type ramp: 800 display tier, steeper scale, optical tightening on the largest sizes */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
h1 { font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
h2 { font-weight: 800; letter-spacing: -0.032em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow .tick { color: var(--accent); display: inline-flex; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* buttons — one primary (accent), one ghost. Accent is darkened so #fff text
   clears AA (>=4.5:1); a top hairline + lift give it physical weight. */
.btn {
  font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-accent {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  background-color: oklch(0.520 0.165 256);   /* AA fallback fill: #fff = ~5.1:1 */
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.22), 0 6px 18px -6px oklch(0.520 0.165 256 / 0.65), var(--shadow-sm);
}
.btn-primary:hover, .btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.30), 0 12px 28px -8px oklch(0.520 0.165 256 / 0.75), var(--shadow-md);
}
.btn-ghost {
  background: var(--card); color: var(--ink); border-color: var(--line-2);
  box-shadow: var(--raise);
}
.btn-ghost:hover { background: var(--card-2); border-color: var(--ink-3); transform: translateY(-1px); }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* varied section rhythm on the 8pt scale — default generous, modifiers tighten/open */
.section { padding: var(--s7) 0; position: relative; }
.section.tight { padding: var(--s6) 0; }
.section.airy  { padding: var(--s8) 0; }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 18px; }
.section-head .lede { margin-top: 20px; font-size: 19px; color: var(--ink-2); line-height: 1.5; max-width: 640px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; padding: 4px 9px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip.cite { color: var(--accent-2); border-color: color-mix(in oklch, var(--accent) 35%, var(--line-2)); background: var(--accent-wash); }
.chip.ok   { color: var(--seal); border-color: color-mix(in oklch, var(--seal) 35%, var(--line-2)); background: var(--seal-wash); }

/* ============================================================ ARIA CHARACTER
   The brand mascot lockup + the live "ping". Recurs as the signature. */
.aria-avatar { display: inline-flex; line-height: 0; filter: drop-shadow(0 8px 22px oklch(0.600 0.165 256 / 0.35)); }
.aria-avatar svg { display: block; }
/* the antenna ping pulses — ARIA reads as alive */
.aria-avatar svg circle[fill="#ffb347"] { transform-box: fill-box; transform-origin: center; animation: ariaPing 2.4s ease-in-out infinite; }
@keyframes ariaPing { 0%,100% { opacity: 1; } 50% { opacity: 0.45; transform: translateY(-1px) scale(1.18); } }
.aria-avatar.lg { animation: ariaFloat 6s ease-in-out infinite; }
@keyframes ariaFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.aria-hello { display: inline-flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 6px; }
.aria-hello-meta { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.aria-hello-name {
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.aria-hello-name::after {
  content: "online"; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--seal); padding: 2px 7px; border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--seal) 32%, transparent); background: var(--seal-wash);
}
.aria-hello-role { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 480px) { .aria-hello { gap: 11px; } .aria-hello-role { font-size: 12.5px; } }

@media (prefers-reduced-motion: reduce) {
  .aria-avatar.lg, .aria-avatar svg circle[fill="#ffb347"] { animation: none !important; }
}

/* ============================================================ NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.03em; font-size: 18px; }
/* the ARIA mark — same artwork the app serves at /brand/aria-mark-v1.webp.
   Kept as a background so the two <span class="brand-mark"/> call sites (nav
   and footer) need no markup change, and so the tile still renders on the
   brand colour for the moment before the image lands. */
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; background: #0a1020;
  background-image: url("../img/aria-mark.webp");
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); font-weight: 500; transition: color .15s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-signin { font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 8px 6px; }
.nav-signin:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .nav-inner { gap: 12px; }
  .nav-signin { display: none; }
  .nav-cta { gap: 6px; }
}

/* ============================================================ HERO */
.hero { padding: 72px 0 100px; position: relative; overflow: hidden; }
.hero-top { max-width: 1060px; margin: 0 auto; text-align: center; position: relative; }
.hero-top .eyebrow { justify-content: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); margin-top: 16px; }
/* the punchline is the differentiator — painted with the full brand fusion:
   cobalt -> cyan -> warm amber, so the headline itself carries the warmth. */
.hero h1 .muted {
  background: linear-gradient(100deg, var(--accent-2) 0%, var(--accent-3) 42%, var(--warm) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent-2);
}
.hero .sub { margin: 26px auto 0; max-width: 680px; font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); line-height: 1.55; }
.hero .sub b { color: var(--ink); font-weight: 700; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* hero suite rail — six apps as the spectrum brand device */
.hero-suite {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
}
.hs-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 11px; background: var(--card);
  box-shadow: var(--raise);
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}
.hs-pill:hover { color: var(--ink); border-color: color-mix(in oklch, var(--hs-c, var(--accent)) 50%, var(--line-2)); transform: translateY(-1px); }
.hs-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--hs-c, var(--accent)); box-shadow: 0 0 0 3px color-mix(in oklch, var(--hs-c, var(--accent)) 26%, transparent), 0 0 10px color-mix(in oklch, var(--hs-c, var(--accent)) 60%, transparent); }
.hs-erp   { --hs-c: var(--app-erp); }
.hs-crm   { --hs-c: var(--app-crm); }
.hs-hr    { --hs-c: var(--app-hr); }
.hs-sec   { --hs-c: var(--app-sec); }
.hs-tax   { --hs-c: var(--app-tax); }
.hs-legal { --hs-c: var(--app-legal); }
.hs-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); margin-left: 6px; }
@media (max-width: 620px) { .hs-meta { width: 100%; text-align: center; margin: 6px 0 0; } }

#workspace { margin-top: 56px; position: relative; z-index: 1; }

/* ---- trust strip: HONEST product capabilities + real metrics only ---- */
.hero-trust { margin-top: 56px; }
.trust-metrics {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  box-shadow: var(--raise); overflow: hidden; max-width: 940px; margin: 0 auto;
}
.tm-item { flex: 1 1 0; min-width: 150px; padding: 20px 22px; text-align: center; border-left: 1px solid var(--line); }
.tm-item:first-child { border-left: 0; }
.tm-v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tm-v .u { font-size: 15px; font-weight: 700; color: var(--ink-3); margin-left: 2px; }
.tm-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
@media (max-width: 720px) {
  .tm-item { flex-basis: 50%; border-top: 1px solid var(--line); }
  .tm-item:nth-child(-n+2) { border-top: 0; }
  .tm-item:nth-child(odd) { border-left: 0; }
}
.trust-caps { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; margin-top: 22px; }
.trust-cap {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  font-family: var(--sans); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 11px; background: var(--card);
  box-shadow: var(--raise);
}
.trust-cap .tc-i { color: var(--seal); display: inline-flex; flex: none; }
.trust-foot { text-align: center; margin-top: 38px; }
.trust-foot .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.erp-row { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 16px; justify-content: center; }
.erp-pill {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 7px; padding: 6px 11px; background: var(--card); box-shadow: var(--raise);
}

/* signature "ledger glow": cobalt -> cyan radial behind the hero & console.
   replaces the dotted-grid cliche. */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(58% 42% at 50% 30%, oklch(0.600 0.165 256 / 0.30), transparent 70%),
    radial-gradient(40% 34% at 72% 46%, oklch(0.760 0.140 210 / 0.16), transparent 72%),
    radial-gradient(38% 30% at 26% 40%, oklch(0.640 0.170 286 / 0.14), transparent 72%);
  animation: glowdrift 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(oklch(1 0 0 / 0.05) 0.6px, transparent 0.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 24%, #000, transparent 70%);
          mask-image: radial-gradient(70% 60% at 50% 24%, #000, transparent 70%);
  opacity: 0.5;
}
@keyframes glowdrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-14px,0) scale(1.06); }
}
:root[data-theme="light"] .hero-bg {
  background:
    radial-gradient(58% 42% at 50% 30%, oklch(0.600 0.150 256 / 0.14), transparent 70%),
    radial-gradient(40% 34% at 72% 46%, oklch(0.700 0.120 210 / 0.10), transparent 72%);
}
.hero .container { position: relative; z-index: 1; }

/* ============================================================ WORKSPACE */
#workspace { isolation: isolate; }
/* glow halo behind the console so it sits in its own pool of light */
#workspace::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 46%; transform: translate(-50%,-50%);
  width: min(1140px, 96%); height: 84%;
  background:
    radial-gradient(60% 60% at 50% 40%, oklch(0.600 0.165 256 / 0.34), transparent 72%),
    radial-gradient(46% 50% at 78% 60%, oklch(0.760 0.140 210 / 0.20), transparent 74%);
  filter: blur(36px); pointer-events: none;
}
/* ---- the console panel — a natural-language conversation ---- */
.workspace {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; height: min(76vh, 660px);
  box-shadow:
    inset 0 1px 0 var(--hairline),
    0 40px 90px -34px oklch(0.235 0.013 262 / 0.32),
    0 14px 34px -18px oklch(0.235 0.013 262 / 0.18);
}
/* an ambient brand-coloured glow that breathes across the panel's top edge so
   the console reads as a living surface (content/glow motion only — never moves
   the panel itself; the founder dislikes lifting cards). */
.workspace::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--accent) 70%, transparent) 32%, color-mix(in oklch, var(--accent-3) 80%, transparent) 56%, color-mix(in oklch, var(--warm) 80%, transparent) 80%, transparent);
  background-size: 240% 100%; opacity: .7; animation: wsEdge 7s ease-in-out infinite;
}
@keyframes wsEdge { 0%,100% { background-position: 0% 0; opacity: .5; } 50% { background-position: 100% 0; opacity: .85; } }

@media (max-width: 780px) { .workspace { height: auto; min-height: 560px; } }

.thinking { display: inline-flex; gap: 4px; align-items: center; }
.thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.thinking i:nth-child(2){ animation-delay: .2s; } .thinking i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{ opacity: .3; } 30%{ opacity: 1; } }

/* ============================================================ HOW (illustrated journey) */
.how { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* ARIA walks a connected path: read -> reason -> gate -> seal */
.journey { position: relative; margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.journey-track {
  position: absolute; top: 38px; left: 12%; right: 12%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--app-erp), var(--app-sec), var(--app-hr), var(--app-tax));
  opacity: 0.55; border-radius: 2px;
}
/* the track DRAWS left→right when the journey scrolls in (scaleX, no layout
   shift — the bar's box stays put, only its fill grows) */
html.js-reveal .journey-track { transform: scaleX(0); transform-origin: left center; }
html.js-reveal .journey.in .journey-track { animation: trackDraw 1s cubic-bezier(.4,0,.2,1) .15s forwards; }
@keyframes trackDraw { to { transform: scaleX(1); } }
/* a glowing PLAY-HEAD rides the track once it's drawn, then loops — "the loop
   actually running" (READ→REASON→GATE→SEAL). Pure CSS travel via left%. */
.journey-track::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 10px; height: 10px; border-radius: 50%;
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
  background: var(--accent-3); box-shadow: 0 0 10px 2px var(--accent-3), 0 0 20px 4px color-mix(in oklch, var(--accent-3) 50%, transparent);
}
html.js-reveal .journey.in .journey-track::after { animation: headRun 5.2s cubic-bezier(.65,0,.35,1) 1s infinite; }
@keyframes headRun {
  0% { left: 0; opacity: 0; }
  6% { opacity: 1; }
  /* pause briefly at each of the 4 node positions (≈12.5/37.5/62.5/87.5%) */
  12% { left: 12.5%; } 22% { left: 12.5%; }
  34% { left: 37.5%; } 44% { left: 37.5%; }
  56% { left: 62.5%; } 66% { left: 62.5%; }
  78% { left: 87.5%; } 90% { left: 87.5%; opacity: 1; }
  100% { left: 87.5%; opacity: 0; }
}
.journey-step {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 6px;
}
.js-node {
  position: relative; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--raise-lg); margin-bottom: 18px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.tone-erp .js-node { box-shadow: inset 0 1px 0 var(--hairline), 0 16px 36px -16px color-mix(in oklch, var(--app-erp) 60%, transparent); }
.tone-sec .js-node { box-shadow: inset 0 1px 0 var(--hairline), 0 16px 36px -16px color-mix(in oklch, var(--app-sec) 60%, transparent); }
.tone-hr  .js-node { box-shadow: inset 0 1px 0 var(--hairline), 0 16px 36px -16px color-mix(in oklch, var(--warm) 60%, transparent); }
.tone-tax .js-node { box-shadow: inset 0 1px 0 var(--hairline), 0 16px 36px -16px color-mix(in oklch, var(--seal) 60%, transparent); }
.js-aria { line-height: 0; }
.js-badge {
  position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.tone-hr .js-badge { color: var(--warm); }
.tone-tax .js-badge { color: var(--seal); }
.js-kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--accent-2); }
.tone-hr .js-kicker { color: var(--warm); }
.tone-tax .js-kicker, .journey-step.is-seal .js-kicker { color: var(--seal); }
.js-title { font-size: 19px; letter-spacing: -0.02em; margin-top: 8px; }
.js-body { font-size: 14px; color: var(--ink-2); margin-top: 9px; line-height: 1.5; }
.js-chip {
  margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--ink-2);
  border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 5px 11px;
  transition: border-color .25s ease, color .25s ease;
}
/* SEQUENCED LIGHT-UP: each step's node + badge illuminate in turn as the play
   head reaches it, then loops. Per-tone accent. Content-only — nothing moves. */
.js-tint { --jt: var(--accent); }
.tone-erp { --jt: var(--app-erp); } .tone-sec { --jt: var(--app-sec); }
.tone-hr  { --jt: var(--warm); }    .tone-tax { --jt: var(--seal); }
/* nth-child(1) is the .journey-track, so the four steps are children 2..5;
   each lights ~1.14s after the previous, matching the play-head's pauses */
html.js-reveal .journey.in .js-node { animation: nodeLight 5.2s ease-in-out 1s infinite; }
html.js-reveal .journey.in .journey-step:nth-child(3) .js-node { animation-delay: calc(1s + 1.14s); }
html.js-reveal .journey.in .journey-step:nth-child(4) .js-node { animation-delay: calc(1s + 2.28s); }
html.js-reveal .journey.in .journey-step:nth-child(5) .js-node { animation-delay: calc(1s + 3.42s); }
@keyframes nodeLight {
  0%, 100% { border-color: var(--line-2); box-shadow: var(--raise-lg); }
  8% { border-color: color-mix(in oklch, var(--jt) 70%, var(--line-2));
       box-shadow: inset 0 1px 0 var(--hairline), 0 0 0 4px color-mix(in oklch, var(--jt) 18%, transparent), 0 16px 36px -16px color-mix(in oklch, var(--jt) 75%, transparent); }
  20% { border-color: var(--line-2); box-shadow: var(--raise-lg); }
}
html.js-reveal .journey.in .js-badge { animation: badgePop 5.2s ease-in-out 1s infinite; }
html.js-reveal .journey.in .journey-step:nth-child(3) .js-badge { animation-delay: calc(1s + 1.14s); }
html.js-reveal .journey.in .journey-step:nth-child(4) .js-badge { animation-delay: calc(1s + 2.28s); }
html.js-reveal .journey.in .journey-step:nth-child(5) .js-badge { animation-delay: calc(1s + 3.42s); }
@keyframes badgePop {
  0%,100% { color: var(--ink-2); transform: none; }
  8% { color: var(--jt); transform: scale(1.18); }
  20% { color: var(--ink-2); transform: none; }
}
.tone-hr .js-badge, .tone-tax .js-badge { /* keep their resting tones via the same var */ }
/* hover a step → spotlight it (glow only, no movement) */
.journey-step:hover .js-node { border-color: color-mix(in oklch, var(--jt) 65%, var(--line-2));
  box-shadow: inset 0 1px 0 var(--hairline), 0 0 0 4px color-mix(in oklch, var(--jt) 16%, transparent), 0 16px 36px -16px color-mix(in oklch, var(--jt) 70%, transparent); }
.journey-step:hover .js-chip { border-color: color-mix(in oklch, var(--jt) 50%, var(--line-2)); color: var(--ink); }

@media (max-width: 860px) {
  .journey { grid-template-columns: repeat(2, 1fr); gap: 32px 22px; }
  .journey-track { display: none; }
}
@media (max-width: 480px) { .journey { grid-template-columns: 1fr; } }

/* ============================================================ STAGES (by-who segmentation) */
.stages { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.stage-card {
  position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--raise);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  --st: var(--accent);
}
.stage-card.tone-erp { --st: var(--app-erp); }
.stage-card.tone-tax { --st: var(--app-tax); }
.stage-card.tone-sec { --st: var(--app-sec); }
.stage-card::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px; border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, transparent, var(--st), transparent);
  background-size: 220% 100%; background-position: 100% 0; opacity: 0.7;
  transition: opacity .2s ease, background-position .7s ease; }
/* highlight via GLOW/BORDER only — the card never moves (no lift) */
.stage-card:hover {
  border-color: color-mix(in oklch, var(--st) 48%, var(--line-2));
  box-shadow: inset 0 1px 0 var(--hairline), 0 0 0 1px color-mix(in oklch, var(--st) 22%, transparent),
              0 18px 44px -24px color-mix(in oklch, var(--st) 60%, transparent);
}
.stage-card:hover::before { opacity: 1; background-position: 0 0; }
.stage-card.hot {
  border-color: color-mix(in oklch, var(--st) 50%, var(--line-2));
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in oklch, var(--st) 16%, transparent), transparent 60%),
    var(--card);
  box-shadow: inset 0 1px 0 var(--hairline), 0 24px 50px -22px color-mix(in oklch, var(--st) 55%, transparent), var(--shadow-md);
}
.stage-flag {
  position: absolute; top: -11px; left: 24px; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(180deg, var(--warm), var(--warm-2)); box-shadow: 0 6px 16px -6px color-mix(in oklch, var(--warm) 70%, transparent);
}
.stage-ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
  color: var(--st); background: color-mix(in oklch, var(--st) 16%, transparent);
  border: 1px solid color-mix(in oklch, var(--st) 30%, transparent); box-shadow: inset 0 1px 0 var(--hairline);
}
.stage-who { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.stage-h { font-size: 22px; letter-spacing: -0.025em; margin-top: 6px; }
.stage-body { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin-top: 10px; flex: 1; }
.stage-apps { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.stage-app {
  font-size: 12px; font-weight: 600; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 5px 10px; background: var(--paper-2);
}
/* alive-on-scroll: the icon glows in, the app-chips pop in a stagger (content
   only — the card stays put). Driven by the page reveal IO adding .in. */
html.js-reveal .stages.in .stage-ico { animation: stageIco .6s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes stageIco { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
html.js-reveal .stages .stage-app { opacity: 0; transform: translateY(6px); }
html.js-reveal .stages.in .stage-app { animation: chipPop .42s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes chipPop { to { opacity: 1; transform: none; } }
html.js-reveal .stages.in .stage-card:nth-child(1) .stage-app:nth-child(1){animation-delay:.20s}
html.js-reveal .stages.in .stage-card:nth-child(1) .stage-app:nth-child(2){animation-delay:.28s}
html.js-reveal .stages.in .stage-card:nth-child(1) .stage-app:nth-child(3){animation-delay:.36s}
html.js-reveal .stages.in .stage-card:nth-child(2) .stage-app:nth-child(1){animation-delay:.26s}
html.js-reveal .stages.in .stage-card:nth-child(2) .stage-app:nth-child(2){animation-delay:.34s}
html.js-reveal .stages.in .stage-card:nth-child(2) .stage-app:nth-child(3){animation-delay:.42s}
html.js-reveal .stages.in .stage-card:nth-child(2) .stage-app:nth-child(4){animation-delay:.50s}
html.js-reveal .stages.in .stage-card:nth-child(3) .stage-app:nth-child(1){animation-delay:.32s}
html.js-reveal .stages.in .stage-card:nth-child(3) .stage-app:nth-child(2){animation-delay:.40s}
html.js-reveal .stages.in .stage-card:nth-child(3) .stage-app:nth-child(3){animation-delay:.48s}
/* the "most start here" card keeps a gentle warm breathing glow at rest */
.stage-card.hot { animation: hotBreath 4.5s ease-in-out infinite; }
@keyframes hotBreath {
  0%,100% { box-shadow: inset 0 1px 0 var(--hairline), 0 24px 50px -22px color-mix(in oklch, var(--st) 50%, transparent), var(--shadow-md); }
  50% { box-shadow: inset 0 1px 0 var(--hairline), 0 24px 56px -20px color-mix(in oklch, var(--st) 68%, transparent), var(--shadow-md); }
}
@media (max-width: 860px) { .stages { grid-template-columns: 1fr; } }

/* ============================================================ CONTROLS (register) */
.reg { margin-top: 48px; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--raise-lg); }
.reg-row { position: relative; display: grid; grid-template-columns: 54px 52px minmax(190px, 270px) 1fr; gap: 22px; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); transition: background .18s ease; }
.reg-row:last-child { border-bottom: 0; }
/* a left accent bar that grows in on hover — highlight without moving the row */
.reg-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; transform: scaleY(0); transform-origin: center;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3)); transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.reg-row:hover { background: var(--paper-3); }
.reg-row:hover::before { transform: scaleY(1); }
.reg-no { font-family: var(--mono); font-size: 13px; color: var(--ink-3); transition: color .2s ease; }
.reg-row:hover .reg-no { color: var(--accent-2); }
.reg-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-2); display: grid; place-items: center; box-shadow: inset 0 1px 0 var(--hairline); border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  transition: box-shadow .2s ease, border-color .2s ease; }
.reg-row:hover .reg-ico { border-color: color-mix(in oklch, var(--accent) 55%, transparent);
  box-shadow: inset 0 1px 0 var(--hairline), 0 0 0 4px color-mix(in oklch, var(--accent) 14%, transparent), 0 0 18px -4px color-mix(in oklch, var(--accent) 60%, transparent); }
.reg-title { font-size: 17.5px; letter-spacing: -0.015em; }
.reg-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
/* on scroll-in the icon glows in (content-only). The .stagger already rises the
   rows; this adds a per-row icon "power-on" pulse synced to the stagger order. */
html.js-reveal .reg.in .reg-ico { animation: regIco .55s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes regIco { from { opacity: 0; transform: scale(.6); box-shadow: 0 0 0 0 var(--accent-wash); }
  60% { box-shadow: inset 0 1px 0 var(--hairline), 0 0 0 6px color-mix(in oklch, var(--accent) 16%, transparent); }
  to { opacity: 1; transform: none; } }
html.js-reveal .reg.in .reg-row:nth-child(1) .reg-ico{animation-delay:.05s}
html.js-reveal .reg.in .reg-row:nth-child(2) .reg-ico{animation-delay:.12s}
html.js-reveal .reg.in .reg-row:nth-child(3) .reg-ico{animation-delay:.19s}
html.js-reveal .reg.in .reg-row:nth-child(4) .reg-ico{animation-delay:.26s}
html.js-reveal .reg.in .reg-row:nth-child(5) .reg-ico{animation-delay:.33s}
html.js-reveal .reg.in .reg-row:nth-child(6) .reg-ico{animation-delay:.40s}
@media (max-width: 680px) {
  .reg-row { grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 20px; }
  .reg-no { display: none; }
  .reg-ico { width: 40px; height: 40px; grid-row: span 2; align-self: start; }
  .reg-title { align-self: end; }
  .reg-desc { grid-column: 2; }
}

/* ============================================================ SPECTRUM BAND (full-bleed brand device) */
.spectrum-band { position: relative; overflow: hidden; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.spectrum-line { height: 3px; width: 100%; background: linear-gradient(90deg, var(--app-erp), var(--app-crm), var(--app-tax), var(--app-hr), var(--app-sec), var(--app-legal)); opacity: 0.9; }
.spectrum-band .container { padding-top: var(--s5); padding-bottom: var(--s5); text-align: center; }
.spectrum-quote { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.18; max-width: 880px; margin: 0 auto; }
.spectrum-quote .grad { background: linear-gradient(100deg, var(--accent-2), var(--accent-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.spectrum-sub { margin: 16px auto 0; max-width: 560px; color: var(--ink-2); font-size: 16px; }

/* ============================================================ INTEGRATIONS */
.integ { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.integ-board { position: relative; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); padding: 28px; box-shadow: var(--raise-lg); overflow: hidden; }
.integ-board::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px; border-radius: 18px 18px 0 0; z-index: 2;
  background: linear-gradient(90deg, var(--app-erp), var(--app-crm), var(--app-tax)); opacity: 0.8; }
/* a connection sweep crosses the board when it scrolls in — the register coming
   "online" (a soft accent shimmer; no layout change) */
.integ-board::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, color-mix(in oklch, var(--accent-3) 14%, transparent) 50%, transparent 65%);
  background-size: 260% 100%; background-position: 100% 0; }
html.js-reveal #integrations .reveal.in .integ-board::after { animation: boardSweep 1.6s ease .2s; }
@keyframes boardSweep { 0% { opacity: 0; background-position: 120% 0; } 30% { opacity: 1; } 100% { opacity: 0; background-position: -40% 0; } }
.integ-board .ib-label { position: relative; z-index: 1; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.integ-list { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.integ-node { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; background: var(--paper-2); font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: var(--raise);
  transition: border-color .2s ease, box-shadow .2s ease; }
/* hover a connector → highlight via glow/border (no move) */
.integ-node:not(.any):hover { border-color: color-mix(in oklch, var(--seal) 50%, var(--line-2));
  box-shadow: inset 0 1px 0 var(--hairline), 0 0 0 1px color-mix(in oklch, var(--seal) 22%, transparent), 0 0 18px -6px color-mix(in oklch, var(--seal) 60%, transparent); }
.integ-node .in-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); flex: none; box-shadow: 0 0 0 3px var(--seal-wash), 0 0 8px color-mix(in oklch, var(--seal) 60%, transparent); }
/* each ERP's dot pulses "connected" in a stagger as the board comes in, then
   the live ones keep a slow heartbeat (the .stagger list gets .in) */
html.js-reveal .integ-list.in .integ-node:not(.any) .in-dot { animation: dotConnect 1.9s ease-in-out infinite; }
html.js-reveal .integ-list.in .integ-node:nth-child(1) .in-dot { animation-delay: .2s; }
html.js-reveal .integ-list.in .integ-node:nth-child(2) .in-dot { animation-delay: .45s; }
html.js-reveal .integ-list.in .integ-node:nth-child(3) .in-dot { animation-delay: .70s; }
html.js-reveal .integ-list.in .integ-node:nth-child(4) .in-dot { animation-delay: .95s; }
html.js-reveal .integ-list.in .integ-node:nth-child(5) .in-dot { animation-delay: 1.2s; }
@keyframes dotConnect {
  0%, 100% { box-shadow: 0 0 0 3px var(--seal-wash), 0 0 8px color-mix(in oklch, var(--seal) 55%, transparent); }
  45% { box-shadow: 0 0 0 4px color-mix(in oklch, var(--seal) 24%, transparent), 0 0 14px 2px color-mix(in oklch, var(--seal) 75%, transparent); }
}
.integ-node.any { border-style: dashed; color: var(--ink-2); font-weight: 500; box-shadow: none; background: transparent; }
.integ-node.any .in-dot { background: var(--ink-3); box-shadow: none; }
@media (max-width: 860px) { .integ { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================ CTA + FOOTER */
/* the closing crescendo: the brightest, most saturated moment on the page */
.cta { text-align: center; }
.cta-card {
  color: #fff; border-radius: 26px; padding: 84px 40px; position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% -10%, oklch(0.640 0.180 256), transparent 62%),
    radial-gradient(60% 100% at 84% 110%, oklch(0.740 0.150 210 / 0.7), transparent 60%),
    linear-gradient(160deg, oklch(0.470 0.170 268), oklch(0.380 0.150 262));
  box-shadow: var(--raise-lg);
}
.cta-card h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.035em; color: #fff; }
.cta-card p { margin: 18px auto 0; max-width: 540px; color: oklch(0.93 0.02 256); font-size: 18px; }
.cta-card .hero-cta { justify-content: center; margin-top: 34px; }
.cta-card .btn-primary, .cta-card .btn-accent { background: #fff; color: oklch(0.430 0.160 264); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.6), 0 10px 30px -8px oklch(0 0 0 / 0.5); }
.cta-card .btn-primary:hover, .cta-card .btn-accent:hover { background: oklch(0.96 0.01 256); }
.cta-card .btn-ghost { color: #fff; background: oklch(1 0 0 / 0.10); border-color: oklch(1 0 0 / 0.35); box-shadow: none; }
.cta-card .btn-ghost:hover { background: oklch(1 0 0 / 0.18); border-color: oklch(1 0 0 / 0.6); }
.cta-bg { position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: radial-gradient(oklch(1 0 0 / 0.10) 0.7px, transparent 0.7px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 120% at 50% 0%, #000, transparent 70%);
          mask-image: radial-gradient(80% 120% at 50% 0%, #000, transparent 70%);
}
.cta-card > * { position: relative; }
.cta-card .eyebrow { justify-content: center; color: oklch(0.93 0.02 256); }
.cta-card .eyebrow .tick { color: #fff; }
/* the finale comes alive: ARIA does a gentle wave on scroll-in then a slow idle
   bob; the antenna ping keeps pulsing; the card's aurora drifts slowly. */
.cta-aria { display: inline-flex; line-height: 0; margin-bottom: 6px; filter: drop-shadow(0 12px 28px oklch(0 0 0 / 0.45));
  transform-origin: 50% 80%; }
html.js-reveal .cta .reveal.in .cta-aria { animation: ariaWave 1.4s cubic-bezier(.3,.8,.4,1) .1s 1, ariaIdle 5s ease-in-out 1.6s infinite; }
@keyframes ariaWave {
  0% { transform: rotate(0deg) scale(.94); opacity: .6; }
  30% { transform: rotate(-7deg) scale(1.02); opacity: 1; }
  55% { transform: rotate(6deg); }
  78% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg) scale(1); }
}
@keyframes ariaIdle { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-4px) rotate(-1.5deg); } }
/* the aurora background gently drifts (the gradient layers, not the layout) */
.cta-card { background-size: 140% 140%, 160% 160%, 100% 100%; }
html.js-reveal .cta .reveal.in .cta-card { animation: ctaAurora 16s ease-in-out infinite alternate; }
@keyframes ctaAurora {
  0% { background-position: 30% 0%, 80% 110%, 0 0; }
  100% { background-position: 60% 10%, 60% 95%, 0 0; }
}
/* the dotted veil shimmers faintly */
html.js-reveal .cta .reveal.in .cta-bg { animation: ctaVeil 9s ease-in-out infinite alternate; }
@keyframes ctaVeil { 0% { opacity: .3; } 100% { opacity: .5; } }
/* ARIA's antenna pings — the "live agent" tell, pulsing on the CTA + journey */
html.js-reveal .cta-aria .aria-antenna,
html.js-reveal .journey.in .js-aria .aria-antenna { transform-box: fill-box; transform-origin: center; animation: antennaPing 2.4s ease-in-out infinite; }
@keyframes antennaPing { 0%,100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }

.footer { border-top: 1px solid var(--line); padding: 48px 0 60px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.footer-links a { font-size: 14px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { margin-top: 28px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.02em; }

/* ============================================================ CONSOLE (conversational) */
/* header — the ARIA character + "your finance team, on call · <entity>" + a live pill */
.ws-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent-wash) 35%, var(--paper-2)), var(--paper-2)); }
.ws-face { display: inline-flex; flex: none; filter: drop-shadow(0 3px 12px color-mix(in oklch, var(--accent) 38%, transparent)); }
.ws-title-mid { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ws-title-mid > b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ws-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ws-entity-wrap { position: relative; display: inline-flex; }
.ws-ent { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-2); background: transparent; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.ws-ent:hover { color: var(--accent-3); }
.ws-ent .caret { font-size: 9px; color: var(--ink-3); }

/* live status pill — calm "ready", a breathing dot while "working" */
.ws-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-3);
  transition: color .25s ease, border-color .25s ease, background .25s ease; }
.ws-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; transition: background .25s ease; }
.ws-live.on { color: var(--accent-3); border-color: color-mix(in oklch, var(--accent-3) 40%, transparent); background: color-mix(in oklch, var(--accent-3) 12%, transparent); }
.ws-live.on .ws-live-dot { background: var(--accent-3); animation: wsPulse 1.5s ease-in-out infinite; }
.ws-live.ans { color: var(--accent-2); border-color: color-mix(in oklch, var(--accent) 30%, transparent); background: var(--accent-wash); }
.ws-live.ans .ws-live-dot { background: var(--accent-2); }
@keyframes wsPulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent-3) 55%, transparent); } 70% { box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent-3) 0%, transparent); } }
.ws-new { font-family: var(--mono); font-size: 11px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 10px; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.ws-new:hover { color: var(--ink); border-color: var(--accent-3); }

/* the conversation thread — the hero */
.ws-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 24px 8px; display: flex; flex-direction: column; gap: 20px; }
.ws-thread.empty { justify-content: center; }
.ws-thread::-webkit-scrollbar { width: 8px; }
.ws-thread::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

.caretblink { display: inline-block; width: 7px; color: var(--accent-3); animation: cblink 1s steps(2) infinite; margin-left: 1px; }
@keyframes cblink { 50% { opacity: 0; } }

/* welcome (first paint only) + the brief loop hand-off beat */
.cv-welcome { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 24px; }
.cw-aria { display: inline-flex; margin-bottom: 2px; filter: drop-shadow(0 6px 18px color-mix(in oklch, var(--accent) 30%, transparent)); }
.cv-welcome h4 { font-size: 22px; letter-spacing: -.025em; }
.cv-welcome p { font-size: 14px; color: var(--ink-2); max-width: 440px; line-height: 1.55; }
.cw-next { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); }

/* a chat turn */
.cv-msg { display: flex; gap: 13px; max-width: 100%; animation: msgIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes msgIn { from { opacity: 0; } to { opacity: 1; } }
/* the person's plain-English ask — right-aligned cobalt bubble */
.cv-msg.user { flex-direction: row-reverse; }
.cv-msg.user .cv-bubble { background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 24%, var(--card)), color-mix(in oklch, var(--accent) 14%, var(--card)));
  border: 1px solid color-mix(in oklch, var(--accent) 42%, transparent); color: var(--ink);
  border-radius: 16px 16px 4px 16px; padding: 13px 17px; font-size: 16px; line-height: 1.5; max-width: min(78%, 680px); }
.cv-msg.user .cv-who { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; color: var(--ink-2); }
/* ARIA's conversational reply — left-aligned card */
.cv-msg.aria .cv-av { flex: none; align-self: flex-start; filter: drop-shadow(0 2px 8px color-mix(in oklch, var(--accent) 30%, transparent)); }
.cv-msg.aria .cv-bubble { background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px;
  padding: 16px 18px; max-width: min(86%, 820px); box-shadow: inset 0 1px 0 var(--hairline); }
.cv-name { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 7px; }
.cv-name svg { color: var(--accent-3); }
.cv-prose, .prose-text { font-size: 16px; line-height: 1.62; color: var(--ink); }
/* the figure + standard cited INSIDE the prose */
.pr-fig { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pr-std { color: var(--accent-3); font-weight: 600; white-space: nowrap; }
.pr-warn { color: var(--warn); font-weight: 600; }

/* the quiet slim receipt under the words — drafted journal + cited chips */
.cv-receipt { margin-top: 13px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: oklch(1 0 0 / 0.02); animation: msgIn .4s ease both; }
:root[data-theme="light"] .cv-receipt { background: var(--paper-2); }
.cvr-head { display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-bottom: 1px solid var(--hairline);
  font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.cvr-std { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--accent-2); }
.cvr-cols { display: grid; grid-template-columns: 1fr 96px 96px; gap: 10px; padding: 7px 13px; border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cvr-cols span:not(:first-child) { text-align: right; }
.cvr-row { display: grid; grid-template-columns: 1fr 96px 96px; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--hairline); font-size: 13px; align-items: center; }
.cvr-acct { color: var(--ink); } .cvr-acct small { display: block; font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 1px; }
.cvr-amt { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; }
.cvr-amt.dim { color: var(--ink-3); }
.cvr-foot { display: grid; grid-template-columns: 1fr 96px 96px; gap: 10px; padding: 9px 13px; font-weight: 700; font-size: 13px;
  background: color-mix(in oklch, var(--accent) 7%, transparent); }
.cvr-foot span:not(:first-child) { text-align: right; font-family: var(--mono); }
.cvr-cites, .cv-citerow { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 13px 11px; }
.cv-citerow { padding: 12px 0 0; }
.cvr-cite { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--accent-2);
  padding: 4px 9px; border-radius: 7px; border: 1px solid color-mix(in oklch, var(--accent-2) 28%, transparent); background: color-mix(in oklch, var(--accent-2) 8%, transparent); }

/* the approval — asked in words, with a quiet action; collapses once given */
.cv-approve { display: flex; align-items: center; gap: 12px; margin-top: 13px; padding: 11px 14px; border-radius: 11px;
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent); background: color-mix(in oklch, var(--accent) 8%, transparent); animation: msgIn .4s ease both; }
.cva-who { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; } .cva-who b { color: var(--ink); }
.cva-act { margin-left: auto; display: inline-flex; gap: 8px; flex: none; }
.cva-btn { font-family: var(--sans); font-size: 12.5px; font-weight: 600; border-radius: 8px; padding: 7px 13px; cursor: pointer; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); transition: color .15s, border-color .15s; }
.cva-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.cva-btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; border: 0; box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.25); }
.cva-btn.primary:hover { filter: brightness(1.08); border-color: transparent; }
.cv-approved { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; padding: 9px 13px; border-radius: 10px;
  font-size: 12.5px; color: var(--seal); border: 1px solid color-mix(in oklch, var(--seal) 35%, transparent); background: var(--seal-wash); }

/* the amber sealed receipt, woven into the confirmation */
.cv-sealed { display: flex; align-items: center; gap: 11px; margin-top: 13px; padding: 11px 14px; border-radius: 11px;
  border: 1px solid color-mix(in oklch, var(--warm) 32%, transparent);
  background: linear-gradient(160deg, color-mix(in oklch, var(--warm) 10%, var(--card)), var(--card)); animation: msgIn .4s ease both; }
.cvs-em { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--warm), var(--warm-2)); color: #1a1206; box-shadow: 0 0 20px color-mix(in oklch, var(--warm) 40%, transparent); animation: sealPop .55s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes sealPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.cvs-x { min-width: 0; } .cvs-x b { font-size: 13px; display: block; color: var(--ink); }
.cvs-x span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.cvs-x .cvs-h { color: var(--warm); }
.cv-readonly { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

/* composer + prompt pills + trust line */
.ws-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), color-mix(in oklch, var(--accent-wash) 20%, var(--paper-2))); }
.cv-prompts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.cv-lead { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.cv-prompt { position: relative; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px 7px 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; overflow: hidden; transition: border-color .18s, background .18s, color .18s; }
.cv-pico { display: inline-flex; color: var(--accent-3); flex: none; transition: color .18s; }
.cv-prompt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 30%, color-mix(in oklch, var(--accent-3) 22%, transparent) 50%, transparent 70%);
  transform: translateX(-60%); transition: opacity .25s ease; }
.cv-prompt:hover { border-color: color-mix(in oklch, var(--accent-3) 55%, var(--line-2)); background: color-mix(in oklch, var(--accent-3) 10%, transparent); color: var(--accent-3); }
.cv-prompt:hover .cv-pico { color: var(--accent-3); }
.cv-prompt:hover::after { opacity: 1; animation: sugSheen .6s ease; }
@keyframes sugSheen { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.cv-prompt.on { border-color: color-mix(in oklch, var(--accent-3) 60%, var(--line-2)); background: color-mix(in oklch, var(--accent-3) 14%, transparent); color: var(--accent-3); }
.cv-prompt.on .cv-pico { color: var(--accent-3); }

.cv-composer { display: flex; align-items: center; gap: 12px; border-radius: 15px; padding: 11px 11px 11px 16px;
  background: color-mix(in oklch, var(--card) 88%, transparent); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 var(--hairline);
  transition: border-color .18s ease, box-shadow .18s ease; }
.cv-composer:focus-within { border-color: var(--accent-3); box-shadow: inset 0 1px 0 var(--hairline), 0 0 0 4px color-mix(in oklch, var(--accent-3) 14%, transparent); }
.cv-composer.busy { opacity: .65; }
.cvc-spark { color: var(--accent-3); display: inline-flex; flex: none; }
.cvc-input { flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--sans); font-size: 16px; color: var(--ink); }
.cvc-input::placeholder { color: var(--ink-3); }
.cvc-kbd { font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; background: var(--paper-2); flex: none; }
.cvc-send { width: 38px; height: 38px; border-radius: 11px; border: 0; flex: none; cursor: pointer;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; display: grid; place-items: center;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.3), 0 4px 14px -4px color-mix(in oklch, var(--accent) 60%, transparent); transition: filter .15s ease; }
.cvc-send:hover:not(:disabled) { filter: brightness(1.08); }
.cvc-send:disabled { background: var(--line-2); cursor: not-allowed; box-shadow: none; }
.cv-trust { margin-top: 11px; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.cv-trust b { color: var(--ink-2); }

/* entity dropdown (reused) */
.ent-overlay { position: fixed; inset: 0; z-index: 60; }
.ent-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 61; width: 252px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.ent-menu-head { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 7px 10px 6px; }
.ent-opt { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 8px; padding: 9px 10px; cursor: pointer; }
.ent-opt:hover { background: var(--paper-2); }
.ent-opt.on { background: var(--accent-wash); }
.ent-opt-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ent-opt-region { grid-column: 1; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ent-opt-check { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent-3); }

@media (max-width: 560px) {
  .ws-bar { padding: 12px 14px; } .ws-thread { padding: 18px 16px 6px; }
  .cv-msg.aria .cv-bubble, .cv-msg.user .cv-bubble { max-width: 92%; }
}

/* ============================================================ REVEAL + MOTION (safe) */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
html.js-reveal .reveal { opacity: 0; transform: translateY(22px) scale(0.985); }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
/* staggered cascade: children of a .stagger lift one after another */
html.js-reveal .stagger.in > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
html.js-reveal .stagger.in > *:nth-child(1){ animation-delay:.00s }
html.js-reveal .stagger.in > *:nth-child(2){ animation-delay:.06s }
html.js-reveal .stagger.in > *:nth-child(3){ animation-delay:.12s }
html.js-reveal .stagger.in > *:nth-child(4){ animation-delay:.18s }
html.js-reveal .stagger.in > *:nth-child(5){ animation-delay:.24s }
html.js-reveal .stagger.in > *:nth-child(6){ animation-delay:.30s }
html.js-reveal .stagger > * { opacity: 0; }
html.js-reveal .stagger.in > * { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal,
  html.js-reveal .stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-bg { animation: none !important; }
  /* the alive-section content animations settle to a clean final state */
  .journey-track { transform: scaleX(1) !important; }
  .journey-track::after { display: none !important; }
  html.js-reveal .journey.in .js-node,
  html.js-reveal .journey.in .js-badge,
  html.js-reveal .stages.in .stage-ico,
  html.js-reveal .stages .stage-app,
  html.js-reveal .reg.in .reg-ico,
  html.js-reveal .integ-list.in .integ-node:not(.any) .in-dot,
  .stage-card.hot,
  html.js-reveal .cta .reveal.in .cta-aria,
  html.js-reveal .cta .reveal.in .cta-card,
  html.js-reveal .cta .reveal.in .cta-bg,
  html.js-reveal .cta-aria .aria-antenna,
  html.js-reveal .journey.in .js-aria .aria-antenna { animation: none !important; opacity: 1 !important; transform: none !important; }
  .integ-board::after { display: none !important; }
  /* the conversation settles to a complete final state, never stranded mid-run —
     the JS runner already collapses every beat to 0 under reduced motion, this
     just kills the entrance/typewriter/seal motion to match. */
  .cv-msg, .cv-receipt, .cv-approve, .cv-approved, .cv-sealed { animation: none !important; opacity: 1 !important; transform: none !important; }
  .cvs-em { animation: none !important; opacity: 1 !important; transform: none !important; }
  .caretblink { display: none !important; }
  /* console chrome settles: no breathing edge, no pulsing live-dot, no chip sheen */
  .workspace::before { animation: none !important; opacity: .5 !important; }
  .ws-live.on .ws-live-dot { animation: none !important; box-shadow: none !important; }
  .cv-prompt::after { display: none !important; }
}

/* ============================================================ THE APPS (platform showcase) */
/* overflow:clip (not hidden) contains the intentional mock-bleed past the
   column edge as depth — without a horizontal scrollbar and without breaking
   the IntersectionObserver viewport root (clip doesn't create a scroll container). */
.pf { padding-top: var(--s7); overflow-x: clip; }
.pf .section-head { margin-bottom: var(--s5); }

/* dark in-product "window" chrome ---------------------------------------- */
.appwin {
  position: relative;
  --aw-accent: #6e8bff;
  --aw-bg: #0e1017; --aw-surface: rgba(255,255,255,.045); --aw-line: rgba(255,255,255,.085);
  --aw-text: #e9ebf2; --aw-mut: #9a9fb0; --aw-mut2: #71768a;
  border: 1px solid #262a38; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #14171f 0%, #0b0d13 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow-lg);
  color: var(--aw-text); font-family: var(--sans);
}
/* per-app accent glow: each window sits in a pool of its own colour */
.appwin::before {
  content: ""; position: absolute; inset: -40px -10px auto -10px; height: 120px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 100% at 30% 0%, color-mix(in srgb, var(--aw-accent) 26%, transparent), transparent 70%);
}
.appwin > * { position: relative; z-index: 1; }
.appwin-erp   { --aw-accent: #5d7bff; }
.appwin-crm   { --aw-accent: #1ec9b7; }
.appwin-hr    { --aw-accent: #f4a93a; }
.appwin-sec   { --aw-accent: #a06bff; }
.appwin-tax   { --aw-accent: #2ec98c; }
.appwin-legal { --aw-accent: #818cf8; }
.appwin-comm  { --aw-accent: #f0617a; }
.appwin-home  { --aw-accent: #7d8cff; }

/* ---- launcher staged as 3D product imagery, not a flat settings screen ---- */
.pf-stage { position: relative; margin-bottom: 64px; perspective: 2400px; overflow: clip; padding-top: 8px; }
.pf-stage::before {  /* ambient ledger glow under the staged product */
  content: ""; position: absolute; z-index: 0; left: 50%; top: 44%; transform: translate(-50%,-50%);
  width: 92%; height: 78%; pointer-events: none; filter: blur(46px);
  background:
    radial-gradient(58% 60% at 50% 40%, oklch(0.600 0.165 256 / 0.42), transparent 70%),
    radial-gradient(46% 50% at 80% 64%, oklch(0.760 0.140 210 / 0.24), transparent 72%);
}
.pf-stage .pf-peek {  /* a second app window peeking behind for depth */
  position: absolute; z-index: 1; right: 4%; top: 38px; width: 46%; opacity: 0.55;
  transform: perspective(2400px) rotateX(6deg) rotateY(-12deg) translateZ(-120px);
  transform-origin: right center; filter: saturate(0.9) brightness(0.86);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.pf-launch {
  position: relative; z-index: 2;
  /* flat — no 3D tilt. The tilt re-rotated on hover (cards shifted sideways) and
     misaligned the flat flow connectors; a flat launcher keeps everything still
     and lets the record ride the wires exactly on the tiles. */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), var(--shadow-lg);
}
.pf-stage::after {  /* fade the base into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--paper));
}
@media (max-width: 920px) {
  .pf-launch { transform: none; }
  .pf-stage .pf-peek { display: none; }
  .pf-stage::after { display: none; }
}

/* Taxation mock — region flags + a portal-format return draft */
.aw-flags { display: flex; gap: 8px; justify-content: space-between; }
.aw-flags .awf {
  flex: 1; text-align: center; font-size: 22px; line-height: 1;
  padding: 9px 0; border-radius: 9px; background: #11141c;
  border: 1px solid var(--aw-line);
}
.aw-form { border: 1px solid var(--aw-line); border-radius: 10px; overflow: hidden; }
.aw-form .awform-h {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 12px; font-weight: 700; font-size: 12px; color: var(--aw-text);
  background: #11141c; border-bottom: 1px solid var(--aw-line);
}
.aw-form .awform-h span { font-size: 10.5px; color: var(--aw-mut2); font-weight: 600; }
.aw-form .awform-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px; font-size: 12px; color: var(--aw-mut);
}
.aw-form .awform-row b { color: var(--aw-text); font-variant-numeric: tabular-nums; }
.aw-form .awform-row.total { border-top: 1px solid var(--aw-line); font-weight: 700; }
.aw-form .awform-row.total span, .aw-form .awform-row.total b { color: #2ec98c; }

/* AI Legal mock — corporate / labour split panel */
.aw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aw-split-col { border: 1px solid var(--aw-line); border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.022); }
.aws-col-h {
  padding: 7px 11px; font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  color: color-mix(in srgb, var(--aw-accent) 78%, #fff);
  background: color-mix(in srgb, var(--aw-accent) 14%, transparent);
  border-bottom: 1px solid var(--aw-line);
}
.awl-row {
  display: flex; align-items: baseline; gap: 7px; padding: 6px 11px; font-size: 11px; color: var(--aw-mut);
  border-bottom: 1px solid color-mix(in srgb, var(--aw-line) 70%, transparent);
}
.awl-row:last-child { border-bottom: 0; }
.awl-row b { color: var(--aw-text); font-weight: 700; flex: none; }
.awl-row i { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 9.5px; color: color-mix(in srgb, var(--aw-accent) 70%, #fff); }

.appwin-bar {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px;
  background: #0b0d13; border-bottom: 1px solid var(--aw-line);
}
.aw-dots { display: inline-flex; gap: 6px; }
.aw-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2b2f3c; }
.aw-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--aw-text); }
.aw-name small { color: var(--aw-mut2); font-weight: 500; font-size: 11px; letter-spacing: .02em; }
.aw-glyph { width: 16px; height: 16px; border-radius: 5px; background: var(--aw-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--aw-accent) 22%, transparent); }
.aw-glyph.home { border-radius: 5px; }
.aw-ask {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #fff; padding: 5px 11px; border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--aw-accent) 92%, #fff 0%), var(--aw-accent));
}
.aw-logout { margin-left: auto; font-size: 11px; color: var(--aw-mut); border: 1px solid var(--aw-line); border-radius: 7px; padding: 4px 10px; }
.appwin-body { padding: 14px; display: grid; gap: 10px; }
.appwin-foot {
  border-top: 1px solid var(--aw-line); padding: 10px 16px; font-size: 11px; color: var(--aw-mut2);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.aw-ai-chip { font-family: var(--mono); font-size: 10px; color: var(--aw-mut); border: 1px solid var(--aw-line); border-radius: 6px; padding: 3px 7px; }

/* KPI tiles --------------------------------------------------------------- */
.aw-kpis { display: grid; gap: 8px; }
.aw-kpis.four { grid-template-columns: repeat(4, 1fr); }
.aw-kpis.three { grid-template-columns: repeat(3, 1fr); }
.aw-kpi { background: var(--aw-surface); border: 1px solid var(--aw-line); border-radius: 10px; padding: 9px 10px; }
.aw-kpi.hot { background: color-mix(in srgb, var(--aw-accent) 16%, transparent); border-color: color-mix(in srgb, var(--aw-accent) 42%, transparent); }
.awk-k { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--aw-mut); }
.awk-v { font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.aw-kpi.hot .awk-v { color: color-mix(in srgb, var(--aw-accent) 78%, #fff); }
.awk-sub { font-size: 10px; color: var(--aw-mut2); margin-top: 1px; }

.aw-rowhead { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--aw-mut); }
.aw-badge.ok { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: #6ee7b7; border: 1px solid rgba(110,231,183,.32); border-radius: 999px; padding: 3px 9px; }

/* ERP sparkline ----------------------------------------------------------- */
.aw-bars { background: var(--aw-surface); border: 1px solid var(--aw-line); border-radius: 10px; padding: 9px 10px; }
.awb-label { font-size: 10px; color: var(--aw-mut2); margin-bottom: 5px; }
.awb-spark { width: 100%; height: 42px; display: block; }
.awb-spark polyline { fill: none; stroke: var(--aw-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Ask strip (CRM/HR) ------------------------------------------------------ */
.aw-ask-strip { border-radius: 11px; padding: 10px 11px; border: 1px solid var(--aw-line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(124,108,246,.22), transparent 60%), var(--aw-surface); }
.aw-ask-strip.indigo { background: radial-gradient(120% 140% at 0% 0%, rgba(99,102,241,.26), transparent 62%), var(--aw-surface); }
.aw-ask-strip.violet { background: radial-gradient(120% 140% at 0% 0%, rgba(139,124,246,.26), transparent 62%), var(--aw-surface); }
.aw-ask-strip.amber  { background: radial-gradient(120% 140% at 0% 0%, rgba(244,169,58,.20), transparent 62%), var(--aw-surface); }
.aws-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #cdd2ff; }
.aw-ask-strip.amber .aws-head { color: #f3c98a; }
.aws-input { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding: 8px 10px;
  background: rgba(8,9,14,.55); border: 1px solid var(--aw-line); border-radius: 9px; font-size: 11.5px; color: var(--aw-mut); }
.aws-go { display: inline-flex; color: #fff; background: var(--aw-accent); border-radius: 6px; padding: 3px; }
.aws-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.aws-chip { font-size: 10.5px; color: var(--aw-mut); border: 1px solid var(--aw-line); border-radius: 999px; padding: 3px 9px; background: rgba(255,255,255,.03); }

/* CRM pipeline stages ----------------------------------------------------- */
.aw-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; align-items: end; height: 62px; padding: 0 4px; }
.aw-stage { display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
/* bar height via flex-basis (a flex item's `height` gets collapsed in this
   column; flex-basis is honoured) so it animates reliably */
.aws-bar { width: 66%; flex: 0 0 var(--bh, 16px); min-height: 0; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--aw-accent), color-mix(in srgb, var(--aw-accent) 40%, transparent)); }
.aws-name { font-size: 9.5px; color: var(--aw-mut2); }

/* HR detective + compliance ---------------------------------------------- */
.aw-detect { display: grid; gap: 7px; }
.awd-row { font-size: 11px; color: var(--aw-text); background: var(--aw-surface); border: 1px solid var(--aw-line); border-left-width: 3px; border-radius: 8px; padding: 7px 10px; }
.awd-row.warn { border-left-color: #f4a93a; }
.awd-row.info { border-left-color: #5d7bff; }
.awd-tag { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: #f4a93a; margin-right: 6px; }
.awd-tag.info { color: #7fa0ff; }
.aw-compliance { display: flex; flex-wrap: wrap; gap: 7px; }
.awc-pill { font-size: 10.5px; color: var(--aw-mut); border: 1px solid var(--aw-line); border-radius: 8px; padding: 5px 9px; background: rgba(255,255,255,.03); }
.awc-pill b { color: var(--aw-text); margin: 0 5px; }
.awc-pill i { color: #f0b46a; font-style: normal; }

/* launcher mock — a BENTO of LIVE app tiles. Tighter, labelled, and animated:
   ARIA "runs a task" across the tiles (.is-focus, set in app.js) so motion
   plays at rest, not only on hover. ---------------------------------------- */
.home-body { padding: 16px; gap: 12px; }
.home-ask { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  border: 1px solid color-mix(in srgb, var(--aw-accent) 32%, transparent); border-radius: 12px; padding: 11px 14px;
  background: radial-gradient(120% 180% at 0% 0%, rgba(125,140,255,.18), transparent 58%), var(--aw-surface); }
.ha-glyph { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.ha-text { display: grid; gap: 2px; min-width: 0; }
.ha-text b { font-size: 13px; }
.ha-status { font-size: 11.5px; color: var(--aw-mut); display: inline-flex; align-items: center; gap: 7px; }
.ha-status b { font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--aw-accent) 70%, #fff); }
.ha-live { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #3fd596;
  box-shadow: 0 0 0 0 rgba(63,213,150,.6); animation: haLive 1.8s ease-out infinite; }
@keyframes haLive { 0% { box-shadow: 0 0 0 0 rgba(63,213,150,.55); } 70%,100% { box-shadow: 0 0 0 6px rgba(63,213,150,0); } }
.ha-btn { font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,.10); border: 1px solid var(--aw-line); border-radius: 9px; padding: 8px 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* the bento grid: an explicit, designed layout. ERP wide top-left, Legal wide
   bottom-left, Tax tall right. Every cell filled — no orphans. */
.home-tiles {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "erp erp crm"
    "hr  sec tax"
    "legal comm tax";
}
.tile-erp   { grid-area: erp; }
.tile-crm   { grid-area: crm; }
.tile-hr    { grid-area: hr; }
.tile-sec   { grid-area: sec; }
.tile-tax   { grid-area: tax; }
.tile-legal { grid-area: legal; }
.tile-comm  { grid-area: comm; }

.home-tile {
  position: relative; display: flex; flex-direction: column; min-height: 146px;
  color: inherit; text-decoration: none;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--tile-edge) 12%, transparent), transparent 56%),
    var(--aw-surface);
  border: 1px solid var(--aw-line); border-radius: 13px; padding: 12px 13px 11px; overflow: hidden;
  transition: border-color .25s ease, background .25s ease, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
  /* gentle staggered entrance once the launcher is live */
  opacity: 0; transform: translateY(12px) scale(.985);
}
.pf-stage.is-live .home-tile { opacity: 1; transform: none; }
.pf-stage.is-live .tile-erp   { transition-delay: .00s, .00s, .00s, .00s; }
.pf-stage.is-live .tile-crm   { transition-delay: .06s, .06s, .06s, .06s; }
.pf-stage.is-live .tile-hr    { transition-delay: .12s, .12s, .12s, .12s; }
.pf-stage.is-live .tile-sec   { transition-delay: .18s, .18s, .18s, .18s; }
.pf-stage.is-live .tile-tax   { transition-delay: .24s, .24s, .24s, .24s; }
.pf-stage.is-live .tile-legal { transition-delay: .30s, .30s, .30s, .30s; }
.pf-stage.is-live .tile-comm  { transition-delay: .36s, .36s, .36s, .36s; }

/* animated per-app top-edge — a live "current" sweeps across the focused tile */
.home-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--tile-edge), transparent);
  background-size: 220% 100%; background-position: 100% 0; opacity: .55;
  transition: opacity .25s ease, background-position .9s ease; }

/* the ACTIVE/focused state — driven by ARIA's auto-run AND hover/keyboard */
.home-tile.is-focus, .home-tile:hover, .home-tile:focus-visible {
  /* highlight via glow/border only — NO transform, so the tile doesn't lift/
     "bounce" each time the auto-cycling record passes through it. */
  border-color: color-mix(in srgb, var(--tile-edge) 55%, var(--aw-line));
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--tile-edge) 20%, transparent), transparent 58%),
    rgba(255,255,255,.05);
  box-shadow: 0 16px 36px -22px color-mix(in srgb, var(--tile-edge) 60%, #000),
              0 0 0 1px color-mix(in srgb, var(--tile-edge) 30%, transparent);
}
.home-tile.is-focus::before, .home-tile:hover::before, .home-tile:focus-visible::before {
  opacity: 1; background-position: 0 0;
}
.pf-stage.is-live .home-tile.is-focus { transition-delay: 0s; }

/* the "running…" status pill — appears only on the tile ARIA is currently on */
.ht-run { position: absolute; top: 8px; right: 9px; z-index: 5; max-width: calc(100% - 18px);
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: color-mix(in srgb, var(--tile-edge) 55%, var(--aw-text));
  background: color-mix(in srgb, var(--tile-edge) 18%, var(--aw-bg, #0e1017));
  border: 1px solid color-mix(in srgb, var(--tile-edge) 36%, transparent);
  backdrop-filter: blur(3px);
  opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.ht-run svg { flex: none; }
.home-tile.is-focus .ht-run { opacity: 1; transform: none; }
.ht-run svg { animation: htSpark 1.6s ease-in-out infinite; }
@keyframes htSpark { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }

.tile-erp   { --tile-edge: #6d86ff; }
.tile-crm   { --tile-edge: #2fd3c1; }
.tile-hr    { --tile-edge: #f0b25a; }
.tile-sec   { --tile-edge: #b48cff; }
.tile-tax   { --tile-edge: #3fd596; }
.tile-legal { --tile-edge: #97a0ff; }
.tile-comm  { --tile-edge: #f0617a; }

/* header: app kicker + name */
.ht-head { margin-bottom: 5px; }
.ht-kicker { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono);
  font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: color-mix(in srgb, var(--tile-edge) 62%, #fff); }
.ht-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--tile-edge);
  box-shadow: 0 0 7px var(--tile-edge); flex: none; }
.home-tile h5 { font-size: 13.5px; font-weight: 800; letter-spacing: -.02em; margin: 3px 0 0; }
.home-tile p { font-size: 10.5px; color: var(--aw-mut); margin: 3px 0 0; line-height: 1.38; max-width: 34ch; }

/* the signature mini-visual */
.ht-viz { position: relative; margin: 2px 0 8px; height: 54px; }
.tile-erp .ht-viz { height: 66px; }   /* the wide ledger hero gets a taller chart */
.ht-viz svg.tv { display: block; width: 100%; height: 100%; overflow: visible; }

/* tiny labels baked into the visuals so each app reads at a glance */
.tv text { font-family: var(--mono); fill: var(--aw-mut2); }
.tv-yl { font-size: 6.5px; fill: var(--aw-mut2); }
.tv-xl { font-size: 6px; text-anchor: middle; fill: var(--aw-mut2); }
.tv-col { font-size: 6px; letter-spacing: .08em; fill: var(--aw-mut2); }
.tv-col.right { text-anchor: end; }

/* foot: a confident metric on the left, the Open link on the right */
.ht-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 9px; }
.ht-metric { display: inline-flex; flex-direction: column; line-height: 1.05; }
.ht-metric b { font-size: 18px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--tile-edge) 60%, var(--aw-text)); }
.ht-metric i { font-size: 8.5px; font-style: normal; color: var(--aw-mut2); margin-top: 2px; letter-spacing: .01em; }
.ht-open { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; white-space: nowrap;
  color: color-mix(in srgb, var(--tile-edge) 64%, #fff); flex: none;
  transition: gap .2s ease; }
.home-tile.is-focus .ht-open, .home-tile:hover .ht-open { gap: 8px; }

/* ============================================================
   the tile mini-visuals. Motion fires on `.is-focus` (ARIA's auto-run OR
   hover/keyboard), and a subtle CONTINUOUS loop keeps them alive at rest.
   `prefers-reduced-motion` kills all of it (settled to final state). */
.tv polyline, .tv polygon, .tv line, .tv circle, .tv rect, .tv path { transition: all .5s cubic-bezier(.2,.7,.2,1); }

/* ERP — labelled ledger trend; line draws on focus + a slow ambient redraw */
.tv-erp .tv-base { stroke: var(--aw-line); stroke-width: 1; }
.tv-erp .tv-line { fill: none; stroke: var(--tile-edge); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tv-erp .tv-area { opacity: .8; }
.tv-erp .tv-dot { fill: var(--tile-edge); filter: drop-shadow(0 0 5px var(--tile-edge)); animation: erpDot 2.6s ease-in-out infinite; }
@keyframes erpDot { 0%,100% { r: 3; } 50% { r: 4.2; } }
.tv-draw { stroke-dasharray: 360; stroke-dashoffset: 110; transition: stroke-dashoffset 1s ease; }
.home-tile.is-focus .tv-draw, .home-tile:hover .tv-draw { stroke-dashoffset: 0; }
/* ambient: a bright pulse travels along the drawn line so it reads "live" */
.tv-erp .tv-trace { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke;
  opacity: .9; stroke-dasharray: 18 342; animation: erpTrace 4.5s linear infinite; }
@keyframes erpTrace { 0% { stroke-dashoffset: 360; } 100% { stroke-dashoffset: 0; } }

/* CRM — labelled funnel; bars grow on focus + breathe at rest; Won glows */
.tv-crm .tv-bartrack { fill: color-mix(in srgb, var(--aw-line) 55%, transparent); }
.tv-crm .tv-bar { fill: color-mix(in srgb, var(--tile-edge) 52%, transparent); transform-box: fill-box; transform-origin: bottom; transform: scaleY(.6); }
.tv-crm .tv-bar-won { fill: var(--tile-edge); filter: drop-shadow(0 2px 7px color-mix(in srgb, var(--tile-edge) 70%, transparent)); }
.tv-crm .tv-blabel { font-size: 6px; text-anchor: middle; fill: var(--aw-mut2); }
.tv-crm .tv-blabel.won { fill: color-mix(in srgb, var(--tile-edge) 60%, var(--aw-text)); font-weight: 700; }
.tv-crm .tv-arrow { font-size: 6.5px; fill: color-mix(in srgb, var(--tile-edge) 55%, var(--aw-mut)); text-anchor: end; }
.home-tile.is-focus .tv-crm .tv-bar, .home-tile:hover .tv-crm .tv-bar { transform: scaleY(1); }
.tv-crm .tv-bar0 { transition-delay: 0s; } .tv-crm .tv-bar1 { transition-delay: .05s; }
.tv-crm .tv-bar2 { transition-delay: .1s; } .tv-crm .tv-bar3 { transition-delay: .15s; }
/* ambient breathe (subtle), only the Won bar so it reads as "live" */
.tv-crm .tv-bar-won { animation: crmBreathe 3s ease-in-out infinite; }
@keyframes crmBreathe { 0%,100% { opacity: .92; } 50% { opacity: 1; } }

/* Commissions — accelerator tiers; same bar treatment as CRM, rose accent via --tile-edge */
.tv-comm .tv-bartrack { fill: color-mix(in srgb, var(--aw-line) 55%, transparent); }
.tv-comm .tv-bar { fill: color-mix(in srgb, var(--tile-edge) 52%, transparent); transform-box: fill-box; transform-origin: bottom; transform: scaleY(.6); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tv-comm .tv-bar-won { fill: var(--tile-edge); filter: drop-shadow(0 2px 7px color-mix(in srgb, var(--tile-edge) 70%, transparent)); animation: crmBreathe 3s ease-in-out infinite; }
.tv-comm .tv-blabel { font-size: 6px; text-anchor: middle; fill: var(--aw-mut2); }
.tv-comm .tv-blabel.won { fill: color-mix(in srgb, var(--tile-edge) 60%, var(--aw-text)); font-weight: 700; }
.tv-comm .tv-arrow { font-size: 6.5px; fill: color-mix(in srgb, var(--tile-edge) 55%, var(--aw-mut)); text-anchor: end; }
.home-tile.is-focus .tv-comm .tv-bar, .home-tile:hover .tv-comm .tv-bar { transform: scaleY(1); }
.tv-comm .tv-bar0 { transition-delay: 0s; } .tv-comm .tv-bar1 { transition-delay: .05s; }
.tv-comm .tv-bar2 { transition-delay: .1s; } .tv-comm .tv-bar3 { transition-delay: .15s; }

/* HR — labelled payslip rows; amounts light up on focus, slide at rest */
.tv-hr .tv-av { fill: color-mix(in srgb, var(--tile-edge) 42%, transparent); stroke: var(--tile-edge); stroke-width: 1; }
.tv-hr .tv-name { fill: color-mix(in srgb, var(--aw-text) 68%, transparent); }
.tv-hr .tv-sub { fill: var(--aw-mut2); }
.tv-hr .tv-amt { fill: color-mix(in srgb, var(--tile-edge) 22%, transparent); }
.tv-hr .tv-amtt { font-size: 8px; font-weight: 700; text-anchor: middle; fill: color-mix(in srgb, var(--tile-edge) 60%, var(--aw-text)); }
.tv-hr .tv-prow { transform: translateX(0); }
.home-tile.is-focus .tv-hr .tv-amt, .home-tile:hover .tv-hr .tv-amt { fill: color-mix(in srgb, var(--tile-edge) 42%, transparent); }
.home-tile.is-focus .tv-hr .tv-prow1, .home-tile:hover .tv-hr .tv-prow1 { transform: translateX(2px); }
.home-tile.is-focus .tv-hr .tv-prow2, .home-tile:hover .tv-hr .tv-prow2 { transform: translateX(4px); }

/* Secretarial — labelled gauge (78/100) sweeps on focus + a due-date calendar */
.tv-sec .tv-ringtrack { fill: none; stroke: color-mix(in srgb, var(--aw-line) 80%, transparent); stroke-width: 6; }
.tv-sec .tv-ring { fill: none; stroke: var(--tile-edge); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 137.2 38.7; stroke-dashoffset: 137.2; transition: stroke-dashoffset 1s cubic-bezier(.2,.7,.2,1); }
.home-tile.is-focus .tv-sec .tv-ringfill, .home-tile:hover .tv-sec .tv-ringfill { stroke-dashoffset: 0; }
.tv-sec .tv-gv { font-size: 12px; font-weight: 800; text-anchor: middle; fill: color-mix(in srgb, var(--tile-edge) 55%, var(--aw-text)); }
.tv-sec .tv-gu { font-size: 5.5px; text-anchor: middle; fill: var(--aw-mut2); }
.tv-sec .tv-calbody { fill: color-mix(in srgb, var(--tile-edge) 7%, transparent); stroke: var(--aw-line); stroke-width: 1; }
.tv-sec .tv-calline { stroke: var(--aw-line); stroke-width: 1; }
.tv-sec .tv-celldot { fill: color-mix(in srgb, var(--aw-mut2) 55%, transparent); }
.tv-sec .tv-celldue { fill: var(--tile-edge); filter: drop-shadow(0 0 4px var(--tile-edge)); animation: secDue 2.4s ease-in-out infinite; }
@keyframes secDue { 0%,100% { opacity: .65; } 50% { opacity: 1; } }

/* Taxation — labelled jurisdiction board (flag + ISO code), a wave on focus */
.tile-tax .ht-viz { flex: 1 1 auto; height: auto; min-height: 54px; }
.ht-viz .tv-tax { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr;
  gap: 5px; width: 100%; height: 100%; min-height: 54px; padding-top: 4px; align-content: stretch; }
.tv-tax .tv-flag { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 38px;
  border-radius: 7px; background: color-mix(in srgb, var(--tile-edge) 8%, var(--aw-surface));
  border: 1px solid var(--aw-line); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease, background .35s ease; }
.tv-tax .tv-flag b { font-size: 16px; line-height: 1; }
.tv-tax .tv-flag i { font-family: var(--mono); font-size: 7px; font-style: normal; letter-spacing: .04em; color: var(--aw-mut2); }
.tv-tax .tv-flag6 { grid-column: span 1; }
.tv-tax::after { content: "+ all"; grid-column: 4 / 5; display: grid; place-items: center;
  font-family: var(--mono); font-size: 8px; letter-spacing: .04em; color: var(--aw-mut2);
  border: 1px dashed var(--aw-line); border-radius: 7px; min-height: 38px; }
.home-tile.is-focus .tv-tax .tv-flag, .home-tile:hover .tv-tax .tv-flag {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--tile-edge) 40%, var(--aw-line));
  background: color-mix(in srgb, var(--tile-edge) 14%, var(--aw-surface)); }
.home-tile.is-focus .tv-tax .tv-flag0, .home-tile:hover .tv-tax .tv-flag0 { transition-delay: 0s; }
.home-tile.is-focus .tv-tax .tv-flag1, .home-tile:hover .tv-tax .tv-flag1 { transition-delay: .04s; }
.home-tile.is-focus .tv-tax .tv-flag2, .home-tile:hover .tv-tax .tv-flag2 { transition-delay: .08s; }
.home-tile.is-focus .tv-tax .tv-flag3, .home-tile:hover .tv-tax .tv-flag3 { transition-delay: .12s; }
.home-tile.is-focus .tv-tax .tv-flag4, .home-tile:hover .tv-tax .tv-flag4 { transition-delay: .16s; }
.home-tile.is-focus .tv-tax .tv-flag5, .home-tile:hover .tv-tax .tv-flag5 { transition-delay: .2s; }
.home-tile.is-focus .tv-tax .tv-flag6, .home-tile:hover .tv-tax .tv-flag6 { transition-delay: .24s; }
/* ambient: one flag gently lifts on a loop so the board breathes at rest */
.tv-tax .tv-flag0 { animation: taxLift 6s ease-in-out infinite; }
@keyframes taxLift { 0%,84%,100% { transform: translateY(0); } 90% { transform: translateY(-3px); } }

/* Legal — settling balance scale + labelled obligations checklist */
.tv-legal .tv-scol, .tv-legal .tv-sbase { stroke: var(--aw-mut2); stroke-width: 1.8; stroke-linecap: round; }
.tv-legal .tv-sbeam { stroke: var(--tile-edge); stroke-width: 2.2; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transform: rotate(-7deg); }
.tv-legal .tv-span { fill: color-mix(in srgb, var(--tile-edge) 22%, transparent); stroke: var(--tile-edge); stroke-width: 1.3; }
.tv-legal .tv-spivot { fill: var(--tile-edge); }
.home-tile.is-focus .tv-legal .tv-sbeam, .home-tile:hover .tv-legal .tv-sbeam { transform: rotate(0deg); }
/* ambient: scale gently settles back and forth at rest */
.tv-legal .tv-sbeam { animation: legalSettle 5s ease-in-out infinite; }
@keyframes legalSettle { 0%,100% { transform: rotate(-7deg); } 45%,55% { transform: rotate(-3deg); } }
.tv-legal .tv-obtick { fill: none; stroke: var(--aw-line); stroke-width: 1.5; }
.tv-legal .tv-obcheck { fill: none; stroke: var(--tile-edge); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .4s ease; }
.tv-legal .tv-oblabel { font-size: 7px; fill: color-mix(in srgb, var(--aw-text) 62%, transparent); }
.tv-legal .tv-obref { font-size: 6.5px; text-anchor: end; fill: color-mix(in srgb, var(--tile-edge) 55%, var(--aw-mut)); }
.home-tile.is-focus .tv-legal .tv-obtick, .home-tile:hover .tv-legal .tv-obtick { stroke: var(--tile-edge); }
.home-tile.is-focus .tv-legal .tv-obcheck, .home-tile:hover .tv-legal .tv-obcheck { stroke-dashoffset: 0; }
.tv-legal .tv-ob0 .tv-obcheck { transition-delay: .05s; }
.tv-legal .tv-ob1 .tv-obcheck { transition-delay: .15s; }
.tv-legal .tv-ob2 .tv-obcheck { transition-delay: .25s; }

/* ============================================================
   THE REST OF THE BACK OFFICE — eight more first-class apps in the suite,
   rendered in the SAME tile DNA as the living-ledger board but as a static 4-up
   shelf below it (no flow circuit, no auto-run focus). The shelf carries its own
   copy of the in-product --aw-* token scope so the .home-tile cards read identically. */
.pf-suite {
  position: relative; margin: 4px 0 60px;
  /* same in-mock palette as .appwin so the reused .home-tile / .tv-* rules resolve */
  --aw-bg: #0e1017; --aw-surface: rgba(255,255,255,.045); --aw-line: rgba(255,255,255,.085);
  --aw-text: #e9ebf2; --aw-mut: #9a9fb0; --aw-mut2: #71768a;
}
.pf-suite-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pf-suite-kicker { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: color-mix(in srgb, var(--accent-3) 70%, var(--ink)); }
.pf-suite-kicker svg { color: var(--accent-3); }
.pf-suite-head p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 720px; }

.suite-tiles { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
/* the cards are .home-tile clones; reset the board-only entrance + bento sizing */
.suite-tile { grid-area: auto; min-height: 168px; opacity: 1; transform: none; }
.pf-suite .stagger:not(.in) .suite-tile { opacity: 0; transform: translateY(12px) scale(.985); }
.suite-tile .ht-viz { height: 60px; }
/* the shelf cards live + lift on hover like the board, but never auto-focus */
.suite-tile:hover, .suite-tile:focus-visible {
  border-color: color-mix(in srgb, var(--tile-edge) 55%, var(--aw-line));
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--tile-edge) 20%, transparent), transparent 58%),
    rgba(255,255,255,.05);
  box-shadow: 0 16px 36px -22px color-mix(in srgb, var(--tile-edge) 60%, #000),
              0 0 0 1px color-mix(in srgb, var(--tile-edge) 30%, transparent);
}
.suite-tile:hover::before, .suite-tile:focus-visible::before { opacity: 1; background-position: 0 0; }

/* per-app accents — the eight further apps, exact founder-specified colours */
.tile-inv     { --tile-edge: #fb923c; }
.tile-proc    { --tile-edge: #38bdf8; }
.tile-support { --tile-edge: #2dd4bf; }
.tile-mkt     { --tile-edge: #f472b6; }
.tile-proj    { --tile-edge: #a78bfa; }
.tile-docs    { --tile-edge: #f59e0b; }
.tile-bi      { --tile-edge: #4ade80; }
.tile-sub     { --tile-edge: #fb7185; }

/* ---- AUTO-LOOP: the eight visuals are alive AT REST (no hover needed) -------
   Each viz gently breathes/ticks on a continuous loop, staggered per-card so the
   shelf shimmers with life rather than pulsing in lockstep. Subtle by design —
   small amplitude, long periods. Hover still adds its own one-shot draw on top. */
.tile-inv     .tv { animation: suiteAlive 5.4s ease-in-out infinite; animation-delay: 0s; }
.tile-proc    .tv { animation: suiteAlive 5.4s ease-in-out infinite; animation-delay: .35s; }
.tile-support .tv { animation: suiteAlive 5.4s ease-in-out infinite; animation-delay: .7s; }
.tile-mkt     .tv { animation: suiteAlive 5.4s ease-in-out infinite; animation-delay: 1.05s; }
.tile-proj    .tv { animation: suiteAlive 5.4s ease-in-out infinite; animation-delay: 1.4s; }
.tile-docs    .tv { animation: suiteAlive 5.4s ease-in-out infinite; animation-delay: 1.75s; }
.tile-bi      .tv { animation: suiteAlive 5.4s ease-in-out infinite; animation-delay: 2.1s; }
.tile-sub     .tv { animation: suiteAlive 5.4s ease-in-out infinite; animation-delay: 2.45s; }
/* a near-imperceptible lift so the whole tile reads as "live", not frozen */
@keyframes suiteAlive { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }

/* the signature DATA element of each viz also loops, so the chart itself moves */
.tv-inv .tv-bar-low  { animation: invLow 3.2s ease-in-out infinite; }       /* low SKU pulses for reorder (filter only — no transform clash) */
@keyframes invLow { 0%,100% { filter: drop-shadow(0 2px 7px color-mix(in srgb, var(--tile-edge) 60%, transparent)); } 50% { filter: drop-shadow(0 2px 11px color-mix(in srgb, var(--tile-edge) 85%, transparent)); } }
.tv-mkt .tv-fband2   { animation: mktBand 3.6s ease-in-out infinite; }       /* converted band breathes */
@keyframes mktBand { 0%,100% { filter: drop-shadow(0 2px 7px color-mix(in srgb, var(--tile-edge) 50%, transparent)); } 50% { filter: drop-shadow(0 2px 11px color-mix(in srgb, var(--tile-edge) 75%, transparent)); } }
.tv-proj .tv-today   { animation: projToday 4s ease-in-out infinite; }       /* today marker shimmers */
@keyframes projToday { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.tv-docs .tv-sealcheck { animation: docsTick 3.4s ease-in-out infinite; }    /* seal check glints */
@keyframes docsTick { 0%,100% { opacity: .8; } 50% { opacity: 1; } }
.tv-bi .tv-qtext     { animation: biAsk 4.6s ease-in-out infinite; }         /* the question "types" */
@keyframes biAsk { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
.tv-support .tv-tdot-ok { animation: supOk 3.8s ease-in-out infinite; }      /* resolved dots glow */
@keyframes supOk { 0%,100% { filter: none; } 50% { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--tile-edge) 70%, transparent)); } }

/* Inventory — stock-on-hand bars under a reorder line; the low SKU pings */
.tv-inv .tv-reorder { stroke: color-mix(in srgb, var(--tile-edge) 50%, var(--aw-mut2)); stroke-width: 1; stroke-dasharray: 4 4; }
.tv-inv .tv-bartrack { fill: color-mix(in srgb, var(--aw-line) 55%, transparent); }
.tv-inv .tv-bar { fill: color-mix(in srgb, var(--tile-edge) 52%, transparent); transform-box: fill-box; transform-origin: bottom; transform: scaleY(.6); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tv-inv .tv-bar-low { fill: var(--tile-edge); filter: drop-shadow(0 2px 7px color-mix(in srgb, var(--tile-edge) 70%, transparent)); }
.tv-inv .tv-blabel { font-size: 6px; text-anchor: middle; fill: var(--aw-mut2); }
.home-tile:hover .tv-inv .tv-bar, .home-tile:focus-visible .tv-inv .tv-bar { transform: scaleY(1); }
.tv-inv .tv-ibar0 { transition-delay: 0s; } .tv-inv .tv-ibar1 { transition-delay: .05s; }
.tv-inv .tv-ibar2 { transition-delay: .1s; } .tv-inv .tv-ibar3 { transition-delay: .15s; } .tv-inv .tv-ibar4 { transition-delay: .2s; }
.pf-suite .stagger.in .tv-inv .tv-bar { transform: scaleY(1); }   /* bars rise on reveal */
.tv-inv .tv-replen { fill: var(--tile-edge); filter: drop-shadow(0 0 4px var(--tile-edge)); animation: invPing 2.4s ease-in-out infinite; }
@keyframes invPing { 0%,100% { opacity: .55; r: 3; } 50% { opacity: 1; r: 4.2; } }

/* Procurement — PR routing through gates to PAID; each node ticks */
.tv-proc .tv-track { stroke: var(--aw-line); stroke-width: 1.6; }
.tv-proc .tv-pnode { fill: none; stroke: color-mix(in srgb, var(--tile-edge) 55%, var(--aw-line)); stroke-width: 1.6; }
.tv-proc .tv-pnode-done { fill: color-mix(in srgb, var(--tile-edge) 22%, transparent); }
.tv-proc .tv-pcheck { fill: none; stroke: var(--tile-edge); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .4s ease; }
.tv-proc .tv-pslabel { font-size: 6.5px; text-anchor: middle; fill: var(--aw-mut2); }
.tv-proc .tv-policy { fill: color-mix(in srgb, var(--tile-edge) 12%, transparent); stroke: color-mix(in srgb, var(--tile-edge) 36%, var(--aw-line)); stroke-width: 1; }
.tv-proc .tv-policyt { font-size: 6.5px; text-anchor: middle; fill: color-mix(in srgb, var(--tile-edge) 60%, var(--aw-mut)); }
.home-tile:hover .tv-proc .tv-pcheck, .home-tile:focus-visible .tv-proc .tv-pcheck { stroke-dashoffset: 0; }
.tv-proc .tv-pstep0 .tv-pcheck { transition-delay: .05s; } .tv-proc .tv-pstep1 .tv-pcheck { transition-delay: .15s; }
.tv-proc .tv-pstep2 .tv-pcheck { transition-delay: .25s; } .tv-proc .tv-pstep3 .tv-pcheck { transition-delay: .35s; }
.pf-suite .stagger.in .tv-proc .tv-pcheck { stroke-dashoffset: 0; }   /* gates tick on reveal */
.tv-proc .tv-pstep3 .tv-pnode-done { animation: procPay 3s ease-in-out infinite; }
@keyframes procPay { 0%,100% { filter: none; } 50% { filter: drop-shadow(0 0 5px var(--tile-edge)); } }

/* Customer Support — tickets resolving; the open one is still drafting */
.tv-support .tv-tdot { fill: none; stroke: color-mix(in srgb, var(--tile-edge) 50%, var(--aw-line)); stroke-width: 1.5; }
.tv-support .tv-tdot-ok { fill: color-mix(in srgb, var(--tile-edge) 22%, transparent); stroke: var(--tile-edge); }
.tv-support .tv-tcheck { fill: none; stroke: var(--tile-edge); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 13; stroke-dashoffset: 13; transition: stroke-dashoffset .4s ease; opacity: 0; }
.tv-support .tv-trow0 .tv-tcheck, .tv-support .tv-trow1 .tv-tcheck { opacity: 1; }
.tv-support .tv-tlabel { font-size: 7px; fill: color-mix(in srgb, var(--aw-text) 64%, transparent); }
.tv-support .tv-tstate { font-size: 6.5px; text-anchor: end; fill: var(--aw-mut2); }
.tv-support .tv-tstate.ok { fill: color-mix(in srgb, var(--tile-edge) 60%, var(--aw-mut)); }
.home-tile:hover .tv-support .tv-trow0 .tv-tcheck, .home-tile:focus-visible .tv-support .tv-trow0 .tv-tcheck { stroke-dashoffset: 0; }
.home-tile:hover .tv-support .tv-trow1 .tv-tcheck, .home-tile:focus-visible .tv-support .tv-trow1 .tv-tcheck { stroke-dashoffset: 0; transition-delay: .12s; }
.pf-suite .stagger.in .tv-support .tv-trow0 .tv-tcheck,
.pf-suite .stagger.in .tv-support .tv-trow1 .tv-tcheck { stroke-dashoffset: 0; }   /* resolved ticks draw on reveal */
.tv-support .tv-trow2 .tv-tstate { animation: supDraft 1.8s ease-in-out infinite; }
@keyframes supDraft { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* Marketing — a personalisation funnel; the converted band is accented */
.tv-mkt .tv-fband { fill: color-mix(in srgb, var(--tile-edge) 26%, transparent); stroke: color-mix(in srgb, var(--tile-edge) 40%, var(--aw-line)); stroke-width: 1;
  transform-box: fill-box; transform-origin: center; transform: scale(.9); opacity: .55; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
.tv-mkt .tv-fband2 { fill: var(--tile-edge); filter: drop-shadow(0 2px 7px color-mix(in srgb, var(--tile-edge) 60%, transparent)); }
.tv-mkt .tv-flabel { font-size: 6.5px; text-anchor: middle; fill: var(--aw-mut2); }
.tv-mkt .tv-flabel.won { fill: color-mix(in srgb, var(--tile-edge) 60%, var(--aw-text)); font-weight: 700; }
.home-tile:hover .tv-mkt .tv-fband, .home-tile:focus-visible .tv-mkt .tv-fband { transform: scale(1); opacity: 1; }
.tv-mkt .tv-fband0 { transition-delay: 0s; } .tv-mkt .tv-fband1 { transition-delay: .07s; } .tv-mkt .tv-fband2 { transition-delay: .14s; }
.pf-suite .stagger.in .tv-mkt .tv-fband { transform: scale(1); opacity: 1; }   /* funnel settles on reveal */
.tv-mkt .tv-send { fill: var(--tile-edge); filter: drop-shadow(0 0 4px var(--tile-edge)); animation: mktSend 2.6s ease-in-out infinite; }
@keyframes mktSend { 0%,100% { opacity: .5; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

/* Projects & Services — a Gantt with a today marker; bars fill to show progress */
.tv-proj .tv-today { stroke: color-mix(in srgb, var(--tile-edge) 60%, var(--aw-mut2)); stroke-width: 1; stroke-dasharray: 3 3; }
.tv-proj .tv-gtrack { fill: color-mix(in srgb, var(--aw-line) 55%, transparent); }
.tv-proj .tv-gfill { fill: var(--tile-edge); opacity: .82; transform-box: fill-box; transform-origin: left; transform: scaleX(.55); transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.tv-proj .tv-glabel { font-size: 6.5px; fill: var(--aw-mut2); }
.tv-proj .tv-gtotal { font-size: 8px; font-weight: 700; text-anchor: end; fill: color-mix(in srgb, var(--tile-edge) 60%, var(--aw-text)); }
.home-tile:hover .tv-proj .tv-gfill, .home-tile:focus-visible .tv-proj .tv-gfill { transform: scaleX(1); }
.tv-proj .tv-gbar0 .tv-gfill { transition-delay: 0s; } .tv-proj .tv-gbar1 .tv-gfill { transition-delay: .08s; } .tv-proj .tv-gbar2 .tv-gfill { transition-delay: .16s; }
.pf-suite .stagger.in .tv-proj .tv-gfill { transform: scaleX(1); }   /* progress fills on reveal */
.tv-proj .tv-gbar1 .tv-gfill { animation: projWork 3s ease-in-out infinite; }
@keyframes projWork { 0%,100% { opacity: .82; } 50% { opacity: 1; } }

/* Documents & e-Sign — a contract sheet, a signature drawn on, a sealed stamp */
.tv-docs .tv-sheet { fill: color-mix(in srgb, var(--tile-edge) 7%, var(--aw-surface)); stroke: var(--aw-line); stroke-width: 1; }
.tv-docs .tv-dline { fill: color-mix(in srgb, var(--aw-text) 22%, transparent); }
.tv-docs .tv-sigline { stroke: var(--aw-line); stroke-width: 1; }
.tv-docs .tv-sig { fill: none; stroke: var(--tile-edge); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 70; stroke-dashoffset: 70; transition: stroke-dashoffset .6s ease; }
.tv-docs .tv-siglbl { font-size: 5.5px; fill: var(--aw-mut2); }
.tv-docs .tv-sealring { fill: none; stroke: color-mix(in srgb, var(--tile-edge) 45%, var(--aw-line)); stroke-width: 1.6; stroke-dasharray: 2 3; }
.tv-docs .tv-sealcheck { fill: none; stroke: var(--tile-edge); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv-docs .tv-sealt { font-size: 6px; font-weight: 700; letter-spacing: .12em; text-anchor: middle; fill: color-mix(in srgb, var(--tile-edge) 62%, var(--aw-mut)); }
.tv-docs .tv-seal { transform-box: fill-box; transform-origin: center; transform: scale(.9); opacity: .7; transition: transform .4s cubic-bezier(.2,1.3,.4,1), opacity .4s ease; }
.home-tile:hover .tv-docs .tv-sig, .home-tile:focus-visible .tv-docs .tv-sig { stroke-dashoffset: 0; }
.home-tile:hover .tv-docs .tv-seal, .home-tile:focus-visible .tv-docs .tv-seal { transform: scale(1); opacity: 1; }
.pf-suite .stagger.in .tv-docs .tv-sig { stroke-dashoffset: 0; }       /* signature draws on reveal too */
.pf-suite .stagger.in .tv-docs .tv-seal { transform: none; opacity: 1; }
.tv-docs .tv-sealring { animation: docsSeal 6s linear infinite; }
@keyframes docsSeal { to { stroke-dashoffset: -25; } }

/* Business Intelligence — a plain-language ask over metric tiles; one answer hot */
.tv-bi .tv-qbar { fill: color-mix(in srgb, var(--tile-edge) 9%, var(--aw-surface)); stroke: color-mix(in srgb, var(--tile-edge) 30%, var(--aw-line)); stroke-width: 1; }
.tv-bi .tv-qspark { fill: var(--tile-edge); filter: drop-shadow(0 0 4px var(--tile-edge)); animation: biSpark 2.2s ease-in-out infinite; }
@keyframes biSpark { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
.tv-bi .tv-qtext { font-size: 7px; fill: color-mix(in srgb, var(--aw-text) 70%, transparent); }
.tv-bi .tv-bibox { fill: var(--aw-surface); stroke: var(--aw-line); stroke-width: 1; }
.tv-bi .tv-bibox.hot { fill: color-mix(in srgb, var(--tile-edge) 16%, var(--aw-surface)); stroke: color-mix(in srgb, var(--tile-edge) 50%, var(--aw-line)); }
.tv-bi .tv-bik { font-size: 6px; letter-spacing: .06em; fill: var(--aw-mut2); }
.tv-bi .tv-biv { font-size: 11px; font-weight: 800; fill: color-mix(in srgb, var(--aw-text) 80%, transparent); }
.tv-bi .tv-biv.hot { fill: color-mix(in srgb, var(--tile-edge) 65%, var(--aw-text)); }
.tv-bi .tv-bicard { transform-box: fill-box; transform-origin: bottom; transform: translateY(6px); opacity: 0; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease; }
.home-tile:hover .tv-bi .tv-bicard, .home-tile:focus-visible .tv-bi .tv-bicard { transform: none; opacity: 1; }
.pf-suite .stagger.in .tv-bi .tv-bicard { transform: none; opacity: 1; }   /* settle in once revealed, even without hover */
.tv-bi .tv-bicard0 { transition-delay: 0s; } .tv-bi .tv-bicard1 { transition-delay: .07s; } .tv-bi .tv-bicard2 { transition-delay: .14s; }
.tv-bi .tv-bicard1 .tv-bibox.hot { animation: biAnswer 3s ease-in-out infinite; }
@keyframes biAnswer { 0%,100% { filter: none; } 50% { filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--tile-edge) 55%, transparent)); } }

/* Subscription & Billing — a metered usage line rising under the plan cap */
.tv-sub .tv-ceiling { stroke: color-mix(in srgb, var(--tile-edge) 45%, var(--aw-mut2)); stroke-width: 1; stroke-dasharray: 4 4; }
.tv-sub .tv-ceilt { font-size: 6px; text-anchor: end; fill: var(--aw-mut2); }
.tv-sub .tv-subline { fill: none; stroke: var(--tile-edge); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset .7s ease; }
.tv-sub .tv-subarea { opacity: .8; }
.tv-sub .tv-subdot { fill: var(--tile-edge); filter: drop-shadow(0 0 5px var(--tile-edge)); animation: subMeter 2.6s ease-in-out infinite; }
@keyframes subMeter { 0%,100% { opacity: .6; r: 3; } 50% { opacity: 1; r: 3.8; } }
.tv-sub .tv-subamt { font-size: 6.5px; fill: color-mix(in srgb, var(--tile-edge) 58%, var(--aw-mut)); }
.home-tile:hover .tv-sub .tv-subline, .home-tile:focus-visible .tv-sub .tv-subline { stroke-dashoffset: 0; }
.pf-suite .stagger.in .tv-sub .tv-subline { stroke-dashoffset: 0; }   /* draw in on reveal too */

@media (max-width: 1040px) { .suite-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .suite-tiles { grid-template-columns: 1fr; } .suite-tile { min-height: 0; } }

/* ============================================================
   THE DOWNWARD LINKAGE — the same ledger record continues out of the board and
   threads the eight back-office apps. PlatformBridge wraps board + suite in one
   positioned box; SuiteFlowLayer measures an entry anchor at the seam + the eight
   card centres at runtime, draws real connectors, and rides a record token along
   the active edge on a loop (rAF, in JS → CSP-safe). Auto-plays, no interaction. */
.pf-bridge { position: relative; }
/* the seam between the board and the suite: a short labelled drop where the
   record visibly leaves the ledger above and enters the shelf below */
.pf-bridge-seam { position: relative; z-index: 3; display: flex; justify-content: center;
  margin: -44px 0 18px; pointer-events: none; }
.pfb-anchor { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; }
.pfb-label { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: color-mix(in srgb, var(--accent-3) 62%, var(--ink-2));
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-3) 28%, var(--aw-line, var(--line)));
  background: color-mix(in srgb, var(--accent-3) 10%, transparent); backdrop-filter: blur(3px); }
.pfb-label svg { color: var(--accent-3); }
:root[data-theme="light"] .pfb-label { background: color-mix(in srgb, var(--accent-3) 8%, #fff); }

/* the connector layer spans the WHOLE bridge (board edge → cards) */
.suiteflow-host { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.suiteflow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.suiteflow-wire { fill: none; stroke: color-mix(in srgb, var(--accent) 30%, transparent); stroke-width: 1.4;
  stroke-dasharray: 3 6; opacity: .4; vector-effect: non-scaling-stroke; }
/* the entry edge (board → first card) reads slightly bolder — it's the handoff */
.suiteflow-edge.is-entry .suiteflow-wire { stroke: color-mix(in srgb, var(--accent-3) 40%, transparent); opacity: .55; }
.suiteflow-edge.on .suiteflow-wire { stroke: color-mix(in srgb, var(--accent-3) 60%, transparent); opacity: .85;
  animation: wireCrawl .9s linear infinite; }
.suiteflow-comet { fill: none; stroke: url(#suiteComet); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 30 1600; filter: drop-shadow(0 0 6px var(--accent-3));
  animation: cometRun .85s cubic-bezier(.5,0,.5,1) infinite; }
/* the entry anchor on the board's lower edge — pulses as the record drops in */
.suiteflow-entry { fill: var(--accent-3); opacity: .9; filter: drop-shadow(0 0 7px var(--accent-3)); animation: entryPulse 2.6s ease-in-out infinite; }
@keyframes entryPulse { 0%,100% { opacity: .55; r: 4; } 50% { opacity: 1; r: 5.4; } }
.suiteflow-node { fill: color-mix(in srgb, var(--accent) 45%, transparent); opacity: .5; transition: fill .3s ease, opacity .3s ease, r .3s ease; }
.suiteflow-node.on { fill: var(--accent-3); opacity: 1; r: 5; filter: drop-shadow(0 0 6px var(--accent-3)); }
.suiteflow-node.landed { fill: var(--warm); opacity: 1; r: 6; filter: drop-shadow(0 0 8px var(--warm)); }

/* the riding record token — reuses the board token's chrome for one visual voice */
.suiteflow-token { position: absolute; top: 0; left: 0; z-index: 6; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 9px 5px 7px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-family: var(--sans); will-change: transform;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, #0e1017), color-mix(in srgb, var(--accent-2) 16%, #0b0d13));
  border: 1px solid color-mix(in srgb, var(--accent-3) 55%, transparent);
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, #000), 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: opacity .3s ease; }
.suiteflow-token.resting { opacity: 0; }
.suiteflow-token.riding  { opacity: 1; }
.suiteflow-token.landed  { opacity: 1; animation: tokLand .45s cubic-bezier(.2,1.3,.4,1); }
.suiteflow-token .ft-spark { display: inline-flex; color: var(--accent-3); flex: none;
  background: color-mix(in srgb, var(--accent-3) 22%, transparent); border-radius: 50%; padding: 3px; }
.suiteflow-token .ft-body { display: inline-flex; flex-direction: column; line-height: 1.05; }
.suiteflow-token .ft-tag { font-size: 10px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.suiteflow-token .ft-sub { font-size: 8px; font-style: normal; font-family: var(--mono); letter-spacing: .03em;
  color: color-mix(in srgb, var(--accent-3) 60%, #fff); }
.suiteflow-token .ft-amt { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--warm);
  padding-left: 7px; margin-left: 1px; border-left: 1px solid color-mix(in srgb, #fff 18%, transparent); }
/* the token tint follows the app it carries from */
.suiteflow-token.tok-ledger  { --tk: var(--accent-3); }
.suiteflow-token.tok-inv { --tk: #fb923c; } .suiteflow-token.tok-proc { --tk: #38bdf8; }
.suiteflow-token.tok-support { --tk: #2dd4bf; } .suiteflow-token.tok-mkt { --tk: #f472b6; }
.suiteflow-token.tok-proj { --tk: #a78bfa; } .suiteflow-token.tok-docs { --tk: #f59e0b; }
.suiteflow-token.tok-bi { --tk: #4ade80; } .suiteflow-token.tok-sub { --tk: #fb7185; }
.suiteflow-token { border-color: color-mix(in srgb, var(--tk, var(--accent-3)) 60%, transparent); }
.suiteflow-token .ft-spark { color: var(--tk, var(--accent-3)); background: color-mix(in srgb, var(--tk, var(--accent-3)) 22%, transparent); }

/* the receiving suite card pings as the record lands (mirrors the board) */
.suite-tile.is-receiving {
  border-color: color-mix(in srgb, var(--tile-edge) 60%, var(--aw-line));
  box-shadow: 0 16px 36px -22px color-mix(in srgb, var(--tile-edge) 65%, #000),
              0 0 0 1px color-mix(in srgb, var(--tile-edge) 40%, transparent);
  animation: suiteAccept 1.1s ease-out; }
@keyframes suiteAccept { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tile-edge) 55%, transparent); }
                         100% { box-shadow: 0 16px 36px -22px color-mix(in srgb, var(--tile-edge) 65%, #000), 0 0 0 1px color-mix(in srgb, var(--tile-edge) 40%, transparent); } }
.suite-tile.is-receiving::before { opacity: 1; background-position: 0 0; }
/* the "On the ledger" pill appears on the receiving card only (reuses .ht-run) */
.suite-tile .ht-run { opacity: 0; }
.suite-tile.is-receiving .ht-run { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tv *, .home-tile, .home-tile::before, .ht-run, .ha-live { transition: none !important; animation: none !important; }
  .home-tile { opacity: 1 !important; transform: none !important; }
  .tv-draw { stroke-dashoffset: 0 !important; }
  .tv-crm .tv-bar { transform: scaleY(1) !important; }
  .tv-sec .tv-ringfill { stroke-dashoffset: 0 !important; }
  .tv-legal .tv-obcheck { stroke-dashoffset: 0 !important; }
  .tv-legal .tv-sbeam { transform: rotate(0deg) !important; }
  .tv-erp .tv-trace { display: none !important; }
  .ht-run { opacity: 0 !important; }
  /* the eight further apps settle to their resting "done" state; auto-loops off */
  .suite-tile { opacity: 1 !important; transform: none !important; }
  .suite-tile .tv { animation: none !important; transform: none !important; }
  .tv-inv .tv-bar { transform: scaleY(1) !important; }
  .tv-proc .tv-pcheck, .tv-support .tv-tcheck { stroke-dashoffset: 0 !important; }
  .tv-support .tv-trow2 .tv-tcheck { opacity: 0 !important; }
  .tv-mkt .tv-fband { transform: scale(1) !important; opacity: 1 !important; }
  .tv-proj .tv-gfill { transform: scaleX(1) !important; }
  .tv-docs .tv-sig { stroke-dashoffset: 0 !important; }
  .tv-docs .tv-seal { transform: none !important; opacity: 1 !important; }
  .tv-bi .tv-bicard { transform: none !important; opacity: 1 !important; }
  .tv-sub .tv-subline { stroke-dashoffset: 0 !important; }
  /* the showpiece settles: no comet, no riding token, no tile-accept ping;
     wires + nodes stay as a clean static circuit so the connection still reads */
  .flow-comet, .flow-token { display: none !important; }
  .flow-edge.on .flow-wire { animation: none !important; }
  .home-tile.is-receiving { animation: none !important; }
  /* the downward linkage settles too: connectors stay drawn, no comet/token/ping */
  .suiteflow-comet, .suiteflow-token { display: none !important; }
  .suiteflow-edge.on .suiteflow-wire { animation: none !important; }
  .suiteflow-entry { animation: none !important; }
  .suite-tile.is-receiving { animation: none !important; }
}

/* ============================================================
   THE LIVING LEDGER — the showpiece. Connectors thread the bento in data-flow
   order; a labelled RECORD TOKEN rides the active edge (rAF, in JS) and morphs
   as it lands; the active wire gets a comet-trail; the receiving node + tile
   "accept" with a ping. Tile centres are measured in JS. */
.home-tiles { position: relative; }
.flow-host { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-wire { fill: none; stroke: color-mix(in srgb, var(--accent) 34%, transparent); stroke-width: 1.4;
  stroke-dasharray: 3 6; opacity: .45; vector-effect: non-scaling-stroke; }
.flow-edge.on .flow-wire { stroke: color-mix(in srgb, var(--accent-3) 60%, transparent); opacity: .85; stroke-dasharray: 3 6;
  animation: wireCrawl .9s linear infinite; }
@keyframes wireCrawl { to { stroke-dashoffset: -18; } }
/* the comet trail: a bright gradient dash that streaks along the active edge */
.flow-comet { fill: none; stroke: url(#flowComet); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 30 1600; filter: drop-shadow(0 0 6px var(--accent-3));
  animation: cometRun .85s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes cometRun { from { stroke-dashoffset: 36; } to { stroke-dashoffset: -1600; } }
.flow-node { fill: color-mix(in srgb, var(--accent) 45%, transparent); opacity: .5; transition: fill .3s ease, opacity .3s ease, r .3s ease; }
.flow-node.on { fill: var(--accent-3); opacity: 1; r: 5; filter: drop-shadow(0 0 6px var(--accent-3)); }
.flow-node.landed { fill: var(--warm); opacity: 1; r: 6; filter: drop-shadow(0 0 8px var(--warm)); }
.flow-node.pinned { fill: var(--accent); opacity: 1; r: 6; }
.home-tile { z-index: 1; }

/* the RECORD TOKEN — an HTML chip riding the path; label morphs at each stop */
.flow-token { position: absolute; top: 0; left: 0; z-index: 6; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 9px 5px 7px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-family: var(--sans); will-change: transform;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, #0e1017), color-mix(in srgb, var(--accent-2) 16%, #0b0d13));
  border: 1px solid color-mix(in srgb, var(--accent-3) 55%, transparent);
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, #000), 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: opacity .3s ease; }
.flow-token.resting { opacity: 0; }
.flow-token.riding  { opacity: 1; }
.flow-token.landed  { opacity: 1; animation: tokLand .45s cubic-bezier(.2,1.3,.4,1); }
@keyframes tokLand { 0% { box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--warm) 70%, #000), 0 0 0 0 color-mix(in srgb, var(--warm) 50%, transparent); }
                     60% { box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--warm) 70%, #000), 0 0 0 10px color-mix(in srgb, var(--warm) 0%, transparent); }
                     100% { box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, #000), 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); } }
.flow-token .ft-spark { display: inline-flex; color: var(--accent-3); flex: none;
  background: color-mix(in srgb, var(--accent-3) 22%, transparent); border-radius: 50%; padding: 3px; }
.flow-token .ft-body { display: inline-flex; flex-direction: column; line-height: 1.05; }
.flow-token .ft-tag { font-size: 10px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.flow-token .ft-sub { font-size: 8px; font-style: normal; font-family: var(--mono); letter-spacing: .03em;
  color: color-mix(in srgb, var(--accent-3) 60%, #fff); }
.flow-token .ft-amt { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--warm);
  padding-left: 7px; margin-left: 1px; border-left: 1px solid color-mix(in srgb, #fff 18%, transparent); }
/* the token tint follows the app it's leaving */
.flow-token.tok-crm   { --tk: #2fd3c1; } .flow-token.tok-erp { --tk: #6d86ff; }
.flow-token.tok-hr    { --tk: #f0b25a; } .flow-token.tok-sec { --tk: #b48cff; }
.flow-token.tok-tax   { --tk: #3fd596; } .flow-token.tok-legal { --tk: #97a0ff; }
.flow-token { border-color: color-mix(in srgb, var(--tk, var(--accent-3)) 60%, transparent); }
.flow-token .ft-spark { color: var(--tk, var(--accent-3)); background: color-mix(in srgb, var(--tk, var(--accent-3)) 22%, transparent); }

/* the receiving tile "accepts" the record with a pulse ring */
.home-tile.is-receiving { animation: tileAccept 1s ease-out; }
@keyframes tileAccept {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tile-edge) 55%, transparent); }
  100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--tile-edge) 0%, transparent); }
}

/* light theme */
:root[data-theme="light"] .flow-wire { stroke: color-mix(in srgb, var(--accent) 28%, transparent); }
:root[data-theme="light"] .flow-edge.on .flow-wire { stroke: color-mix(in srgb, var(--accent) 50%, transparent); }
:root[data-theme="light"] .flow-comet { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 55%, transparent)); }
:root[data-theme="light"] .flow-node { fill: color-mix(in srgb, var(--accent) 38%, transparent); }
:root[data-theme="light"] .flow-node.on { fill: var(--accent); filter: none; }
:root[data-theme="light"] .flow-node.landed { fill: var(--warm-2); filter: none; }
:root[data-theme="light"] .flow-token {
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent) 7%, #fff));
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 45%, #1a1f2e), 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); }
:root[data-theme="light"] .flow-token .ft-tag { color: #14213d; }
:root[data-theme="light"] .flow-token .ft-sub { color: color-mix(in srgb, var(--tk, var(--accent)) 55%, #1a1f2e); }
:root[data-theme="light"] .flow-token .ft-amt { color: var(--warm-2); border-left-color: color-mix(in srgb, #14213d 14%, transparent); }

/* app-window foot: make the new flow line read */
.appwin-foot b { color: color-mix(in srgb, var(--aw-accent) 75%, #fff); font-weight: 700; }
:root[data-theme="light"] .appwin-foot b { color: color-mix(in srgb, var(--aw-accent) 60%, #1a1f2e); }

/* headline gradient accent on "Watch it flow." / "staffed by agents." */
.pf .section-head h2 .grad,
.wf .section-head h2 .grad {
  background: linear-gradient(100deg, var(--accent-2) 0%, var(--accent-3) 42%, var(--warm) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   THE LEDGER SPINE — the deep-dives hang off one glowing vertical rail running
   down the page. Each app is a node; the rail "fills" as you scroll. Layout is
   broken out of the rigid 2-col: the mock bleeds past its column for depth. */
/* register --spine as a typed number so it interpolates cleanly inside the
   scaleY() transform (unregistered custom props can resolve to the fallback). */
@property --spine { syntax: "<number>"; inherits: true; initial-value: 0; }
.pf-spine { position: relative; margin-top: 8px; --spine: 0; }
.pf-spine-rail { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--line-2) 80%, transparent) 6%, color-mix(in srgb, var(--line-2) 80%, transparent) 94%, transparent);
  z-index: 0; pointer-events: none; }
.pf-spine-fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3) 50%, var(--warm));
  transform-origin: top; transform: scaleY(var(--spine, 0)); transition: transform .2s linear;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-3) 60%, transparent); }
@media (max-width: 920px) { .pf-spine-rail { left: 20px; } }

.pf-apps { display: grid; gap: 96px; position: relative; z-index: 1; }
.pf-app { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; }
/* mock sits fully inside its column — no off-screen bleed (was cutting the mock
   on the right at 100% zoom on common widths). */
.pf-app .pf-mock { width: 100%; }
.pf-app:not(.flip) .pf-mock { margin-right: 0; }
.pf-app.flip .pf-copy { order: 2; }
.pf-app.flip .pf-mock { order: 1; margin-left: 0; }
.pf-mock { position: relative; }

/* the spine node — a pulsing dot centred on the rail per app, in the app accent */
.pf-node { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3; pointer-events: none;
  width: 18px; height: 18px; display: grid; place-items: center; }
.pf-node-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--n, var(--accent));
  box-shadow: 0 0 0 4px var(--paper), 0 0 14px var(--n, var(--accent)); position: relative; z-index: 2; }
.pf-node-ring { position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--n, var(--accent)); opacity: 0; }
.pf-app.in .pf-node-ring { animation: nodePing 2.4s ease-out infinite; }
@keyframes nodePing { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.n-erp   { --n: #5d7bff; } .n-crm { --n: #1ec9b7; } .n-hr { --n: #f0b25a; }
.n-sec   { --n: #b48cff; } .n-tax { --n: #37c98c; } .n-legal { --n: #97a0ff; }
.n-comm  { --n: #f0617a; }
@media (max-width: 920px) { .pf-node { left: 20px; } }

.pf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-flowstep { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .01em; }
.pf-flowstep svg { color: var(--accent); }

/* ---- scroll-PLAY: each mock DOES its signature action when it scrolls in ---
   driven by the page reveal IO that adds .in to .pf-app. Defaults are the
   "before" state; .in animates to the live result. */
.pf-play .pf-mock .appwin { transition: transform .6s cubic-bezier(.2,.7,.2,1); }

/* ERP — KPIs lift in + sparkline draws */
.pf-play[data-app="erp"] .awb-spark polyline { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.1s ease .2s; }
.pf-play[data-app="erp"].in .awb-spark polyline { stroke-dashoffset: 0; }
.pf-play[data-app="erp"] .aw-kpi { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.pf-play[data-app="erp"].in .aw-kpi { opacity: 1; transform: none; }
.pf-play[data-app="erp"].in .aw-kpi:nth-child(2) { transition-delay: .06s; }
.pf-play[data-app="erp"].in .aw-kpi:nth-child(3) { transition-delay: .12s; }
.pf-play[data-app="erp"].in .aw-kpi:nth-child(4) { transition-delay: .18s; }

/* CRM — pipeline bars grow stage by stage, then the Won→invoice ribbon fires.
   Inside a playable section the bars start collapsed and grow to --bh on .in. */
.pf-play[data-app="crm"] .aw-stage .aws-bar { flex-basis: 0; transition: flex-basis .6s cubic-bezier(.2,.7,.2,1); }
.pf-play[data-app="crm"].in .aw-stage .aws-bar { flex-basis: var(--bh); }
.pf-play[data-app="crm"].in .aw-stage:nth-child(1) .aws-bar { transition-delay: .1s; }
.pf-play[data-app="crm"].in .aw-stage:nth-child(2) .aws-bar { transition-delay: .25s; }
.pf-play[data-app="crm"].in .aw-stage:nth-child(3) .aws-bar { transition-delay: .4s; }
.pf-play[data-app="crm"].in .aw-stage:nth-child(4) .aws-bar { transition-delay: .55s; }
.aw-stage.won .aws-bar { background: linear-gradient(180deg, #2fd3c1, color-mix(in srgb, #2fd3c1 45%, transparent)); }
.pf-play[data-app="crm"].in .aw-stage.won .aws-bar { box-shadow: 0 0 14px color-mix(in srgb, #2fd3c1 70%, transparent); }
.aw-handoff { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 11px; border-radius: 10px;
  font-size: 11px; color: var(--aw-text); border: 1px solid color-mix(in srgb, #2fd3c1 38%, var(--aw-line));
  background: color-mix(in srgb, #2fd3c1 12%, var(--aw-surface));
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease .8s, transform .5s ease .8s; }
.pf-play[data-app="crm"].in .aw-handoff { opacity: 1; transform: none; }
.awh-from { font-weight: 700; }
.awh-arrow { display: inline-flex; color: #2fd3c1; }
.awh-to { display: inline-flex; align-items: center; gap: 5px; color: var(--aw-mut); }
.awh-to svg { color: #5d7bff; }
.awh-amt { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; color: #2fd3c1; }

/* HR — detective rows slide in, payroll figure "computes" (count handled in JS-free CSS reveal) */
.pf-play[data-app="hr"] .awd-row { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.pf-play[data-app="hr"].in .awd-row { opacity: 1; transform: none; }
.pf-play[data-app="hr"].in .awd-row:nth-child(2) { transition-delay: .12s; }
.pf-play[data-app="hr"] .awc-pill { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.pf-play[data-app="hr"].in .awc-pill { opacity: 1; transform: none; }
.pf-play[data-app="hr"].in .awc-pill:nth-child(1){transition-delay:.2s}
.pf-play[data-app="hr"].in .awc-pill:nth-child(2){transition-delay:.28s}
.pf-play[data-app="hr"].in .awc-pill:nth-child(3){transition-delay:.36s}
.pf-play[data-app="hr"].in .awc-pill:nth-child(4){transition-delay:.44s}

/* Secretarial — same detective + compliance reveal */
.pf-play[data-app="sec"] .awd-row { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.pf-play[data-app="sec"].in .awd-row { opacity: 1; transform: none; }
.pf-play[data-app="sec"].in .awd-row:nth-child(2) { transition-delay: .12s; }
.pf-play[data-app="sec"] .awc-pill { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.pf-play[data-app="sec"].in .awc-pill { opacity: 1; transform: none; }
.pf-play[data-app="sec"].in .awc-pill:nth-child(1){transition-delay:.2s}
.pf-play[data-app="sec"].in .awc-pill:nth-child(2){transition-delay:.28s}
.pf-play[data-app="sec"].in .awc-pill:nth-child(3){transition-delay:.36s}
.pf-play[data-app="sec"].in .awc-pill:nth-child(4){transition-delay:.44s}

/* Taxation — flags sweep to "prepared" one by one (a green check rises) */
.awf { position: relative; }
.awf-check { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 13px; height: 13px;
  border-radius: 50%; background: #2ec98c; color: #06281c; opacity: 0; transform: scale(.4); }
.pf-play[data-app="tax"].in .awf-check { animation: flagPrep .4s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.25s + var(--fi) * .12s); }
@keyframes flagPrep { to { opacity: 1; transform: scale(1); } }
.pf-play[data-app="tax"] .aw-form .awform-row { opacity: 0; transform: translateY(5px); transition: opacity .45s ease, transform .45s ease; }
.pf-play[data-app="tax"].in .aw-form .awform-row { opacity: 1; transform: none; }
.pf-play[data-app="tax"].in .aw-form .awform-row:nth-child(2){transition-delay:.9s}
.pf-play[data-app="tax"].in .aw-form .awform-row:nth-child(3){transition-delay:1s}
.pf-play[data-app="tax"].in .aw-form .awform-row:nth-child(4){transition-delay:1.1s}

/* Legal — the obligation rows tick off as they scroll in */
.pf-play[data-app="legal"] .awl-row { opacity: 0; transform: translateX(-6px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.pf-play[data-app="legal"].in .awl-row { opacity: 1; transform: none; }
.pf-play[data-app="legal"].in .aw-split-col:first-child .awl-row:nth-child(2){transition-delay:.1s}
.pf-play[data-app="legal"].in .aw-split-col:first-child .awl-row:nth-child(3){transition-delay:.2s}
.pf-play[data-app="legal"].in .aw-split-col:first-child .awl-row:nth-child(4){transition-delay:.3s}
.pf-play[data-app="legal"].in .aw-split-col:last-child .awl-row:nth-child(2){transition-delay:.15s}
.pf-play[data-app="legal"].in .aw-split-col:last-child .awl-row:nth-child(3){transition-delay:.25s}
.pf-play[data-app="legal"].in .aw-split-col:last-child .awl-row:nth-child(4){transition-delay:.35s}

@media (prefers-reduced-motion: reduce) {
  .pf-spine-fill { transition: none !important; }
  .pf-node-ring { animation: none !important; }
  .pf-play .aw-kpi, .pf-play .awd-row, .pf-play .awc-pill, .pf-play .awl-row,
  .pf-play .aw-form .awform-row, .pf-play .aw-handoff { opacity: 1 !important; transform: none !important; }
  .pf-play .aw-stage .aws-bar { flex-basis: var(--bh) !important; transition: none !important; }
  .pf-play .awb-spark polyline { stroke-dashoffset: 0 !important; }
  .pf-play[data-app="tax"] .awf-check { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* app rows (copy + mock) -------------------------------------------------- */
.pf-kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--accent); }
.pf-kicker .pf-kdot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in oklch, currentColor 18%, transparent); flex: none; }
.pf-kicker.k-crm { color: #0f9b8e; }
.pf-kicker.k-hr  { color: #b07516; }
.pf-kicker.k-sec { color: #6a3fd0; }
.pf-kicker.k-tax { color: #14875e; }
.pf-kicker.k-legal { color: #5b63d8; }
.pf-kicker.k-comm { color: #c0344f; }
.pf-copy h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.025em; margin: 10px 0 12px; text-wrap: balance; }
.pf-copy > p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.pf-feats { list-style: none; display: grid; gap: 9px; margin: 18px 0 22px; padding: 0; }
.pf-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink); }
.pf-tick { display: inline-flex; color: var(--seal); margin-top: 1px; flex: none; }
.pf-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--accent); }
.pf-link:hover { color: var(--accent-2); }

@media (max-width: 1040px) {
  /* two columns: ERP + Legal stay full-width hero bands, the rest pair up */
  .home-tiles {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "erp erp"
      "crm hr"
      "sec tax"
      "legal comm";
  }
}
@media (max-width: 920px) {
  .pf-app { grid-template-columns: 1fr; gap: 22px; }
  .pf-app.flip .pf-copy { order: 1; } .pf-app.flip .pf-mock { order: 2; }
  .home-ask { grid-template-columns: auto 1fr; }
  .home-ask .ha-btn { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 620px) {
  /* single column — every tile stacks; areas collapse to one per row, and
     tiles hug their content (no grid-stretch gaps between title and metric) */
  .home-tiles {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    grid-template-areas: "erp" "crm" "hr" "sec" "tax" "legal" "comm";
  }
  .home-tile { min-height: 0; }
  .home-tile p { margin-bottom: 2px; }
  .ht-foot { margin-top: 12px; }
  .tile-tax .ht-viz { flex: 0 0 auto; }
  .ht-viz .tv-tax { min-height: 88px; }
}
@media (max-width: 560px) {
  .aw-kpis.four, .aw-kpis.three { grid-template-columns: repeat(2, 1fr); }
  .aw-compliance { gap: 5px; }
  .aw-split { grid-template-columns: 1fr; }
}

/* ============================================================ THEME TOGGLE + dark-mode touch-ups */
.nav-theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.nav-theme:hover { color: var(--ink); border-color: var(--ink-3); background: var(--paper-2); }

/* The CTA card is now a saturated cobalt gradient in BOTH themes — the page's
   brightest, most confident finale. No per-theme override needed. */

/* showcase kicker colours were tuned for the light page — lift them for dark */
:root:not([data-theme="light"]) .pf-kicker.k-crm { color: #2bd4c1; }
:root:not([data-theme="light"]) .pf-kicker.k-hr  { color: #f0b25a; }
:root:not([data-theme="light"]) .pf-kicker.k-sec { color: #b48cff; }
:root:not([data-theme="light"]) .pf-kicker.k-tax { color: #37c98c; }
:root:not([data-theme="light"]) .pf-kicker.k-legal { color: #97a0ff; }
:root:not([data-theme="light"]) .pf-kicker.k-comm { color: #f0617a; }

/* the dark in-product "windows" sit on a dark page now — lift their edge so they read as elevated */
:root:not([data-theme="light"]) .appwin { border-color: rgba(255,255,255,.12); }

/* ============================================================================
   LIGHT theme — give every product mock a real LIGHT SKIN.
   The live operator apps (ERP/CRM/HR/Secretarial) are light-default in-product,
   so a light mock is the authentic match — and the whole page reads cohesively
   light with zero dark boxes. We re-point the .appwin design tokens onto the
   page's own light tokens (the hero console does exactly this), then patch the
   handful of hard-coded light-on-dark values so nothing renders dark on white.
   Each app KEEPS its accent (glyph, chips, halo) so identity survives.
   Dark theme is untouched — every rule here is scoped to [data-theme="light"].
   ========================================================================== */
:root[data-theme="light"] .appwin {
  /* re-point the in-mock palette to the light page tokens */
  --aw-bg:      var(--card);
  --aw-surface: var(--paper-2);
  --aw-line:    var(--line);
  --aw-text:    var(--ink);
  --aw-mut:     var(--ink-2);
  --aw-mut2:    var(--ink-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  box-shadow:
    0 0 0 1px oklch(0.235 0.013 262 / 0.04),
    0 30px 70px -28px oklch(0.235 0.013 262 / 0.20),
    0 10px 26px -14px oklch(0.235 0.013 262 / 0.12);
}
/* the "rest of the back office" shelf re-points its in-tile palette to light too */
:root[data-theme="light"] .pf-suite {
  --aw-bg:      var(--card);
  --aw-surface: var(--paper-2);
  --aw-line:    var(--line);
  --aw-text:    var(--ink);
  --aw-mut:     var(--ink-2);
  --aw-mut2:    var(--ink-3);
}

/* window chrome */
:root[data-theme="light"] .appwin-bar { background: var(--paper-2); border-bottom-color: var(--line); }
:root[data-theme="light"] .aw-dots i { background: var(--line-2); }
:root[data-theme="light"] .appwin-foot { background: var(--paper-2); }
:root[data-theme="light"] .aw-ai-chip { background: var(--card); color: var(--ink-2); border-color: var(--line); }

/* KPI tiles + hot tile — hot value keyed to #fff on dark; mix toward dark on light */
:root[data-theme="light"] .aw-kpi.hot .awk-v { color: color-mix(in srgb, var(--aw-accent) 72%, #1a1f2e); }
:root[data-theme="light"] .aw-form .awform-row.total span,
:root[data-theme="light"] .aw-form .awform-row.total b { color: #0f8f63; } /* tax green, darkened for white */
:root[data-theme="light"] .aw-badge.ok {
  color: #0f8f63; border-color: rgba(15,143,99,.30); background: rgba(15,143,99,.08);
}

/* Ask strip — the dark input box + light-on-dark heading need flipping */
:root[data-theme="light"] .aws-head { color: color-mix(in srgb, var(--aw-accent) 60%, #1a1f2e); }
:root[data-theme="light"] .aw-ask-strip.amber .aws-head { color: #a9711a; }
:root[data-theme="light"] .aws-input { background: var(--card); border-color: var(--line); color: var(--ink-2); }
:root[data-theme="light"] .aws-chip { background: var(--card); color: var(--ink-2); border-color: var(--line); }

/* HR detective / compliance tags hard-coded for dark */
:root[data-theme="light"] .awd-tag { color: #b07516; }
:root[data-theme="light"] .awd-tag.info { color: #3a5bd0; }
:root[data-theme="light"] .awc-pill { background: var(--card); color: var(--ink-2); border-color: var(--line); }
:root[data-theme="light"] .awc-pill i { color: #b07516; }

/* AI Legal split — section refs mixed accent with #fff; mix toward dark on light */
:root[data-theme="light"] .aws-col-h { color: color-mix(in srgb, var(--aw-accent) 64%, #1a1f2e); }
:root[data-theme="light"] .awl-row i { color: color-mix(in srgb, var(--aw-accent) 60%, #1a1f2e); }

/* Taxation flags + form header were #11141c panels */
:root[data-theme="light"] .aw-flags .awf { background: var(--paper-2); border-color: var(--line); }
:root[data-theme="light"] .aw-form .awform-h { background: var(--paper-2); border-bottom-color: var(--line); color: var(--ink); }

/* launcher mock — bento tiles: the white-on-dark accent mixes get washed out
   on a white card, so re-tint accent text toward dark instead of #fff */
:root[data-theme="light"] .ha-btn { color: var(--ink); background: var(--card); border-color: var(--line); }
:root[data-theme="light"] .ha-status b { color: color-mix(in srgb, var(--aw-accent) 64%, #14213d); }
:root[data-theme="light"] .home-tile {
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--tile-edge) 9%, transparent), transparent 56%),
    var(--card);
}
/* focus state (auto-run) + hover + keyboard — all need the lifted look on white */
:root[data-theme="light"] .home-tile.is-focus,
:root[data-theme="light"] .home-tile:hover,
:root[data-theme="light"] .home-tile:focus-visible {
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--tile-edge) 15%, transparent), transparent 58%),
    var(--card);
  box-shadow: 0 16px 34px -24px color-mix(in srgb, var(--tile-edge) 55%, #1a1f2e),
              0 0 0 1px color-mix(in srgb, var(--tile-edge) 28%, transparent);
}
:root[data-theme="light"] .ht-kicker { color: color-mix(in srgb, var(--tile-edge) 64%, #1a1f2e); }
:root[data-theme="light"] .ht-dot { box-shadow: none; }
:root[data-theme="light"] .ht-metric b { color: color-mix(in srgb, var(--tile-edge) 58%, #14213d); }
:root[data-theme="light"] .ht-open { color: color-mix(in srgb, var(--tile-edge) 60%, #1a1f2e); }
:root[data-theme="light"] .home-tile::before { opacity: .9; }
/* the "running…" pill: brighter tint mixed toward dark for legibility on white */
:root[data-theme="light"] .ht-run { color: color-mix(in srgb, var(--tile-edge) 55%, #14213d);
  background: color-mix(in srgb, var(--tile-edge) 12%, var(--card)); }
/* mini-visual glows + the white trace are harsh on white — soften / retint */
:root[data-theme="light"] .tv-erp .tv-dot,
:root[data-theme="light"] .tv-sec .tv-celldue { filter: none; }
:root[data-theme="light"] .tv-erp .tv-trace { stroke: color-mix(in srgb, var(--tile-edge) 70%, #fff); opacity: .85; }
:root[data-theme="light"] .tv text { fill: color-mix(in srgb, var(--ink) 55%, transparent); }
:root[data-theme="light"] .tv-hr .tv-name { fill: color-mix(in srgb, var(--ink) 45%, transparent); }
:root[data-theme="light"] .tv-legal .tv-oblabel { fill: color-mix(in srgb, var(--ink) 60%, transparent); }

/* the per-app accent halo: a faint light tint pool behind each window so the
   app identity still reads, tuned soft for the warm-white page */
:root[data-theme="light"] .pf-mock,
:root[data-theme="light"] .pf-stage .pf-peek,
:root[data-theme="light"] .pf-launch { position: relative; }
:root[data-theme="light"] .pf-mock::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: -22px -20px -30px -20px; border-radius: 30px; filter: blur(38px);
  background: radial-gradient(60% 70% at 50% 30%,
    color-mix(in srgb, var(--aw-accent, #5d7bff) 22%, transparent), transparent 72%);
  opacity: .4;
}
:root[data-theme="light"] .pf-mock .appwin { position: relative; z-index: 1; }

/* ---- the staged launcher (3D perspective + peek window) on a light backdrop ---- */
:root[data-theme="light"] .pf-stage::before {  /* ambient glow under the stage */
  background:
    radial-gradient(58% 60% at 50% 40%, oklch(0.640 0.140 256 / 0.20), transparent 70%),
    radial-gradient(46% 50% at 80% 64%, oklch(0.740 0.120 210 / 0.14), transparent 72%);
  filter: blur(54px);
}
:root[data-theme="light"] .pf-launch {
  box-shadow:
    0 0 0 1px oklch(0.235 0.013 262 / 0.04),
    0 44px 96px -34px oklch(0.235 0.013 262 / 0.22),
    0 16px 36px -18px oklch(0.235 0.013 262 / 0.13);
}
:root[data-theme="light"] .pf-launch::after {  /* per-app halo behind the launcher */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -26px -24px -36px -24px; border-radius: 34px; filter: blur(44px);
  background: radial-gradient(58% 64% at 50% 26%,
    color-mix(in srgb, var(--aw-accent) 24%, transparent), transparent 72%);
  opacity: .45;
}
:root[data-theme="light"] .pf-stage .pf-peek {  /* keep the depth read on light */
  opacity: 0.55; filter: none;
}
/* fade the staged base into the warm-white page */
:root[data-theme="light"] .pf-stage::after {
  background: linear-gradient(180deg, transparent, var(--paper));
}

/* ============================================================
   AI DIGITAL WORKFORCE — the flagship. An org chart that comes alive:
   ARIA CEO -> future-lit C-suite -> seven live department nodes, with a
   labelled dispatch pulse riding CEO->dept (the shipped FlowLayer mechanic),
   bloom-to-inspect rosters, and a live ticker. Reuses the .appwin / .flow-*
   vocabulary so it reads as a sibling of "The apps". All motion = React-toggled
   classes + two rAF loops (token ride, count-up). CSP-safe.
============================================================ */
.section.wf { padding-top: var(--s5); }
.wf .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.wf .section-head .lede { margin-left: auto; margin-right: auto; }

/* census strip — 4 whole-company headline figures (agents/live/tools count up)
   + a status legend, mirroring the app's /workforce page */
.wf-census-wrap { max-width: 1000px; margin: 26px auto 30px; }
.wf-census {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  box-shadow: var(--raise); overflow: hidden;
}
.wfc-cell { flex: 1 1 0; min-width: 130px; padding: 22px 16px; text-align: center;
  border-left: 1px solid var(--line); }
.wfc-cell:first-child { border-left: 0; }
.wfc-v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1; }
.wfc-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 7px; }
.wf-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 16px; }
.wfl { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 7px; }
.wfl-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.wfl.is-live .wfl-dot { background: var(--seal); box-shadow: 0 0 7px color-mix(in srgb, var(--seal) 60%, transparent); }
.wfl.is-beta .wfl-dot { background: var(--warm); }
.wfl.is-planned .wfl-dot { background: var(--ink-3); }
@media (max-width: 560px) {
  .wfc-cell { flex-basis: 50%; }
  .wfc-cell:nth-child(odd) { border-left: 0; }
  .wfc-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* the org stage — an .appwin-home command deck, full-width */
.wf-org { max-width: 1240px; margin: 0 auto; }
.wf-org-body { position: relative; padding: 28px 26px 32px; display: block; }

/* Layer 1 — the CEO apex */
.wf-ceo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px;
  margin: 0 auto 14px; padding: 11px 18px 11px 12px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--aw-accent) 42%, var(--aw-line));
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--aw-accent) 22%, transparent), transparent 60%), var(--aw-surface);
  box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--aw-accent) 55%, transparent);
  left: 50%; transform: translateX(-50%); max-width: 520px; }
.wf-ceo-face { flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.wf-ceo-meta { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.wf-ceo-top { display: inline-flex; align-items: center; gap: 8px; }
.wf-ceo-top b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--aw-text); }
.wf-ceo-role { font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--aw-mut2); }
.wf-ceo-line { font-size: 11px; color: var(--aw-mut); line-height: 1.35; }
.wf-badge { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .1em;
  padding: 2px 6px; border-radius: 999px; }
.wf-badge.is-live { color: var(--seal); background: color-mix(in srgb, var(--seal) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--seal) 40%, transparent); }

/* Layer 2 — the C-suite (future-lit; personas planned) */
.wf-csuite { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin: 0 auto 22px; max-width: 860px; }
.csuite-card { display: inline-flex; flex-direction: column; gap: 1px; padding: 9px 13px; border-radius: 10px;
  border: 1px dashed var(--aw-line); background: rgba(255,255,255,.02); min-width: 118px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease; cursor: default; }
.csuite-card .cs-role { font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; color: var(--aw-text); }
.csuite-card .cs-owns { font-size: 9.5px; color: var(--aw-mut); }
.csuite-card .cs-count { font-size: 10px; color: var(--aw-mut2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.csuite-card .cs-count i { font-style: normal; color: color-mix(in srgb, var(--seal) 78%, var(--aw-mut)); font-weight: 600; }
.csuite-card .cs-tag { font-family: var(--mono); font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--aw-mut2); margin-top: 3px; }
.csuite-card.owns-live { border-style: solid; border-color: color-mix(in srgb, var(--aw-accent) 30%, var(--aw-line)); }
.csuite-card.owns-live .cs-tag { color: color-mix(in srgb, var(--seal) 80%, var(--aw-mut)); }
.csuite-card:hover, .csuite-card:focus-visible { transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--aw-accent) 55%, var(--aw-line));
  background: color-mix(in srgb, var(--aw-accent) 10%, transparent); outline: none; }

/* Layer 3 + 4 — the seven department nodes */
.wf-depts { position: relative; z-index: 2; display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr); }   /* 11 depts = 4 + 4 + 3 (roadmap row) */
@media (max-width: 900px) { .wf-depts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wf-depts { grid-template-columns: 1fr; } }

.dept-node { --dept-c: var(--aw-accent); position: relative; display: flex; flex-direction: column;
  padding: 13px 13px 12px; border-radius: 13px; background: var(--aw-surface);
  border: 1px solid var(--aw-line); cursor: pointer; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.dept-node::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--dept-c), transparent); opacity: .5;
  transition: opacity .2s ease; }
.dept-node:hover, .dept-node:focus-visible, .dept-node.is-active {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--dept-c) 55%, var(--aw-line));
  background: color-mix(in srgb, var(--dept-c) 9%, var(--aw-surface));
  box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--dept-c) 70%, transparent); outline: none; }
.dept-node:hover::before, .dept-node:focus-visible::before, .dept-node.is-active::before { opacity: 1; }
.dept-node.is-active { box-shadow: 0 16px 40px -16px color-mix(in srgb, var(--dept-c) 80%, transparent); }
/* Taxation = the wedge hero: a warm breathing glow (reuses hotBreath) */
.dept-node.is-hero { border-color: color-mix(in srgb, var(--dept-c) 40%, var(--aw-line)); }
html.js-reveal .dept-node.is-hero { animation: hotBreath 3.4s ease-in-out infinite; }
/* roadmap departments (wholly planned): dashed + dimmed so the honesty reads */
.dept-node.is-roadmap { border-style: dashed; opacity: .82; }
.dept-node.is-roadmap .dept-dot { box-shadow: none; opacity: .7; }
.dept-node.is-roadmap:hover, .dept-node.is-roadmap:focus-visible { opacity: 1; }

.dept-verb { position: absolute; top: 11px; right: 11px; z-index: 4; display: inline-flex; align-items: center;
  gap: 4px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .03em; color: var(--dept-c);
  opacity: 0; transform: translateY(-3px); transition: opacity .25s ease, transform .25s ease;
  max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dept-verb svg { flex: none; }
.dept-node.is-active .dept-verb, .dept-node:hover .dept-verb, .dept-node:focus-within .dept-verb { opacity: 1; transform: none; }
/* when the live verb shows (top-right), fade the static manager label out so the
   two mono lines never collide on a narrow card */
.dept-mgr { transition: opacity .2s ease; }
.dept-node.is-active .dept-mgr, .dept-node:hover .dept-mgr, .dept-node:focus-within .dept-mgr { opacity: 0; }
.dept-title { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.dept-ring { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--dept-c) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dept-c) 45%, transparent); }
.dept-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dept-c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dept-c) 24%, transparent), 0 0 9px color-mix(in srgb, var(--dept-c) 70%, transparent); }
.dept-name { display: flex; flex-direction: column; line-height: 1.1; }
.dept-mgr { font-family: var(--mono); font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--aw-mut2); }
.dept-name h5 { font-size: 14px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 0; color: var(--aw-text); }
.dept-one { font-size: 10.5px; color: var(--aw-mut); line-height: 1.35; margin: 0 0 9px; }
.dept-counts { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.dc-big { font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--aw-text);
  font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: 4px; }
.dc-big i { font-size: 9px; font-style: normal; font-weight: 600; color: var(--aw-mut2); }
.dc-badge { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 999px; }
.dc-badge.is-live { color: var(--seal); background: color-mix(in srgb, var(--seal) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--seal) 38%, transparent); }
.dc-badge.is-beta { color: var(--warm); background: color-mix(in srgb, var(--warm) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--warm) 38%, transparent); }
.dc-badge.is-roadmap { color: var(--aw-mut2); background: transparent;
  border: 1px dashed color-mix(in srgb, var(--aw-mut2) 55%, transparent); }
.dc-tools { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--aw-mut2);
  font-variant-numeric: tabular-nums; }

/* the roster blooms open on hover / focus / click */
.dept-roster { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.2,.7,.2,1); }
.dept-node:hover .dept-roster, .dept-node:focus-within .dept-roster, .dept-node.is-open .dept-roster {
  grid-template-rows: 1fr; }
.dept-roster-in { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 5px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--aw-line); }
.worker-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--aw-mut); }
.worker-chip b { color: var(--aw-text); font-weight: 700; }
.worker-chip i { font-style: normal; font-family: var(--mono); font-size: 8.5px; color: var(--aw-mut2);
  margin-left: auto; text-align: right; }
.worker-chip.more { font-family: var(--mono); font-size: 9px; letter-spacing: .04em; color: var(--aw-mut2);
  padding-left: 15px; }
.dept-open { margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700;
  color: color-mix(in srgb, var(--dept-c) 78%, #fff); }
.dept-open:hover { gap: 8px; }

/* the honesty pips (worker rows) */
.wf-pip { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.wf-pip.is-live { background: var(--seal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--seal) 22%, transparent), 0 0 6px color-mix(in srgb, var(--seal) 60%, transparent); }
.wf-pip.is-beta { background: transparent; box-shadow: inset 0 0 0 2px var(--warm); }
.wf-pip.is-planned { background: transparent; border: 1px dashed var(--ink-3); box-sizing: border-box; }

/* OrgFlowLayer — CEO->dept connectors + riding dispatch token (flow-* clone) */
.orgflow-host { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.orgflow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orgflow-wire { fill: none; stroke: color-mix(in srgb, var(--aw-accent) 30%, transparent); stroke-width: 1.3;
  vector-effect: non-scaling-stroke; opacity: .5; transition: stroke .3s ease, opacity .3s ease; }
.orgflow-edge.on .orgflow-wire { stroke: color-mix(in srgb, var(--accent-3) 60%, transparent); opacity: .9;
  stroke-dasharray: 3 6; animation: cometRun 1s linear infinite; }
.orgflow-comet { fill: none; stroke: url(#orgComet); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 22 1600; stroke-dashoffset: 36; animation: cometRun 1.1s linear infinite;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--warm) 65%, transparent)); }
.orgflow-root { fill: var(--aw-accent); opacity: 1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--aw-accent) 70%, transparent)); }
.orgflow-node { fill: color-mix(in srgb, var(--aw-accent) 45%, transparent); opacity: .5;
  transition: fill .3s ease, opacity .3s ease, r .3s ease; }
.orgflow-node.landed { fill: var(--warm); opacity: 1; r: 5.5; filter: drop-shadow(0 0 8px var(--warm)); }

.dispatch-token { position: absolute; top: 0; left: 0; z-index: 6; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 9px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  opacity: 0;  /* hidden until the ride effect seats it at the CEO — no (0,0) flash */
  background: linear-gradient(180deg, #171b26, #0e1119); border: 1px solid color-mix(in srgb, var(--tk, var(--accent-3)) 60%, transparent);
  box-shadow: 0 8px 22px -8px #000, 0 0 0 1px rgba(255,255,255,.04) inset; }
.dispatch-token .ft-spark { display: inline-flex; flex: none; color: var(--tk, var(--accent-3));
  background: color-mix(in srgb, var(--tk, var(--accent-3)) 22%, transparent); border-radius: 50%; padding: 3px; }
.dispatch-token .ft-body { display: inline-flex; flex-direction: column; line-height: 1.05; }
.dispatch-token .ft-tag { font-size: 10px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.dispatch-token .ft-sub { font-size: 8px; font-style: normal; font-family: var(--mono); letter-spacing: .03em; color: color-mix(in srgb, var(--tk, var(--accent-3)) 60%, #fff); }
.dispatch-token .ft-amt { font-size: 9px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--seal);
  border-left: 1px solid rgba(255,255,255,.14); padding-left: 7px; letter-spacing: .06em; }
.dispatch-token .ft-amt.beta { color: var(--warm); }
.dispatch-token.tok-finance { --tk: #6d86ff; } .dispatch-token.tok-taxation { --tk: #ffb057; }
.dispatch-token.tok-revenue { --tk: #b48cff; } .dispatch-token.tok-commissions { --tk: #f0617a; }
.dispatch-token.tok-people { --tk: #46e0a6; } .dispatch-token.tok-legal { --tk: #97a0ff; }
.dispatch-token.tok-secretarial { --tk: #f0b25a; } .dispatch-token.tok-operations { --tk: #1ec9b7; }

/* the live ticker */
.wf-ticker { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  margin: 22px auto 4px; max-width: 760px; padding: 11px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--raise); }
.wf-tick-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.wf-tick-kicker svg { color: var(--accent-2); }
.wf-tick-line { font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
  animation: wfMsgIn .34s cubic-bezier(.2,.7,.2,1) both; }
.wf-tick-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--tk, var(--accent-2));
  box-shadow: 0 0 8px color-mix(in srgb, var(--tk, var(--accent-2)) 70%, transparent); }
.wf-tick-line.tint-finance { --tk: #6d86ff; } .wf-tick-line.tint-taxation { --tk: #ffb057; }
.wf-tick-line.tint-revenue { --tk: #b48cff; } .wf-tick-line.tint-commissions { --tk: #f0617a; }
.wf-tick-line.tint-people { --tk: #46e0a6; } .wf-tick-line.tint-legal { --tk: #97a0ff; }
.wf-tick-line.tint-secretarial { --tk: #f0b25a; } .wf-tick-line.tint-operations { --tk: #1ec9b7; }
@keyframes wfMsgIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* CTA row */
.wf-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin-top: 30px; }
.wf-cta-note { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.wf-cta-note svg { color: var(--seal); flex: none; }
.wf-cta-note b { color: var(--seal); font-weight: 700; }

/* light theme — keep every tier legible on warm-white */
/* pin the dept-node surface explicitly on light (it already resolves to the
   light --paper-2 via the .appwin repaint, but declaring it here makes it
   deterministic regardless of the dark-first -> light theme-flip on mount) */
:root[data-theme="light"] .wf-org .dept-node { background: var(--paper-2); border-color: var(--line-2); }
:root[data-theme="light"] .wf-org .dept-node:hover,
:root[data-theme="light"] .wf-org .dept-node.is-active {
  background: color-mix(in srgb, var(--dept-c) 8%, var(--paper-2)); }
:root[data-theme="light"] .orgflow-wire { stroke: color-mix(in srgb, var(--accent) 26%, transparent); }
:root[data-theme="light"] .orgflow-edge.on .orgflow-wire { stroke: color-mix(in srgb, var(--accent) 50%, transparent); }
:root[data-theme="light"] .orgflow-node.landed { fill: var(--warm-2); filter: none; }
:root[data-theme="light"] .dispatch-token { background: linear-gradient(180deg, #ffffff, #f4f6fb); }
:root[data-theme="light"] .dispatch-token .ft-tag { color: #14213d; }
:root[data-theme="light"] .dispatch-token .ft-sub { color: color-mix(in srgb, var(--tk, var(--accent)) 55%, #1a1f2e); }
:root[data-theme="light"] .wf-pip.is-planned { border-color: var(--ink-3); }

/* the org stage stacks cleanly on narrow — hide the connector SVG under the
   breakpoint (like the shipped flow layers), the org still reads top-to-bottom */
@media (max-width: 700px) {
  .orgflow-host { display: none; }
  .wf-ceo { position: static; transform: none; display: flex; }
}

/* reduced motion — settle to a static, fully-staffed org: no pulse, no comet,
   single ticker line, no breathing hero. The whole company still reads. */
@media (prefers-reduced-motion: reduce) {
  .orgflow-comet, .dispatch-token { display: none !important; }
  .orgflow-edge.on .orgflow-wire { animation: none !important; }
  .dept-node.is-hero { animation: none !important; }
  .dept-node, .wf-tick-line { animation: none !important; }
  .dept-node.is-active { transform: none; }
}
