/* ==========================================================================
   QUMIS MARKETING SITE v3 — design system (v2, design-director pass)
   Paper & Ink · Lora display · Inter text · monochrome (no accent hue)
   Brand Book v2.4 tokens preserved verbatim; roles, drama, and component
   craft added. One shared stylesheet; pages add only composition styles.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-variable.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Tokens: brand values (verbatim) + roles ---------- */
:root {
  /* brand values */
  --paper: #f1f0ed;
  --paper-100: #eae8e4;
  --paper-200: #e4e2dc;
  --ink: #242423;
  --ink-soft: #2e2e2c;
  --ink-raise: #343432;
  --white: #ffffff;

  /* gray ramp (Harvey-spec architecture, Qumis endpoints) */
  --gray-900: #2e2e2c;
  --gray-800: #3f3e3b;
  --gray-700: #55534e;
  --gray-600: #6b6961; /* 4.8:1 on paper — the old #706e67 sat at 4.48 */
  --gray-500: #8e8b84;
  --gray-400: #aca9a2;
  --gray-300: #cbc9c4;
  --gray-200: #dedcd6;
  --gray-100: #eae8e4;

  /* color roles */
  --bg-page: var(--paper);
  --bg-alt: var(--gray-100);
  --bg-sunken: var(--paper-200);
  --surface: var(--white);
  --text: #242423;
  --text-2: var(--gray-800);
  --text-3: var(--gray-600);
  --text-4: var(--gray-500);
  --on-ink: #f1f0ed;
  --on-ink-2: rgba(241, 240, 237, 0.66);
  --border-subtle: var(--gray-200);
  --border-strong: var(--gray-400);
  --border-on-ink: rgba(241, 240, 237, 0.16);
  --ok: rgba(36, 36, 35, 0.07);
  --warn-text: var(--ink);

  /* legacy aliases kept for ported pages */
  --text-secondary: var(--text-2);
  --text-muted: var(--text-3);
  --text-light: var(--text-4);
  --text-on-ink: var(--on-ink);
  --text-on-ink-muted: var(--on-ink-2);
  --hairline: var(--border-subtle);
  --hairline-strong: var(--border-strong);
  --hairline-on-ink: var(--border-on-ink);

  /* elevation */
  --shadow-1: none;
  --shadow-2: none;
  --shadow-3: none;
  --shadow-doc: none;
  --shadow-xs: var(--shadow-1);
  --shadow-sm: var(--shadow-2);
  --shadow-md: var(--shadow-3);

  /* radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 8px;
  --r-xl: 8px;
  --r-full: 9999px;

  /* space scale */
  --s-1: 8px; --s-2: 12px; --s-3: 16px; --s-4: 24px; --s-5: 32px;
  --s-6: 48px; --s-7: 72px; --s-8: 144px; --s-9: 180px;
  --t-color: 0.3s cubic-bezier(0.3, 0.3, 0.3, 1);
  --t-struct: 0.4s cubic-bezier(0.7, 0, 0.3, 1);

  /* layout — one grid for the whole site (harvey.ai, measured 14 Sep 2026 at 1440/1728):
     content 1376 max, 32px page gutters, ten columns / 16px gaps; every section, the nav bar,
     the hero bands and the footer share the same left edge */
  --gutter: 32px;
  --w-text: 720px;
  --w-content: 1376px;
  --w-wide: 1376px;
  --container: var(--w-content);
  --container-wide: var(--w-wide);
  --nav-h: 72px;
}
@media (max-width: 700px) { :root { --gutter: 24px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01" on, "cv05" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
::selection { background: rgba(36, 36, 35, 0.16); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.bg-ink :focus-visible, .on-ink :focus-visible, .footer-ink :focus-visible, .mcp-card :focus-visible { outline-color: var(--on-ink); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type system (harvey.ai scale at 1440: display 72/1.05 · statement 48 · section 32 · lede 20/26 · body 16;
   Lora carries a larger x-height than Harvey's serif, so the section sizes sit a step under theirs) ---------- */
.h-hero, .display-hero {
  font-family: "Lora", Georgia, serif; font-weight: 400;
  letter-spacing: -0.0125em; line-height: 1.05;
  font-size: clamp(38px, 5vw, 76px); color: var(--text);
}
.h-section, .display-section {
  font-family: "Lora", Georgia, serif; font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.08;
  font-size: clamp(26px, 2.36vw, 34px);
}
.h-display-2 {
  font-family: "Lora", Georgia, serif; font-weight: 400;
  letter-spacing: -0.009em; line-height: 1.05;
  font-size: clamp(34px, 3.4vw, 48px);
}
.h-sub {
  font-family: "Inter", sans-serif; font-weight: 500;
  letter-spacing: -0.012em; line-height: 1.1;
  font-size: clamp(25px, 2.22vw, 32px);
}
.h-card { font-family: "Inter", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.35; letter-spacing: -0.005em; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: "Inter", sans-serif; font-size: 14px; font-weight: 400; line-height: 1.4;
  text-transform: none; letter-spacing: 0; color: var(--text-3);
  margin: 0 0 20px;
}
.eyebrow::before { display: none; }
.eyebrow.no-tick::before { display: none; }
.on-ink .eyebrow, .bg-ink .eyebrow { color: var(--on-ink-2); }
.lede { font-size: 20px; line-height: 1.35; color: var(--text-2); max-width: 560px; }
.on-ink .lede, .bg-ink .lede { color: var(--on-ink-2); }
.body-sm { font-size: 15px; line-height: 1.65; color: var(--text-2); }
.muted { color: var(--text-3); }
.serif-italic { font-family: "Lora", Georgia, serif; font-style: italic; }

/* editorial pull quote with oversized mark */
.quote, .pull-quote {
  position: relative;
  font-family: "Lora", Georgia, serif; font-weight: 400;
  font-size: clamp(26px, 2.5vw, 36px); line-height: 1.15; letter-spacing: -0.01em;
  margin: 0; max-width: 940px;
}
.quote-mark::before { display: none; }
.quote-mark { padding-top: 0; }
.quote-attr { font-family: "Inter", sans-serif; font-size: 13.5px; font-weight: 500; color: var(--text-3); margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.quote-attr::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.5; }
.on-ink .quote-attr, .bg-ink .quote-attr { color: var(--on-ink-2); }

/* big numbers */
.big-num {
  font-family: "Lora", Georgia, serif; font-weight: 400;
  font-size: clamp(56px, 5.5vw, 80px); line-height: 1.05; letter-spacing: -0.0125em;
  font-variant-numeric: lining-nums;
}
/* ghost numerals for depth */
.ghost-num, .hero-ghost, .big-ghost, .ink-illustration { display: none !important; }

/* ---------- Layout ---------- */
.container, .container-wide { max-width: calc(var(--w-wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-text { max-width: calc(var(--w-text) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
/* section rhythm: 128 at 1440, 144 wide (Harvey 128–160); the xl step is 160 at 1440 */
.section { padding: clamp(88px, 8.9vw, 144px) 0; }
.section-sm { padding: clamp(56px, 5vw, 80px) 0; }
.section-xl { padding: clamp(104px, 11.1vw, 176px) 0; }
.section-flush-top { padding-top: 0 !important; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lede { margin-top: 20px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.cols-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.cols-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.cols-6-6 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.cols-8-4 { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.align-start { align-items: start; }
.divider-hair { border: 0; border-top: 1px solid var(--border-subtle); margin: 0; }
.kicker-rule { width: 44px; height: 3px; background: var(--ink); border-radius: 2px; margin-bottom: 24px; }
/* overlap moments */
.pull-down { position: relative; z-index: 2; margin-bottom: clamp(-96px, -7vw, -56px); }
.pull-up { position: relative; z-index: 2; margin-top: clamp(-96px, -7vw, -56px); }
.pad-for-pull { padding-top: clamp(132px, 14vw, 190px); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .cols-7-5, .cols-5-7, .cols-6-6, .cols-8-4 { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Surfaces ---------- */
.bg-paper { background: var(--bg-page); }
.bg-paper-100 { background: var(--bg-alt); }
.bg-sunken { background: var(--bg-sunken); }
.bg-white { background: var(--surface); }
.bg-ink { background: var(--ink); color: var(--on-ink); }
.bg-ink .h-section, .bg-ink .h-hero, .bg-ink .h-sub, .bg-ink .big-num { color: var(--on-ink); }
.on-ink { color: var(--on-ink); }
/* faint document dot-grid texture — use sparingly */
.tex-dots { background-image: none; }
.bg-ink.tex-dots { background-image: radial-gradient(rgba(241, 240, 237, 0.06) 1px, transparent 1px); }
/* blueprint grid for in-build surfaces */
.tex-blueprint {
  background-image:
    linear-gradient(rgba(36, 36, 35, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 36, 35, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
/* ink illustration watermarks (brand set, canonical 0.22) */
.ink-illustrated { position: relative; overflow: hidden; }
.ink-illustrated > .container, .ink-illustrated > .container-wide, .ink-illustrated > .container-text { position: relative; z-index: 1; }
.ink-illustration { position: absolute; pointer-events: none; opacity: 0.22; z-index: 0; }
.ink-illustration.pos-tr { top: -12%; right: -6%; width: min(46vw, 560px); }
.ink-illustration.pos-br { bottom: -18%; right: -4%; width: min(42vw, 520px); }
.ink-illustration.pos-bl { bottom: -20%; left: -6%; width: min(42vw, 520px); }
.ink-illustration.pos-c { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(60vw, 720px); opacity: 0.14; }

/* ---------- Photography bands (brand recipe, ported) ---------- */
.photo-treated { filter: saturate(0.84) contrast(1.03); }
.img-band {
  position: relative; min-height: clamp(360px, 44vw, 520px);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  margin: 0 32px; border-radius: 8px; overflow: hidden;
}
@media (max-width: 700px) { .img-band { margin: 0 16px; } }
.img-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36, 36, 35, 0.10) 20%, rgba(36, 36, 35, 0.62) 100%);
}
.img-band .band-caption { position: relative; z-index: 1; width: 100%; padding: clamp(36px, 4vw, 56px) 0; color: #fff; }
.img-band .band-caption .quote, .img-band .band-caption .h-sub, .img-band .band-caption .h-section { color: #fff; text-shadow: 0 1px 22px rgba(0, 0, 0, 0.4); }
.img-band .band-caption .quote-attr { color: rgba(241, 240, 237, 0.85); }
.img-band .band-caption .eyebrow { color: rgba(241, 240, 237, 0.8); }
.img-band-slim { min-height: clamp(280px, 30vw, 400px); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Inter", sans-serif; font-size: 14px; font-weight: 500; line-height: 1;
  height: 32px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: color var(--t-color), background-color var(--t-color), border-color var(--t-color), opacity var(--t-color);
}
.btn:active { opacity: 0.85; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gray-800); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: rgba(36, 36, 35, 0.06); }
.btn-on-ink-primary { background: var(--paper); color: var(--ink); }
.btn-on-ink-primary:hover { background: var(--white); }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 14px; color: var(--text-3); margin-top: 14px; }
.on-ink .cta-note { color: var(--on-ink-2); }
.text-link { font-weight: 500; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: border-color var(--t-color), gap var(--t-color); }
.text-link:hover { border-bottom-color: currentColor; }
.text-link .arr { display: inline-block; transition: transform var(--t-color); }
.text-link .arr::after { content: "→"; }
.text-link:hover .arr { transform: translateX(3px); }

/* ---------- Icons ---------- */
.ic { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 32px; height: 32px; }
.ic-sm { width: 18px; height: 18px; }
.icon-chip {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-page); border: 1px solid var(--border-subtle); color: var(--ink);
}
.bg-ink .icon-chip { background: var(--ink-soft); border-color: var(--border-on-ink); color: var(--on-ink); }

/* ---------- Nav (Harvey anatomy, measured 2 Sep 2026 at 1728: light bar stays light; 14/500 items, 16px chevrons that flip; 1px indicator; full-width paper panel on a 10-column grid) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(241, 240, 237, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0;
  transition: background-color var(--t-color);
}
.nav-inner { padding: 0 var(--gutter); height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.nav-logo { display: flex; align-items: center; justify-self: start; }
.nav-logo img { height: 22.4px; width: auto; } /* letterform body 19.6px = 0.272 × 72px bar (Harvey ratio, measured) */
.nav-links { display: flex; align-items: stretch; gap: 0; justify-self: center; }
.nav-links > a, .nav-drop > a {
  position: relative; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink);
  padding: 0 16px; height: var(--nav-h); display: inline-flex; align-items: center; gap: 4px;
  border-radius: 0; transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links > a:hover, .nav-drop > a:hover { color: var(--text-3); }
.nav-links > a.active, .nav-drop > a.active { color: var(--ink); }
.nav-drop { position: relative; display: flex; align-items: stretch; }
.nav-drop:hover > a, .nav-drop:focus-within > a { color: var(--ink); }
.nav-drop > a .chev { width: 16px; height: 16px; flex: none; transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-drop:hover > a .chev, .nav-drop:focus-within > a .chev { transform: rotate(180deg); }
/* 1px indicator under the open item, sitting on the bar's bottom edge */
.nav-drop > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1px; background: var(--ink); opacity: 0; transition: opacity 0.15s ease; }
.nav-drop:hover > a::after, .nav-drop:focus-within > a::after { opacity: 1; }
/* mega panel — full-width paper sheet under the bar; 12 columns: list columns span 1–3 and 5–7, feature 9–12 (wider text measure than Harvey's 2-of-10, at Dan's request) */
.nav-panel {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--paper); border: 0; border-top: 1px solid var(--border-subtle); border-radius: 0;
  box-shadow: none; padding: 72px var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; align-items: start;
}
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel { opacity: 1; visibility: visible; }
.nav-panel .np-group { display: flex; flex-direction: column; gap: 0; grid-column: 1 / span 3; }
.nav-panel .np-group + .np-group { grid-column: 5 / span 3; }
.nav-panel .np-item { display: block; padding: 18px 0; border-radius: 0; }
.nav-panel .np-item .ic { display: none; }
.nav-panel .np-item > span { display: flex; flex-direction: column; gap: 9px; }
.nav-panel .np-item strong { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink); line-height: 1.3; }
.nav-panel .np-item strong::after { content: "→"; display: inline-block; margin-left: 6px; opacity: 0; transform: translateX(-4px); transition: opacity 0.15s ease, transform 0.15s ease; }
.nav-panel .np-item:hover strong::after { opacity: 1; transform: none; }
.nav-panel .np-item span span { display: block; font-size: 14px; font-weight: 400; color: var(--text-3); line-height: 1.3; }
.nav-panel .np-feature {
  grid-column: 9 / span 4; background: transparent; border-radius: 0; padding: 18px 0 0;
  display: flex; flex-direction: column; gap: 9px; justify-content: flex-start;
  position: static; overflow: visible; min-height: 0; transition: opacity 0.15s ease;
}
.nav-panel .np-feature:hover { opacity: 0.85; }
.nav-panel .np-feature .np-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 15px; filter: saturate(0.88); }
.nav-panel .np-feature strong { font-family: "Inter", sans-serif; font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--ink); line-height: 1.3; position: static; }
.nav-panel .np-feature span { font-size: 14px; color: var(--text-3); line-height: 1.3; position: static; }
.nav-panel .np-label { display: none; }
.nav-cta { display: flex; gap: 16px; align-items: center; justify-self: end; }
.nav-cta .login { font-size: 14px; font-weight: 500; color: var(--ink); margin-right: 2px; height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--ink); border-radius: var(--r-sm); transition: opacity var(--t-color); }
.nav-cta .login:hover { opacity: 0.6; }
.nav-burger { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink); line-height: 0; grid-column: 3; grid-row: 1; justify-self: end; align-self: center; }
.nav-burger svg { width: 22px; height: 22px; display: block; }
.nav-burger .ic-close { display: none; }
.nav-burger[aria-expanded="true"] .ic-open { display: none; }
.nav-burger[aria-expanded="true"] .ic-close { display: block; }
.nav-logo { grid-column: 1; } .nav-links { grid-column: 2; } .nav-cta { grid-column: 3; grid-row: 1; }
.mobile-menu { display: none; border-top: 1px solid var(--border-subtle); background: var(--bg-page); padding: 8px var(--gutter) 40px; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border-subtle); }
.mobile-menu .group-label { display: block; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--text-3); padding: 24px 0 6px; border: 0; font-weight: 400; }
.mobile-menu .btn-row .btn { width: 100%; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta .login { display: none; }
  .nav-burger { display: block; }
  .nav-inner { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  padding: 5px 12px; border-radius: var(--r-full);
  border: 1px solid var(--border-strong); color: var(--text-2); background: transparent;
  line-height: 1.4;
}
.chip.win { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.chip.protect { border-color: rgba(36, 36, 35, 0.4); color: var(--ink); }
.chip.serve { border-color: rgba(115, 115, 115, 0.45); color: var(--text-2); background: rgba(36,36,35,.04); }
.chip.defend { border-color: var(--ink); color: var(--ink); background: var(--ok); }
.chip.prove { border-color: var(--ink); color: var(--ink); }
.chip.beta { border-color: var(--border-strong); color: var(--text); }
.bg-ink .chip.beta, .footer-ink .chip.beta, .mcp-card .chip.beta { border-color: rgba(241, 240, 237, 0.4); color: var(--on-ink); }
.chip.build { border-style: dashed; background: transparent; }

/* ---------- Use-case tiles (the one bound grid — crafted) ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .uc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .uc-grid { grid-template-columns: minmax(0, 1fr); } }
.uc-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 13px;
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-xl);
  padding: 28px 26px 24px; box-shadow: var(--shadow-1);
  transition: box-shadow 180ms ease-out, transform 180ms ease-out, border-color 180ms ease-out;
}
.uc-tile:hover { box-shadow: var(--shadow-3); transform: translateY(-3px); border-color: var(--border-strong); }
.uc-tile .tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.uc-tile .ghost-num { top: -26px; right: 2px; font-size: 118px; opacity: 0.06; }
.uc-tile .icon-chip { background: var(--bg-page); }
.uc-tile:hover .icon-chip { border-color: var(--border-strong); }
.uc-tile h3 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; position: relative; z-index: 1; }
.uc-tile .promise { font-size: 14.5px; line-height: 1.58; color: var(--text-2); margin: 0; flex: 1; position: relative; z-index: 1; }
.uc-tile .runs { font-size: 12.5px; color: var(--text-3); border-top: 1px solid var(--border-subtle); padding-top: 13px; line-height: 1.5; position: relative; z-index: 1; }
.uc-tile .go { font-weight: 600; font-size: 14px; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; position: relative; z-index: 1; }
.uc-tile .go::after { content: "→"; transition: transform 160ms ease-out; }
.uc-tile:hover .go::after { transform: translateX(3px); }

/* ---------- Artifact frames ---------- */
.frame {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: var(--shadow-doc); overflow: hidden; font-size: 14px;
}
.frame .f-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  border-bottom: 1px solid var(--border-subtle); background: var(--bg-page);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.frame .f-dots { display: inline-flex; gap: 5px; margin-right: 4px; }
.frame .f-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); display: block; }
.frame .f-url {
  flex: 1; max-width: 380px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 500; color: var(--text-3); text-align: center;
  padding: 4px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame .f-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-subtle); border-bottom-color: var(--surface);
  border-radius: 8px 8px 0 0; padding: 6px 14px 5px; margin: 6px 0 -12px 10px;
  font-size: 12px; font-weight: 600; color: var(--text-2); position: relative; z-index: 1;
}
/* legacy exhibit names map to frames */
.exhibit { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-doc); overflow: hidden; font-size: 14px; }
.exhibit .x-titlebar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-page); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.exhibit .x-dots { display: inline-flex; gap: 5px; margin-right: 6px; }
.exhibit .x-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); display: block; }
.exhibit .x-body { padding: 6px 0; }
.exhibit .x-row { display: flex; flex-direction: column; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--border-subtle); }
.exhibit .x-row:last-child { border-bottom: 0; }
.exhibit .x-row .x-head { font-weight: 600; color: var(--text); font-size: 13.5px; letter-spacing: -0.005em; }
.exhibit .x-row .x-note { color: var(--text-2); font-size: 13px; line-height: 1.55; }
.exhibit .x-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.exhibit .x-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 16px; background: var(--bg-page); border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-3); }
.xc { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-full); line-height: 1.5; }
.xc.cite { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.xc.warn { background: var(--ink); color: var(--paper); }
.xc.ok { background: var(--ok); color: var(--text-2); }
.xc.abstain { background: rgba(36, 36, 35, 0.85); color: var(--paper); }
.exhibit-caption, .frame-caption { font-size: 13px; color: var(--text-3); margin-top: 14px; line-height: 1.55; }
.on-ink .exhibit-caption { color: var(--on-ink-2); }
/* layered stack */
.stack { position: relative; }
.stack .stack-back {
  position: absolute; z-index: 0; pointer-events: none;
  transform: rotate(-2deg);
  filter: brightness(0.99);
}
.stack .stack-front { position: relative; z-index: 1; }
/* recreated document artifact (memo/summary) */
.doc-art { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-3); padding: 22px 24px; }
.doc-art .d-brand { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px; }
.doc-art .d-brand strong { font-family: "Lora", Georgia, serif; font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.doc-art .d-brand span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); font-weight: 700; }
.doc-art h4 { font-size: 13.5px; font-weight: 600; margin: 0 0 6px; }
.doc-art p { font-size: 12px; line-height: 1.6; color: var(--text-2); margin: 0 0 10px; }
.doc-art .d-line { height: 7px; border-radius: 3px; background: var(--bg-alt); margin: 7px 0; }
.doc-art .d-line.w-80 { width: 80%; } .doc-art .d-line.w-60 { width: 60%; } .doc-art .d-line.w-90 { width: 90%; }

/* ---------- Stats ---------- */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-band .stat { padding: 8px 36px 8px 0; }
.stat-band .stat + .stat { border-left: 1px solid var(--border-on-ink); padding-left: 36px; }
.bg-paper .stat-band .stat + .stat, .bg-white .stat-band .stat + .stat { border-left-color: var(--border-subtle); }
@media (max-width: 860px) {
  .stat-band { grid-template-columns: minmax(0, 1fr); }
  .stat-band .stat + .stat { border-left: 0; border-top: 1px solid var(--border-on-ink); padding: 24px 0 0; margin-top: 24px; }
}
.stat .num { display: block; }
.stat .label { font-size: 14.5px; line-height: 1.5; color: var(--text-2); margin-top: 14px; display: block; max-width: 300px; }
.on-ink .stat .label, .bg-ink .stat .label { color: var(--on-ink-2); }
.stat-qualifier { font-size: 12.5px; color: var(--text-3); margin-top: 34px; max-width: 720px; }
.bg-ink .stat-qualifier { color: rgba(241, 240, 237, 0.5); }

/* ---------- Logos ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 48px; }
.logo-strip img { height: 26px; width: auto; opacity: 0.66; transition: opacity 160ms ease-out; }
.logo-strip img:hover { opacity: 1; }
.logo-strip.on-light img { filter: invert(1) grayscale(1) brightness(0.35); opacity: 0.55; }
.logo-strip.on-light img:hover { opacity: 0.85; }
.logo-wall img.inv { filter: invert(1) grayscale(1) brightness(0.35); }
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); border: 0; gap: 0; }
.logo-wall.cols-3 { grid-template-columns: repeat(3, 1fr); }
.logo-wall .logo-cell {
  display: flex; align-items: center; justify-content: center;
  border: 0; padding: 30px 26px; min-height: 88px; background: transparent;
}
.logo-wall .logo-cell:hover { background: transparent; }
.logo-wall img { max-height: 28px; width: auto; max-width: 78%; opacity: 0.5; filter: grayscale(1); transition: opacity var(--t-color); }
.logo-wall .logo-cell:hover img { opacity: 0.9; filter: grayscale(1); }
.logo-wall img.lg { max-height: 40px; }
@media (max-width: 860px) { .logo-wall, .logo-wall.cols-3 { grid-template-columns: repeat(2, 1fr); } }
.testi-card {
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-md);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color var(--t-color);
}
.testi-card:hover { border-color: var(--border-strong); }
.testi-card blockquote { margin: 0; font-family: "Lora", Georgia, serif; font-size: 18.5px; line-height: 1.5; font-weight: 500; flex: 1; }
.testi-card .t-attr { font-size: 13.5px; color: var(--text-3); }
.testi-card .t-attr strong { color: var(--text); display: block; font-family: "Inter", sans-serif; }
.testi-card .t-logo { height: 24px; width: auto; align-self: flex-start; }

/* ---------- Account-year: wheel + fallback list ---------- */
.wheel-wrap { display: none; }
.wheel-svg { width: 100%; height: auto; }
.wheel-svg .w-ring { fill: none; stroke: var(--border-on-ink); stroke-width: 1.5; }
.wheel-svg .w-seg { fill: none; stroke: rgba(241, 240, 237, 0.44); stroke-width: 1.5; }
.wheel-svg .w-renew { fill: none; stroke: var(--on-ink); stroke-width: 2; stroke-dasharray: 5 6; }
.wheel-svg .w-node { fill: var(--ink-soft); stroke: rgba(241, 240, 237, 0.4); stroke-width: 1.2; }
.wheel-svg .w-numeral { font-family: "Lora", Georgia, serif; font-size: 19px; fill: var(--on-ink); }
.wheel-svg .w-beat { font-family: "Inter", sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; fill: rgba(241, 240, 237, 0.62); text-transform: uppercase; }
.wheel-svg .w-say { font-family: "Lora", Georgia, serif; font-size: 19px; fill: var(--on-ink); }
.wheel-svg .w-door { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 550; fill: rgba(241, 240, 237, 0.86); }
.wheel-svg .w-door:hover { fill: #fff; text-decoration: underline; }
.wheel-svg .w-tag { font-family: "Inter", sans-serif; font-size: 11px; fill: rgba(241, 240, 237, 0.5); }
.wheel-svg .w-center-1 { font-family: "Lora", Georgia, serif; font-size: 25px; fill: var(--on-ink); }
.wheel-svg .w-center-2 { font-family: "Inter", sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; fill: rgba(241, 240, 237, 0.55); }
.arc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.arc .beat { position: relative; padding-left: 66px; }
.arc .beat .dot {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink-soft);
  border: 1px solid var(--border-on-ink); display: flex; align-items: center; justify-content: center;
  font-family: "Lora", Georgia, serif; font-size: 15px;
}
.arc .beat h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; margin-bottom: 4px; color: var(--on-ink-2); }
.arc .beat .say { font-family: "Lora", Georgia, serif; font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.arc .beat ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.arc .beat li a { font-size: 14px; font-weight: 500; color: inherit; opacity: 0.88; border-bottom: 1px dotted currentColor; }
.arc .beat li .tag { display: block; font-size: 11.5px; opacity: 0.55; margin-top: 1px; }
@media (min-width: 981px) { .wheel-wrap { display: block; } .arc { display: none; } }
.arc-renew { margin-top: 36px; font-size: 14.5px; color: var(--on-ink-2); font-style: italic; font-family: "Lora", Georgia, serif; }

/* ---------- Beat strip (persona seat indicator) ---------- */
.beatstrip { display: inline-flex; align-items: center; gap: 7px; }
.beatstrip i {
  width: 30px; height: 6px; border-radius: 3px; background: var(--border-strong); opacity: 0.35; display: block;
}
.beatstrip i.on { background: var(--ink); opacity: 1; }
.beatstrip-labels { display: flex; gap: 7px; margin-top: 7px; }
.beatstrip-labels span { width: 30px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-3); text-transform: uppercase; text-align: center; }
.seat-line { display: flex; flex-direction: column; }
.seat-line .seat-cap { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 9px; }

/* ---------- Role cards ---------- */
.role-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .role-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .role-strip { grid-template-columns: minmax(0, 1fr); } }
.role-link {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 18px; border: 1px solid var(--border-subtle); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-1);
  transition: box-shadow 170ms ease-out, transform 170ms ease-out, border-color 170ms ease-out;
}
.role-link:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); border-color: var(--border-strong); }
.role-link strong { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.role-link span.hook { display: block; font-size: 13px; color: var(--text-3); line-height: 1.5; flex: 1; }
.role-link .beatstrip i { width: 22px; height: 5px; }

/* ---------- Teaser & MCP ---------- */
.next-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; }
@media (max-width: 980px) { .next-grid { grid-template-columns: minmax(0, 1fr); } }
.teaser-card {
  position: relative;
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-xl); padding: 34px 32px;
  background: transparent; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.teaser-card .stamp {
  position: absolute; top: 22px; right: -34px; transform: rotate(32deg);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
  padding: 4px 40px; background: var(--bg-page);
}
.mcp-card {
  position: relative; border-radius: var(--r-xl); padding: 34px 32px;
  background: var(--ink); color: var(--on-ink);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.mcp-card a.text-link { color: var(--on-ink); }

/* ---------- Trust ---------- */
.trust-list { display: flex; flex-direction: column; }
.trust-list .t-item { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 17px 0; border-top: 1px solid var(--border-subtle); }
.trust-list .t-item:last-child { border-bottom: 1px solid var(--border-subtle); }
.bg-ink .trust-list .t-item { border-color: var(--border-on-ink); }
.trust-list .t-item strong { font-size: 15px; font-weight: 600; }
.trust-list .t-item span { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.bg-ink .trust-list .t-item span { color: var(--on-ink-2); }
@media (max-width: 720px) { .trust-list .t-item { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.trust-footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 20px 0;
  border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.trust-footer .tf { display: inline-flex; align-items: center; gap: 8px; }
.trust-footer .tf::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text-4); }
.platform-line {
  border-top: 1px solid var(--border-subtle); padding-top: 24px;
  font-family: "Lora", Georgia, serif; font-style: italic; font-size: 16px; line-height: 1.6;
  color: var(--text-3); max-width: 720px;
}
.trust-footer + .platform-line { margin-left: auto; margin-right: auto; text-align: center; }
.bg-ink .platform-line, .on-ink .platform-line { border-color: var(--border-on-ink); color: var(--on-ink-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border-subtle); }
.faq + .trust-footer { margin-top: 96px; }
.faq details { border-bottom: 1px solid var(--border-subtle); }
.faq summary {
  cursor: pointer; list-style: none;
  display: grid; grid-template-columns: 1fr 30px; align-items: center; gap: 18px;
  padding: 21px 0; font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em;
  transition: color 140ms ease-out;
}
.faq summary:hover { color: var(--text-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .fq-ic {
  width: 28px; height: 28px; border: 1px solid var(--border-strong); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  transition: transform 220ms ease-out, background 160ms ease-out;
}
.faq summary .fq-ic::before, .faq summary .fq-ic::after {
  content: ""; position: absolute; background: currentColor; border-radius: 1px;
}
.faq summary .fq-ic::before { width: 11px; height: 1.6px; }
.faq summary .fq-ic::after { width: 1.6px; height: 11px; transition: transform 220ms ease-out; }
.faq details[open] summary .fq-ic { transform: rotate(180deg); background: var(--bg-page); }
.faq details[open] summary .fq-ic::after { transform: rotate(90deg); }
.faq .faq-a { padding: 0 0 26px; max-width: 760px; color: var(--text-2); font-size: 15.5px; }
.faq details[open] .faq-a { animation: faqIn 260ms ease-out; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq .faq-a p { margin-bottom: 0.8em; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Ledger rows (numbered editorial lists) ---------- */
.ledger { list-style: none; display: flex; flex-direction: column; counter-reset: ledger; }
.ledger > li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--border-subtle); }
.ledger > li:last-child { border-bottom: 1px solid var(--border-subtle); }
.ledger .l-num, .cap-num { font-family: "Lora", Georgia, serif; font-size: 22px; color: var(--text-3); line-height: 1.2; }
.ledger h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.ledger p { font-size: 15px; color: var(--text-2); margin: 0; max-width: 68ch; }
/* legacy aliases */
.cap-list { list-style: none; display: flex; flex-direction: column; }
.cap-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--border-subtle); }
.cap-list li:last-child { border-bottom: 1px solid var(--border-subtle); }
.cap-list h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.cap-list p { font-size: 15px; color: var(--text-2); margin: 0; max-width: 68ch; }
.init-list { list-style: none; display: flex; flex-direction: column; }
.init-list li { padding: 22px 0; border-top: 1px solid var(--border-subtle); }
.init-list li:last-child { border-bottom: 1px solid var(--border-subtle); }
.init-list strong { display: block; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 4px; }
.init-list span { font-size: 14.5px; color: var(--text-2); max-width: 68ch; display: block; }

/* ---------- String-out rail ---------- */
.stringout { display: flex; flex-direction: column; border-top: 1px solid var(--border-subtle); }
.stringout a {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 6px; border-bottom: 1px solid var(--border-subtle);
  transition: background 150ms ease-out, padding 150ms ease-out;
}
.stringout a:hover { background: var(--surface); padding-left: 14px; }
.bg-white .stringout a:hover { background: var(--bg-page); }
.stringout a strong { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.stringout a span.so-d { display: block; font-size: 13.5px; color: var(--text-3); margin-top: 2px; line-height: 1.5; }
.stringout .so-arr { font-size: 17px; color: var(--text-3); transition: transform 160ms ease-out, color 160ms; }
.stringout a:hover .so-arr { transform: translateX(4px); color: var(--ink); }

/* ---------- Page hero (interior) ---------- */
.hero-page, .uc-hero { position: relative; padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.uc-hero .h-hero { max-width: 920px; position: relative; z-index: 1; }
.uc-hero .lede { margin-top: 26px; position: relative; z-index: 1; }
.uc-hero .btn-row { margin-top: 34px; position: relative; z-index: 1; }
.uc-hero .eyebrow { position: relative; z-index: 1; }
.uc-hero .hero-ghost {
  position: absolute; right: -1%; top: 4%;
  font-family: "Lora", Georgia, serif; font-size: clamp(180px, 26vw, 380px); line-height: 0.8;
  color: var(--text); opacity: 0.045; pointer-events: none; user-select: none; letter-spacing: -0.05em;
  z-index: 0;
}

/* ---------- Who strip ---------- */
.who-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .who-strip { grid-template-columns: minmax(0, 1fr); } }
.who-strip .w-cell { border-top: 2px solid var(--ink); padding-top: 18px; }
.who-strip .w-cell h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--text-3); margin-bottom: 8px; }
.who-strip .w-cell p { font-size: 15px; margin: 0; }

/* ---------- Before/after ---------- */
.ba-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 4.5vw, 56px); align-items: start; }
@media (max-width: 980px) { .ba-grid { grid-template-columns: minmax(0, 1fr); } }
.ba-col h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--text-3); margin-bottom: 18px; }
.ba-manual { border-left: 2px solid var(--border-strong); padding-left: 24px; }
.ba-manual p { font-size: 15px; color: var(--text-2); }
.ba-manual .mq { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 16.5px; color: var(--text); line-height: 1.55; }
.mq-attr { font-size: 13px; color: var(--text-3); margin: 6px 0 0; font-family: "Inter", sans-serif; font-style: normal; }

/* ---------- Forms ---------- */
.form-grid { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font-size: 15px; font-family: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(36, 36, 35, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(36, 36, 35, 0.12);
}
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

/* ---------- Footer ---------- */
.footer-ink { position: relative; background: var(--ink); color: var(--on-ink); padding: 0 0 44px; overflow: hidden; }
.footer-ink .footer-ghost { display: none; }
/* Harvey footer anatomy (1440): CTA row 72px in, serif 32 + one button, hairline; mark left, five 14px link columns right; copyright 14px gray */
.footer-cta { position: relative; padding: 72px 0; border-bottom: 1px solid var(--border-on-ink); margin-bottom: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-cta h2 {
  font-family: "Lora", Georgia, serif; font-weight: 400; letter-spacing: -0.009em; line-height: 1.1;
  font-size: clamp(28px, 2.4vw, 34px); max-width: 860px; margin-bottom: 0;
}
.footer-cta .cta-note { display: none; }
.footer-cta .btn-row { margin: 0; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr repeat(4, 1.1fr); gap: 40px; }
/* pages without a footer CTA row: the grid leads, so it takes the CTA row's top inset */
.footer-grid:first-child { padding-top: 72px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer-ink h4 { font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gray-500); margin: 0 0 16px; line-height: 1.3; }
.footer-ink .footer-grid a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.3; color: var(--on-ink); transition: opacity var(--t-color); }
.footer-ink .footer-grid a:hover { opacity: 0.6; }
.footer-ink .addr { font-size: 14px; color: var(--gray-500); line-height: 1.5; margin: 0 0 16px; }
.footer-logo img { height: 30px; margin-bottom: 20px; }
.footer-ink .footer-grid a.footer-badge { display: inline-flex; padding: 5px 12px; margin-top: 4px; font-size: 11.5px; line-height: 1.4; }
.footer-trustline {
  position: relative; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
  border-top: 1px solid var(--border-on-ink); margin-top: 64px; padding-top: 24px;
  font-size: 13px; color: var(--gray-500);
}
.footer-trustline .tf { display: inline-flex; align-items: center; gap: 8px; }
.footer-trustline .tf::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--on-ink-2); }
.footer-trustline a { color: rgba(241, 240, 237, 0.82); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border-on-ink);
  font-size: 14px; color: var(--gray-500);
}
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: var(--on-ink); }
.footer-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.4s cubic-bezier(0.7, 0, 0.3, 1), transform 0.4s cubic-bezier(0.7, 0, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-group > * { opacity: 0; transform: translateY(8px); transition: opacity 0.4s cubic-bezier(0.7, 0, 0.3, 1), transform 0.4s cubic-bezier(0.7, 0, 0.3, 1); }
.reveal-group.in > * { opacity: 1; transform: none; }
.reveal-group.in > *:nth-child(2) { transition-delay: 70ms; }
.reveal-group.in > *:nth-child(3) { transition-delay: 140ms; }
.reveal-group.in > *:nth-child(4) { transition-delay: 210ms; }
.reveal-group.in > *:nth-child(5) { transition-delay: 280ms; }
.reveal-group.in > *:nth-child(6) { transition-delay: 350ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-scene .app-shot, .hero-scene .shot-float {
  position: absolute; z-index: 2; overflow: hidden; background: var(--surface);
  border: 1px solid var(--gray-200); border-radius: 8px;
  box-shadow: 0 24px 48px -24px rgba(36, 36, 35, 0.25);
}
  .btn, .uc-tile, .role-link, .stringout a, .testi-card { transition: none; }
  .faq details[open] .faq-a { animation: none; }
}

/* ---------- Harvey-pattern components (pass 4) ---------- */
/* InkStatLedger: hairline rows, 16px label left, serif 80 numeral right */
.stat-ledger { display: flex; flex-direction: column; }
.stat-ledger .row {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-top: 1px solid var(--border-on-ink); padding: 30px 0;
}
.bg-paper .stat-ledger .row, .bg-white .stat-ledger .row { border-top-color: var(--border-subtle); }
.stat-ledger .label { font-size: 16px; color: var(--on-ink-2); max-width: 480px; }
.bg-paper .stat-ledger .label, .bg-white .stat-ledger .label { color: var(--text-3); }
.stat-ledger .num {
  font-family: "Lora", Georgia, serif; font-weight: 400;
  font-size: clamp(52px, 5.2vw, 80px); line-height: 1.05; letter-spacing: -0.0125em;
  font-variant-numeric: lining-nums;
}
/* AccordionProductList */
.acc-list { display: flex; flex-direction: column; }
/* modelled on harvey.ai's home accordion (measured 25 Sep 2026): every row keeps the same type and a 2px top
   rule; opening only fades the rule and title to ink (0.3s) while the body opens to its exact height and fades
   in (0.15s ease-in-out), the closing row doing the reverse at the same time — so the list never jumps */
.acc-item { border-top: 2px solid var(--border-subtle); padding-bottom: 8px; transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.acc-item.open { border-top-color: var(--ink); }
.acc-item > button {
  all: unset; display: flex; width: 100%; align-items: center; justify-content: space-between;
  cursor: pointer; padding: 24px 0 14px; box-sizing: border-box;
  font-family: "Inter", sans-serif; font-size: 24px; font-weight: 500; line-height: 1.3;
  letter-spacing: -0.012em; color: var(--gray-500);
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.acc-item.open > button { color: var(--text); }
.acc-item > button:hover { color: var(--text-2); }
.acc-item.open > button:hover { color: var(--text); cursor: default; }
.acc-item > button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.acc-item .acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.15s ease-in-out; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-item .acc-body > div { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.15s ease-in-out; }
.acc-item.open .acc-body > div { opacity: 1; }
.acc-item .acc-body p { font-size: 16px; line-height: 1.45; color: var(--text-2); max-width: 440px; margin: 0 0 18px; }
.acc-item .acc-body .acc-more { font-size: 16px; font-weight: 500; color: var(--text); display: inline-block; margin-bottom: 26px; transition: opacity var(--t-color); }
.acc-item .acc-body .acc-more:hover { opacity: 0.6; }
@media (max-width: 700px) { .acc-item > button { font-size: 20px; padding: 18px 0 10px; } }
@media (prefers-reduced-motion: reduce) { .acc-item, .acc-item > button, .acc-item .acc-body, .acc-item .acc-body > div { transition: none; } }
/* CTA band (in-page) */
.cta-line { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-line h2 { font-family: "Lora", Georgia, serif; font-weight: 400; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.009em; margin: 0; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.maxw-720 { max-width: 720px; } .maxw-820 { max-width: 820px; }
/* ---------- Hero shot system (pass 3): one frame recipe, parameterized ---------- */
.hero-scene { position: relative; z-index: 1; }
.hero-scene::before { display: none; }
.app-shot {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--gray-200); border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}
.app-chrome {
  display: flex; align-items: center; height: 38px; padding: 0 14px;
  background: var(--bg-page); border-bottom: 1px solid var(--border-subtle);
}
.app-chrome .lights { display: flex; gap: 6px; }
.app-chrome .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); opacity: 0.55; }
.app-chrome .url {
  margin: 0 auto; font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-3);
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 999px; padding: 3px 16px;
  transform: translateX(-14px); /* optically centered against the lights */
}
.app-shot img.shot {
  display: block; width: 100%; height: auto; aspect-ratio: var(--shot-ar, 1240 / 900);
  object-fit: cover; object-position: top left; background: var(--surface);
}
.shot-float {
  position: absolute; z-index: 2; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border-subtle); border-radius: 10px;
  box-shadow: 0 2px 6px rgba(36, 36, 35, 0.10), 0 28px 56px -18px rgba(36, 36, 35, 0.32);
}
.shot-float img { display: block; width: 100%; height: auto; }
.shot-cap { margin-top: 16px; font-size: 13px; line-height: 1.55; color: var(--text-3); max-width: 520px; }
@keyframes shotRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero-scene .app-shot { animation: shotRise 620ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero-scene .shot-float { animation: shotRise 620ms 80ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@media (max-width: 700px) { .hero-scene .shot-float { display: none; } .hero-scene::before { display: none; } }

/* ---------- Nav over an ink stage (toggled by page scripts: .over-ink / .wq-over-ink) ---------- */
.nav.over-ink, .nav.wq-over-ink { background: var(--ink); }
.nav.over-ink .nav-links > a, .nav.over-ink .nav-drop > a, .nav.over-ink .nav-cta .login,
.nav.wq-over-ink .nav-links > a, .nav.wq-over-ink .nav-drop > a, .nav.wq-over-ink .nav-cta .login { color: var(--on-ink); border-color: var(--on-ink); }
.nav.over-ink .nav-links > a:hover, .nav.wq-over-ink .nav-links > a:hover { color: var(--on-ink-2); }
.nav.over-ink .nav-drop > a::after, .nav.wq-over-ink .nav-drop > a::after { background: var(--on-ink); }
.nav.over-ink .nav-logo img, .nav.wq-over-ink .nav-logo img { filter: invert(1) hue-rotate(180deg); }
.nav.over-ink .nav-cta .btn-primary, .nav.wq-over-ink .nav-cta .btn-primary { background: var(--paper); color: var(--ink); }
.nav.over-ink .nav-burger, .nav.wq-over-ink .nav-burger { color: var(--on-ink); }
.nav.over-ink:has(.nav-drop:hover), .nav.over-ink:has(.nav-drop:focus-within), .nav.wq-over-ink:has(.nav-drop:hover), .nav.wq-over-ink:has(.nav-drop:focus-within) { background: var(--paper); }
.nav.over-ink:has(.nav-drop:hover) .nav-links > a, .nav.over-ink:has(.nav-drop:focus-within) .nav-links > a, .nav.over-ink:has(.nav-drop:hover) .nav-drop > a, .nav.over-ink:has(.nav-drop:focus-within) .nav-drop > a, .nav.over-ink:has(.nav-drop:hover) .nav-cta .login, .nav.over-ink:has(.nav-drop:focus-within) .nav-cta .login,
.nav.wq-over-ink:has(.nav-drop:hover) .nav-links > a, .nav.wq-over-ink:has(.nav-drop:focus-within) .nav-links > a, .nav.wq-over-ink:has(.nav-drop:hover) .nav-drop > a, .nav.wq-over-ink:has(.nav-drop:focus-within) .nav-drop > a, .nav.wq-over-ink:has(.nav-drop:hover) .nav-cta .login, .nav.wq-over-ink:has(.nav-drop:focus-within) .nav-cta .login { color: var(--ink); border-color: var(--ink); }
.nav.over-ink:has(.nav-drop:hover) .nav-links > a:hover, .nav.over-ink:has(.nav-drop:hover) .nav-drop > a:hover, .nav.wq-over-ink:has(.nav-drop:hover) .nav-links > a:hover, .nav.wq-over-ink:has(.nav-drop:hover) .nav-drop > a:hover { color: var(--text-3); }
.nav.over-ink:has(.nav-drop:hover) .nav-drop:hover > a, .nav.wq-over-ink:has(.nav-drop:hover) .nav-drop:hover > a { color: var(--ink); }
.nav.over-ink:has(.nav-drop:hover) .nav-drop > a::after, .nav.over-ink:has(.nav-drop:focus-within) .nav-drop > a::after, .nav.wq-over-ink:has(.nav-drop:hover) .nav-drop > a::after, .nav.wq-over-ink:has(.nav-drop:focus-within) .nav-drop > a::after { background: var(--ink); }
.nav.over-ink:has(.nav-drop:hover) .nav-logo img, .nav.over-ink:has(.nav-drop:focus-within) .nav-logo img, .nav.wq-over-ink:has(.nav-drop:hover) .nav-logo img, .nav.wq-over-ink:has(.nav-drop:focus-within) .nav-logo img { filter: none; }
.nav.over-ink:has(.nav-drop:hover) .nav-cta .btn-primary, .nav.over-ink:has(.nav-drop:focus-within) .nav-cta .btn-primary, .nav.wq-over-ink:has(.nav-drop:hover) .nav-cta .btn-primary, .nav.wq-over-ink:has(.nav-drop:focus-within) .nav-cta .btn-primary { background: var(--ink); color: var(--paper); }

/* ============================================================
   Pass 8 — subpage system (use cases · solutions · the two indexes)
   Harvey restraint: one declarative headline, one sentence, one visual per section;
   product card on the page ground; three columns; quote band; proof pair; door cards.
   Scoped to .p8 so the rest of the site is untouched.
   ============================================================ */
.p8 .section-head { max-width: 860px; margin-bottom: clamp(44px, 5vw, 72px); }
.p8 .section-head .lede { margin-top: 20px; max-width: 620px; font-size: 18px; line-height: 1.5; }
.p8 .h-section { letter-spacing: -0.012em; max-width: 30ch; }
.p8 .bg-ink .h-section, .p8 .on-ink .h-section { color: var(--on-ink); }
.p8 .bg-ink .section-head .lede { color: var(--on-ink-2); }

/* --- hero: eyebrow · H1 (left) · lede + CTA (right) · product card below --- */
.p8 .uc-hero { padding: clamp(48px, 5.6vw, 72px) 0 0; overflow: visible; }
/* Harvey hero at 1440: H1 on cols 1–5 (680), lede + CTA on cols 7–10 (540), the lede's cap line level with the H1's */
.p8 .hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.p8 .hero-grid .h-hero { max-width: none; line-height: 1.05; }
.p8 .hero-grid .lede { max-width: 540px; font-size: 20px; line-height: 1.35; margin-top: 0; }
.p8 .hero-grid .btn-row { margin-top: 28px; }
.p8 .hero-grid .cta-note { margin-top: 12px; }
.p8 .eyebrow { margin-bottom: 20px; }
/* the seat on the account year — five words, the seat's beats in ink with an ink rule; the bar device is retired */
.p8 .seat-line { margin-top: 32px; }
.p8 .seat-line .seat-cap { font-family: "Inter", sans-serif; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text-3); font-weight: 400; margin-bottom: 10px; }
.p8 .seat-line .beatstrip { display: none; }
.p8 .beatstrip-labels { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 0; }
.p8 .beatstrip-labels span { position: relative; width: auto; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; text-align: left; color: var(--text-3); padding-bottom: 8px; }
.p8 .beatstrip-labels span.on { color: var(--ink); }
.p8 .beatstrip-labels span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--ink); }
@media (max-width: 1000px) { .p8 .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; } .p8 .hero-grid .lede { max-width: 560px; } }

/* --- the product panel (Harvey: one full-width media panel, radius 8, the product large inside it; the caption sits under it as a figure line) --- */
.p8 .hero-card { position: relative; margin-top: clamp(48px, 5.6vw, 72px); background: transparent; border: 0; border-radius: 0; padding: 0; display: flex; flex-direction: column; }
.p8 .hero-card .hc-head { order: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 16px 2px 0; padding: 0; }
.p8 .hero-card .hc-title { font-family: "Inter", sans-serif; font-weight: 400; font-size: 14px; line-height: 1.45; letter-spacing: 0; color: var(--text-3); margin: 0; max-width: 72ch; }
.p8 .hero-card .hc-sub { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.p8 .hc-media { order: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(28px, 4.2vw, 64px) clamp(24px, 4.2vw, 64px); background: linear-gradient(170deg, var(--ink-raise) 0%, var(--ink) 100%); border-radius: 8px; overflow: hidden; min-height: 380px; }
.p8 .hc-media > * { position: relative; }
.p8 .hc-media .exhibit, .p8 .hc-media .frame, .p8 .hc-media .app-shot { border-color: rgba(36, 36, 35, 0.5); }
.p8 .hc-media > .exhibit, .p8 .hc-media > .frame, .p8 .hc-media > .app-shot, .p8 .hc-media > .two-up, .p8 .hc-media > .wide { width: min(1040px, 100%); }
.p8 .hc-media .exhibit, .p8 .hc-media .frame, .p8 .hc-media .app-shot { box-shadow: 0 32px 72px -32px rgba(36, 36, 35, 0.35); }
/* past the 1376 cap the media panel keeps Harvey's full-bleed behaviour (32px from the viewport edge) while the text stays on the container */
@media (min-width: 1441px) { .p8 .hero-card { margin-left: calc(50% - 50vw + var(--gutter)); margin-right: calc(50% - 50vw + var(--gutter)); } .p8 .hero-card .hc-head { margin-left: 2px; margin-right: 2px; } }
/* a tall product capture: sit it on the panel floor and let it run off the bottom edge, so the top of the screen is shown large */
.p8 .hc-media.bleed { align-items: flex-end; padding-bottom: 0; }
.p8 .hc-media.bleed > .app-shot { width: min(880px, 100%); border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.p8 .hc-media.bleed > .app-shot img.shot { aspect-ratio: auto; max-height: min(52vw, 620px); object-fit: cover; object-position: top center; }
.p8 .hc-media .exhibit .x-row { flex-direction: row; align-items: flex-start; gap: 18px; }
.p8 .hc-media .exhibit .x-row .x-head { flex: 0 0 200px; }
.p8 .hc-media .exhibit .x-row .x-note { flex: 1; }
.p8 .hc-media .exhibit .x-row .x-chips { flex: 0 0 auto; max-width: 250px; justify-content: flex-end; }
.p8 .hc-media .app-shot img.shot { aspect-ratio: var(--shot-ar, 1240 / 900); }
/* two artifacts, overlapped */
.p8 .two-up { position: relative; height: clamp(360px, 40vw, 560px); }
.p8 .two-up > .back { position: absolute; left: 0; top: 0; width: 58%; }
.p8 .two-up > .front { position: absolute; right: 0; bottom: 0; width: 56%; z-index: 2; }
.p8 .two-up .exhibit, .p8 .two-up .frame { box-shadow: 0 28px 64px -30px rgba(36, 36, 35, 0.32); }
@media (max-width: 760px) {
  .p8 .hero-card { padding: 16px 14px 14px; border-radius: 12px; }
  .p8 .hc-media { padding: 16px 12px; min-height: 0; }
  .p8 .hc-media .exhibit .x-row { flex-direction: column; gap: 6px; } .p8 .hc-media .exhibit .x-row .x-head { flex: none; } .p8 .hc-media .exhibit .x-row .x-chips { justify-content: flex-start; }
  .p8 .two-up { height: auto; } .p8 .two-up > .back, .p8 .two-up > .front { position: static; width: 100%; } .p8 .two-up > .front { margin-top: 14px; }
}

/* --- three columns (Harvey's "how teams stay ahead") --- */
.p8 .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 72px); }
.p8 .trio .t-ic { width: 26px; height: 26px; color: var(--ink); margin-bottom: 26px; stroke-width: 1.5; }
.p8 .trio h3 { font-family: "Inter", sans-serif; font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.012em; margin: 0 0 12px; color: var(--ink); }
.p8 .trio p { font-size: 16px; line-height: 1.55; color: var(--text-2); margin: 0; max-width: 36ch; }
.p8 .bg-ink .trio h3 { color: var(--on-ink); } .p8 .bg-ink .trio p { color: var(--on-ink-2); } .p8 .bg-ink .trio .t-ic { color: var(--on-ink); }
@media (max-width: 900px) { .p8 .trio { grid-template-columns: minmax(0, 1fr); gap: 40px; } .p8 .trio .t-ic { margin-bottom: 16px; } }

/* --- the quote band: before → with Qumis, on a dimmed photograph --- */
.p8 .quote-band { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.p8 .quote-band .qb-photo { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(0.8); opacity: 0.42; }
.p8 .quote-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 36, 35, 0.35) 0%, rgba(36, 36, 35, 0.6) 100%); }
.p8 .quote-band .container-wide { position: relative; z-index: 1; }
.p8 .qb-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.p8 .qb-label { display: block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(241, 240, 237, 0.6); margin-bottom: 22px; }
.p8 .qb-before blockquote { margin: 0; font-family: "Lora", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: rgba(241, 240, 237, 0.78); }
.p8 .qb-after blockquote { margin: 0; font-family: "Lora", Georgia, serif; font-weight: 400; font-size: clamp(30px, 3.3vw, 50px); line-height: 1.1; letter-spacing: -0.012em; color: var(--on-ink); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.p8 .qb-attr { margin-top: 22px; font-size: 13.5px; font-weight: 500; color: rgba(241, 240, 237, 0.62); display: flex; align-items: center; gap: 12px; }
.p8 .qb-attr::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }
@media (max-width: 900px) { .p8 .qb-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: start; } }

/* --- the proof pair: number + statement (left) · artifact (right) --- */
.p8 .proof-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.p8 .proof-grid .h-section { font-size: clamp(26px, 2.25vw, 32px); max-width: 26ch; }
.p8 .proof-grid .big-num { font-size: clamp(64px, 6.5vw, 96px); letter-spacing: -0.02em; line-height: 1; color: var(--ink); display: block; margin: 28px 0 14px; font-variant-numeric: lining-nums tabular-nums; }
.p8 .proof-grid .proof-label { font-size: 17px; line-height: 1.5; color: var(--text-2); margin: 0; max-width: 34ch; }
.p8 .proof-grid .stat-qualifier { margin-top: 26px; max-width: 34ch; }
.p8 .proof-grid .pg-art { display: flex; justify-content: center; align-items: center; padding: clamp(24px, 3vw, 44px); background: linear-gradient(165deg, var(--paper) 0%, var(--paper-200) 100%); border-radius: 14px; }
.p8 .bg-paper .proof-grid .pg-art { background: var(--white); border: 1px solid var(--border-subtle); }
.p8 .proof-grid .pg-art > * { width: min(640px, 100%); box-shadow: 0 28px 64px -30px rgba(36, 36, 35, 0.3); }
.p8 .proof-grid .pg-art > img { border-radius: 8px; border: 1px solid var(--border-strong); display: block; height: auto; }
.p8 .proof-statement { font-family: "Lora", Georgia, serif; font-weight: 400; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin: 0; max-width: 20ch; }
@media (max-width: 900px) { .p8 .proof-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .p8 .proof-grid .big-num { font-size: 64px; } }

/* --- next: the other jobs on the calendar --- */
.p8 .next-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p8 .next-rail a { display: flex; flex-direction: column; gap: 16px; padding: 26px 26px 24px; background: var(--white); border: 1px solid var(--border-subtle); border-radius: 12px; transition: border-color var(--t-color); min-height: 200px; }
.p8 .bg-white .next-rail a { background: var(--bg-page); }
.p8 .next-rail a:hover { border-color: var(--border-strong); }
.p8 .next-rail .icon-chip { width: 42px; height: 42px; }
.p8 .next-rail strong { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.3; }
.p8 .next-rail .nr-d { display: block; font-size: 14.5px; line-height: 1.5; color: var(--text-3); margin-top: 6px; }
.p8 .next-rail .nr-go { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.p8 .next-rail .nr-go::after { content: "→"; transition: transform var(--t-color); }
.p8 .next-rail a:hover .nr-go::after { transform: translateX(3px); }
@media (max-width: 900px) { .p8 .next-rail { grid-template-columns: minmax(0, 1fr); } .p8 .next-rail a { min-height: 0; } }

/* --- door cards on ink (solutions: what this seat runs) --- */
.p8 .doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p8 .doors a { display: flex; flex-direction: column; gap: 18px; padding: 30px 28px 26px; background: var(--ink-soft); border: 1px solid var(--border-on-ink); border-radius: 14px; color: var(--on-ink); transition: border-color var(--t-color), background var(--t-color); min-height: 250px; }
.p8 .doors a:hover { border-color: rgba(241, 240, 237, 0.4); background: var(--ink-raise); }
.p8 .doors .d-num { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(241, 240, 237, 0.55); }
.p8 .doors h3 { font-family: "Lora", Georgia, serif; font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; color: var(--on-ink); margin: 0; }
.p8 .doors p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--on-ink-2); }
.p8 .doors .d-go { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--on-ink); display: inline-flex; gap: 6px; align-items: center; }
.p8 .doors .d-go::after { content: "→"; transition: transform var(--t-color); }
.p8 .doors a:hover .d-go::after { transform: translateX(3px); }
.p8 .doors-note { margin-top: 32px; font-size: 14.5px; line-height: 1.55; color: var(--on-ink-2); max-width: 720px; }
.p8 .doors-note a { color: var(--on-ink); border-bottom: 1px solid rgba(241, 240, 237, 0.4); }
@media (max-width: 900px) { .p8 .doors { grid-template-columns: minmax(0, 1fr); } .p8 .doors a { min-height: 0; } }

/* --- the trust line + platform sentence, quiet --- */
.p8 .trust-footer { font-size: 13px; padding: 18px 0; gap: 10px 28px; }
.p8 .platform-line { font-size: 15.5px; max-width: 680px; }
.p8 .faq summary { font-size: 16px; padding: 22px 0; }
.p8 .faq .faq-a { font-size: 15.5px; line-height: 1.6; max-width: 720px; }

/* --- the frames used as second artifacts --- */
.p8 .frame { border-color: var(--border-strong); border-radius: 10px; }
.p8 .frame .f-body { padding: 18px 20px; }
.p8 .frame .f-eyebrow { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.p8 .frame .f-serif { font-family: "Lora", Georgia, serif; font-size: 13px; line-height: 1.65; color: var(--text-2); margin: 0 0 12px; }
.p8 .frame .f-serif mark { background: var(--gray-200); padding: 1px 3px; border-radius: 3px; color: inherit; }
.p8 .frame .f-split { display: grid; grid-template-columns: 1fr 1fr; }
.p8 .frame .f-split > div { padding: 16px 18px; } .p8 .frame .f-split > div + div { border-left: 1px solid var(--border-subtle); }
.p8 .frame .x-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 16px; background: var(--bg-page); border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-3); }
@media (max-width: 640px) { .p8 .frame .f-split { grid-template-columns: minmax(0, 1fr); } .p8 .frame .f-split > div + div { border-left: 0; border-top: 1px solid var(--border-subtle); } }

/* --- branded microsite / memo frames (illustrative, generic by design) --- */
.p8 .site-frame { background: var(--white); border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.p8 .site-frame .sf-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-page); border-bottom: 1px solid var(--border-subtle); }
.p8 .site-frame .sf-bar .f-dots { display: inline-flex; gap: 5px; } .p8 .site-frame .sf-bar .f-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); display: block; }
.p8 .site-frame .sf-url { flex: 1; max-width: 420px; margin: 0 auto; background: var(--white); border: 1px solid var(--border-subtle); border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--text-3); text-align: center; padding: 3px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p8 .site-frame .sf-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--border-subtle); }
.p8 .site-frame .sf-brand { display: inline-flex; align-items: center; gap: 8px; font-family: "Inter", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.p8 .site-frame .sf-brand i { width: 14px; height: 14px; border-radius: 3px; background: var(--ink); display: inline-block; }
.p8 .site-frame .sf-tabs { display: flex; gap: 18px; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.p8 .site-frame .sf-tabs span:first-child { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.p8 .site-frame .sf-hero { padding: 26px 22px 18px; }
.p8 .site-frame .sf-kicker { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; }
.p8 .site-frame .sf-h { font-family: "Lora", Georgia, serif; font-weight: 400; font-size: 24px; line-height: 1.1; letter-spacing: -0.012em; color: var(--ink); margin: 0 0 8px; }
.p8 .site-frame .sf-sub { font-size: 12.5px; color: var(--text-2); margin: 0; line-height: 1.5; }
.p8 .site-frame .sf-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 22px 22px; }
.p8 .site-frame .sf-tile { border: 1px solid var(--border-subtle); border-radius: 8px; padding: 12px 12px 10px; background: var(--bg-page); }
.p8 .site-frame .sf-tile .n { display: block; font-family: "Lora", Georgia, serif; font-size: 22px; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.p8 .site-frame .sf-tile .l { display: block; font-size: 10.5px; color: var(--text-3); line-height: 1.4; }
@media (max-width: 640px) { .p8 .site-frame .sf-tiles { grid-template-columns: repeat(2, 1fr); } .p8 .site-frame .sf-tabs { display: none; } }

/* --- the "on offense" and design-partner notes --- */
.p8 .aside-note { display: flex; gap: 18px; align-items: flex-start; padding: 22px 26px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--white); font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 860px; }
.p8 .bg-white .aside-note { background: var(--bg-page); }
.p8 .aside-note .chip { flex: none; margin-top: 2px; }

/* ============================================================
   The chorus — scroll-driven customer quote field (ported from Why Qumis, namespaced .ch)
   Desktop + motion: a 340vh sticky ink stage; voices rise in three columns at three depths, the lead
   fills word by word mid-scroll, the field fades in the last tenth and the page lands on the full grid.
   Mobile / motion-off: the stage is hidden; only the grid (.ch-all) renders.
   ============================================================ */
.ch { position: relative; background: var(--ink); color: var(--on-ink); padding: 0; height: 340vh; min-height: 2600px; }
.ch.static { display: none; }
.ch-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ch-inner { position: relative; height: 100%; }
.ch-head, .ch-foot { position: absolute; left: max(var(--gutter), calc((100% - 1376px) / 2)); margin: 0; z-index: 6; pointer-events: none; }
.ch-head { top: 116px; opacity: var(--qh, 1); transform: translateY(calc((1 - var(--qh, 1)) * -18px)); max-width: 820px; }
.ch-head .ch-mono { display: block; margin-bottom: 18px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--on-ink-2); }
.ch-head h2 { font-family: "Lora", Georgia, serif; font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.012em; color: var(--on-ink); margin: 0; max-width: 30ch; }
.ch-foot { bottom: 36px; right: max(var(--gutter), calc((100% - 1376px) / 2)); opacity: var(--qf, 0); font-size: 12.5px; line-height: 1.5; color: rgba(241, 240, 237, 0.55); }
.ch-foot .ch-more { color: var(--on-ink); }
.ch-field { position: absolute; inset: 0; }
.ch-vq { position: absolute; left: 0; top: 0; margin: 0; padding: 18px 18px 18px 0; border-top: 1px solid var(--border-on-ink); width: 31%; display: block; will-change: transform; cursor: pointer; --o: 1; opacity: calc(var(--fo, 1) * var(--o, 1)); transition: opacity 0.35s, filter 0.35s; outline: none; background: var(--ink); z-index: 3; }
.ch-vq p { font-family: "Lora", Georgia, serif; font-weight: 400; font-size: clamp(22px, 1.7vw, 31px); line-height: 1.28; letter-spacing: -0.008em; color: var(--on-ink); margin: 0 0 14px; transition: font-size 0.3s; }
.ch-vq footer { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-2); line-height: 1.6; }
.ch-vq[data-d="0.62"] { width: 27%; --o: 0.9; z-index: 2; }
.ch-vq[data-d="0.62"] p { font-size: clamp(18px, 1.4vw, 25px); }
.ch-vq[data-d="0.36"] { width: 23%; --o: 0.66; filter: blur(0.4px); z-index: 1; }
.ch-vq[data-d="0.36"] p { font-size: clamp(15px, 1.1vw, 19px); line-height: 1.38; }
.ch-vq:hover { opacity: var(--fade, 1) !important; filter: none; z-index: 12; border-top-color: var(--on-ink); }
.ch.fading .ch-vq:not(.lead) { pointer-events: none; }   /* the field is handing off to the grid — no ghosts under the cursor */
.ch-vq.lead { left: 50%; top: 50%; width: min(960px, 84%); transform: translate(-50%, -50%); border-top: 0; text-align: center; opacity: var(--ql, 0); pointer-events: none; z-index: 14; cursor: default; padding: 0; background: transparent; text-shadow: 0 2px 34px rgba(36, 36, 35, 0.95), 0 0 2px rgba(36, 36, 35, 0.8); }
.ch-vq.lead p { font-size: clamp(34px, 3.7vw, 58px); line-height: 1.1; letter-spacing: -0.012em; margin-bottom: 22px; }
.ch-vq.lead p .w { opacity: calc(0.16 + var(--r, 0) * 0.84); }
.ch-glow { position: absolute; left: 50%; top: 50%; width: 1200px; height: 760px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(241, 240, 237, 0.07), rgba(36, 36, 35, 0) 100%); opacity: var(--ql, 0); pointer-events: none; }
.ch.lead-on .ch-vq:not(.lead) { pointer-events: none; }
.ch.pinned .ch-vq:not(.pin):not(.lead) { opacity: calc(0.14 * var(--o, 1)); }
.ch.pinned .ch-vq.lead, .ch.pinned .ch-glow { opacity: 0 !important; }
.ch-vq.pin { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important; width: min(860px, 82%); opacity: var(--fade, 1) !important; filter: none; z-index: 20; cursor: default; border-top-color: var(--on-ink-2); padding-top: 22px; animation: chPinIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ch-vq.pin p { font-size: clamp(26px, 2.7vw, 40px); line-height: 1.16; letter-spacing: -0.01em; margin-bottom: 18px; }
.ch-vq.pin footer { font-size: 11.5px; color: var(--on-ink); }
@keyframes chPinIn { from { opacity: 0; transform: translate(-50%, -46%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.ch-close { position: absolute; right: max(var(--gutter), calc((100% - 1376px) / 2)); top: 108px; z-index: 22; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-2); background: transparent; border: 1px solid var(--border-on-ink); border-radius: 4px; padding: 8px 12px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.ch.pinned .ch-close { opacity: 1; pointer-events: auto; }
/* the grid every voice lands in */
.ch-all { background: var(--ink); color: var(--on-ink); padding: clamp(40px, 5vw, 72px) 0 clamp(96px, 9vw, 150px); }
.ch-all.solo { padding-top: clamp(88px, 9vw, 140px); }
.ch-all .ch-all-head { margin-bottom: clamp(36px, 4vw, 56px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ch-all .ch-all-head h2 { font-family: "Lora", Georgia, serif; font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.012em; color: var(--on-ink); margin: 0; }
.ch-all .ch-all-head .ch-mono { display: block; margin-bottom: 14px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--on-ink-2); }
.ch-all .ch-all-head p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(241, 240, 237, 0.55); max-width: 420px; }
.ch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.ch-q { margin: 0; padding: 26px 0 30px; border-top: 1px solid var(--border-on-ink); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.ch-q p { margin: 0; font-family: "Lora", Georgia, serif; font-weight: 400; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.4; letter-spacing: -0.006em; color: var(--on-ink); }
.ch-q footer { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-2); line-height: 1.6; }
.ch-q.lead { grid-column: 1 / -1; max-width: 1040px; padding-bottom: 40px; }
.ch-q.lead p { font-size: clamp(28px, 3vw, 44px); line-height: 1.12; letter-spacing: -0.012em; }
.ch-q .ch-tag { display: inline-block; margin-right: 8px; padding: 2px 8px; border: 1px solid var(--border-on-ink); border-radius: 999px; font-size: 10px; letter-spacing: 0.08em; color: rgba(241, 240, 237, 0.7); }
@media (max-width: 900px) { .ch-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .ch-q.lead { padding-bottom: 30px; } }

/* ---------- Print ---------- */
@media print {
  .nav, .footer-ink, .mobile-menu, .btn, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .bg-ink, .img-band { background: #fff !important; color: #000 !important; min-height: 0; }
  .bg-ink * { color: #000 !important; }
  .img-band::before { display: none; }
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
