/* ==========================================================================
   JCO / johnnychen.co design system v2
   Ultra-modern dark SaaS register: near-black surfaces, alpha hairlines,
   glassy cards, one rose-to-violet gradient accent, Space Grotesk display,
   DM Sans body, IBM Plex Mono for micro tech labels. Dark-only by design.
   ========================================================================== */

/* ---- Fonts (self-hosted, variable where possible) ------------------------ */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/dm-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/plex-mono-500.woff2') format('woff2');
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --paper: #0A0B0F;
  --paper-raised: #10121A;
  --card: rgba(255, 255, 255, 0.028);
  --ink: #F2F2F5;
  --ink-soft: rgba(242, 242, 245, 0.66);
  --ink-faint: rgba(242, 242, 245, 0.42);
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.14);
  --ledger: rgba(255, 255, 255, 0.02);
  --accent: #6C9BFF;
  --accent-2: #4D7FE8;
  --accent-hover: #8FB3FF;
  --accent-soft: rgba(108, 155, 255, 0.10);
  --pos: #5BDA8B;
  --warn: #E8B44D;
  --shell: #10141C;
  --on-accent: #06101F;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --btn-bg: #3B6FDD;
  --btn-bg-hover: #4D7FE8;
  --band-bg: #10121A;
  --band-ink: #F2F2F5;
  --band-ink-soft: rgba(242, 242, 245, 0.66);
  --band-rule: rgba(255, 255, 255, 0.10);
  --band-accent: #6C9BFF;
  --glow-accent: 0 0 40px rgba(108, 155, 255, 0.22);
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 48px rgba(0, 0, 0, 0.5);

  --font-display: 'Space Grotesk', 'DM Sans', -apple-system, sans-serif;
  --font-serif: var(--font-display);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1400px;
  --container-pad: 28px;
  --radius: 10px;
  --radius-card: 16px;
  --radius-pill: 999px;
}

/* ---- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper-raised);
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { left: 16px; top: 12px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: var(--on-accent); }

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

/* ---- Type ------------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow em { font-style: normal; color: var(--accent); }

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}

.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }

/* Gradient text utility (the accent moment) */
.hl, .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Layout ------------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: clamp(80px, 10vw, 140px); }
.section + .section { padding-top: 0; }
.section + .section.rule-top,
.hero + .section.rule-top { padding-top: clamp(64px, 8vw, 110px); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head .eyebrow { margin-bottom: 18px; color: var(--ink-faint); }
.section-head h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
  margin-bottom: 16px;
  text-wrap: balance;
}
.section-head p { color: var(--ink-soft); max-width: 40em; font-size: 17px; }

.rule-top { border-top: 1px solid var(--rule); }

/* ---- Nav --------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 15, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark:hover { color: var(--ink); }
.wm-tile {
  width: 27px;
  height: 27px;
  display: block;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 150ms ease, background 150ms ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-links .btn { margin-left: 10px; }
.nav-links .btn-primary { color: #FFFFFF; }
.nav-links .btn-primary:hover { color: #FFFFFF; }

/* ---- Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease,
              transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--btn-bg);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.btn-secondary {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
}
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---- Hero ------------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: flex;
  flex-direction: column;
  padding-block: clamp(44px, 6.5svh, 96px) clamp(18px, 3svh, 44px);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -180px;
  right: -120px;
  width: 640px;
  height: 640px;
  background:
    radial-gradient(circle at 35% 35%, rgba(108, 155, 255, 0.06), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(77, 127, 232, 0.05), transparent 55%);
  filter: blur(24px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(280px, 21vw, 340px) 1fr;
  column-gap: clamp(24px, 2.5vw, 40px);
  row-gap: 0;
  align-items: start;
  margin-top: auto;
  text-align: left;
}
/* Title lives in the SAME grid as the copy: one shared left edge, cannot drift */
.hero-grid > h1 { grid-column: 1 / -1; margin-inline: 0; max-width: none; justify-self: start; }
.hero-copy { padding-top: clamp(10px, 2.5svh, 30px); text-align: left; padding-left: 0; margin-left: 0; }
.hero h1 {
  font-size: clamp(44px, 4.7vw, 73px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: clamp(20px, 3svh, 32px);
  text-wrap: balance;
}
/* True hero subtitle: spans under the headline, not squeezed into the copy column */
.hero-grid > .lede {
  grid-column: 1 / -1;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44em;
  margin-bottom: clamp(16px, 3svh, 34px);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.hero .cta-row { margin-bottom: 0; }

/* ---- Hero: centered thesis, then the product showcase ------------------------------
   Three anonymized recreations of shipped systems cycle through a stacked deck
   of app windows. JS in index.html drives the cycle; tabs quote the lede. */
.demo-stage {
  position: relative;
  perspective: 1800px;
  margin-right: clamp(-260px, calc((var(--container) - 100vw) / 2), 0px);
}
.demo-stage::before {
  content: '';
  position: absolute;
  inset: -6% -5%;
  background: radial-gradient(ellipse 58% 52% at 50% 42%, rgba(108, 155, 255, 0.07), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}
.demo-deck {
  position: relative;
  display: grid;
  margin-top: 26px; /* headroom for the cards peeking above the front one */
  transform: rotateX(3deg);
  transform-origin: top center;
  transition: transform 700ms cubic-bezier(0.22, 0.9, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.demo-stage:hover .demo-deck { transform: rotateX(0deg); }
.demo-card {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  background: var(--shell);
  border: 1px solid var(--rule-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform-origin: top center;
  pointer-events: none;
  transition: transform 620ms cubic-bezier(0.22, 0.9, 0.3, 1), opacity 460ms ease,
              filter 460ms ease;
}
.demo-card.is-active  { z-index: 3; opacity: 1; transform: none; filter: none; }
.demo-card.is-under   { z-index: 2; opacity: 1; transform: translateY(-16px) scale(0.955); filter: brightness(0.5); }
.demo-card.is-back    { z-index: 1; opacity: 1; transform: translateY(-30px) scale(0.915); filter: brightness(0.36); }
.demo-card.is-leaving { z-index: 4; opacity: 0; transform: translateY(38px) rotateX(-7deg) scale(0.98); }

/* Window chrome bar */
.dc-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.02);
}
.dc-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.dc-dots { display: flex; gap: 5px; }
.dc-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); }
.dc-brand { display: flex; align-items: baseline; gap: 8px; color: var(--ink); min-width: 0; }
.dc-brand .db-icon { width: 15px; height: 15px; align-self: center; filter: grayscale(1) brightness(0) invert(0.94); }
.b-crest span { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.02em; }
.b-fund span  { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: 0.01em; font-style: italic; }
.b-lets span  { font-family: var(--font-sans); font-weight: 500; font-size: 13px; text-transform: lowercase; }
.dc-brand .db-mono { width: 15px; height: 15px; align-self: center; flex-shrink: 0; }
.dc-chip {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  white-space: nowrap;
}
.dc-chip.live { color: var(--pos); border-color: rgba(91, 218, 139, 0.28); }

/* Card body */
.dc-body { display: flex; flex-direction: column; gap: 15px; padding: 20px 22px; flex: 1; }
.dc-window { display: flex; flex: 1; min-height: 0; }

/* Sidebar (card 1, the finance dashboard's report nav) */
.dc-side {
  width: 196px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px 12px;
  border-right: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.012);
}
.side-h {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 10px 8px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  padding: 9px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.side-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.side-item.on { background: rgba(8, 166, 240, 0.13); color: #56C2F2; }
.side-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 0;
  border-top: 1px solid var(--rule);
}
.su-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2A78D6, #1BAF7A);
}
.side-user span { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; }
.dc-main { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; padding: 18px 20px; }

/* Screen heading row */
.dc-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.dc-head .h-title { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-head .h-meta { margin-left: auto; flex-shrink: 0; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

/* KPI tiles */
.dc-kpis { display: grid; gap: 9px; }
.dc-kpis.k4 { grid-template-columns: repeat(4, 1fr); }
.dc-kpis.k1 { grid-template-columns: 1fr; }
.kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px 11px;
  min-width: 0;
}
.kpi .k-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi .k-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.kpi .k-value.pos { color: var(--pos); }
.kpi .k-value .k-accent { color: var(--accent); }
.kpi .k-value .k-unit { font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--ink-faint); margin-left: 2px; }

/* Two-column arrangements inside cards */
.dc-cols2 { display: grid; grid-template-columns: 280px 1fr; gap: 12px; flex: 1; min-height: 0; }
.dc-cols2.c3 { grid-template-columns: 252px 1fr; }
.dc-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Segmented control (grouping toggle) */
.dc-seg { display: inline-flex; flex-shrink: 0; border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; }
.dc-seg b {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10.5px;
  color: var(--ink-faint);
  padding: 4px 11px;
  border-right: 1px solid var(--rule);
}
.dc-seg b:last-child { border-right: none; }
.dc-seg b.on { background: rgba(8, 166, 240, 0.15); color: #56C2F2; }

/* Chart panel */
.dc-chart {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 12px 8px;
  background: rgba(255, 255, 255, 0.015);
}
.dc-chart .ch-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dc-chart .ch-title { font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.dc-chart .ch-legend { margin-left: auto; display: flex; gap: 10px; }
.dc-chart .ch-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.dc-chart .ch-legend i { width: 7px; height: 7px; border-radius: 2px; }
.dc-chart svg { display: block; width: 100%; height: auto; }

/* Row list / mini table */
.dc-rows { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.dc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.dc-row:last-child { border-bottom: none; }
.dc-row .r-time { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); white-space: nowrap; }
.dc-row .r-name { font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Status dot + label (never color alone) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: auto;
}
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--pos); }
.status.info { color: var(--accent); }
.dc-row .status + .r-num, .dc-row .r-num + .status { margin-left: 0; }

/* Rule-path rows (card 2: the audit trail) */
.dc-rules { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.rule-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--rule);
}
.rule-row:last-child { border-bottom: none; }
.rule-row .tick { width: 15px; height: 15px; flex-shrink: 0; color: var(--pos); }
.rule-row .rr-name { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.rule-row .rr-math { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }

/* Decision banner (card 2) */
.dc-verdict {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border: 1px solid rgba(91, 218, 139, 0.3);
  background: rgba(91, 218, 139, 0.07);
  border-radius: 10px;
  padding: 10px 14px;
}
.dc-verdict .v-word {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pos);
}
.dc-verdict .v-amt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.dc-verdict .v-sub { margin-left: auto; font-size: 10.5px; color: var(--ink-soft); text-align: right; line-height: 1.35; }

/* Decision timeline (card 2) */
.dc-timeline { display: flex; align-items: center; gap: 10px; padding: 1px 4px 0; }
.tl-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.tl-step i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); flex-shrink: 0; }
.tl-step.done i { background: rgba(91, 218, 139, 0.5); }
.tl-step.now { color: var(--pos); }
.tl-step.now i { background: var(--pos); }
.tl-line { flex: 1; height: 1px; background: var(--rule); }

/* Reply thread (card 3) */
.dc-thread { display: flex; flex-direction: column; gap: 9px; }
.thread-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.thread-status .tick { width: 13px; height: 13px; color: var(--pos); flex-shrink: 0; }

/* Chat bubble (card 3: the product moment, carried over from the old hero) */
.dc-bubble {
  align-self: flex-start;
  background: #F7F7F8;
  color: #17181C;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  max-width: 86%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Live caption foot */
.dc-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
}
.dc-foot::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pos);
  animation: foot-pulse 2.6s ease-in-out infinite;
}
@keyframes foot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Floating annotations: JCO's voice over the product, two per screen */
.stage-notes { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; visibility: hidden; }
.demo-stage[data-active="0"] .stage-notes[data-for="0"],
.demo-stage[data-active="1"] .stage-notes[data-for="1"],
.demo-stage[data-active="2"] .stage-notes[data-for="2"] { opacity: 1; visibility: visible; }
.note {
  position: absolute;
  width: 232px;
  background:
    linear-gradient(120deg, var(--accent), var(--accent-2)) top / 100% 2px no-repeat,
    rgba(16, 20, 30, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(108, 155, 255, 0.32);
  border-radius: 12px;
  padding: 13px 15px 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px) rotate(var(--note-tilt, 0deg));
}
/* Callouts live OUTSIDE the app window; a dashed lead runs into the UI they reference */
.note.n-a { left: 42px; bottom: -28px; --note-tilt: -1.3deg; }
.note.n-b { right: 18px; top: -24px; --note-tilt: 1.1deg; }
.note .lead {
  position: absolute;
  width: 116px;
  height: 92px;
  pointer-events: none;
  overflow: visible;
  color: var(--accent);
}
.note .lead path {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
  animation: lead-march 1.1s linear infinite;
}
.note .lead circle { fill: currentColor; }
@keyframes lead-march {
  to { stroke-dashoffset: -18; }
}
.note.n-a .lead { top: -96px; left: 58%; }
.note.n-b .lead { bottom: -96px; right: 58%; }
.demo-stage[data-active="0"] .stage-notes[data-for="0"] .note,
.demo-stage[data-active="1"] .stage-notes[data-for="1"] .note,
.demo-stage[data-active="2"] .stage-notes[data-for="2"] .note {
  opacity: 1;
  transform: rotate(var(--note-tilt, 0deg));
  transition: opacity 460ms ease, transform 460ms ease;
}
.demo-stage[data-active] .stage-notes .note.n-a { transition-delay: 350ms; }
.demo-stage[data-active] .stage-notes .note.n-b { transition-delay: 600ms; }
.nt-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.nt-mark { width: 15px; height: 15px; flex-shrink: 0; color: #FDC228; }
.nt-body { font-size: 12.5px; line-height: 1.5; color: var(--ink); }

/* Product switcher tabs: quiet rows with a vertical progress rail, echoing the
   active-item treatment inside the mock apps themselves */
.demo-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: clamp(22px, 4svh, 40px);
  max-width: 320px;
}
.demo-tab {
  position: relative;
  appearance: none;
  background: none;
  border: none;
  padding: 13px 16px 13px 18px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: background 150ms ease;
}
.demo-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rule);
}
.demo-tab .dt-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  overflow: hidden;
}
.demo-tab .dt-fill { display: block; width: 100%; height: 0; background: var(--grad); }
.demo-tab .dt-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-faint);
  transition: color 150ms ease;
}
.demo-tab:hover { background: rgba(255, 255, 255, 0.03); }
.demo-tab:hover .dt-label, .demo-tab:focus-visible .dt-label { color: var(--ink-soft); }
.demo-tab.is-active { background: rgba(255, 255, 255, 0.045); }
.demo-tab.is-active .dt-label { color: var(--ink); font-weight: 600; }
html:not(.js) .demo-tabs { display: none; }

/* Standalone page heads (pricing/services) */
.page-head-section { padding-bottom: 0; }
.page-head-section .section-head h2 { font-size: clamp(36px, 5vw, 56px); }

/* ---- Logo marquee ------------------------------------------------------------------ */
.logo-proof { position: relative; z-index: 1; margin-top: auto; padding-top: clamp(20px, 3.5svh, 44px); }
.logo-strip {
  position: relative;
  overflow: hidden;
  padding: 6px 0 10px;
  opacity: 0.92;
  transition: opacity 150ms ease;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.logo-strip:hover { opacity: 1; }
.logo-strip:hover .logo-track { animation-play-state: paused; }
.logo-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: logo-scroll 80s linear infinite;
}
.logo-strip:hover .logo-track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.lp-eyebrow {
  text-align: center;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
/* Owner-owned product tiles: uniform monochrome lockups, icon above name */
.logo-tile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 176px;
  height: 78px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  white-space: nowrap;
  user-select: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.logo-tile:hover { border-color: var(--rule-strong); background: rgba(255, 255, 255, 0.045); }
.logo-tile .lt-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: grayscale(1) brightness(0) invert(0.94);
}
.logo-tile .lt-word { height: 22px; width: auto; filter: grayscale(1) brightness(0) invert(0.94); }
.lt-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
/* Same tile, different logotype voice: that's what makes them read as distinct brands */
.lt-foyer .lt-name   { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 15.5px; letter-spacing: 0.01em; }
.lt-exact .lt-name   { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.lt-lets .lt-name    { font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; text-transform: lowercase; letter-spacing: 0; }
.lt-darcee .lt-name  { font-family: var(--font-display); font-weight: 500; font-size: 13.5px; text-transform: lowercase; letter-spacing: 0.26em; }
.lt-recon .lt-name   { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; }
.lt-pathway .lt-name { font-family: var(--font-sans); font-weight: 800; font-size: 14.5px; font-style: italic; letter-spacing: -0.01em; }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-tile { transition: none; }
}

/* ---- Client tiles inside the mixed marquee ------------------------------------------- */
.lt-client .lt-word { height: 18px; }
.lt-client .lt-icon { width: 15px; height: 15px; }
.lt-client .lt-mark {
  height: 18px;
  width: auto;
  max-width: 118px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(0.94);
}
.lt-hopem .lt-mark, .lt-canacap .lt-mark { height: 26px; }
.lt-desj .lt-name    { font-family: var(--font-sans); font-weight: 600; font-size: 15.5px; letter-spacing: 0; }
.lt-lawa .lt-name    { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.22em; }
.lt-bus .lt-name     { font-family: var(--font-sans); font-weight: 800; font-size: 15.5px; text-transform: lowercase; letter-spacing: -0.01em; }
.lt-hopem .lt-name   { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: 0.12em; }
.lt-walter .lt-name  { font-family: var(--font-sans); font-weight: 600; font-size: 15.5px; text-transform: lowercase; letter-spacing: 0.02em; }
.lt-golo .lt-name    { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.lt-driven .lt-name  { font-family: var(--font-sans); font-weight: 800; font-size: 15px; font-style: italic; letter-spacing: -0.01em; }
.lt-vault .lt-name   { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: 0.2em; }
.lt-canacap .lt-name { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 15.5px; }
.lt-lynk .lt-name    { font-family: var(--font-mono); font-weight: 500; font-size: 13px; text-transform: lowercase; letter-spacing: 0.04em; }
.lt-wink .lt-name    { font-family: var(--font-display); font-weight: 500; font-size: 15.5px; text-transform: lowercase; letter-spacing: 0.06em; }
.lt-dne .lt-name     { font-family: var(--font-sans); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.lt-alpine .lt-name  { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 15.5px; letter-spacing: 0.01em; }
.lt-floravi .lt-name { font-family: var(--font-sans); font-weight: 500; font-size: 16px; text-transform: lowercase; letter-spacing: 0.08em; }
.lt-allant .lt-name  { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: 0.04em; }
.lt-opusvi .lt-name  { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em; }
.lt-shakepay .lt-name { font-family: var(--font-sans); font-weight: 700; font-size: 15.5px; text-transform: lowercase; letter-spacing: -0.01em; }
.lt-nwe .lt-name     { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; letter-spacing: 0.08em; }

/* ---- Outcome cards (formerly tombstones) -------------------------------------------- */
.tombstone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 24px 6px 28px;
  color: var(--ink);
  transition: border-color 150ms ease, background 150ms ease;
}
a.tombstone:hover {
  border-top-color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}
.ts-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 3.8vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.ts-unit {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.ts-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.ts-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  padding-top: 8px;
}
a.tombstone:hover .ts-link { color: var(--accent-hover); }

.ts-lib .ts-figure { color: var(--ink-soft); }
.ts-was {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 200ms ease, opacity 200ms ease, margin 200ms ease;
}
.tombstone:hover .ts-was, .tombstone:focus-visible .ts-lib .ts-figure { color: var(--ink-soft); }
.ts-was {
  max-height: 22px;
  opacity: 1;
  margin-bottom: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .ts-lib .ts-figure { color: var(--ink-soft); }
.ts-was { max-height: 22px; opacity: 1; margin-bottom: 4px; transition: none; }
}
.tombstone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 44px;
}

/* Compact secondary outcomes strip */
.outcome-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.outcome-strip > div {
  background: var(--ledger);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.outcome-strip .o-fig {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.outcome-strip .o-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.results-foot {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.strip-note { margin-top: 16px; padding-left: 2px; }

/* ---- Committee / diligence Q&A ------------------------------------------------------- */
.committee { border-top: 1px solid var(--rule); }
.qa-row {
  display: grid;
  grid-template-columns: 52px 1fr 1.2fr;
  gap: 28px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}
.qa-row .q-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(108, 155, 255, 0.3);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  width: 42px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
}
.qa-row h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.qa-row p { color: var(--ink-soft); font-size: 15px; }
.committee-close {
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-soft);
}
.committee-close a { font-weight: 600; }

/* ---- Terms wall: pill chips ----------------------------------------------------------- */
.terms-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.terms-wall span {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: border-color 150ms ease, color 150ms ease;
}
.terms-wall span:hover { border-color: rgba(108, 155, 255, 0.4); color: var(--ink); }
.terms-note { margin-top: 26px; color: var(--ink-soft); max-width: 44em; }
.terms-note strong { color: var(--ink); font-weight: 600; }

/* ---- Work index (/work): visual case-study cards ------------------------------------ */
.work-all { text-align: center; margin-top: clamp(32px, 4vw, 52px); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--ink);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 155, 255, 0.4);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.work-card[hidden] { display: none; }
.wf-n {
  margin-left: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
}
.wf-pill.is-active .wf-n { color: var(--accent); }
.work-empty {
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  margin-bottom: 26px;
}
.work-empty p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.wc-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.wc-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 15, 0.3), rgba(10, 11, 15, 0.82));
}
.wc-fig {
  position: absolute;
  left: 20px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 3vw, 44px);
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.wc-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.wc-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.wc-body h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.wc-body > p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }
.wc-link { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }
.work-card:hover .wc-link { color: var(--accent-hover); }
/* Lite cards: engagement pages without a photo header */
.work-card.wc-lite { position: relative; }
.work-card.wc-lite::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.5;
}

/* Search + pagination on the work index */
.work-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.work-search {
  flex: 1;
  max-width: 420px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.work-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 155, 255, 0.15);
}
.work-search::placeholder { color: var(--ink-faint); }
.work-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.04em; white-space: nowrap; }
.work-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
}
.work-filters .work-count { margin-left: auto; }
.wf-pill {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.wf-pill:hover { border-color: var(--rule-strong); color: var(--ink); }
.wf-pill.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.work-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}
.work-pager[hidden] { display: none; }
.wp-btn {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}
.wp-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.wp-btn:disabled { opacity: 0.35; cursor: default; }
.wp-info { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.04em; }
.wc-lfig {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---- Capability index (index page): title + one line, scannable in seconds ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 48px;
}
.cap {
  display: block;
  padding: 20px 2px 24px;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink);
  transition: border-color 150ms ease;
}
.cap h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.cap h3::after {
  content: '\2192';
  font-weight: 400;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
}
.cap:hover { border-top-color: var(--accent); color: var(--ink); }
.cap:hover h3::after { opacity: 1; transform: none; }
.cap p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 1000px) {
  .capability-grid { grid-template-columns: 1fr 1fr; gap: 8px 28px; }
}
@media (max-width: 640px) {
  .capability-grid { grid-template-columns: 1fr; }
}

/* ---- Service lines (/services): discipline rows with live system tiles -------------- */
.svc-list { border-top: 1px solid var(--rule-strong); }
.svc-row {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr) 348px;
  gap: 24px 40px;
  padding-block: 34px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.svc-row h3 { order: 1; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.svc-desc { order: 2; }
.svc-desc p { font-size: 15.5px; color: var(--ink-soft); max-width: 44em; margin-bottom: 16px; line-height: 1.6; }
.svc-media { display: none; }
.services-close { margin-top: 26px; font-size: 15px; color: var(--ink-soft); }

/* Live vignettes: miniature siblings of the hero app windows */
.svc-vig {
  order: 3;
  display: flex;
  flex-direction: column;
  background: var(--shell);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  user-select: none;
}
.sv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}
.sv-dots { display: flex; gap: 4px; }
.sv-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.sv-name { font-family: var(--font-sans); font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.sv-chip {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}
.sv-chip.live { color: var(--pos); border-color: rgba(91, 218, 139, 0.3); }
.sv-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 13px 10px; }
.svc-vig svg { display: block; width: 100%; height: auto; }
.vig-cap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
}
/* 1 · blueprint draws itself */
.vig-blueprint .bp-draw {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: bp-draw 5.4s ease-in-out infinite;
}
.vig-blueprint .bp-pay { opacity: 0; animation: bp-pay 5.4s ease-in-out infinite; }
@keyframes bp-draw {
  0% { stroke-dashoffset: 420; }
  45%, 88% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 420; }
}
@keyframes bp-pay {
  0%, 45% { opacity: 0; }
  55%, 85% { opacity: 1; }
  100% { opacity: 0; }
}
/* 2 · action feed lights in sequence */
.vig-feed .vf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--ink-soft);
  animation: vf-glow 4.2s ease-in-out infinite;
}
.vig-feed .vf-row span { font-weight: 500; color: var(--ink); font-size: 11.5px; }
.vig-feed .vf-row b { margin-left: auto; font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; color: var(--ink-faint); }
.vig-feed .vf-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--pos); flex-shrink: 0; }
.vig-feed .vf-row:nth-child(2) { animation-delay: 1.4s; }
.vig-feed .vf-row:nth-child(3) { animation-delay: 2.8s; }
@keyframes vf-glow {
  0%, 28%, 100% { background: transparent; }
  8%, 20% { background: rgba(108, 155, 255, 0.1); }
}
/* 3 · pipeline streams into bars */
.vig-pipe .pp-line {
  stroke: rgba(108, 155, 255, 0.7);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 2 6;
  animation: lead-march 1.2s linear infinite;
}
.vig-pipe .pp-bars rect {
  transform-origin: center 84px;
  animation: pp-grow 4.8s ease-in-out infinite;
}
.vig-pipe .pp-bars rect:nth-child(2) { animation-delay: 0.25s; }
.vig-pipe .pp-bars rect:nth-child(3) { animation-delay: 0.5s; }
@keyframes pp-grow {
  0%, 12% { transform: scaleY(0.2); }
  38%, 88% { transform: scaleY(1); }
  100% { transform: scaleY(0.2); }
}
/* queued row + rule math + verdict + payback node */
.vf-row.vf-queue { opacity: 0.55; }
.vf-row.vf-queue i { background: none; border: 1px dashed var(--ink-faint); }
.vig-rules .vr-row b {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.vr-verdict {
  align-self: flex-start;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pos);
  border: 1px solid rgba(91, 218, 139, 0.3);
  background: rgba(91, 218, 139, 0.07);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  opacity: 0;
  animation: vr-verdict-in 4.6s ease infinite;
}
@keyframes vr-verdict-in {
  0%, 55% { opacity: 0; }
  65%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
.vig-blueprint .bp-fund { opacity: 0; animation: bp-pay 5.4s ease-in-out infinite; }

/* 4 · rule checks tick in */
.vig-rules .vr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
}
.vig-rules .vr-row svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--pos);
  opacity: 0;
  transform: scale(0.4);
  animation: vr-tick 4.6s ease infinite;
}
.vig-rules .vr-row:nth-child(2) svg { animation-delay: 0.9s; }
.vig-rules .vr-row:nth-child(3) svg { animation-delay: 1.8s; }
@keyframes vr-tick {
  0%, 8% { opacity: 0; transform: scale(0.4); }
  16%, 88% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.4); }
}
/* 5 · run-state heartbeat */
.vig-pulse .pu-line {
  stroke: rgba(108, 155, 255, 0.8);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-dasharray: 60 340;
  animation: pu-run 3.2s linear infinite;
}
@keyframes pu-run {
  from { stroke-dashoffset: 400; }
  to { stroke-dashoffset: 0; }
}
.vig-pulse .pu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pos);
  flex-shrink: 0;
  animation: foot-pulse 2.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .bp-draw, .bp-pay, .vf-row, .pp-line, .pp-bars rect, .vr-row svg, .pu-line, .pu-dot { animation: none !important; }
  .vig-blueprint .bp-draw { stroke-dashoffset: 0; }
  .vig-blueprint .bp-pay, .vig-rules .vr-row svg { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .svc-row { grid-template-columns: minmax(180px, 240px) 1fr; }
  .svc-vig { display: none; }
}
@media (max-width: 820px) {
  .svc-row { grid-template-columns: 1fr; gap: 12px; padding-block: 26px; }
}

.section-head.tight { margin-bottom: 30px; }

/* ---- Stack manifest window (/services) ----------------------------------------------- */
/* ---- Engagement gantt + stack map + handoff (/services) -------------------------------- */
.sr-out {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  white-space: nowrap;
  align-self: center;
}
.sr-out.on {
  color: var(--pos);
  border-color: rgba(91, 218, 139, 0.35);
  background: rgba(91, 218, 139, 0.06);
}
/* -- Stack convergence map -- */
.stack-map {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  align-items: center;
  max-width: 1180px;
  margin-inline: auto;
}
.stk-side { display: flex; flex-direction: column; gap: 34px; }
.stk-left { padding-right: 92px; text-align: right; }
.stk-right { padding-left: 92px; }
.stk-cluster { position: relative; }
.stk-left .stk-cluster::after,
.stk-right .stk-cluster::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 2px;
  width: 76px;
  background-image: repeating-linear-gradient(90deg, rgba(108, 155, 255, 0.5) 0 5px, transparent 5px 11px);
}
.stk-left .stk-cluster::after { left: calc(100% + 8px); animation: stk-flow-r 2.8s linear infinite; }
.stk-right .stk-cluster::after { right: calc(100% + 8px); animation: stk-flow-l 2.8s linear infinite; }
@keyframes stk-flow-r { to { background-position-x: 11px; } }
@keyframes stk-flow-l { to { background-position-x: -11px; } }
.stk-cat {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.stk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stk-left .stk-chips { justify-content: flex-end; }
.stk-chips span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.stk-core { position: relative; display: flex; align-items: center; justify-content: center; align-self: stretch; }
.stk-spine {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(108, 155, 255, 0.45) 18% 82%, transparent);
}
.stk-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--shell);
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 22px 26px 18px;
  text-align: center;
}
.stk-mark { width: 34px; height: 34px; margin-bottom: 4px; }
.stk-node-t { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.stk-node-s {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pos);
}
.stk-node-s i { width: 5px; height: 5px; border-radius: 50%; background: var(--pos); }
@media (max-width: 960px) {
  .stack-map { grid-template-columns: 1fr; gap: 26px; }
  .stk-left, .stk-right { padding: 0; text-align: left; }
  .stk-left .stk-chips { justify-content: flex-start; }
  .stk-cluster::after { display: none !important; }
  .stk-core { order: -1; }
  .stk-spine { display: none; }
  .stk-side { gap: 22px; }
}

/* -- Engagement gantt -- */
.gantt { max-width: 1180px; }
.g-head, .g-row {
  display: grid;
  grid-template-columns: minmax(230px, 300px) 1fr 110px;
  gap: 12px 40px;
  align-items: center;
}
.g-head { margin-bottom: 4px; }
.g-scale { position: relative; height: 22px; }
.g-scale i {
  position: absolute;
  top: 0;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.g-scale .g-inf { color: rgba(91, 218, 139, 0.75); }
.g-row { padding: 20px 0; border-top: 1px solid var(--rule); }
.g-row:last-child { border-bottom: 1px solid var(--rule); }
.g-info h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 5px; }
.g-info p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.g-lane {
  position: relative;
  height: 26px;
  align-self: center;
  background-image: linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 100%);
  background-size: 9.0909% 100%;
}
.g-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, #4D7FE8, #6C9BFF);
  min-width: 8px;
}
.g-bar.g-run { background: linear-gradient(90deg, rgba(91, 218, 139, 0.75), rgba(91, 218, 139, 0)); border-radius: 5px 0 0 5px; }
html.js .reveal .g-bar { transform: scaleX(0); transform-origin: left center; transition: transform 750ms cubic-bezier(0.2, 0.8, 0.25, 1); transition-delay: var(--d, 0ms); }
html.js .reveal.in .g-bar { transform: scaleX(1); }
.g-row .sr-out { justify-self: start; }
@media (max-width: 880px) {
  .g-head { display: none; }
  .g-row { grid-template-columns: 1fr; gap: 12px; }
  .g-row .sr-out { order: 3; }
}

/* -- Handoff -- */
.handoff {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 64px 1.35fr;
  gap: 0 36px;
  align-items: center;
  max-width: 1180px;
}
.ho-h {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.ho-us .ho-h { color: var(--ink); }
.ho-them ul, .ho-us ul { list-style: none; padding: 0; }
.ho-them li {
  padding: 13px 2px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(242, 242, 245, 0.22);
}
.ho-them li:last-child { border-bottom: 1px solid var(--rule); }
.ho-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--shell);
  color: var(--accent);
}
.ho-arrow svg { width: 20px; height: 20px; }
.ho-us {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 30px 20px;
  overflow: hidden;
}
.ho-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.85;
}
.ho-us li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}
.ho-us li:first-child { border-top: none; }
.ho-us li b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 3px; }
.ho-us li div span { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.ho-us li em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.ho-foot {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}
@media (max-width: 920px) {
  .handoff { grid-template-columns: 1fr; gap: 22px; }
  .ho-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .stk-cluster::after { animation: none !important; }
  html.js .reveal .g-bar { transform: none; transition: none; }
}

/* ---- Oren platform band: the flagship, Foundry-style ---------------------------------- */
.platform-band {
  position: relative;
  display: block;
  background:
    radial-gradient(ellipse 70% 120% at 10% 0%, rgba(108, 155, 255, 0.08), transparent 55%),
    var(--band-bg);
  border: 1px solid var(--band-rule);
  border-radius: 24px;
  padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 60px);
  margin-top: clamp(36px, 4vw, 56px);
  color: var(--ink);
  overflow: hidden;
  transition: border-color 150ms ease;
}
.platform-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.85;
}
.platform-band:hover { border-color: rgba(108, 155, 255, 0.4); color: var(--ink); }
.pb-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.pb-head h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 14px;
}
.pb-line { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); max-width: 46em; }
.pb-caps { display: flex; flex-direction: column; gap: 8px; }
.pb-caps span {
  border-top: 1px solid var(--band-rule);
  padding: 10px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.pb-caps span:last-child { border-bottom: 1px solid var(--band-rule); }
@media (max-width: 820px) {
  .platform-band { grid-template-columns: 1fr; }
}

/* ---- Process timeline rail (/services) ------------------------------------------------ */
.proc-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.proc-rail::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 34px;
  height: 1px;
  background: var(--rule-strong);
}
.pr-step { position: relative; padding-top: 52px; }
.pr-wk {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.pr-node {
  position: absolute;
  top: 29px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}
.pr-step h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.pr-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 900px) {
  .proc-rail { grid-template-columns: 1fr; gap: 20px; }
  .proc-rail::before { left: 5px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .pr-step { padding-top: 0; padding-left: 32px; }
  .pr-wk { position: static; display: block; margin-bottom: 6px; }
  .pr-node { top: 4px; }
}

/* ---- Global footprint panel (/services, /contact) ------------------------------------ */
.global-panel {
  position: relative;
  background:
    radial-gradient(ellipse 70% 110% at 12% 0%, rgba(108, 155, 255, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 110% at 88% 100%, rgba(77, 127, 232, 0.07), transparent 55%),
    var(--band-bg);
  border: 1px solid var(--band-rule);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 60px) clamp(28px, 3.5vw, 44px);
  overflow: hidden;
}
.gp-head { max-width: 620px; margin-bottom: clamp(30px, 4vw, 48px); }
.gp-head .eyebrow { margin-bottom: 14px; }
.gp-head h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -0.02em; }
.gp-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(28px, 3.5vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--band-rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.gp-strip::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pos);
  animation: foot-pulse 2.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .gp-strip::before { animation: none; } }

.global-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.global-band > div { border-top: 1px solid var(--rule-strong); padding-top: 16px; }
.global-panel .global-band > div {
  border-top: none;
  border-left: 1px solid var(--band-rule);
  padding-top: 0;
  padding-left: 22px;
}
.gb-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.gb-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .global-band { grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* ---- Practice areas -------------------------------------------------------------------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.practice {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.practice:hover {
  border-color: var(--rule-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.practice .eyebrow { margin-bottom: 18px; }
.practice h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.practice > p:not(.eyebrow) { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.practice ul {
  list-style: none;
  padding: 0;
  margin-top: auto;
  border-top: 1px solid var(--rule);
}
.practice li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-block: 9px;
  border-bottom: 1px solid var(--rule);
  padding-left: 20px;
  position: relative;
}
.practice li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: calc(9px + 0.8em);
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.services-close {
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-soft);
}
.services-close a { font-weight: 600; }

/* ---- Engagement-end contrast ------------------------------------------------------------ */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contrast-col { padding: 30px 30px 24px; border-radius: var(--radius-card); }
.contrast-col h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.contrast-col ul { list-style: none; padding: 0; }
.contrast-col li {
  padding-block: 11px;
  font-size: 15px;
  border-top: 1px solid var(--rule);
}
.contrast-them { background: var(--ledger); border: 1px solid var(--rule); }
.contrast-them h3 { color: var(--ink-faint); }
.contrast-them li { color: var(--ink-soft); }
.contrast-us {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(108, 155, 255, 0.28);
  overflow: hidden;
}
.contrast-us::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.contrast-us h3 { color: var(--accent); }
.contrast-us li { color: var(--ink); }

.product-tiles {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.product-tile {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  display: block;
  color: var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease,
              background 150ms ease;
}
.product-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(108, 155, 255, 0.4);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}
.product-tile .p-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.product-tile .p-url {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.product-tile p { font-size: 14.5px; color: var(--ink-soft); }
.product-caption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

/* ---- Process steps ----------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 24px 24px 22px;
  position: relative;
}
.step .s-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: inline-block;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---- Pricing ------------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease;
}
.price-card:hover { border-color: var(--rule-strong); }
.price-card.featured {
  position: relative;
  border-color: rgba(108, 155, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(108, 155, 255, 0.12), var(--shadow-card);
  overflow: hidden;
}
.price-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.price-card .p-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  min-height: 18px;
  line-height: 18px;
}
.p-stamp {
  position: absolute;
  top: -30px;
  right: -22px;
  width: 118px;
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  transform: rotate(9deg);
  z-index: 3;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.p-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-top, .ps-sub {
  position: relative;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(91, 218, 139, 0.8);
  line-height: 1.45;
}
.ps-big {
  position: relative;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pos);
  line-height: 1.05;
}
@media (max-width: 720px) {
  .p-stamp { top: -24px; right: -8px; transform: rotate(9deg) scale(0.88); }
}
.price-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.price-card .p-terms {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.price-card .p-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.price-card .p-duration {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(108, 155, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin: 10px 0 18px;
}
.price-card .p-price small {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.price-card > p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 22px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 26px;
  border-top: 1px solid var(--rule);
}
.price-card li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-block: 9px;
  border-bottom: 1px solid var(--rule);
  padding-left: 20px;
  position: relative;
}
.price-card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: calc(9px + 0.8em);
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.price-card .btn { margin-top: auto; }
.pn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 18px;
}
.pn-chips span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  white-space: nowrap;
}
.pricing-note {
  margin-top: 28px;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  max-width: none;
}

/* ---- About: full-bleed Empire State night backdrop, near-full-viewport ---------------------- */
#about {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(94svh, 1020px);
  padding-block: clamp(96px, 12svh, 170px);
}
.about-esb {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(52%, 900px);
  background: url('/static/img/esb-night.jpg') 42% 22% / cover no-repeat;
  filter: saturate(0.7) brightness(0.82);
  pointer-events: none;
}
.about-mtl { background: url('/static/img/montreal-night.jpg') 30% 38% / cover no-repeat; }
.about-esb::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 15, 0.92) 0%, rgba(10, 11, 15, 0.78) 34%, rgba(10, 11, 15, 0.4) 62%, rgba(10, 11, 15, 0.72) 86%, var(--paper) 99%),
    linear-gradient(180deg, var(--paper) 0%, rgba(10, 11, 15, 0) 14%, rgba(10, 11, 15, 0) 84%, var(--paper) 100%);
}
#about > .container { position: relative; z-index: 1; flex: 1; }
@media (max-width: 1000px) {
  #about { min-height: 0; padding-block: clamp(72px, 10svh, 120px); }
  .about-esb { width: 100%; }
  .about-mtl { background: url('/static/img/montreal-night.jpg') 30% 38% / cover no-repeat; }
.about-esb::after {
    background:
      rgba(10, 11, 15, 0.9),
      linear-gradient(180deg, var(--paper) 0%, rgba(10, 11, 15, 0) 18%, rgba(10, 11, 15, 0) 82%, var(--paper) 100%);
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.about-side { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.65); }
.about-side .eyebrow { margin-bottom: 16px; }
.about-side h2 {
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: clamp(28px, 4svh, 44px);
}
.about-creds { border-top: 1px solid var(--rule); margin-top: 8px; }
.about-creds div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.about-creds dt {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}
.about-creds dd { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  margin-bottom: clamp(30px, 4svh, 48px);
}
.about-stats > div {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 18px;
}
.as-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.as-label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 242, 245, 0.8);
}
/* Over the photo, faint tokens are illegible; lift them */
#about .about-creds dt { color: rgba(242, 242, 245, 0.78); }
#about .about-creds div { border-bottom-color: rgba(255, 255, 255, 0.22); }
#about .about-creds { border-top-color: rgba(255, 255, 255, 0.22); }
.about-body p { color: var(--ink-soft); margin-bottom: 20px; max-width: 44em; font-size: 16.5px; line-height: 1.75; }
.about-body p strong { color: var(--ink); font-weight: 600; }
.about-body p:first-child { font-size: 18px; }
.about-body .about-more { margin-top: 10px; }

/* ---- Commitment trust grid (about-us): the enterprise security-section pattern ------- */
.commit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 56px;
}
.commit {
  border-top: 1px solid var(--rule-strong);
  padding: 28px 4px 34px;
}
.cm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  color: var(--accent);
  margin-bottom: 20px;
}
.cm-icon svg { width: 26px; height: 26px; }
.commit h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.commit p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); max-width: 30em; }
@media (max-width: 900px) {
  .commit-grid { grid-template-columns: 1fr 1fr; gap: 4px 32px; }
}
@media (max-width: 640px) {
  .commit-grid { grid-template-columns: 1fr; }
  .commit { padding: 22px 2px 26px; }
}

/* ---- Team (about-us): one real principal + a bench of roles -------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
.team-principal {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px 36px;
  align-items: start;
  padding: 38px 42px;
}
.team-principal .tm-avatar {
  width: 120px;
  height: 120px;
  margin-bottom: 0;
  grid-row: 1 / 4;
}
.team-principal h3 { margin-bottom: 2px; }
.team-principal .tm-bio { max-width: 78ch; margin-bottom: 0; }
.team-principal .tm-li { position: absolute; top: 30px; right: 30px; }
@media (max-width: 640px) {
  .team-principal { grid-template-columns: 1fr; padding: 30px; }
  .team-principal .tm-avatar { grid-row: auto; margin-bottom: 14px; }
  .team-principal .tm-li { position: static; margin-top: 14px; }
}
.team-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 30px;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.85;
}
.tm-avatar {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin-bottom: 18px;
  object-fit: cover;
  border: 1px solid var(--rule-strong);
}
.tm-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
}
.team-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.tm-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.tm-bio { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 16px; }
.tm-li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  color: var(--ink-faint);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.tm-li svg { width: 17px; height: 17px; }
.tm-li:hover { color: var(--accent); border-color: var(--accent); background: rgba(108, 155, 255, 0.06); }
.team-bench {
  display: flex;
  flex-direction: column;
  background: var(--ledger);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 26px 28px 22px;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---- CTA band: contained gradient panel ------------------------------------------------------ */
.cta-band { padding-block: clamp(40px, 5vw, 72px); border: 0; }
.cta-band > .container {
  position: relative;
  background:
    radial-gradient(ellipse 80% 120% at 15% 0%, rgba(108, 155, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 120% at 85% 100%, rgba(77, 127, 232, 0.10), transparent 55%),
    var(--band-bg);
  border: 1px solid var(--band-rule);
  border-radius: 24px;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 72px);
  overflow: hidden;
}
.cta-band .eyebrow { color: var(--band-ink-soft); margin-bottom: 20px; }
.cta-band h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
  max-width: 18em;
  margin-bottom: 18px;
  text-wrap: balance;
  color: var(--band-ink);
}
.cta-band > .container > p:not(.eyebrow):not(.cta-alt) {
  color: var(--band-ink-soft);
  max-width: 40em;
  margin-bottom: 34px;
  font-size: 17px;
}
.cta-band :focus-visible { outline-color: var(--band-ink); }
.cta-band .cta-alt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--band-ink-soft);
}
.cta-band .cta-alt a {
  color: var(--band-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-band .cta-alt a:hover { color: var(--band-accent); }

/* ---- Footer ------------------------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--rule); padding-block: 56px 40px; }
.cta-band + .footer, .cta-band + .case-next { border-top: 0; }
main:has(> .cta-band:last-child) + .footer { border-top: 0; }
.footer .wordmark { display: inline-flex; margin-bottom: 12px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.foot-li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink-faint);
  transition: color 150ms ease, border-color 150ms ease;
}
.foot-li svg { width: 16px; height: 16px; }
.foot-li:hover { color: var(--accent); border-color: var(--accent); }
.footer-tag { font-size: 14px; color: var(--ink-faint); max-width: 24em; }
.footer-offices { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 20px; }
.fo-office { border-left: 2px solid var(--rule-strong); padding-left: 14px; }
.fo-city {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.fo-lines { font-size: 13px; line-height: 1.6; color: var(--ink-faint); }
.footer h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer li a { font-size: 14px; color: var(--ink-soft); }
.footer li a:hover { color: var(--ink); }
.footer-base {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ---- Case hero backdrop (full-bleed themed photograph, heavily washed) ------------- */
main { position: relative; }
.case-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 680px;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.5);
}
.case-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 11, 15, 0.82) 0%,
    rgba(10, 11, 15, 0.9) 45%,
    rgba(10, 11, 15, 0.985) 85%,
    #0A0B0F 100%);
}
.case-backdrop ~ * { position: relative; z-index: 1; }

/* ---- Case landing components (slick, scannable) ----------------------------------- */
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto clamp(56px, 7vw, 88px);
}
.case-stats > div {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.case-stats .cs-fig {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 3px;
}
.case-stats .cs-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.case-section { max-width: 900px; margin: 0 auto clamp(56px, 7vw, 88px); }
.case-section > h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.case-section > h2 .h-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  margin-right: 14px;
  letter-spacing: 0.08em;
  position: relative;
  top: -3px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-section > p { color: var(--ink-soft); max-width: 46em; margin-bottom: 20px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list a {
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.chip-list a::after {
  content: ' \2192';
  opacity: 0;
  margin-left: 0;
  transition: opacity 150ms ease, margin 150ms ease;
}
.chip-list a:hover, .chip-list a:focus-visible {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(108, 155, 255, 0.06);
}
.chip-list a:hover::after, .chip-list a:focus-visible::after { opacity: 1; margin-left: 4px; }
.chip-list span, .chip-list a {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.f-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 24px;
}
.f-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.f-card p { font-size: 14px; color: var(--ink-soft); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.i-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  overflow: hidden;
}
.i-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.85;
}
.i-card .i-fig {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.i-card p { font-size: 14px; color: var(--ink-soft); }

/* ---- Case study pages ---------------------------------------------------------------------------- */
.case-hero {
  position: relative;
  padding-block: clamp(72px, 8vw, 110px) clamp(40px, 5vw, 64px);
  text-align: center;
}
.case-hero .eyebrow { margin-bottom: 34px; }
.case-hero .eyebrow a {
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.case-hero .eyebrow a:hover { color: var(--ink); }
.case-title { margin: 0; }
.case-figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 13vw, 136px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-unit {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.case-hero .lede { margin-inline: auto; text-wrap: balance; }

.case-quote {
  position: relative;
  max-width: 740px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 34px 38px 30px;
}
.case-quote::before {
  content: '\201C';
  position: absolute;
  top: 6px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
}
.case-quote blockquote {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  padding-left: 26px;
}
.case-quote figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 26px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.case-meta > div {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.case-meta .m-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.case-meta .m-value { font-size: 14px; color: var(--ink); }

.case-prose { max-width: 740px; margin-inline: auto; padding-bottom: clamp(28px, 4vw, 60px); }
.case-prose section { margin-bottom: clamp(44px, 5vw, 64px); }
.case-prose h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.case-prose h2 .h-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  margin-right: 14px;
  letter-spacing: 0.08em;
  position: relative;
  top: -4px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-prose p { color: var(--ink-soft); margin-bottom: 14px; }
.case-prose p strong { color: var(--ink); font-weight: 600; }
.case-prose ul { padding-left: 0; list-style: none; margin-bottom: 14px; }
.case-prose ul li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 15px;
  position: relative;
}
.case-prose ul li:first-child { border-top: 1px solid var(--rule); }
.case-prose ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: calc(10px + 0.8em);
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.case-prose ul li strong { color: var(--ink); font-weight: 600; }
.case-prose .results-foot { color: var(--ink-faint); margin-bottom: 0; }

.results-table {
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-block: 8px 14px;
  background: var(--card);
}
.results-table table { width: 100%; border-collapse: collapse; }
.results-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule-strong);
  background: rgba(255, 255, 255, 0.03);
}
.results-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-soft);
}
.results-table tr:last-child td { border-bottom: none; }
.results-table td.r-fig {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.case-next { border-top: 1px solid var(--rule); padding-block: clamp(48px, 6vw, 72px); }
.case-next .eyebrow { margin-bottom: 24px; }
.case-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- Case "more detail" disclosure ------------------------------------------------- */
.case-more {
  max-width: 900px;
  margin: 0 auto clamp(56px, 7vw, 88px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--card);
  overflow: hidden;
}
.case-more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  transition: background 150ms ease;
}
.case-more summary:hover { background: rgba(255, 255, 255, 0.03); }
.case-more summary::-webkit-details-marker { display: none; }
.case-more summary .cm-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.case-more summary .cm-chev {
  width: 18px;
  height: 18px;
  transition: transform 200ms ease;
  color: var(--accent);
}
.case-more[open] summary .cm-chev { transform: rotate(180deg); }
.case-more[open] summary { border-bottom: 1px solid var(--rule); }
.cm-body { padding: 6px 28px 34px; }
.cm-h {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 28px 0 12px;
}
.cm-p { font-size: 15px; color: var(--ink-soft); max-width: 62em; margin-bottom: 12px; }
.cm-p strong { color: var(--ink); font-weight: 600; }
.cm-p-gap { margin-top: 14px; }
.cm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cm-table { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.cm-table table { width: 100%; border-collapse: collapse; }
.cm-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--rule);
}
.cm-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
  vertical-align: top;
}
.cm-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.cm-table tr:last-child td { border-bottom: none; }
.cm-steps { list-style: none; padding: 0; margin: 0; position: relative; }
.cm-steps::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule);
}
.cm-steps li { position: relative; padding: 0 0 18px 28px; font-size: 14.5px; color: var(--ink-soft); }
.cm-steps li:last-child { padding-bottom: 0; }
.cm-steps li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}
.cm-steps li strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
.cm-steps .cm-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-right: 8px;
}
.cm-quote {
  margin: 22px 0 4px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.cm-quote blockquote { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.cm-quote figcaption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-tags span {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .cm-cols { grid-template-columns: 1fr; }
  .cm-body { padding-inline: 20px; }
  .case-more summary { padding-inline: 20px; }
}

/* ---- Contact chat: the scoping assistant ------------------------------------------ */
.chat-wrap {
  max-width: 1220px;
  margin-inline: auto;
  padding-block: clamp(48px, 6svh, 84px) clamp(56px, 7vw, 96px);
}
.chat-head { text-align: center; margin-bottom: clamp(28px, 4svh, 44px); }
.chat-head h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.chat-head p { color: var(--ink-soft); max-width: 38em; margin-inline: auto; font-size: 15.5px; }
.chat-window {
  display: flex;
  flex-direction: column;
  background: var(--shell);
  border: 1px solid var(--rule-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.chat-restart {
  appearance: none;
  background: none;
  border: none;
  margin-left: auto;
  padding: 4px 8px;
  font-size: 15px;
  color: var(--ink-faint);
  cursor: pointer;
  border-radius: 6px;
  transition: color 150ms ease, background 150ms ease;
}
.chat-restart:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.chat-window .dc-chip { margin-left: 4px; }
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 20px;
  min-height: 430px;
  max-height: min(64svh, 620px);
  justify-content: flex-end;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  animation: msg-in 240ms ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rule);
  border-bottom-left-radius: 5px;
  color: var(--ink);
}
.msg.user {
  align-self: flex-end;
  background: var(--btn-bg);
  color: #FFFFFF;
  border-bottom-right-radius: 5px;
}
.msg.typing { display: flex; gap: 4px; padding: 14px 16px; }
.msg.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: type-dot 1s ease-in-out infinite;
}
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes type-dot {
  0%, 60%, 100% { opacity: 0.35; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}
.cc-book { align-self: flex-start; margin-top: 6px; margin-left: 34px; }
.brow { display: flex; align-items: flex-end; gap: 9px; max-width: 86%; animation: msg-in 240ms ease; }
.b-avatar { flex-shrink: 0; width: 25px; height: 25px; border-radius: 8px; overflow: hidden; }
.b-avatar svg { display: block; width: 100%; height: 100%; }
.brow .msg { animation: none; max-width: none; }
.msg-slot {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-top: 10px;
  animation: msg-in 240ms ease;
}
.ms-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.msg-slot .cc-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.msg-slot .cc-chips .cc-chip { width: 100%; }
.msg-slot .cc-chips:has(.cc-chip:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.msg-slot .cc-chips .cc-chip:nth-child(3n+1):last-child { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .msg-slot .cc-chips { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .msg-slot .cc-chips .cc-chip:nth-child(3n+1):last-child { grid-column: auto; }
  .msg-slot .cc-chips .cc-chip:nth-child(2n+1):last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .msg-slot .cc-chips { grid-template-columns: 1fr; }
}
.cc-free {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}
.cc-free input {
  flex: 1;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 11px 15px;
}
.cc-free input:focus { outline: none; border-color: var(--accent); }
.cc-free input::placeholder { color: var(--ink-faint); }
.cc-free button {
  appearance: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--accent);
  background: rgba(108, 155, 255, 0.08);
  border: 1px solid rgba(108, 155, 255, 0.3);
  border-radius: 12px;
  padding: 0 18px;
  transition: background 150ms ease, border-color 150ms ease;
}
.cc-free button:hover { background: rgba(108, 155, 255, 0.16); border-color: var(--accent); }
/* -- Finale: thread recedes, closing card takes center -- */
.chat-window .chat-thread { transition: opacity 550ms ease, max-height 550ms ease, filter 550ms ease; }
.chat-window.closing .chat-thread {
  opacity: 0.25;
  filter: saturate(0.5);
  pointer-events: none;
  max-height: 175px;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.cc-finale {
  max-width: 660px;
  margin: 6px auto 10px;
  animation: finale-in 460ms cubic-bezier(0.2, 0.85, 0.3, 1);
}
@keyframes finale-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.cf-recap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: center;
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.cf-cell { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cf-cell span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.cf-cell b { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.cf-head {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: center;
  margin-bottom: 18px;
}
.cc-finale .cc-actions { justify-content: center; }
.cf-done { text-align: center; padding: 8px 0 6px; animation: finale-in 420ms ease; }
.cf-done svg { width: 40px; height: 40px; color: var(--pos); margin-bottom: 12px; }
.cf-done h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.cf-done p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 46ch; margin: 0 auto 18px; }
@media (prefers-reduced-motion: reduce) {
  .chat-window .chat-thread { transition: none; }
  .cc-finale, .cf-done { animation: none; }
}
.cc-bypass { align-self: flex-end; margin-top: 4px; }
.cc-bypass-link {
  align-self: flex-end;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}
.cc-bypass-link:hover { color: var(--accent); }
.cc-say { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.cc-say textarea {
  font: inherit;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 15px;
  resize: vertical;
  min-height: 74px;
}
.cc-say textarea:focus { outline: none; border-color: var(--accent); }
.cc-say textarea::placeholder { color: var(--ink-faint); }
.cs-actions { display: flex; align-items: center; gap: 14px; }
.cs-skip {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}
.cs-skip:hover { color: var(--ink-soft); }
.chat-dock { border-top: 1px solid var(--rule); padding: 12px 18px 14px; min-height: 30px; }
.chat-window { position: relative; }
.chat-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 16px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.02);
}
.ch-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ch-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule-strong); }
.ch-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.ch-step {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.qe-pop { position: relative; margin-left: 6px; }
.qe-toggle {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(108, 155, 255, 0.08);
  border: 1px solid rgba(108, 155, 255, 0.4);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  animation: qe-pulse 2.8s ease-out infinite;
}
@keyframes qe-pulse {
  0% { box-shadow: 0 0 0 0 rgba(108, 155, 255, 0.4); }
  55% { box-shadow: 0 0 0 8px rgba(108, 155, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 155, 255, 0); }
}
.qe-toggle:hover { background: var(--accent-soft); border-color: var(--accent); }
.qe-toggle[aria-expanded="true"], .qe-toggle.done, .qe-toggle:disabled { animation: none; }
@media (prefers-reduced-motion: reduce) { .qe-toggle { animation: none; } }
.qe-toggle.done {
  color: var(--pos);
  border-color: rgba(91, 218, 139, 0.4);
  background: rgba(91, 218, 139, 0.07);
  cursor: default;
}
.qe-toggle.done::before { content: '\2713\00a0'; }
.qe-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--shell);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  width: min(360px, 82vw);
}
.qe-panel[hidden] { display: none; }
.qe-hint { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.qe-name {
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  padding: 9px 13px;
  border-radius: 9px;
  width: 100%;
}
.qe-name:focus { outline: none; border-color: var(--accent); }
.qe-name::placeholder { color: var(--ink-faint); }
.qe-nudge {
  position: fixed;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 252px;
  padding: 13px 14px;
  background: var(--shell);
  border: 1px solid rgba(108, 155, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  animation: nudge-in 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.qe-nudge i {
  position: absolute;
  bottom: -6px;
  right: 30px;
  width: 10px;
  height: 10px;
  background: var(--shell);
  border-right: 1px solid rgba(108, 155, 255, 0.4);
  border-bottom: 1px solid rgba(108, 155, 255, 0.4);
  transform: rotate(45deg);
}
.qe-nudge .qn-x {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  margin: -3px -4px 0 0;
  padding: 2px 4px;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-faint);
}
.qe-nudge .qn-x:hover { color: var(--ink); }
@keyframes nudge-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .qe-nudge { animation: none; } }
.qe-row { display: flex; gap: 8px; }
.qe-panel input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  padding: 9px 13px;
  border-radius: 9px;
}
.qe-panel input:focus { outline: none; border-color: var(--accent); }
.qe-panel input::placeholder { color: var(--ink-faint); }
.qe-go {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--btn-bg);
  border: none;
  border-radius: 9px;
  padding: 9px 16px;
  cursor: pointer;
}
.qe-go:hover { background: var(--btn-bg-hover); }
.qe-bar { display: flex; align-items: center; gap: 10px; }
.qe-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.qe-bar input {
  flex: 1;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  transition: border-color 150ms ease;
}
.qe-bar input:focus { outline: none; border-color: var(--accent); }
.qe-bar input::placeholder { color: var(--ink-faint); }
.qe-send {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.qe-send:hover { border-color: var(--accent); color: var(--ink); }
.chat-dock:empty { display: none; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chip {
  appearance: none;
  text-align: left;
  font-family: var(--font-sans);
  background: rgba(108, 155, 255, 0.05);
  border: 1px solid rgba(108, 155, 255, 0.3);
  border-radius: 12px;
  color: var(--ink);
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.cc-chip:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.cc-chip b { display: block; font-weight: 600; font-size: 13.5px; }
.cc-chip span { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }
.cc-form { display: flex; flex-direction: column; gap: 10px; }
.cc-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.cc-form input, .cc-form textarea {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  padding: 11px 13px;
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}
.cc-form input:focus, .cc-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 155, 255, 0.15);
}
.cc-form ::placeholder { color: var(--ink-faint); }
.cc-form textarea { resize: vertical; }
.cc-actions { display: flex; align-items: center; gap: 16px; }
.cc-error { color: #FC6373; font-size: 13px; }
@media (max-width: 640px) {
  .cc-row { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  .msg, .brow, .msg-slot { animation: none; }
  .msg.typing i { animation: none; }
  .chat-thread { scroll-behavior: auto; }
}

.chat-assure {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ---- Contact wizard --------------------------------------------------------------- */
.wizard-wrap {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(56px, 7vw, 90px) clamp(72px, 9vw, 120px);
}
.wizard-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.wizard-head .eyebrow { margin-bottom: 14px; }
.wizard-head h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.05;
  margin-bottom: 14px;
  text-wrap: balance;
}
.wizard-head p { color: var(--ink-soft); max-width: 34em; margin-inline: auto; }
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.wp-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.wp-bar {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.wp-fill {
  position: absolute;
  inset: 0;
  right: auto;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--grad);
  transition: width 300ms ease;
}
.wizard-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: step-in 260ms ease; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wizard-step.active { animation: none; }
}
.wizard-step h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.wizard-step .ws-sub { font-size: 14px; color: var(--ink-faint); margin-bottom: 24px; }
.ws-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.ws-options .ws-option:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ws-option {
  appearance: none;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--rule);
  border-radius: 12px;
  color: var(--ink);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease,
              box-shadow 150ms ease;
}
.ws-option:hover {
  border-color: rgba(108, 155, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.ws-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(108, 155, 255, 0.35);
}
.ws-option .wo-title { display: block; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.ws-option .wo-sub { display: block; font-size: 13px; color: var(--ink-faint); }
.ws-fields { display: grid; gap: 14px; position: relative; z-index: 1; }
.hp-field { position: absolute; left: -9999px; top: 0; }
.ws-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.ws-field input, .ws-field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ws-field input:focus, .ws-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 155, 255, 0.15);
}
.ws-field textarea { resize: vertical; min-height: 72px; }
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.wz-back {
  appearance: none;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 8px 0;
}
.wz-back:hover { color: var(--ink); }
.wz-back[hidden] { visibility: hidden; display: block; }
.ws-error { color: var(--accent); font-size: 13px; margin-top: 10px; display: none; }
.wizard-done { text-align: center; padding-block: 10px; }
.wizard-done h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.wizard-done > p { color: var(--ink-soft); max-width: 32em; margin-inline: auto; margin-bottom: 22px; }
.wd-recap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.wd-recap span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}
.wd-alt { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.wd-alt a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Reveal animation ------------------------------------------------------------------------------
   Hidden state gated on html.js so content is never invisible without JS. */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tombstone, .product-tile, .ws-option, .practice { transition: none; }
  .demo-card { transition: none; }
  .demo-deck { transition: none; transform: none; }
  .demo-tab .dt-bar { display: none; }
  .dc-foot::before { animation: none; }
  .note { transition: none; }
  .note .lead path { animation: none; }
}

/* ---- Responsive -------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .demo-stage { margin-right: 0; margin-top: 18px; }
  .demo-tabs { max-width: none; }
  .ts-lib .ts-figure { color: var(--ink-soft); }
.ts-was {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 200ms ease, opacity 200ms ease, margin 200ms ease;
}
.tombstone:hover .ts-was, .tombstone:focus-visible .ts-lib .ts-figure { color: var(--ink-soft); }
.ts-was {
  max-height: 22px;
  opacity: 1;
  margin-bottom: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .ts-lib .ts-figure { color: var(--ink-soft); }
.ts-was { max-height: 22px; opacity: 1; margin-bottom: 4px; transition: none; }
}
.tombstone-grid { grid-template-columns: 1fr; gap: 16px; }
  .outcome-strip { grid-template-columns: repeat(2, 1fr); }
  .practice-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contrast-grid { grid-template-columns: 1fr; }
  .product-tiles { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .qa-row { grid-template-columns: 42px 1fr; gap: 10px 14px; }
  .qa-row p { grid-column: 2; }
}

@media (max-width: 360px) {
  .nav .container { padding-inline: 16px; }
  .btn-sm { padding: 8px 12px; }
}

@media (max-width: 820px) {
  .case-stats, .impact-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* Short laptop viewports: hero copy, deck, and marquee must fit one screen */
@media (min-width: 900px) and (max-height: 860px) {
  .hero h1 { font-size: 56px; margin-bottom: 14px; }
  .hero-grid > .lede { font-size: 16.5px; margin-bottom: 12px; }
  .demo-deck { margin-top: 22px; }
  .demo-card.is-under { transform: translateY(-13px) scale(0.96); }
  .demo-card.is-back { transform: translateY(-24px) scale(0.925); }
  .kpi .k-value { font-size: 18px; }
  .kpi { padding: 9px 12px 8px; }
  .dc-body { padding: 16px 18px; gap: 12px; }
  .dc-main { padding: 14px 16px; gap: 12px; }
  .dc-bar { height: 44px; }
  .rule-row, .dc-row { padding: 8px 14px; }
  .demo-tabs { margin-top: 16px; gap: 4px; }
  .demo-tab { padding: 10px 14px 10px 16px; }
  .demo-tab .dt-label { font-size: 14px; }
}

@media (max-width: 900px) {
  .stage-notes { display: none; }
  .dc-side { display: none; }
  .dc-cols2, .dc-cols2.c3 { grid-template-columns: 1fr; }
  .dc-kpis.k4 { grid-template-columns: repeat(2, 1fr); }
  .dc-kpis.k1 { grid-template-columns: repeat(3, 1fr); }
  .dc-main { padding: 14px; }
}

@media (max-width: 640px) {
  .demo-deck { transform: none; margin-top: 26px; }
  .dc-title { display: none; }
  .dc-seg { display: none; }
}

@media (max-width: 480px) {
  .kpi .k-value { font-size: 15px; }
  .dc-kpis.k4, .dc-kpis.k1 { grid-template-columns: repeat(2, 1fr); }
  .dc-verdict .v-sub { display: none; }
  .dc-head .h-meta { display: none; }
  .dc-timeline { display: none; }
  .demo-tab .dt-label { font-size: 13px; }
  .dc-row .r-sub { display: none; }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn):not(.nav-keep) { display: none; }
  .nav-inner { gap: 14px; }
  .nav-links { gap: 4px; }
  .steps { grid-template-columns: 1fr; }
  .case-next-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 auto; white-space: normal; text-align: center; }
  .ws-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .outcome-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
}
