/* ==========================================================================
   JiffyFinOps.ai — design system (2026 redesign)
   One stylesheet for every page. Tokens → base → layout → components → pages.
   Palette is the existing brand: near-black ground, warm surfaces, one gold.
   ========================================================================== */

/* ---------- 0. Tokens ---------- */
:root {
  /* brand */
  --gold: #CFA14C;          /* primary brand */
  --gold-2: #E2BC6C;        /* secondary / highlight */
  --gold-3: #F1D79A;        /* tint */
  --gold-deep: #8E6A1F;     /* shade */
  --gold-ink: #E2BC6C;      /* gold on the alternate band (dark theme everywhere) */
  /* ground & surfaces (dark) */
  --bg: #0B0B0D;
  --bg-2: #101013;
  --surface: #17171C;
  --surface-2: #1E1E26;
  --elev: #24242E;
  /* text */
  --text: #F5F4F0;
  --text-2: #D6D4CC;
  --muted: #A8A8B3;
  --dim: #7A7A86;
  /* lines */
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);
  --line-gold: rgba(207,161,76,.35);
  /* alternate band (formerly paper) — dark theme everywhere, warmer near-black */
  --paper: #121216;
  --paper-2: #1A1A21;
  --paper-3: #22222B;
  --ink: #F5F4F0;
  --ink-2: #D6D4CC;
  --ink-3: #A8A8B3;
  --paper-line: rgba(255,255,255,.12);
  --card: #17171C;
  /* status */
  --success: #3DBB7A;
  --warning: #E0A93C;
  --error: #E0605B;
  --info: #6EA8FE;
  /* type */
  --display: 'Sora', 'IBM Plex Sans', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  /* layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 72px;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --shadow: 0 24px 60px rgba(0,0,0,.45);
  --shadow-sm: 0 10px 30px rgba(0,0,0,.35);
  /* motion */
  --ease: cubic-bezier(.16,1,.3,1);
  --t1: 160ms; --t2: 320ms; --t3: 600ms;
}
@media (min-width: 1800px) { :root { --wrap: 1360px; } }
@media (min-width: 2200px) { :root { --wrap: 1480px; } html { font-size: 17px; } }

/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.1rem, 4.1vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(207,161,76,.35); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 3000; background: var(--gold); color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 700; transition: top var(--t1); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type roles */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.eyebrow--plain::before { display: none; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--muted); line-height: 1.6; max-width: 62ch; }
.caption { font-size: .82rem; color: var(--dim); }
.metric { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.u-gold { color: var(--gold-2); }
.u-mark { background: linear-gradient(120deg, var(--gold-deep), var(--gold-2) 50%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 2. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding: clamp(40px, 4.5vw, 64px) 0; position: relative; } /* one standard rhythm for every page */
.sec--paper { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--paper .lede { color: var(--ink-2); }
.sec--paper .eyebrow { color: var(--gold-ink); } .sec--paper .eyebrow::before { background: var(--gold-ink); }
.sec--paper .caption { color: var(--ink-3); }
.sec--raised { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .lede { margin-inline: auto; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 3. Reveal & motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--t3) var(--ease), transform var(--t3) var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- 4. Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 10px; font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; border: 1px solid transparent; transition: background var(--t2), color var(--t2), border-color var(--t2), box-shadow var(--t2); }
.btn--primary { background: var(--gold); color: #0B0B0D; border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-2); border-color: var(--gold-2); box-shadow: 0 12px 34px rgba(207,161,76,.25); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--ghost { background: transparent; color: var(--gold-2); padding-inline: 8px; }
.btn--ghost:hover { color: var(--gold-3); }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--sm { padding: 10px 16px; font-size: .88rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--t2) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.sec--paper .btn--secondary { color: var(--ink); border-color: var(--paper-line); }
.sec--paper .btn--secondary:hover { border-color: var(--gold-ink); color: var(--gold-ink); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-2); }
.link svg { width: 15px; height: 15px; transition: transform var(--t2) var(--ease); }
.link:hover svg { transform: translateX(4px); }
.sec--paper .link { color: var(--gold-ink); }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } .btn-row { flex-direction: column; align-items: stretch; } .btn-row .btn { width: 100%; } }

/* ---------- 5. Badge / status / tooltip ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-gold); color: var(--gold-2); background: rgba(207,161,76,.08); white-space: nowrap; }
.badge--neutral { color: var(--muted); border-color: var(--line-2); background: rgba(255,255,255,.03); }
.badge--ok { color: var(--success); border-color: rgba(61,187,122,.35); background: rgba(61,187,122,.08); }
.badge--warn { color: var(--warning); border-color: rgba(224,169,60,.35); background: rgba(224,169,60,.08); }
.badge--err { color: var(--error); border-color: rgba(224,96,91,.35); background: rgba(224,96,91,.08); }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(61,187,122,.5); animation: pulse 2s infinite; }
.status--gold i { background: var(--gold-2); box-shadow: 0 0 0 0 rgba(207,161,76,.5); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tip { position: relative; }
.tip__box { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); width: max-content; max-width: 280px; padding: 10px 12px; border-radius: 10px; background: var(--elev); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); font-size: .82rem; line-height: 1.45; opacity: 0; visibility: hidden; transition: opacity var(--t1), transform var(--t1), visibility var(--t1); z-index: 20; pointer-events: none; }
.tip:hover .tip__box, .tip:focus-within .tip__box { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 6. Header / mega menu ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--nav-h); background: rgba(11,11,13,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: background var(--t2), border-color var(--t2); }
.hdr.is-scrolled { background: rgba(11,11,13,.92); border-color: var(--line); }
.hdr__inner { height: 100%; display: flex; align-items: center; gap: 18px; padding-inline: clamp(18px, 2.5vw, 40px); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.logo__img { height: 30px; width: auto; flex-shrink: 0; display: block; }
.logo__tag { font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: -.01em; color: var(--gold-2); padding-left: 11px; border-left: 1px solid var(--line-2); line-height: 1; } /* same cap height as the JIFFYAI wordmark (caps ≈ 60% of the 30px image; Sora caps ≈ .73em) */
.nav { display: flex; align-items: center; gap: 4px; margin-left: clamp(12px, 2.5vw, 40px); }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 8px; font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--text-2); white-space: nowrap; transition: color var(--t1), background var(--t1); }
.nav__link svg { width: 11px; height: 11px; transition: transform var(--t2) var(--ease); }
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.05); }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.mega { position: absolute; left: 0; top: calc(100% + 8px); min-width: 300px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease), visibility var(--t2); z-index: 30; }
.mega--wide { min-width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega--end { left: auto; right: -120px; }
.nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__group { padding: 6px; }
.mega__title { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 8px 10px 6px; }
.mega a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; transition: background var(--t1); }
.mega a:hover, .mega a:focus-visible { background: rgba(255,255,255,.05); }
.mega a .ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(207,161,76,.1); color: var(--gold-2); font-family: var(--mono); font-size: 11px; font-weight: 600; }
.mega a .ic svg { width: 18px; height: 18px; }
.mega a strong { display: block; font-size: 14.5px; font-family: var(--display); font-weight: 600; }
.mega a small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.hdr__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; margin-left: auto; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t2) var(--ease), opacity var(--t2); content: ""; }
.burger span { top: 21px; }
.burger span::before { top: -6px; left: 0; } .burger span::after { top: 6px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1240px) { .nav__link { font-size: 14.5px; padding: 10px 10px; } .hdr__cta .btn--secondary { display: none; } }
@media (max-width: 1024px) { .nav, .hdr__cta { display: none; } .burger { display: block; } }

/* mobile drawer */
.drawer { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 890; background: var(--bg); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease), visibility var(--t2); padding: 12px clamp(18px, 5vw, 32px) 120px; }
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer__group { border-bottom: 1px solid var(--line); padding: 8px 0; }
.drawer__title { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-family: var(--display); font-weight: 600; font-size: 1.2rem; text-align: left; min-height: 52px; }
.drawer__title svg { width: 16px; height: 16px; transition: transform var(--t2); }
.drawer__title[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer__list { display: none; padding: 0 0 10px; }
.drawer__title[aria-expanded="true"] + .drawer__list { display: block; }
.drawer__list a, .drawer__link { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 48px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-size: 1.02rem; }
.drawer__list a small { display: block; margin-top: 2px; color: var(--dim); font-size: .82rem; }
.drawer__list a:hover, .drawer__link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.drawer__cta { position: fixed; z-index: 891; left: 0; right: 0; bottom: 0; padding: 12px clamp(18px, 5vw, 32px) max(12px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg) 30%); display: none; gap: 10px; }
.drawer.is-open ~ .drawer__cta { display: flex; }
.drawer__cta .btn { flex: 1; }
body.no-scroll { overflow: hidden; }

/* ---------- 7. Hero + command center ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(48px, 8vh, 96px)) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }
.hero__glow { position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(207,161,76,.16), rgba(207,161,76,.04) 40%, transparent 68%); right: -12%; top: -20%; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy h1 { margin: 18px 0 20px; max-width: 14ch; }
.hero__copy .lede { margin-bottom: 30px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: .88rem; color: var(--muted); }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 15px; height: 15px; color: var(--gold-2); }

/* command center */
.cc { position: relative; border-radius: var(--r-xl); background: linear-gradient(170deg, #17171C, #0F0F13 70%); border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.03) inset; overflow: hidden; }
.cc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }
.cc__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cc__bar b { font-family: var(--display); font-size: 13.5px; }
.cc__bar small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.cc__kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.cc__kpis div { padding: 12px 14px; border-right: 1px solid var(--line); }
.cc__kpis div:last-child { border-right: 0; }
.cc__kpis b { display: block; font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); color: var(--gold-2); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cc__kpis small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cc__lbl { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.cc__lbl b { color: var(--gold-2); }
/* pipeline */
.pipe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 4px 16px 12px; position: relative; }
.pipe__step { position: relative; padding: 10px 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); text-align: center; transition: border-color var(--t2), background var(--t2); }
.pipe__step span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pipe__step b { display: block; font-family: var(--display); font-size: 12.5px; margin-top: 3px; color: var(--text-2); }
.pipe__step.is-active { border-color: var(--line-gold); background: rgba(207,161,76,.08); box-shadow: 0 0 0 1px rgba(207,161,76,.25), 0 0 26px rgba(207,161,76,.12); }
.pipe__step.is-active b { color: var(--gold-2); }
.pipe__step.is-done b { color: var(--text); }
.pipe__step.is-done::after { content: ""; position: absolute; right: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
/* feed */
.feed { padding: 0 16px 8px; display: grid; gap: 6px; }
.feed__row { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 12.5px; animation: rowIn var(--t3) var(--ease) both; }
.feed__row .t { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.feed__row .n { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__row .n em { font-style: normal; color: var(--dim); font-family: var(--mono); font-size: 10.5px; margin-left: 6px; }
.feed__row .s { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.s--auto { color: var(--success); background: rgba(61,187,122,.1); }
.s--erp { color: var(--gold-2); background: rgba(207,161,76,.12); }
.s--rev { color: var(--warning); background: rgba(224,169,60,.12); }
.s--proc { color: var(--info); background: rgba(110,168,254,.12); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* agents strip */
.cc__agents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 16px 14px; }
.cc__agent { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.cc__agent b { display: block; font-size: 11.5px; font-family: var(--display); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc__agent small { display: block; font-family: var(--mono); font-size: 10px; color: var(--dim); margin: 3px 0 6px; }
.cc__agent i { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.cc__agent i::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); transition: width 1.2s var(--ease); }
.cc__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--dim); background: rgba(255,255,255,.015); }
.cc__foot b { color: var(--gold-2); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero__copy h1 { max-width: none; }
  .pipe { grid-template-columns: repeat(3, 1fr); }
  .cc__agents { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .cc__kpis { grid-template-columns: 1fr 1fr 1fr; } .cc__kpis div { padding: 10px 8px; } .feed__row { grid-template-columns: 1fr auto; } .feed__row .t { display: none; } }

/* ---------- 8. Trust bar ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.trust__cell { padding: 22px 18px; border-right: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.trust__cell > svg { margin-top: 1px; }
.trust__cell:last-child { border-right: 0; }
.trust__cell svg { width: 22px; height: 22px; color: var(--gold-2); }
.trust__cell b { display: block; font-family: var(--display); font-size: 1rem; }
.trust__cell small { color: var(--muted); font-size: .84rem; }
.logos { padding: 18px 0 22px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__track { display: flex; align-items: center; gap: clamp(44px, 6vw, 88px); width: max-content; animation: marquee 44s linear infinite; }
/* customer logos rendered as white monochrome marks on the dark band; the Volvo file has an opaque light background, so it is inverted and blended instead */
.logos__track img { display: block; width: auto; flex-shrink: 0; opacity: .72; filter: brightness(0) invert(1); transition: opacity var(--t2); }
.logos__track img[src*="volvo"] { filter: grayscale(1) invert(1) contrast(1.35); mix-blend-mode: lighten; }
.logos__track img:hover { opacity: 1; }
.logos__track span { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--dim); white-space: nowrap; }
.logos__track span em { font-style: normal; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-left: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logos:hover .logos__track { animation-play-state: paused; }
@media (max-width: 760px) { .trust__grid { grid-template-columns: 1fr; } .trust__cell { border-right: 0 !important; border-bottom: 1px solid var(--line); } }

/* ---------- 9. Outcomes dashboard ---------- */
.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.dash__cell { background: var(--surface); padding: clamp(22px, 2.6vw, 34px); position: relative; }
.dash__cell .metric { font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--gold-2); }
.dash__cell .lbl { margin-top: 8px; font-size: .95rem; color: var(--text-2); }
.dash__cell .sub { margin-top: 4px; font-size: .8rem; color: var(--dim); font-family: var(--mono); }
.spark { position: absolute; right: 18px; top: 18px; width: 84px; height: 34px; color: var(--gold); opacity: .8; }
.spark path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.6s var(--ease); }
.spark rect { fill: currentColor; opacity: .55; transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease); }
.is-in .spark path { stroke-dashoffset: 0; }
.is-in .spark rect { transform: scaleY(1); }
@media (max-width: 900px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dash { grid-template-columns: 1fr; } }

/* ---------- 10. Architecture (CFO's office) ---------- */
.arch { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.org { position: relative; display: grid; gap: 14px; justify-items: center; }
.org__node { position: relative; width: 100%; max-width: 320px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); text-align: center; transition: border-color var(--t2), background var(--t2), box-shadow var(--t2); }
.org__node b { display: block; font-family: var(--display); font-size: 1rem; }
.org__node small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 2px; }
.org__node--cfo { background: linear-gradient(160deg, rgba(207,161,76,.22), var(--surface) 70%); color: var(--text); border: 1px solid var(--gold); max-width: 260px; box-shadow: 0 0 0 4px rgba(207,161,76,.08); } /* dark card, gold outline: the subtitle stays readable */
.org__node--cfo b { color: var(--gold-2); }
.org__node--cfo small { color: var(--text-2); }
.org__node--orch { border-color: var(--line-gold); background: linear-gradient(160deg, rgba(207,161,76,.16), var(--surface) 60%); max-width: 300px; }
.org__link { width: 2px; height: 22px; background: var(--line-2); }
.org__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; position: relative; padding-top: 22px; }
.org__row::before { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 0; height: 2px; background: var(--line-2); }
.org__row::after { content: ""; position: absolute; left: 50%; top: -22px; width: 2px; height: 22px; background: var(--line-2); transform: translateX(-1px); }
.org__col { display: grid; gap: 8px; justify-items: center; position: relative; }
.org__col::before { content: ""; width: 2px; height: 22px; background: var(--line-2); margin-top: -22px; }
.org__area { width: 100%; padding: 14px 12px; text-align: left; cursor: pointer; }
.org__area .badge { margin-bottom: 8px; }
.org__area ul { margin-top: 8px; display: grid; gap: 3px; }
.org__area li { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.org__area li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.org__area:hover, .org__area.is-active, .org__area:focus-visible { border-color: var(--gold); background: rgba(207,161,76,.08); box-shadow: 0 0 0 1px rgba(207,161,76,.3); }
.org__bottom { width: 100%; display: grid; justify-items: center; }
.org__bottom::before { content: ""; width: 60%; height: 2px; background: var(--line-2); }
.org__bottom .org__link { height: 22px; }
.org__node--an { max-width: 360px; border-style: dashed; }
.arch__panel { position: sticky; top: calc(var(--nav-h) + 24px); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); padding: clamp(22px, 2.6vw, 32px); min-height: 380px; }
.arch__panel h3 { margin-bottom: 6px; }
.arch__panel .lede { font-size: 1rem; margin-bottom: 18px; }
.arch__kv { display: grid; gap: 12px; }
.arch__kv div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; }
.arch__kv dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.arch__kv dd { margin: 0; color: var(--text-2); }
.arch__kv dd .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-2); }
.arch__panel .metric { font-size: 2rem; color: var(--gold-2); }
@media (max-width: 1024px) { .arch { grid-template-columns: minmax(0, 1fr); } .arch__panel { position: static; min-height: 0; } }
@media (max-width: 640px) { .org__row { grid-template-columns: 1fr; padding-top: 0; } .org__row::before, .org__row::after, .org__col::before { display: none; } .org__col { margin-top: 0; } .arch__kv div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- 11. HyperApps ---------- */
.hx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.hx__card { position: relative; display: grid; grid-template-rows: auto 1fr auto; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 2.6vw, 32px); transition: border-color var(--t2), box-shadow var(--t2), background var(--t2); overflow: hidden; }
.hx__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(207,161,76,0) inset; transition: box-shadow var(--t2); pointer-events: none; }
.hx__card:hover, .hx__card:focus-within { border-color: var(--line-gold); background: var(--surface-2); }
.hx__card:hover::after, .hx__card:focus-within::after { box-shadow: 0 0 0 1px rgba(207,161,76,.35) inset; }
.hx__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.hx__card h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); margin: 8px 0 8px; }
.hx__card > p { color: var(--muted); font-size: .98rem; max-width: 46ch; }
.hx__metrics { display: flex; gap: 22px; margin: 18px 0 16px; }
.hx__metrics div b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--gold-2); letter-spacing: -.03em; line-height: 1; }
.hx__metrics div small { color: var(--dim); font-size: .8rem; }
.hx__caps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 18px; }
.hx__caps li { font-size: .88rem; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.hx__caps svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.hx__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t3) var(--ease); }
.hx__more > div { overflow: hidden; }
.hx__card:hover .hx__more, .hx__card:focus-within .hx__more { grid-template-rows: 1fr; }
.mini { border-radius: 12px; border: 1px solid var(--line); background: #0F0F13; padding: 12px; margin-bottom: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mini__row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mini__row:last-child { border-bottom: 0; }
.mini__row b { color: var(--text); font-weight: 500; }
.mini__row .s { padding: 2px 7px; border-radius: 5px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.mini__bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 8px; }
.mini__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); transition: width 1.4s var(--ease); }
.hx__card:hover .mini__bar i, .hx__card:focus-within .mini__bar i, .is-in .mini__bar i { width: var(--p, 90%); }
.hx__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hx__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(207,161,76,.1); color: var(--gold-2); border: 1px solid var(--line-gold); }
.hx__ico svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .hx { grid-template-columns: minmax(0, 1fr); } .hx__more { grid-template-rows: 1fr; } }
@media (max-width: 480px) { .hx__caps { grid-template-columns: 1fr; } }

/* ---------- 12. Product demonstration (simulation) ---------- */
.sim { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.sim__steps { border-right: 1px solid var(--line); padding: 20px 14px; display: grid; gap: 4px; align-content: start; background: #121216; }
.sim__step { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 10px 10px; border-radius: 10px; text-align: left; color: var(--muted); transition: background var(--t1), color var(--t1); }
.sim__step i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); }
.sim__step b { display: block; font-family: var(--display); font-weight: 600; font-size: .95rem; }
.sim__step small { display: block; font-size: .78rem; color: var(--dim); }
.sim__step.is-active { color: var(--text); background: rgba(207,161,76,.08); }
.sim__step.is-active i { border-color: var(--gold); color: var(--gold-2); background: rgba(207,161,76,.12); }
.sim__step.is-done i { border-color: var(--success); color: var(--success); }
.sim__stage { padding: clamp(20px, 3vw, 32px); min-height: 420px; position: relative; }
.sim__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.sim__progress { height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 20px; }
.sim__progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s linear; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.doc__paper { border-radius: 12px; background: var(--paper); color: var(--ink); padding: 18px; font-size: 12.5px; box-shadow: var(--shadow-sm); position: relative; min-height: 250px; }
.doc__paper h5 { margin: 0 0 4px; font-family: var(--display); font-size: 14px; }
.doc__paper .row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.14); }
.doc__paper .row:last-child { border-bottom: 0; }
.doc__paper .hl { background: rgba(207,161,76,.28); border-radius: 3px; padding: 0 3px; transition: background var(--t2); }
.doc__paper .scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); top: 0; opacity: 0; }
.doc__paper.is-scanning .scan { opacity: 1; animation: scan 1.6s var(--ease) infinite; }
@keyframes scan { from { top: 8%; } to { top: 92%; } }
.doc__out { display: grid; gap: 8px; align-content: start; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.025); font-size: 12.5px; opacity: 0; transform: translateY(6px); transition: opacity var(--t2), transform var(--t2); }
.kv.is-on { opacity: 1; transform: none; }
.kv span { color: var(--dim); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.kv b { color: var(--text); font-weight: 500; }
.kv--ok b { color: var(--success); }
.kv--gold b { color: var(--gold-2); }
.conf { margin-top: 6px; }
.conf__bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.conf__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); transition: width 1.2s var(--ease); }
.decision { margin-top: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(61,187,122,.35); background: rgba(61,187,122,.08); display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; opacity: 0; transform: scale(.98); transition: opacity var(--t2), transform var(--t2); }
.decision.is-on { opacity: 1; transform: none; }
.decision svg { width: 26px; height: 26px; color: var(--success); }
.decision b { display: block; font-family: var(--display); }
.decision small { color: var(--muted); font-size: .84rem; }
@media (max-width: 860px) { .sim { grid-template-columns: minmax(0, 1fr); } .sim__steps { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); } .sim__step small { display: none; } .doc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .sim__steps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 13. Platform layers ---------- */
.layers { display: grid; gap: 0; position: relative; }
.layer { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); }
.layer + .layer { margin-top: 44px; }
.layer + .layer::before { content: ""; position: absolute; left: 50%; top: -44px; height: 44px; width: 2px; background: linear-gradient(180deg, var(--line-2), var(--gold)); }
.layer + .layer::after { content: ""; position: absolute; left: 50%; top: -12px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); transform: translateX(-3px); box-shadow: 0 0 12px var(--gold); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { top: -44px; opacity: 0; } 20% { opacity: 1; } 100% { top: -10px; opacity: 0; } }
.layer--core { border-color: var(--line-gold); background: linear-gradient(160deg, rgba(207,161,76,.12), var(--surface) 55%); }
.layer__lbl small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.layer__lbl b { display: block; font-family: var(--display); font-size: 1.1rem; }
.layer__lbl p { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.layer__items { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.node { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: .9rem; font-weight: 500; transition: border-color var(--t1), background var(--t1), color var(--t1); cursor: default; }
.node:hover, .node:focus-visible { border-color: var(--gold); color: var(--gold-2); background: rgba(207,161,76,.08); }
@media (max-width: 760px) { .layer { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 14. AI agents ---------- */
.workforce { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.wf__orch { display: grid; justify-items: center; margin-bottom: 8px; }
.wf__orch .org__node { max-width: 320px; }
.wf__areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wf__area { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 14px; }
.wf__area h4 { font-size: .95rem; margin-bottom: 2px; }
.wf__area small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.agent { width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; padding: 8px; border-radius: 9px; text-align: left; border: 1px solid transparent; transition: background var(--t1), border-color var(--t1); }
.agent i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(207,161,76,.1); color: var(--gold-2); font-family: var(--mono); font-size: 10px; }
.agent b { font-family: var(--display); font-weight: 600; font-size: .86rem; line-height: 1.2; }
.agent:hover, .agent.is-active, .agent:focus-visible { background: rgba(207,161,76,.08); border-color: var(--line-gold); }
.wf__panel { position: sticky; top: calc(var(--nav-h) + 24px); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); padding: 24px; }
.wf__panel .badge { margin-bottom: 12px; }
.wf__panel h3 { margin-bottom: 8px; }
.wf__panel p { color: var(--muted); font-size: .93rem; }
.wf__panel dl { margin: 16px 0 0; display: grid; gap: 10px; }
.wf__panel dl div { border-top: 1px solid var(--line); padding-top: 10px; }
.wf__panel dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.wf__panel dd { margin: 0; font-size: .9rem; color: var(--text-2); }
.wf__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.wf__stats div { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.wf__stats b { display: block; font-family: var(--display); color: var(--gold-2); font-size: 1.2rem; letter-spacing: -.02em; }
.wf__stats small { color: var(--dim); font-size: .76rem; }
.wf__log { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.wf__log li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: .84rem; color: var(--text-2); }
.wf__log li span { font-family: var(--mono); font-size: 10.5px; color: var(--dim); padding-top: 2px; }
.wf__log li.is-esc { color: var(--warning); }
@media (max-width: 1100px) { .wf__areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .workforce { grid-template-columns: minmax(0, 1fr); } .wf__panel { position: static; } }
@media (max-width: 520px) { .wf__areas { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 15. Governed autonomy ---------- */
.gov { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.gov__panel { border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); padding: clamp(22px, 2.8vw, 34px); }
.gov__val { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 4.6vw, 3.8rem); letter-spacing: -.04em; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.gov__val small { font-size: .4em; color: var(--muted); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); outline: none; margin: 18px 0 8px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--text); border: 3px solid var(--gold); box-shadow: 0 6px 18px rgba(0,0,0,.5); cursor: pointer; }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--text); border: 3px solid var(--gold); cursor: pointer; }
.range:focus-visible { outline-offset: 8px; }
.range__ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.gov__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.gov__out div { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.gov__out b { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--gold-2); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gov__out small { color: var(--muted); font-size: .82rem; }
.gov__note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-gold); font-size: .86rem; color: var(--muted); }
.gov__note b { color: var(--gold-2); display: block; font-size: .8rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.flow { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; margin-top: 18px; }
.flow i { aspect-ratio: 1; border-radius: 3px; background: var(--success); opacity: .85; transition: background var(--t2), opacity var(--t2); }
.flow i.h { background: var(--warning); }
.flow__legend { display: flex; gap: 18px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.flow__legend span { display: inline-flex; align-items: center; gap: 6px; }
.flow__legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--success); }
.flow__legend i.h { background: var(--warning); }
.loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.loop__step { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.loop__step i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-family: var(--mono); font-size: 10.5px; background: rgba(207,161,76,.12); color: var(--gold-2); margin-bottom: 10px; }
.loop__step h4 { font-size: .98rem; margin-bottom: 4px; }
.loop__step p { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .gov { grid-template-columns: minmax(0, 1fr); } .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .loop { grid-template-columns: minmax(0, 1fr); } .flow { grid-template-columns: repeat(10, 1fr); } }

/* ---------- 16. Customer proof ---------- */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.proof__card { display: grid; grid-template-rows: auto 1fr auto; border-radius: var(--r-xl); border: 1px solid var(--paper-line); background: var(--card); color: var(--ink); overflow: hidden; transition: border-color var(--t2), box-shadow var(--t2); }
.proof__card:hover { border-color: var(--gold-ink); box-shadow: 0 18px 40px rgba(20,20,20,.08); }
.proof__top { padding: 22px 24px 18px; background: linear-gradient(150deg, #24242E, #17171C); color: var(--text); border-bottom: 1px solid var(--line); }
.proof__top .badge { margin-bottom: 14px; }
.proof__top .metric { font-size: clamp(2.2rem, 3vw, 2.8rem); color: var(--gold-2); }
.proof__top p { color: rgba(255,255,255,.65); font-size: .88rem; margin-top: 4px; }
.proof__body { padding: 20px 24px; }
.proof__body dl { display: grid; gap: 8px; margin: 0 0 14px; }
.proof__body dl div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; font-size: .86rem; }
.proof__body dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.proof__body dd { margin: 0; color: var(--ink-2); }
.proof__body h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; }
.proof__body > p { font-size: .9rem; color: var(--ink-2); }
.proof__foot { padding: 0 24px 22px; }
@media (max-width: 1024px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .proof { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 17. ROI calculator ---------- */
.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.roi__panel { border-radius: var(--r-xl); border: 1px solid var(--paper-line); background: var(--card); color: var(--ink); padding: clamp(22px, 2.8vw, 34px); }
.roi__panel h3 { margin-bottom: 18px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 12px; background: var(--paper-2); margin-bottom: 22px; }
.seg button { padding: 10px 8px; border-radius: 9px; font-family: var(--display); font-weight: 600; font-size: .88rem; color: var(--ink-2); transition: background var(--t1), color var(--t1); min-height: 44px; }
.seg button.is-active { background: var(--gold); color: #141414; }
.field { margin-bottom: 20px; }
.field__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.field__head label { font-weight: 600; font-size: .92rem; }
.field__head output { font-family: var(--mono); font-size: .9rem; color: var(--gold-ink); font-weight: 600; }
.roi__panel .range { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); margin: 6px 0 4px; }
.roi__panel .range::-webkit-slider-thumb { background: var(--gold-2); border-color: var(--gold-2); }
.roi__panel .range__ends { color: var(--ink-3); }
.roi__out { border-radius: var(--r-xl); background: linear-gradient(160deg, #24242E, #17171C); color: var(--text); padding: clamp(22px, 2.8vw, 34px); border: 1px solid var(--line-2); position: sticky; top: calc(var(--nav-h) + 24px); }
.roi__big { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.6rem); letter-spacing: -.04em; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.roi__out .caption { color: rgba(255,255,255,.55); margin: 6px 0 20px; }
.roi__rows { display: grid; gap: 10px; }
.roi__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: .9rem; }
.roi__row b { font-family: var(--display); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.chart { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; height: 120px; margin: 22px 0 6px; padding: 0 4px; border-bottom: 1px solid var(--line-2); }
.chart div { position: relative; display: grid; align-items: end; height: 100%; }
.chart i { display: block; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); height: var(--h, 10%); transition: height .8s var(--ease); }
.chart span { position: absolute; left: 0; right: 0; bottom: calc(var(--h, 10%) + 6px); text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--text); }
.chart__lbl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); text-align: center; margin-bottom: 18px; }
.roi__note { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 14px; }
@media (max-width: 900px) { .roi { grid-template-columns: minmax(0, 1fr); } .roi__out { position: static; } }

/* ---------- 18. Timeline ---------- */
.tl { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 34px; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line-2); }
.tl::after { content: ""; position: absolute; left: 0; top: 10px; height: 2px; width: var(--p, 0%); background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); transition: width 1.6s var(--ease); }
.tl__item { position: relative; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.tl__item::before { content: ""; position: absolute; left: 18px; top: -30px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: border-color var(--t2), background var(--t2); }
.tl__item.is-lit::before { border-color: var(--gold-2); background: var(--gold-2); box-shadow: 0 0 12px var(--gold); }
.tl__item small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.tl__item h4 { font-size: 1rem; margin-bottom: 6px; }
.tl__item p { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tl { grid-template-columns: minmax(0, 1fr); padding-top: 0; } .tl::before, .tl::after, .tl__item::before { display: none; } }

/* ---------- 19. Testimonials ---------- */
.tst { position: relative; }
.tst__viewport { overflow: hidden; }
.tst__track { display: flex; transition: transform var(--t3) var(--ease); }
.tst__slide { flex: 0 0 100%; padding: 4px; }
.tst__card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(20px, 3vw, 40px); border-radius: var(--r-xl); border: 1px solid var(--paper-line); background: var(--card); color: var(--ink); padding: clamp(24px, 3vw, 44px); }
.tst__quote { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.35; letter-spacing: -.02em; margin: 0; }
.tst__quote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--gold-ink); margin-bottom: 14px; }
.tst__who { margin-top: 18px; font-size: .95rem; }
.tst__who b { display: block; font-family: var(--display); }
.tst__who span { color: var(--ink-3); }
.tst__side { border-left: 1px solid var(--paper-line); padding-left: clamp(16px, 2vw, 32px); display: grid; align-content: center; gap: 8px; }
.tst__side .metric { font-size: 2.6rem; color: var(--gold-ink); }
.tst__side p { color: var(--ink-2); font-size: .9rem; }
.tst__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.tst__dots { display: flex; gap: 8px; }
.tst__dots button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.tst__dots button i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-line); transition: width var(--t2), background var(--t2), border-radius var(--t2); }
.tst__dots button.is-active i { width: 26px; border-radius: 999px; background: var(--gold-ink); }
.tst__arrows { display: flex; gap: 8px; }
.tst__arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--paper-line); display: grid; place-items: center; color: var(--ink); transition: background var(--t1), border-color var(--t1), color var(--t1); }
.tst__arrows button:hover { background: var(--gold); color: #141414; border-color: var(--gold); }
.tst__arrows svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .tst__card { grid-template-columns: minmax(0, 1fr); } .tst__side { border-left: 0; border-top: 1px solid var(--paper-line); padding: 16px 0 0; } }

/* ---------- 20. Accordion / tabs / compare ---------- */
.acc { display: grid; gap: 10px; }
.acc__item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-align: left; font-family: var(--display); font-weight: 600; font-size: 1.02rem; min-height: 56px; }
.acc__btn .num { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.acc__btn svg { width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; transition: transform var(--t2) var(--ease); }
.acc__btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t2) var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 20px 18px 45px; color: var(--muted); font-size: .95rem; }
.acc__btn[aria-expanded="true"] + .acc__panel { grid-template-rows: 1fr; }
.sec--paper .acc__item { background: var(--card); border-color: var(--paper-line); }
.sec--paper .acc__panel p { color: var(--ink-2); }

/* ---------- 21. Generic cards & lists ---------- */
.card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 2.4vw, 28px); transition: border-color var(--t2); }
.card:hover { border-color: var(--line-2); }
.card__ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(207,161,76,.1); color: var(--gold-2); margin-bottom: 14px; }
.card__ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .92rem; }
.sec--paper .card { background: var(--card); border-color: var(--paper-line); }
.sec--paper .card p { color: var(--ink-2); }
.sec--paper .card__ico { background: rgba(207,161,76,.14); color: var(--gold-ink); }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.checks svg { width: 18px; height: 18px; color: var(--gold-2); flex-shrink: 0; margin-top: 3px; }
.sec--paper .checks li { color: var(--ink-2); } .sec--paper .checks svg { color: var(--gold-ink); }
.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.stat-band div { background: var(--surface); padding: 22px; }
.stat-band .metric { font-size: 2.2rem; color: var(--gold-2); }
.stat-band small { display: block; color: var(--muted); margin-top: 6px; font-size: .86rem; }
@media (max-width: 900px) { .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.breadcrumb > span { padding: 6px 0; }
.breadcrumb a { color: var(--muted); padding: 6px 0; }

/* imported articles + privacy policy */
.prose { max-width: 780px; color: var(--text-2); font-size: 1.04rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2em; color: var(--text); }
.prose h3 { font-size: 1.18rem; margin-top: 1.7em; color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose ul { display: grid; gap: .5em; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prose__table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg, 14px); }
.prose__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.prose__table th, .prose__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose__table th { font-family: var(--display); font-weight: 600; color: var(--text); background: var(--surface); }
.prose__table tr:last-child td { border-bottom: 0; } .breadcrumb a:hover { color: var(--gold-2); }
.page-hero { padding-top: calc(var(--nav-h) + clamp(28px, 4vw, 48px)); }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 20ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--paper-line); font-weight: 600; font-size: .88rem; color: var(--ink-2); background: var(--card); min-height: 40px; transition: background var(--t1), color var(--t1), border-color var(--t1); }
.filters button.is-active { background: var(--gold); color: #141414; border-color: var(--gold); }
.is-hidden { display: none !important; }

/* ---------- 22. Final CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta__glow { position: absolute; left: 50%; top: 50%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(207,161,76,.22), rgba(207,161,76,.05) 40%, transparent 68%); pointer-events: none; }
.cta .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.cta__list { display: grid; gap: 12px; margin: 8px 0 26px; }
.cta__list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.cta__list i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(207,161,76,.12); color: var(--gold-2); font-family: var(--mono); font-size: 11px; }
.cta__list b { display: block; font-family: var(--display); font-size: .95rem; }
.cta__list small { color: var(--muted); font-size: .82rem; }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 23. Footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(48px, 6vw, 80px) 0 28px; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-bottom: 40px; }
.ftr__about { color: var(--muted); font-size: .9rem; max-width: 34ch; margin-top: 14px; }
.ftr h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; font-weight: 500; }
.ftr li { margin-bottom: 8px; }
.ftr li a { color: var(--text-2); font-size: .92rem; display: inline-block; padding: 3px 0; transition: color var(--t1); }
.ftr li a:hover { color: var(--gold-2); }
.ftr__bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .82rem; color: var(--dim); }
.ftr__bottom a { color: var(--muted); padding: 4px 0; display: inline-block; }
.ftr__bottom a:hover { color: var(--gold-2); }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.ftr__certs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
@media (max-width: 1024px) { .ftr__grid { grid-template-columns: 1fr 1fr 1fr; } .ftr__grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 24. Forms ---------- */
.form { border-radius: var(--r-xl); border: 1px solid var(--paper-line); background: var(--card); color: var(--ink); padding: clamp(22px, 3vw, 36px); }
.form__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 26px; }
.form__steps span { padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.form__steps span i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--paper-line); font-style: normal; font-size: 10px; }
.form__steps span.is-active { background: var(--gold); color: #141414; }
.form__steps span.is-active i { background: var(--gold); border-color: var(--gold); color: #000; }
.form__steps span.is-done i { background: var(--success); border-color: var(--success); color: #fff; }
.form__panel { display: none; }
.form__panel.is-active { display: block; animation: rowIn var(--t3) var(--ease) both; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 6px; }
.fld--full { grid-column: 1 / -1; }
.fld label { font-weight: 600; font-size: .9rem; }
.fld label .req { color: var(--error); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--paper-line); background: var(--card); color: var(--ink); font: inherit; font-size: .95rem; min-height: 48px; transition: border-color var(--t1), box-shadow var(--t1); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(158,123,25,.18); }
.fld.is-invalid input, .fld.is-invalid select { border-color: var(--error); }
.fld__err { display: none; font-size: .8rem; color: var(--error); }
.fld.is-invalid .fld__err { display: block; }
.fld__hint { font-size: .8rem; color: var(--ink-3); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--paper-line); cursor: pointer; font-weight: 500; font-size: .92rem; min-height: 48px; }
.choices input { width: 18px; height: 18px; accent-color: var(--gold-ink); }
.choices label:has(input:checked) { border-color: var(--gold-ink); background: rgba(158,123,25,.08); }
.form__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.form__done { text-align: center; padding: 30px 10px; }
.form__done svg { width: 48px; height: 48px; color: var(--success); margin: 0 auto 14px; }
.form__aside { display: grid; gap: 14px; }
.form__aside .card { padding: 18px 20px; }
/* contact page on phones: heading → form → what you get, so the form is reachable without scrolling past the cards */
@media (max-width: 900px) { .split--contact > div:first-child { display: contents; } .split--contact .sec-head { order: 0; margin-bottom: 0 !important; } .split--contact .form { order: 1; } .split--contact .form__aside { order: 2; } }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } .choices { grid-template-columns: 1fr; } .form__steps span { font-size: 9.5px; padding: 8px 8px; } }

/* ---------- 25. Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity var(--t2), visibility var(--t2); }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { width: min(560px, 100%); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); padding: 28px; position: relative; max-height: 90vh; overflow: auto; }
.modal__close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.modal__close:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* ---------- 26. 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: var(--nav-h); }
.nf .metric { font-size: clamp(5rem, 14vw, 10rem); color: var(--gold-2); opacity: .9; }

/* ---------- 27. Loading / error ---------- */
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #000; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(224,96,91,.4); background: rgba(224,96,91,.08); color: var(--error); font-size: .88rem; }

/* ---------- 28. Touch targets on phones ---------- */
@media (max-width: 767px) {
  .link, .ftr li a, .ftr__bottom a, .breadcrumb a { min-height: 40px; display: inline-flex; align-items: center; }
  .tst__dots button { width: 40px; height: 40px; }
  .btn--sm { min-height: 42px; }
  .filters button { min-height: 44px; }
}

/* ---------- 29. cross-link components (final polish) ---------- */
.card--link { display: flex; flex-direction: column; color: inherit; transition: border-color var(--t2), background var(--t2); }
.card--link:hover, .card--link:focus-visible { border-color: var(--line-gold); background: var(--surface-2); }
.card--link .link { margin-top: auto; padding-top: 14px; }
.card--link .badge { align-self: flex-start; }
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 16px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.steps li i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-family: var(--mono); font-size: 10.5px; font-style: normal; background: rgba(207,161,76,.12); color: var(--gold-2); margin-bottom: 10px; }
.steps li b { display: block; font-family: var(--display); font-size: .95rem; margin-bottom: 4px; }
.steps li small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.cta--slim .wrap { grid-template-columns: minmax(0, 1fr); max-width: calc(860px + var(--gutter) * 2); text-align: center; }
.cta--slim .eyebrow, .cta--slim .btn-row { justify-content: center; }
.cta--slim .lede { margin-inline: auto; }

/* ---------- 30. responsive QA fixes (final polish) ---------- */
/* header: seven primary items — tighten from 1366 down, drawer from 1200 down */
@media (max-width: 1400px) { .nav { margin-left: 16px; } .nav__link { font-size: 14px; padding: 9px 7px; } .hdr__cta { gap: 8px; } .hdr__cta .btn--secondary { display: inline-flex; } .hdr__inner { gap: 12px; } } /* header CTA stays visible down to the burger breakpoint */
@media (max-width: 1200px) { .nav, .hdr__cta { display: none; } .burger { display: block; } }
/* touch targets on phones and tablets */
@media (max-width: 1024px) {
  .link, .ftr li a, .ftr__bottom a { min-height: 40px; display: inline-flex; align-items: center; }
  .breadcrumb a { min-height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 6px; margin: 0 -2px; }
  .range { height: 28px; background: transparent; margin: 10px 0 6px; }
  .range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); }
  .range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); }
  .range::-webkit-slider-thumb { margin-top: -10px; }
}
/* comparison table: scroll inside its own container, with a visible hint */
/* hero badge on the narrowest phones */
@media (max-width: 360px) { .hero .badge, .page-hero .badge { white-space: normal; text-align: center; letter-spacing: .1em; } }
.cc__agents { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc__agent { min-width: 0; }
.cc__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .range { height: 32px; } .range::-webkit-slider-thumb { margin-top: -10px; } }
@media (max-width: 1024px) { .range { height: 36px; } .range::-webkit-slider-thumb { margin-top: -10px; } }
/* tooltips become a bottom sheet on small screens so they never leave the viewport */
@media (max-width: 900px) { .tip__box { position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; width: auto; max-width: none; transform: none; z-index: 60; } }
@media (max-width: 900px) { .tip:hover .tip__box, .tip:focus-within .tip__box { transform: none; } }


/* ---------- 31. balanced two-pane consoles (workforce, org chart) ---------- */
/* Both panes share one bordered surface and stretch to the same height; the left directory
   distributes its cards vertically, the right panel lays its facts out in columns so it stays short. */
.workforce { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 0; align-items: stretch; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.workforce > div:first-child { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 2.2vw, 26px); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); border-right: 1px solid var(--line); }
.wf__orch { justify-items: stretch; margin: 0; }
.wf__orch .org__node { max-width: none; display: flex; align-items: center; gap: 12px; text-align: left; }
.wf__orch .org__node small { margin: 0; }
.wf__areas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; flex: 1; }
.wf__area { display: flex; flex-direction: column; background: rgba(255,255,255,.02); }
.wf__area .agent { margin-top: 2px; }
.agent { grid-template-columns: 28px 1fr 14px; }
.agent::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; justify-self: end; transition: background var(--t1); }
.agent.is-active::after { background: var(--gold); box-shadow: 0 0 0 4px rgba(207,161,76,.18); }
.wf__panel { position: relative; top: auto; border: 0; border-radius: 0; background: var(--surface-2); padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.wf__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wf__head .badge { margin: 0; }
.wf__head .wf__id { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.wf__panel h3 { margin: 0; font-size: 1.35rem; }
.wf__panel > p { margin: 0; }
.wf__panel dl { margin: 0; display: grid; gap: 10px; }
.wf__io { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wf__io div, .wf__rules div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,.025); }
.wf__rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf__rules .is-esc { border-color: rgba(224,169,60,.35); background: rgba(224,169,60,.06); }
.wf__rules .is-esc dt { color: var(--warning); }
.wf__panel dd { font-size: .86rem; line-height: 1.45; }
.wf__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.wf__stats div { padding: 10px 12px; }
.wf__log { margin-top: auto; padding-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.wf__log li { font-size: .8rem; }
@media (max-width: 1100px) { .wf__io { grid-template-columns: minmax(0, 1fr); } .wf__log { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .workforce { grid-template-columns: minmax(0, 1fr); }
  .workforce > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .wf__areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf__panel { position: relative; }
}
@media (max-width: 560px) { .wf__areas { grid-template-columns: minmax(0, 1fr); } .wf__rules { grid-template-columns: minmax(0, 1fr); } .wf__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* single-area variant (solution pages): agents as a tab row above a full-width panel */
.workforce--single { grid-template-columns: minmax(0, 1fr); }
.workforce--single > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px clamp(18px, 2.2vw, 26px); }
.workforce--single .wf__areas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.workforce--single .wf__area { flex: 1 1 auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; border: 0; background: transparent; padding: 0; }
.workforce--single .wf__area h4 { margin: 0 12px 0 0; }
.workforce--single .wf__area small { margin: 0 12px 0 0; }
.workforce--single .agent { width: auto; display: inline-grid; grid-template-columns: 28px auto 12px; padding: 8px 12px 8px 8px; border-color: var(--line); background: rgba(255,255,255,.02); margin: 0; }
.workforce--single .wf__log { margin-top: 4px; }

/* org chart + detail panel: same treatment — equal height, one surface */
.arch { align-items: stretch; }
.arch__panel { position: relative; top: auto; min-height: 0; height: 100%; display: flex; flex-direction: column; }
.arch__panel .metric { margin-top: auto; }
@media (max-width: 900px) { .arch__panel { height: auto; } }
/* console balance: wider panel so facts wrap less, denser log, roomier agent rows */
@media (min-width: 901px) { .workforce { grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr); } }
.wf__area { padding: 16px; }
.agent { padding: 10px 8px; }
.wf__panel dd { font-size: .84rem; }
.wf__log { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.wf__log li { grid-template-columns: 40px 1fr; gap: 6px; font-size: .78rem; line-height: 1.4; }
@media (max-width: 1100px) and (min-width: 901px) { .workforce { grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); } }
@media (max-width: 1100px) and (min-width: 901px) { .wf__io { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wf__io div:first-child { grid-column: 1 / -1; } }

/* ---------- 32. hero system: balanced composition + the autonomous finance infographic ---------- */
.page-hero--viz { min-height: min(84vh, 840px); display: flex; align-items: center; padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero--viz .wrap { width: 100%; }
.split--hero { grid-template-columns: minmax(0, .48fr) minmax(0, .52fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.split--hero .hero__copy h1 { margin: 14px 0 16px; max-width: 20ch; }
.split--hero .hero__copy .lede { max-width: 52ch; margin-bottom: 0; }
.split--hero .hero__proof { margin-top: 22px; }
.btn { transition: background var(--t2) var(--ease), border-color var(--t2) var(--ease), color var(--t2) var(--ease), box-shadow var(--t2) var(--ease), transform var(--t2) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.btn--secondary:hover { background: rgba(207,161,76,.06); }

/* the infographic surface */
.viz { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: radial-gradient(120% 80% at 50% 0%, rgba(207,161,76,.08), transparent 55%), linear-gradient(170deg, #17171C, #0F0F13 70%); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.03) inset; padding: clamp(12px, 1.6vw, 18px) clamp(12px, 1.6vw, 18px) 0; overflow: hidden; }
.viz::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%); pointer-events: none; }
.viz svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.viz__fallback { position: relative; margin: 0; padding: 8px 4px 16px; list-style: none; display: grid; gap: 8px; font-size: .86rem; color: var(--muted); }
.viz__fallback b { color: var(--text); font-family: var(--display); margin-right: 8px; }
.viz.is-ready .viz__fallback { display: none; }
.viz__status { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 6px calc(-1 * clamp(12px, 1.6vw, 18px)) 0; padding: 10px clamp(12px, 1.6vw, 18px); border-top: 1px solid var(--line); background: rgba(0,0,0,.25); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--text-2); }
.viz__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(61,187,122,.18); flex: 0 0 auto; }
.viz__msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz__conf { color: var(--gold-2); white-space: nowrap; }
.viz__conf:empty { display: none; }
.viz__tip { position: absolute; z-index: 5; max-width: 240px; padding: 10px 12px; border-radius: 10px; background: var(--elev); border: 1px solid var(--line-gold); box-shadow: var(--shadow-sm); font-size: 12.5px; line-height: 1.45; color: var(--text-2); pointer-events: none; }
.viz__tip b { display: block; color: var(--text); font-family: var(--display); margin-bottom: 3px; font-size: 13px; }
.viz__tip[hidden] { display: none; }

/* nodes, lanes, lines */
.viz__lane { fill: rgba(255,255,255,.025); stroke: rgba(255,255,255,.08); }
.viz__node rect { fill: #1E1E26; stroke: rgba(255,255,255,.16); transition: stroke var(--t2), fill var(--t2), filter var(--t2); }
.viz__node text { fill: var(--text); font-family: var(--display); font-weight: 600; font-size: 12px; pointer-events: none; }
.viz__node .sub { fill: var(--muted); font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.viz__node--orch rect { fill: #24242E; stroke: rgba(207,161,76,.5); }
.viz__node--orch .ring { fill: none; stroke: rgba(207,161,76,.35); stroke-width: 1; opacity: 0; }
.viz__node--out rect { stroke: rgba(207,161,76,.35); }
.viz__node--out .sub { fill: var(--gold-2); }
.viz__node { cursor: default; outline: none; }
.viz__node.is-on rect, .viz__node.is-hover rect, .viz__node:focus-visible rect { stroke: var(--gold); fill: #26262F; filter: drop-shadow(0 0 10px rgba(207,161,76,.28)); }
.viz__node.is-dim { opacity: .38; }
.viz__node.is-focus rect { stroke: var(--gold-2); }
.viz__chip rect { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.1); transition: fill var(--t2), stroke var(--t2); }
.viz__chip text { fill: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.viz__chip.is-on rect { fill: rgba(207,161,76,.16); stroke: var(--gold); }
.viz__chip.is-on text { fill: var(--gold-2); }
.viz__label { fill: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.viz__path { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.2; stroke-linecap: round; transition: stroke var(--t2), opacity var(--t2); }
.viz.is-anim .viz__path { stroke-dashoffset: var(--len); transition: stroke-dashoffset 900ms var(--ease), stroke var(--t2); }
.viz.is-anim.is-drawn .viz__path { stroke-dashoffset: 0; }
.viz__path.is-lit { stroke: var(--gold); stroke-width: 1.6; }
.viz__path.is-dim { opacity: .3; }
.viz__particle { fill: var(--gold-2); filter: drop-shadow(0 0 4px rgba(226,188,108,.8)); }
.viz__particle.t1 { opacity: .55; } .viz__particle.t2 { opacity: .3; }
.viz__conf-badge rect { fill: rgba(61,187,122,.14); stroke: rgba(61,187,122,.5); }
.viz__conf-badge text { fill: var(--success); font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; }
.viz__conf-badge { opacity: 0; transition: opacity var(--t2); }
.viz__conf-badge.is-on { opacity: 1; }
.viz__counter { fill: var(--gold-2); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
@keyframes viz-ring { 0% { transform: scale(.85); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }
.viz.is-anim .viz__node--orch.is-on .ring { animation: viz-ring 1.8s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }

@media (max-width: 900px) {
  .page-hero--viz { min-height: 0; display: block; }
  .split--hero { grid-template-columns: minmax(0, 1fr); }
  .viz { max-width: 560px; }
}
@media (prefers-reduced-motion: reduce) { .viz__node--orch .ring { display: none; } .viz__particle { display: none; } }
/* tablets landscape: the two hero columns would squeeze the infographic below legibility — stack instead */
@media (max-width: 1100px) { .page-hero--viz { min-height: 0; display: block; } .split--hero { grid-template-columns: minmax(0, 1fr); } .viz { max-width: 600px; } }


/* ---------- 34. comparison — unified vs bolted together ---------- */
.cmp { border-radius: var(--r-xl); border: 1px solid var(--paper-line); background: var(--card); overflow: hidden; }
.cmp__head, .cmp__row { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: 0; align-items: stretch; }
.cmp__head { background: var(--paper-2); border-bottom: 1px solid var(--paper-line); }
.cmp__head > span { padding: 16px 18px; }
.cmp__head .cmp__dim { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); align-self: end; }
.cmp__col { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; border-left: 1px solid var(--paper-line); }
.cmp__col svg { width: 20px; height: 20px; grid-row: span 2; color: var(--muted); }
.cmp__col b { font-family: var(--display); font-size: 1rem; }
.cmp__col small { display: block; color: var(--ink-3); font-size: .78rem; }
.cmp__col--us { background: rgba(207,161,76,.08); }
.cmp__col--us svg, .cmp__col--us b { color: var(--gold-2); }
.cmp__row { border-bottom: 1px solid var(--paper-line); transition: background var(--t1); }
.cmp__row:last-child { border-bottom: 0; }
.cmp__row:hover { background: rgba(255,255,255,.02); }
.cmp__row .cmp__dim { padding: 15px 18px; font-family: var(--display); font-weight: 600; font-size: .92rem; }
.cmp__cell { display: flex; gap: 10px; align-items: flex-start; padding: 15px 18px; border-left: 1px solid var(--paper-line); font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.cmp__cell svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; color: var(--error); }
.cmp__cell--us { background: rgba(207,161,76,.06); color: var(--ink); }
.cmp__cell--us svg { color: var(--success); }
@media (max-width: 760px) {
  .cmp__head { display: none; }
  .cmp__row { grid-template-columns: minmax(0, 1fr); }
  .cmp__row .cmp__dim { padding: 14px 16px 6px; color: var(--gold-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
  .cmp__cell { border-left: 0; padding: 8px 16px; }
  .cmp__cell::before { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); min-width: 78px; padding-top: 4px; }
  .cmp__cell--us::before { content: "Unified"; color: var(--gold-2); }
  .cmp__cell:not(.cmp__cell--us)::before { content: "Bolted"; }
  .cmp__cell:last-child { padding-bottom: 16px; }
}

/* ---------- 33. hero infographic v2: spotlight, energy flow, work bars, phases, your-team branch ---------- */
.viz { background: radial-gradient(110% 70% at 50% -10%, rgba(207,161,76,.10), transparent 60%), linear-gradient(170deg, #17171C, #0E0E12 70%); }
.viz__spot { opacity: 0; transition: transform 700ms var(--ease), opacity 500ms; }
.viz__spot.is-on { opacity: 1; }
.viz__node .ico { fill: none; stroke: var(--gold-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.viz__node--data rect { fill: rgba(255,255,255,.03); stroke: rgba(255,255,255,.12); }
.viz__node--orch .halo { fill: none; stroke: rgba(207,161,76,.45); stroke-width: 1; stroke-dasharray: 3 7; opacity: 0; }
.viz.is-anim .viz__node--orch.is-on .halo { opacity: 1; animation: viz-halo 9s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes viz-halo { to { stroke-dashoffset: -60; } }
.viz__node--agent .bar-track { fill: rgba(255,255,255,.08); }
.viz__node--agent .bar-fill { fill: var(--gold); }
.viz__node--human rect { stroke: rgba(224,169,60,.45); }
.viz__node--human .sub { fill: var(--warning); }
.viz__node--human.is-on rect { stroke: var(--warning); filter: drop-shadow(0 0 10px rgba(224,169,60,.3)); }
.viz__conf-badge .fill { fill: rgba(61,187,122,.22); }
.viz__conf-badge.is-below rect { stroke: rgba(224,169,60,.55); fill: rgba(224,169,60,.10); }
.viz__conf-badge.is-below .fill { fill: rgba(224,169,60,.22); }
.viz__conf-badge.is-below text { fill: var(--warning); }
/* entrance: rows fade up after the lines draw */
.viz.is-anim .viz__node { opacity: 0; transform: translateY(6px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: calc(300ms + var(--i, 0) * 110ms); }
.viz.is-anim.is-drawn .viz__node { opacity: 1; transform: none; }
.viz.is-anim.is-settled .viz__node { transition-delay: 0ms; transition: opacity var(--t2), transform var(--t2), filter var(--t2); }
/* energy flow on lit connections once the draw-in has settled */
.viz.is-settled .viz__path.is-lit { stroke-dasharray: 5 9; animation: viz-flow .9s linear infinite; }
@keyframes viz-flow { to { stroke-dashoffset: -14; } }
.viz__counter { font-variant-numeric: tabular-nums; }
/* status bar: phase chips + narrative */
.viz__status { flex-wrap: wrap; gap: 8px 12px; }
.viz__phases { display: flex; gap: 6px; order: -1; width: 100%; }
.viz__phases span { flex: 1; text-align: center; padding: 4px 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); transition: color var(--t2), border-color var(--t2), background var(--t2); }
.viz__phases span.is-on { color: var(--gold-2); border-color: var(--line-gold); background: rgba(207,161,76,.1); }
@media (prefers-reduced-motion: reduce) { .viz__node--orch .halo { display: none; } .viz__spot { display: none; } }

/* ---------- AI agents page: org chart as the first screen (orchestrator → 4 areas → 14 agents) ---------- */
.page-hero--agents { padding-bottom: clamp(40px, 5vw, 64px); }
.amap__head { max-width: 860px; margin-bottom: clamp(22px, 3vw, 34px); }
.amap__head h1 { max-width: none; }
.amap__head .lede { max-width: 64ch; }
.amap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: clamp(18px, 2vw, 28px); align-items: start; }
.amap__tree { display: flex; flex-direction: column; align-items: center; }
.amap__orch { position: relative; display: flex; align-items: center; gap: 14px; max-width: 520px; width: 100%; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-gold); background: linear-gradient(160deg, rgba(207,161,76,.18), var(--surface) 65%); }
.amap__orch b { display: block; font-family: var(--display); font-size: 1.08rem; }
.amap__orch small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.amap__ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(207,161,76,.16); color: var(--gold-2); }
.amap__ico svg { width: 22px; height: 22px; }
/* connectors: a trunk from the orchestrator, a bus across the four areas, a drop into each */
.amap__cols { position: relative; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 40px; }
.amap__cols::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 20px; margin-left: -1px; background: var(--line-gold); }
.amap__cols::after { content: ""; position: absolute; top: 20px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line-gold); }
.amap__col { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.amap__col::before { content: ""; position: absolute; top: -21px; left: 50%; width: 2px; height: 20px; margin-left: -1px; background: var(--line-gold); }
.amap__area { display: grid; gap: 4px; padding: 2px 2px 10px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.amap__area .badge { justify-self: start; }
.amap__area b { font-family: var(--display); font-size: .98rem; line-height: 1.2; }
.amap__area small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.amap .agent { margin: 0; padding: 8px; border-color: var(--line); background: rgba(255,255,255,.02); }
.amap .agent b { font-size: .84rem; }
.amap .agent b span { color: var(--gold-2); font-weight: 500; }
.amap__base { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 16px; border-radius: 12px; border: 1px dashed rgba(224,169,60,.4); background: rgba(224,169,60,.05); color: var(--text-2); font-size: .88rem; }
.amap__base svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--warning); }
.amap__base b { color: var(--text); }
.amap__panel { position: sticky; top: calc(var(--nav-h) + 16px); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface-2); padding: 22px; }
.amap__panel .wf__io, .amap__panel .wf__rules { grid-template-columns: minmax(0, 1fr); }
.amap__panel .wf__io div:first-child { grid-column: auto; }
.amap__panel .wf__log { margin-top: 0; }
@media (max-width: 1100px) { .amap { grid-template-columns: minmax(0, 1fr); } .amap__panel { position: relative; top: auto; } .amap__panel .wf__io { grid-template-columns: repeat(3, minmax(0, 1fr)); } .amap__panel .wf__rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .amap__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 16px; }
  .amap__cols::before, .amap__cols::after, .amap__col::before { display: none; }
  .amap__panel .wf__io, .amap__panel .wf__rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) { .amap__cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Governed autonomy: the confidence line is the page ---------- */
.gauto__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.gauto__copy h1 { max-width: 18ch; }
.gauto__ctrl { margin-top: 26px; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); }
.gauto__ctrl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gauto__ctrl .range { margin-top: 12px; }
.gauto__viz { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface-2); }
.gauto__split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.gauto__side { padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.gauto__side b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gauto__side small { color: var(--muted); font-size: .82rem; }
.gauto__side--auto { border-color: rgba(61,187,122,.35); background: rgba(61,187,122,.07); }
.gauto__side--auto b { color: var(--success); }
.gauto__side--human { border-color: rgba(224,169,60,.35); background: rgba(224,169,60,.07); }
.gauto__side--human b { color: var(--warning); }
.gauto__waffle { grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 0; }
.gauto__waffle i { border-radius: 4px; opacity: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.gauto__viz .flow__legend { margin-top: 14px; }
.gauto__cap { margin-top: 6px; color: var(--dim); }
.gauto__loop { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gauto__loop li { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.gauto__loop li.is-line { border-color: var(--line-gold); background: linear-gradient(160deg, rgba(207,161,76,.12), var(--surface) 70%); }
.gauto__loop i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; margin-bottom: 10px; font-style: normal; font-family: var(--mono); font-size: 10.5px; background: rgba(207,161,76,.12); color: var(--gold-2); }
.gauto__loop b { display: block; font-family: var(--display); font-size: .98rem; margin-bottom: 4px; }
.gauto__loop small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
@media (max-width: 1000px) { .gauto__grid { grid-template-columns: minmax(0, 1fr); } .gauto__loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gauto__loop li.is-line { grid-column: 1 / -1; } }
@media (max-width: 520px) { .gauto__split { grid-template-columns: minmax(0, 1fr); } .gauto__loop { grid-template-columns: minmax(0, 1fr); } .gauto__waffle { gap: 4px; } }
@media (min-width: 1101px) { .amap { grid-template-columns: minmax(0, 1fr) minmax(320px, 360px); } }
.amap .agent { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 7px 8px; }
.amap .agent::after { display: none; }
.amap .agent i { width: 24px; height: 24px; border-radius: 7px; font-size: 9.5px; font-style: normal; }
.amap .agent.is-active { background: rgba(207,161,76,.14); border-color: var(--gold); }
.page-hero--agents { padding-top: calc(var(--nav-h) + clamp(20px, 3vw, 36px)); }
.page-hero--agents .breadcrumb { margin-bottom: 14px; }
.amap__head { margin-bottom: 18px; }
.amap__head h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.amap__head .lede { margin-top: 10px; }
.amap__cols { padding-top: 32px; } .amap__cols::before { height: 16px; } .amap__cols::after { top: 16px; } .amap__col::before { top: -17px; height: 16px; }
.amap__panel { scroll-margin-top: calc(var(--nav-h) + 12px); }
.sol__head { max-width: 820px; margin-bottom: clamp(22px, 3vw, 32px); } .sol__head h1 { max-width: none; }

/* ---------- Solution pages: agents as tabs — equal-width, obviously selectable, detail directly below ---------- */
.agent, .org__area { cursor: pointer; }
.atabs__hint { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.atabs__hint svg { width: 12px; height: 12px; }
.atabs__list { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; }
.atabs .agent { position: relative; width: 100%; margin: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; align-items: center; gap: 10px; min-height: 64px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; transition: border-color var(--t1), background var(--t1), transform var(--t1); }
.atabs .agent::after { display: none; }
.atabs .agent i { width: 30px; height: 30px; border-radius: 8px; font-style: normal; font-size: 10.5px; }
.atabs .agent b { font-size: .92rem; line-height: 1.25; }
.atabs .agent svg { width: 16px; height: 16px; color: var(--dim); transform: rotate(-90deg); transition: color var(--t1), transform var(--t1); }
.atabs .agent:hover { border-color: var(--line-gold); background: rgba(207,161,76,.06); transform: translateY(-1px); }
.atabs .agent:hover svg { color: var(--gold-2); }
.atabs .agent.is-active { border-color: var(--gold); background: linear-gradient(160deg, rgba(207,161,76,.18), var(--surface) 75%); box-shadow: 0 0 0 1px var(--gold) inset; }
.atabs .agent.is-active svg { color: var(--gold); transform: rotate(0deg); }
.atabs__panel { margin-top: 12px; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface-2); padding: clamp(20px, 2.4vw, 28px); }
.atabs__panel .wf__log { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .atabs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .atabs__panel .wf__io { grid-template-columns: minmax(0, 1fr); } .atabs__panel .wf__log { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .atabs__list { grid-template-columns: minmax(0, 1fr); } .atabs .agent { min-height: 52px; } }
/* agents page chips: the same "this opens something" cue */
.amap .agent { grid-template-columns: 24px minmax(0, 1fr) 10px; }
.amap .agent::after { display: block; content: "›"; width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; color: var(--dim); font-size: 1rem; line-height: 1; }
.amap .agent:hover::after, .amap .agent.is-active::after { color: var(--gold-2); background: none; box-shadow: none; }
.amap .agent:hover { border-color: var(--line-gold); background: rgba(207,161,76,.06); }

/* ---------- Standard vertical rhythm (one scale for every page) ---------- */
.sec--tight { padding: clamp(28px, 3.5vw, 44px) 0; }
.sec-head h2 { margin-bottom: 10px; }
/* two plain sections in a row read as one band: don't double the gap between them */
.sec:not(.sec--raised):not(.sec--paper):not(.cta):not(.page-hero):not(.sec--tight) + .sec:not(.sec--raised):not(.sec--paper):not(.cta) { padding-top: 0; }
/* platform org chart: CFO card sized to its text; panel badge sized to its label */
.org { align-content: start; row-gap: 0; } /* rows packed together (the grid is stretched to the panel height) */
.org__link { margin: 6px 0; }
.org__node--orch small, .org__node--cfo small { color: var(--text-2); }
.arch__panel .badge { align-self: flex-start; }
