/* ==============================================================
   Metis Khemis / MetisPro — shared design system for v2 pages
   Loaded by every new static HTML page under /solutions, /resources,
   /product, /about, /mission, /trust, /contact.
   Do not edit inline in individual pages — always update here.
   ============================================================== */

/* --- 0. Fonts (via fontshare CDN) ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- 1. Tokens (peacock-luxe) -------------------------------------- */
:root {
  /* --- surfaces --- */
  --bg: #050a1a;
  --bg-2: #0a1129;
  --bg-3: #0d1531;                       /* tint — section rhythms, deep wells */
  --bg-elev: rgba(10, 17, 41, 0.72);

  /* --- brand: peacock teal (tints/shades only) --- */
  --teal: #14b8a6;
  --teal-2: #22d3c4;
  --cyan: #7ee8de;
  --teal-deep: #0e7f76;                  /* shade — hover fills, pressed states */
  --teal-ink: #0a5c55;                   /* deep shade — dark accents */

  /* --- brand: gold (tints/shades only) ---
     v2.1 gold brightening — was #d4a851 / #f0c674 (7.21:1 / 9.42:1).
     Brighter primaries pop harder on black; --gold-soft retains legacy value
     for the pricing "Most Popular" badge only, per scarcity rule. */
  --gold: #f5c94a;        /* WCAG 10.6:1 on --bg */
  --gold-2: #ffd968;      /* WCAG 11.8:1 on --bg — hero digits & pull quotes */
  --gold-soft: #d4a851;   /* legacy — pricing "Most Popular" badge only */
  --gold-deep: #c9962f;   /* shade — gold borders, hairlines */

  /* --- brand: flame + ivory --- */
  --flame: #e8732a;
  --flame-deep: #c05a1d;                 /* shade — flame hover/pressed */
  --ivory: #f0e8d6;
  --ivory-muted: #baa789;
  --ivory-faint: rgba(240, 232, 214, 0.55);

  /* --- lines --- */
  --border: rgba(20, 184, 166, 0.18);
  --border-strong: rgba(20, 184, 166, 0.35);
  --hairline: rgba(240, 232, 214, 0.09);
  --hairline-teal: rgba(34, 211, 196, 0.38);
  --hairline-gold: rgba(245, 201, 74, 0.42);

  /* --- shadows: layered ambient + key light --- */
  --shadow-sm: 0 1px 2px rgba(4, 8, 22, 0.4), 0 4px 12px rgba(4, 8, 22, 0.28);
  --shadow-md: 0 2px 6px rgba(4, 8, 22, 0.42), 0 16px 40px rgba(4, 8, 22, 0.42);
  --shadow-lg: 0 2px 8px rgba(4, 8, 22, 0.4), 0 24px 60px rgba(4, 8, 22, 0.55);
  --shadow-xl: 0 4px 12px rgba(4, 8, 22, 0.45), 0 40px 96px rgba(4, 8, 22, 0.6);
  --shadow-glow-teal: 0 12px 28px rgba(20, 184, 166, 0.32);
  --shadow-glow-teal-strong: 0 16px 40px rgba(20, 184, 166, 0.42);
  --shadow-glow-gold: 0 12px 28px rgba(245, 201, 74, 0.3);

  /* --- radius: one scale --- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* --- spacing: one 4px-base scale --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* --- motion: one language --- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-instant: 80ms;
  --dur-fast: 120ms;
  --dur-base: 240ms;
  --dur-slow: 480ms;
  --dur-hero: 900ms;

  /* v2.1 typography scale — small-type readability bump.
     Older inline sizes (11/12/13/14px) were tight on mobile.
     Bumped 1px each. Body/headings unchanged to preserve hierarchy. */
  --fs-body: 17px;         /* base — unchanged */
  --fs-body-sm: 15px;      /* was 14px — card body */
  --fs-nav: 15px;          /* was 14px — nav links */
  --fs-footer: 14px;       /* was 13px — footer links, footer bottom */
  --fs-meta: 13px;         /* was 12px — small nav mobile, form labels */
  --fs-caption: 13px;      /* was 12px — captions, helper text */
  --fs-eyebrow: 12px;      /* was 11px — .label, section eyebrows */
  --fs-fine: 12px;         /* was 11px — legal, consent, footer legal */
  --lh-tight: 1.35;
  --lh-cozy: 1.45;
}

/* --- 2. Base ------------------------------------------------------- */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
html { scroll-behavior: smooth; }
a { color: var(--teal-2); text-decoration: none; transition: color var(--dur-fast) var(--ease-out-quart); }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal); color: var(--bg); }

/* --- 3. Ambient background --------------------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(20, 184, 166, 0.14), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(212, 168, 81, 0.06), transparent 45%),
    radial-gradient(circle at 50% 110%, rgba(34, 211, 196, 0.1), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

/* --- 4. Typography ------------------------------------------------- */
.display, h1.display, h2.display, .conviction {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.italic-serif, em.conviction, .conviction em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-optical-sizing: auto; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; margin: 0 0 var(--space-6); }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; margin: 0 0 var(--space-5); }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 var(--space-3); }
p  { margin: 0 0 var(--space-4); color: var(--ivory); text-wrap: pretty; }
.lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--ivory);
  max-width: 62ch;
  text-wrap: pretty;
}
.caption {
  font-size: var(--fs-caption);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--ivory-muted);
  text-wrap: pretty;
}
/* Section numeral — editorial wayfinding, e.g. <p class="section-numeral">01 · Voice AI</p> */
.section-numeral {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin: 0 0 var(--space-4);
}
.section-numeral::after {
  content: ''; height: 1px; width: 56px;
  background: linear-gradient(90deg, var(--hairline-teal), transparent);
}
/* Drop cap — long-form article openers only */
.drop-cap::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 3.6em;
  line-height: 0.82;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--gold-2);
}
.muted { color: var(--ivory-muted); }
.mono { font-family: 'JetBrains Mono', monospace; letter-spacing: 0; }
.label {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  line-height: var(--lh-cozy);
  color: var(--cyan);
}

/* --- 5. Layout primitives ----------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-8); }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--space-8); }
.section { padding: clamp(64px, 10vw, 128px) 0; }
/* Alternating subtle background rhythm for long pages */
.section-tint {
  background: linear-gradient(180deg,
    transparent,
    rgba(13, 21, 49, 0.55) 12%,
    rgba(13, 21, 49, 0.55) 88%,
    transparent);
}
.section-rule { border-top: 1px solid var(--hairline); }
/* Feathered section boundary — opt-in, e.g. <section class="hero feather-bottom"> */
.feather-bottom { position: relative; }
.feather-bottom::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 96px;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 26, 0.92));
  pointer-events: none;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 var(--space-5); }
  .section { padding: clamp(48px, 14vw, 84px) 0; }
}

/* --- 6. Nav + footer ---------------------------------------------- */
.mk-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 10, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) var(--ease-out-expo);
}
.mk-nav.is-scrolled {
  background: rgba(5, 10, 26, 0.9);
  box-shadow: var(--shadow-md);
}
.mk-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: var(--space-4) var(--space-8);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-8);
}
.mk-logo { display: flex; align-items: center; gap: var(--space-3); color: var(--ivory); font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; letter-spacing: 0.015em; }
.mk-logo:hover { color: var(--ivory); }
.mk-logo-mark { width: 36px; height: 36px; flex-shrink: 0; filter: drop-shadow(0 6px 16px rgba(20, 184, 166, 0.25)); transition: transform var(--dur-base) var(--ease-out-expo), filter var(--dur-base) var(--ease-out-expo); }
.mk-logo:hover .mk-logo-mark { transform: translateY(-1px); filter: drop-shadow(0 8px 20px rgba(20, 184, 166, 0.38)); }
.mk-logo-mark svg { display: block; width: 100%; height: 100%; }
.mk-nav-links { display: flex; gap: 28px; align-items: center; }
.mk-nav-links a { position: relative; color: var(--ivory); font-size: var(--fs-nav); font-weight: 500; opacity: 0.85; transition: opacity var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart); }
.mk-nav-links a:hover { opacity: 1; color: var(--cyan); }
/* Gradient underline sweep on hover; persistent gold for the active page */
.mk-nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, var(--teal-2), var(--gold-2));
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.mk-nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.mk-nav-links a[aria-current="page"] { color: var(--teal-2); opacity: 1; }
.mk-nav-links a[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); }
/* Mobile toggle — hamburger that becomes an X */
.mk-nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out-quart);
}
.mk-nav-toggle:hover { border-color: var(--border-strong); }
.mk-nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ivory);
  transition: transform var(--dur-base) var(--ease-out-expo), opacity var(--dur-fast) var(--ease-out-quart);
}
.mk-nav.mk-nav-open .mk-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mk-nav.mk-nav-open .mk-nav-toggle span:nth-child(2) { opacity: 0; }
.mk-nav.mk-nav-open .mk-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .mk-nav-inner { padding: var(--space-3) var(--space-5); }
  .mk-nav-toggle { display: inline-flex; }
  .mk-nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 10, 26, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--space-8);
    max-height: 0; overflow: hidden; opacity: 0;
    transition:
      max-height var(--dur-slow) var(--ease-out-expo),
      opacity var(--dur-base) var(--ease-out-quart),
      padding var(--dur-base) var(--ease-out-quart);
  }
  .mk-nav.mk-nav-open .mk-nav-links { max-height: 560px; opacity: 1; padding: var(--space-4) var(--space-8) var(--space-6); }
  .mk-nav-links a { padding: var(--space-3) 0; font-size: 16px; border-bottom: 1px solid var(--hairline); }
  .mk-nav-links a:not(.btn)::after { display: none; }
  .mk-nav-links a:last-child { border-bottom: 0; }
  .mk-nav-links .btn { margin-top: var(--space-3); justify-content: center; }
}

.mk-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: rgba(4, 8, 22, 0.6);
  padding: var(--space-16) 0 var(--space-10);
  margin-top: var(--space-24);
}
/* Gold-to-teal hairline accent crowning the footer */
.mk-footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-gold) 30%, var(--hairline-teal) 70%, transparent);
}
.mk-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: var(--space-8); max-width: 1280px; margin: 0 auto; padding: 0 var(--space-8); }
.mk-footer h4 { font-family: 'Inter', sans-serif; font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 2.2px; color: var(--cyan); font-weight: 600; margin: 0 0 var(--space-4); }
.mk-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.mk-footer a { color: var(--ivory-muted); font-size: var(--fs-footer); transition: color var(--dur-fast) var(--ease-out-quart), padding-left var(--dur-base) var(--ease-out-expo); }
.mk-footer a:hover { color: var(--ivory); padding-left: 4px; }
.mk-footer-bottom { max-width: 1280px; margin: var(--space-10) auto 0; padding: var(--space-6) var(--space-8) 0; border-top: 1px solid var(--border); font-size: var(--fs-footer); color: var(--ivory-muted); display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 900px) {
  .mk-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: 0 var(--space-5); }
  .mk-footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; padding-left: var(--space-5); padding-right: var(--space-5); }
}

/* "Powered by Prometheus" logo lockup */
.powered-by { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); text-decoration: none; }
.mk-footer a.powered-by:hover { padding-left: 0; }
.powered-by-text { font-family: 'Inter', sans-serif; font-size: var(--fs-fine); letter-spacing: 1.6px; text-transform: uppercase; color: var(--ivory-muted); transition: color var(--dur-fast) var(--ease-out-quart); }
.powered-by:hover .powered-by-text { color: var(--ivory); }
.powered-by img { height: 40px; width: auto; display: block; filter: drop-shadow(0 4px 14px rgba(232, 115, 42, 0.28)); transition: transform var(--dur-base) var(--ease-out-expo), filter var(--dur-base) var(--ease-out-expo); }
.powered-by:hover img { transform: translateY(-1px); filter: drop-shadow(0 6px 18px rgba(232, 115, 42, 0.4)); }
@media (max-width: 900px) { .powered-by img { height: 34px; } }

/* --- 7. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) 22px; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out-quart),
    box-shadow var(--dur-base) var(--ease-out-expo),
    background var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: var(--bg); box-shadow: var(--shadow-glow-teal); }
.btn-primary:hover { color: var(--bg); box-shadow: var(--shadow-glow-teal-strong); }
.btn-primary:active { box-shadow: var(--shadow-sm); }
.btn-secondary { background: transparent; color: var(--ivory); border-color: var(--border-strong); }
.btn-secondary:hover { color: var(--cyan); border-color: var(--teal-2); }
.btn-secondary:active { background: rgba(20, 184, 166, 0.08); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--bg); box-shadow: var(--shadow-glow-gold); }
.btn-gold:hover { color: var(--bg); box-shadow: 0 16px 40px rgba(245, 201, 74, 0.42); }
.btn-gold:active { box-shadow: var(--shadow-sm); }

/* --- 8. Cards ----------------------------------------------------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-quart),
    box-shadow var(--dur-base) var(--ease-out-expo);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 var(--space-2); color: var(--ivory); text-wrap: balance; }
.card p { color: var(--ivory-muted); font-size: var(--fs-body-sm); }
.card .label { margin-bottom: var(--space-3); display: block; }
/* Glass panel — premium frosted surface with a lit top edge */
.glass-panel {
  background: linear-gradient(165deg, rgba(20, 184, 166, 0.07), rgba(10, 17, 41, 0.62) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(240, 232, 214, 0.06);
  padding: var(--space-8);
}

/* --- 9. Hero patterns --------------------------------------------- */
.hero { position: relative; padding: clamp(80px, 12vw, 160px) 0 clamp(64px, 10vw, 128px); overflow: hidden; }
.hero .eyebrow { display: inline-block; padding: 6px 14px; border-radius: var(--radius-full); background: rgba(20, 184, 166, 0.1); border: 1px solid var(--border-strong); font-size: var(--fs-eyebrow); letter-spacing: 2.2px; text-transform: uppercase; color: var(--cyan); margin-bottom: var(--space-6); box-shadow: inset 0 1px 0 rgba(240, 232, 214, 0.05); }
.hero-conviction {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--gold-2);
  margin: var(--space-8) 0 0;
  max-width: 640px;
  text-wrap: balance;
}

/* --- 10. Editorial blocks ----------------------------------------- */
.pull-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.35; letter-spacing: -0.01em;
  color: var(--ivory);
  text-wrap: balance;
  margin: var(--space-10) 0;
  padding-top: var(--space-6);
  position: relative;
}
/* Gold hairline flourish above the quote — no quotation marks */
.pull-quote::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 56px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(245, 201, 74, 0));
}
.pull-quote cite {
  display: block; margin-top: var(--space-4);
  font-family: 'Inter', sans-serif; font-style: normal; font-weight: 500;
  font-size: var(--fs-caption); letter-spacing: 0.06em;
  color: var(--ivory-muted);
}
.stat-block { display: flex; flex-direction: column; gap: var(--space-1); }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 56px; font-weight: 500; line-height: 1; color: var(--ivory); letter-spacing: -0.02em; font-optical-sizing: auto; }
.stat-value.gold { background: linear-gradient(135deg, var(--teal-2), var(--gold-2)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-style: italic; }
.stat-label { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 2.2px; color: var(--cyan); font-weight: 600; }

/* --- 11. Trust bar ------------------------------------------------ */
.trust-bar { padding: var(--space-8) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-8); display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.trust-bar-label { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 2.2px; color: var(--cyan); font-weight: 600; }
.trust-bar-items { display: flex; gap: var(--space-8); align-items: center; opacity: 0.72; flex-wrap: wrap; }
.trust-bar-items span { color: var(--ivory); font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; }

/* --- 12. Utility -------------------------------------------------- */
.center { text-align: center; }
.max-720 { max-width: 720px; margin: 0 auto; }
.mt-16 { margin-top: var(--space-4); }
.mt-24 { margin-top: var(--space-6); }
.mt-32 { margin-top: var(--space-8); }
.mt-48 { margin-top: var(--space-12); }
.mt-64 { margin-top: var(--space-16); }
.mb-24 { margin-bottom: var(--space-6); }
.mb-32 { margin-bottom: var(--space-8); }
.mb-64 { margin-bottom: var(--space-16); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-full); background: rgba(245, 201, 74, 0.12); color: var(--gold-2); font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; border: 1px solid rgba(245, 201, 74, 0.32); }
/* Hairline dividers with a gradient fade */
.hairline { border: 0; height: 1px; margin: var(--space-8) 0; background: linear-gradient(90deg, transparent, var(--hairline-teal), transparent); }
.hairline-gold { border: 0; height: 1px; margin: var(--space-8) 0; background: linear-gradient(90deg, transparent, var(--hairline-gold), transparent); }
.hairline-left { border: 0; height: 1px; margin: var(--space-8) 0; background: linear-gradient(90deg, var(--hairline-teal), transparent); }

/* --- 13. Motion language + reveal-on-scroll ---------------------- */
/* One coherent motion language. Durations: --dur-instant 80ms (micro),
   --dur-fast 120ms (hovers), --dur-base 240ms (panels, cards),
   --dur-slow 480ms (reveals), --dur-hero 900ms (hero entrances).
   Easing: --ease-out-expo for entrances/reveals, --ease-out-quart for
   hovers/micro, --ease-in-out for looping/continuous motion.
   Reveal is OPT-IN: add class="reveal" to key blocks. mk-partials.js
   observes them with IntersectionObserver and adds .is-in once visible.
   Stagger with style="--reveal-delay: 120ms". */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-scale {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-scale.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- 14. v2.1: Case-study "Fast take" bullet blocks -------------- */
/* Placed above narrative paragraphs so speed-readers get bullets,
   deep-readers keep the prose. Teal-tinted — brand-consistent. */
.cs-block { margin: var(--space-8) 0; }
.cs-fast-take {
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: var(--radius-sm);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-5);
}
.cs-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-2);
  display: block;
  margin-bottom: var(--space-3);
  line-height: var(--lh-cozy);
}
.cs-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.cs-bullets li {
  color: var(--ivory);
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  padding-left: var(--space-6);
  position: relative;
}
.cs-bullets li::before {
  content: '▸';
  color: var(--teal-2);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
}
.cs-narrative { color: var(--ivory-muted); }
@media (max-width: 640px) {
  .cs-fast-take { padding: var(--space-4) var(--space-5); }
}

/* --- 15. v2.1: MKLeadForm component ------------------------------ */
/* Lead-magnet forms on ROI calculator + playbook guides. */
.mk-lead-form {
  display: flex; flex-direction: column; gap: var(--space-4);
  max-width: 520px;
  padding: var(--space-6);
  background: rgba(10, 17, 41, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.mk-lead-form--compact {
  max-width: 100%;
  padding: var(--space-5) var(--space-6);
  gap: var(--space-3);
  background: rgba(20, 184, 166, 0.04);
  border-color: var(--border-strong);
}
.mk-lead-form h3 {
  margin: 0 0 var(--space-1);
  color: var(--ivory);
  font-size: 24px;
  line-height: 1.2;
}
.mk-lead-form--compact h3 { font-size: 20px; }
.mk-lead-form p.mk-lead-sub {
  margin: 0 0 var(--space-3);
  color: var(--ivory-muted);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
}
.mk-lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 640px) {
  .mk-lead-form { padding: var(--space-5); }
  .mk-lead-form-row { grid-template-columns: 1fr; }
}
.mk-field { display: flex; flex-direction: column; gap: var(--space-2); }
.mk-field label {
  font-size: var(--fs-meta);
  color: var(--ivory);
  font-weight: 500;
  line-height: var(--lh-cozy);
}
.mk-field label .mk-optional {
  color: var(--ivory-muted);
  font-weight: 400;
  font-size: var(--fs-caption);
}
.mk-field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 232, 214, 0.15);
  border-radius: var(--radius-xs);
  padding: var(--space-3) var(--space-4);
  color: var(--ivory);
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
  width: 100%;
}
.mk-field input::placeholder { color: rgba(240, 232, 214, 0.35); }
.mk-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.mk-field input[aria-invalid="true"] { border-color: #ef4444; }
.mk-field-error {
  font-size: var(--fs-caption);
  color: #f87171;
  line-height: var(--lh-cozy);
  min-height: 0;
}
.mk-callback {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(20, 184, 166, 0.05);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(20, 184, 166, 0.18);
  cursor: pointer;
}
.mk-callback input[type="checkbox"] {
  margin: 3px 0 0;
  accent-color: var(--teal);
  width: 18px; height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}
.mk-callback-text { display: flex; flex-direction: column; gap: var(--space-1); }
.mk-callback-label {
  color: var(--ivory);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  line-height: var(--lh-cozy);
}
.mk-callback-helper {
  font-size: var(--fs-caption);
  color: var(--ivory-muted);
  line-height: var(--lh-cozy);
}
.mk-consent {
  font-size: var(--fs-fine);
  color: rgba(240, 232, 214, 0.55);
  line-height: 1.5;
  margin: 0;
}
.mk-consent a { color: var(--teal-2); text-decoration: underline; }
.mk-submit {
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: var(--bg);
  border: none;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--fs-body);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out-quart),
    box-shadow var(--dur-fast) var(--ease-out-expo),
    opacity var(--dur-fast) var(--ease-out-quart);
  align-self: flex-start;
  box-shadow: var(--shadow-glow-teal);
}
.mk-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-teal-strong);
}
.mk-submit:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.mk-submit:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
.mk-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.mk-submit .mk-spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(5, 10, 26, 0.4);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: mk-spin 0.7s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
.mk-submit[data-loading="true"] .mk-spinner { display: inline-block; }
@keyframes mk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .mk-submit .mk-spinner { animation: none; }
}

/* Honeypot — visually hidden but not display:none (some bots skip that) */
.mk-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}

/* Success panel replaces the form on submit */
.mk-lead-form-success {
  padding: var(--space-6);
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.32);
  border-radius: var(--radius);
  max-width: 520px;
}
.mk-lead-form-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--teal-2);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}
.mk-lead-form-success p {
  color: var(--ivory);
  font-size: var(--fs-body);
  line-height: 1.55;
  margin: 0 0 var(--space-3);
}
.mk-lead-form-success .mk-secondary-cta {
  display: inline-block;
  margin-top: var(--space-3);
  color: var(--teal-2);
  font-size: var(--fs-body-sm);
  text-decoration: underline;
}
.mk-lead-form-error {
  padding: var(--space-3) var(--space-4);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: var(--radius-xs);
  color: #fca5a5;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-cozy);
}
/* Fade-in reveal used by the ROI form when the calculator is populated.
   NOTE: distinct from the opt-in .reveal scroll system above — this one
   starts visible and is toggled by mk-lead-forms.js. Do not restyle. */
.mk-reveal { opacity: 1; transform: none; transition: opacity var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart); }
.mk-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mk-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Additional lead-form helpers referenced by mk-lead-forms.js (v2.1)
   ========================================================================== */
.mk-field-label {
  display: block;
  font-size: var(--fs-caption);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.mk-field-invalid input { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.mk-lead-heading {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ivory);
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 0 0 var(--space-2);
  line-height: 1.2;
}
.mk-lead-subhead {
  color: var(--ivory-muted);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-cozy);
  margin: 0 0 var(--space-2);
}
.mk-lead-status {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.mk-success-check {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.18);
  color: var(--teal-2);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.mk-submit-label { display: inline-block; }

/* Inline (mid-guide) wrapper */
.mk-lead-inline {
  margin: var(--space-10) 0;
  padding: var(--space-6);
  background: rgba(20, 184, 166, 0.04);
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: var(--radius);
}
.mk-lead-inline-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(20, 184, 166, 0.14);
}
.mk-lead-inline-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ivory);
  font-size: 22px;
  line-height: 1.25;
}

/* End-of-guide wrapper */
.mk-lead-end {
  margin: var(--space-12) auto;
  padding: var(--space-8);
  max-width: 640px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.mk-lead-end-header { text-align: center; margin-bottom: var(--space-5); }
.mk-lead-end-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold-2);
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.15;
}

/* --- v2.2: cinematic film grain (inline SVG data-URI, zero extra requests) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  body::after { opacity: 0.03; }
}
