/* 2x Labs Design System — global entry point.
   Consumers link this one file. Import order matters: fonts → tokens → base → patterns. */
/* 2x Labs — Webfonts
   Self-hosted woff2 subsets (latin, latin-ext) extracted from the source website bundle.
   Instrument Sans = display/headline · IBM Plex Sans = body/UI · IBM Plex Mono = labels & system tags. */

@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/33e21520-9452-413d-a71f-ee3f25f6827a.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/62c0e955-303e-4c4e-8a37-0a0f69facf3f.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/23124fa2-67b8-44f8-af79-4589a6dc96de.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/7b6f147f-c64d-400e-a9b2-f3e9505796c8.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/6f9ea3bf-7b2d-4a0b-a073-d3f9481e804b.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/c20e57fb-6075-4995-bc51-cb5f35eaa6f2.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/47217fb5-8154-4e3c-9814-20d79f866c9b.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/9b10b2d3-cd84-42cc-866b-934fbd83df6a.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/761cd2f4-04eb-4599-b876-f0cb1b629a59.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/27f7df5f-efd3-4ca4-9a07-9e163fbc867a.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/d621f467-59dc-4e9b-aabd-3ec1404733fb.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/eaece0d6-cf3d-499a-bb3f-061ff8c90bbe.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/3fdc9063-f72b-461e-be5f-fff3f97b5b51.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/4bc0ebb2-1a0a-4266-b83e-3ae842cc1b7c.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url("/assets/fonts/8d14848d-07d1-486d-b137-1f0e3919942f.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url("/assets/fonts/20e2049a-2d26-4302-a676-47f2728e732e.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* 2x Labs — Colour system
   Direction: warm off-white paper, warm near-black ink, one restrained rust accent,
   charcoal for inverted surfaces. Deliberately NOT a cool AI-SaaS palette.
   Values are the ones actually rendered on the live site; earlier duplicate/legacy
   variables (deep ivory paper set, navy "governance" set, signal colours, Spectral/Inter
   display faces) are intentionally NOT part of this system. */

:root {
  /* ---------- Warm neutral surfaces ---------- */
  --paper:        #FAF9F6; /* page background — warm off-white, barely beige */
  --paper-deep:   #F7F4F0; /* alternating section band */
  --paper-sink:   #F0EBE6; /* recessed well / inset panel */
  --card:         #FEFDFC; /* raised card surface */
  --card-pure:    #FFFFFF; /* pure white, rare */

  /* ---------- Ink ---------- */
  --ink:          #1B1815; /* headlines, primary text */
  --ink-2:        #46403A; /* body copy, secondary headings */
  --stone:        #6F665B; /* muted copy, captions, roles (AA on paper: 4.9:1) */
  --stone-2:      #8C8276; /* decorative numerals only — NOT for text (3.5:1) */

  /* ---------- Hairlines ---------- */
  --line:         #E8E0D8; /* nav / footer hairline on paper */
  --line-2:       #D9CEC5; /* section dividers, list rules */
  --line-ink:     #CEC1B7; /* card + editorial-block borders */

  /* ---------- Rust accent ---------- */
  --accent:       #B65332; /* primary action, rules, arrows (4.8:1 on paper) */
  --accent-deep:  #8E3F27; /* hover / pressed, eyebrows, accent copy */
  --accent-tint:  #F4E3DB; /* highlighted stage, agent block */
  --accent-line:  #D7A995; /* tinted border on accent surfaces */

  /* ---------- Inverted (charcoal) ---------- */
  --surface-dark:        #24292D; /* CTA band, footer */
  --surface-dark-raised: #2D3338; /* dividers on dark */
  --text-on-dark:        #F0EEE8;
  --text-muted-dark:     #AEB4B5; /* 6.9:1 on charcoal */

  /* ---------- Semantic aliases (prefer these) ---------- */
  --surface-page:   var(--paper);
  --surface-alt:    var(--paper-deep);
  --surface-well:   var(--paper-sink);
  --surface-card:   var(--card);
  --surface-invert: var(--surface-dark);

  --text-strong:    var(--ink);
  --text-body:      var(--ink-2);
  --text-muted:     var(--stone);
  --text-decor:     var(--stone-2);
  --text-accent:    var(--accent-deep);
  --text-on-accent: #FFFFFF;
  --text-invert:    var(--text-on-dark);
  --text-invert-muted: var(--text-muted-dark);

  --border:         var(--line);
  --border-strong:  var(--line-2);
  --border-card:    var(--line-ink);
  --border-accent:  var(--accent-line);
  --border-invert:  var(--surface-dark-raised);

  --focus-ring:     var(--accent);
  --state-disabled-surface: #E4DED6;
  --state-disabled-text:    #9C9488;
  --state-error:    #A2331F; /* form validation only (5.9:1 on paper) */
  --state-error-tint: #F6E4DE;
}

/* 2x Labs — Typography
   Instrument Sans = display (all headlines, buttons, wordmark, eyebrows, list titles).
   IBM Plex Sans   = body copy and UI text.
   IBM Plex Mono   = system tags, step numerals, stage labels, chips. Dosed — never long form.
   Sizes are the values rendered on the live site; the scale steps down at tablet and
   mobile by redefining the tokens, so components never need their own breakpoints. */

:root {
  /* ---------- Families ---------- */
  --font-display: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* ---------- Weights ---------- */
  --w-reg:  400; /* @kind font */
  --w-med:  500; /* @kind font */
  --w-semi: 600; /* @kind font */
  --w-bold: 700; /* @kind font */

  /* ---------- Display / headline scale ---------- */
  --fs-hero:      58px; /* hero h1 */
  --fs-cta:       52px; /* inverted closing statement */
  --fs-h2:        42px; /* major section heading */
  --fs-h2-case:   40px; /* customer-example heading */
  --fs-h2-sm:     36px; /* standard section heading */
  --fs-h3:        22px; /* editorial row title, metric row, quote */
  --fs-h3-sm:     20px; /* compact row title, stage statement */
  --fs-h4:        19px; /* governance row title */
  --fs-h5:        17px; /* muted "before" title in comparison rows */

  /* ---------- Body scale ---------- */
  --fs-lead:      22px; /* hero standfirst */
  --fs-lead-2:    21px; /* section closing statement */
  --fs-lead-3:    19px; /* section intro */
  --fs-body-lg:   18px; /* dark-band body, diagram intro */
  --fs-body:      17px; /* governance intro */
  --fs-body-2:    16.5px; /* process row copy */
  --fs-body-3:    15px; /* row copy */
  --fs-body-4:    14px; /* compact row copy, nav links */
  --fs-caption:   13px; /* roles, footer links */
  --fs-label:     14px; /* section eyebrow (display, uppercase) */
  --fs-tag:       15px; /* mono stage tag */
  --fs-tag-sm:    12px; /* mono step numeral, chips */
  --fs-tag-xs:    11px; /* mono block label */
  --fs-micro:     10px; /* mono diagram caption */

  /* ---------- Line heights ---------- */
  --lh-hero:    1.12; /* @kind font */
  --lh-cta:     1.08; /* @kind font */
  --lh-head:    1.16; /* @kind font */
  --lh-title:   1.3;  /* @kind font */
  --lh-lead:    1.48; /* @kind font */
  --lh-body:    1.5;  /* @kind font */
  --lh-relaxed: 1.6;  /* @kind font */

  /* ---------- Letter spacing ---------- */
  --ls-hero:   -0.022em; /* @kind font */
  --ls-h2:     -0.018em; /* @kind font */
  --ls-h3:     -0.012em; /* @kind font */
  --ls-title:  -0.01em;  /* @kind font */
  --ls-body:    0;       /* @kind font */
  --ls-wordmark: 0.01em; /* @kind font */
  --ls-tag:     0.05em;  /* mono uppercase tags @kind font */
  --ls-tag-sm:  0.02em;  /* @kind font */
}

/* ---------- Tablet: ≤1024px ---------- */
@media (max-width: 1024px) {
  :root {
    --fs-hero: 44px;
    --fs-cta: 40px;
    --fs-h2: 34px;
    --fs-h2-case: 32px;
    --fs-h2-sm: 30px;
    --fs-h3: 20px;
    --fs-h3-sm: 18px;
    --fs-h4: 18px;
    --fs-lead: 19px;
    --fs-lead-2: 19px;
    --fs-lead-3: 17px;
    --fs-body-lg: 17px;
    --lh-hero: 1.14; /* @kind font */
    --lh-cta: 1.12; /* @kind font */
  }
}

/* ---------- Mobile: ≤680px ---------- */
@media (max-width: 680px) {
  :root {
    --fs-hero: 30px;
    --fs-cta: 30px;
    --fs-h2: 26px;
    --fs-h2-case: 25px;
    --fs-h2-sm: 24px;
    --fs-h3: 18px;
    --fs-h3-sm: 16px;
    --fs-h4: 16px;
    --fs-h5: 16px;
    --fs-lead: 17.5px;
    --fs-lead-2: 16.5px;
    --fs-lead-3: 15.5px;
    --fs-body-lg: 14.5px;
    --fs-body: 14px;
    --fs-body-2: 14px;
    --fs-body-3: 14px;
    --fs-body-4: 13.5px;
    --fs-label: 13px;
    --fs-tag: 14px;
    --fs-tag-xs: 10.5px;
    --lh-hero: 1.16; /* @kind font */
    --lh-cta: 1.12; /* @kind font */
    --ls-hero: -0.018em;
    --ls-h2: -0.016em;
  }
}

/* 2x Labs — Spacing, layout & responsive rhythm
   4px base step. Editorial sections breathe; technical blocks stay tight.
   --si is the page side inset: it centres a 1200px measure and never drops below the gutter. */

:root {
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-9:  36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-20: 80px;
  --space-24: 96px;
  --space-26: 104px;

  /* ---------- Layout ---------- */
  --container:   1200px; /* content measure the side inset centres */
  --container-narrow: 1040px; /* comparison stack, constrained blocks */
  --gutter:      64px;
  --si:          max(var(--gutter), (100% - var(--container)) / 2);
  --section-y:   96px;  /* standard section padding-block */
  --section-y-lg:104px; /* customer example / compounding section */
  --measure:     60ch;  /* body copy measure */
  --measure-head:22ch;  /* headline measure */
  --nav-h:       76px;
  --tap-min:     44px;  /* minimum touch target */
}

@media (max-width: 1024px) {
  :root {
    --gutter: 40px;
    --section-y: 64px;
    --section-y-lg: 72px;
    --nav-h: 68px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
    --si: var(--gutter);
    --section-y: 44px;
    --section-y-lg: 44px;
    --nav-h: 58px;
  }
}

/* 2x Labs — Radii, borders & shadows
   Modest architectural corners (3–5px, never pill-soft) and low, warm shadows.
   Document-like, not glossy: shadow is used to lift a surface off paper, never for drama. */

:root {
  /* ---------- Radii ---------- */
  --radius-xs:   2px;
  --radius-sm:   3px; /* buttons, tags */
  --radius-md:   4px; /* cards, chips, page frame */
  --radius-lg:   5px; /* wells, diagram shell */
  --radius-pill: 999px;

  --radius-button: var(--radius-sm);
  --radius-card:   var(--radius-md);
  --radius-well:   var(--radius-lg);

  /* ---------- Borders ---------- */
  --bw:               1px;
  --border-hair:      1px solid var(--line);
  --border-divider:   1px solid var(--line-2);
  --border-on-card:   1px solid var(--line-ink);
  --border-on-accent: 1px solid var(--accent-line);
  --rule-accent:      3px; /* height of the 28px rust rule above a quote */

  /* ---------- Shadows ---------- */
  --shadow-xs:   0 1px 2px rgba(40, 32, 22, 0.06);
  --shadow-sm:   0 1px 3px rgba(40, 32, 22, 0.07), 0 1px 2px rgba(40, 32, 22, 0.05);
  --shadow-card: 0 1px 2px rgba(27, 24, 21, 0.04), 0 10px 28px rgba(27, 24, 21, 0.05);
  --shadow-card-sm: 0 1px 2px rgba(27, 24, 21, 0.04), 0 8px 22px rgba(27, 24, 21, 0.05);
  --shadow-accent: 0 2px 4px rgba(182, 83, 50, 0.12), 0 8px 18px rgba(182, 83, 50, 0.10);
  --shadow-accent-hover: 0 3px 6px rgba(182, 83, 50, 0.14), 0 10px 22px rgba(182, 83, 50, 0.12);
}

/* 2x Labs — Motion
   Precise, mechanical, short. Content arrives by a small upward fade; nothing bounces,
   nothing scales on hover. Every motion is disabled under prefers-reduced-motion. */

:root {
  --ease-precise: cubic-bezier(0.2, 0.7, 0.2, 1); /* @kind other */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */

  --dur-fast:   120ms; /* @kind other */
  --dur-base:   200ms; /* @kind other */
  --dur-slow:   340ms; /* @kind other */
  --dur-reveal: 600ms; /* @kind other */ /* section reveal */

  --reveal-shift:    20px; /* desktop reveal travel */
  --reveal-shift-sm: 14px; /* mobile reveal travel */
  --marquee-dur:     46s;  /* @kind other */ /* ecosystem marquee, desktop */
  --marquee-dur-sm:  32s;  /* @kind other */ /* ecosystem marquee, mobile */
}

/* 2x Labs — Base resets & element defaults. Opt-in via the tokens above. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body-3);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  text-wrap: pretty;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--w-semi);
  color: var(--text-strong);
  letter-spacing: var(--ls-title);
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-precise);
}
a:hover { color: var(--accent-deep); text-decoration: underline; }
a:active { color: var(--accent-deep); }

button { font: inherit; }

blockquote { margin: 0; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.92em; }

img { max-width: 100%; }

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

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

hr { border: none; border-top: var(--border-hair); margin: var(--space-8) 0; }

/* 2x Labs — Shared layout & motion patterns
   Class-based rules for the few behaviours inline styles cannot express: responsive
   grid reflow, the reveal-on-scroll transition, and the ecosystem marquee.
   Components reference these class names; everything else stays token-driven. */

/* ---------- Page shell ---------- */
.ci-page { background: var(--surface-page); color: var(--text-body); font-family: var(--font-sans); }
.ci-section { padding: var(--section-y) var(--si); border-top: var(--border-divider); }
.ci-section--lg { padding-block: var(--section-y-lg); }
.ci-section--alt { background: var(--surface-alt); }
.ci-section--flush { border-top: none; }
.ci-measure { max-width: var(--measure); }
.ci-measure-head { max-width: var(--measure-head); }
.ci-narrow { width: min(100%, var(--container-narrow)); margin-inline: auto; }

/* ---------- Reveal on scroll ---------- */
.ci-reveal-scope .ci-reveal {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.ci-reveal-scope .ci-reveal--sm { transform: translateY(var(--reveal-shift-sm)); }
.ci-reveal-scope .ci-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Ecosystem marquee ---------- */
.ci-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.ci-marquee__track { display: flex; width: max-content; align-items: center; padding: 0 26px; color: var(--text-muted); animation: ci-marquee var(--marquee-dur) linear infinite; }
@keyframes ci-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Responsive reflow ---------- */
/* Comparison row: side-by-side with a rightward arrow → stacked with a downward arrow */
.ci-compare { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: start; gap: 0; }
.ci-compare__arrow { font-family: var(--font-mono); font-size: 19px; color: var(--accent); text-align: center; margin-top: 9px; }
.ci-compare__before { padding-right: var(--space-6); }
.ci-compare__after { padding-left: var(--space-6); }

/* Three-stage capability strip → stacked rows */
.ci-stages { display: grid; grid-template-columns: repeat(3, 1fr); }
/* Two-up split (diagram + list, case + panel) */
.ci-split { display: grid; gap: 68px; align-items: stretch; }
.ci-split--46-54 { grid-template-columns: 46fr 54fr; }
.ci-split--56-44 { grid-template-columns: 56fr 44fr; gap: 60px; align-items: center; }
/* Site nav links: collapse to the CTA only on narrow screens */
.ci-navlinks { display: flex; align-items: center; gap: 36px; }

/* Governance quadrant */
.ci-quad { display: grid; grid-template-columns: 1fr 1fr; }
/* Process rows: label column + copy */
.ci-process-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 30px; align-items: baseline; }

@media (max-width: 1024px) {
  .ci-split--46-54, .ci-split--56-44 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ci-stages { grid-template-columns: 1fr; }
  .ci-marquee__track { animation-duration: var(--marquee-dur-sm); }
}

@media (max-width: 680px) {
  .ci-compare { grid-template-columns: minmax(0, 1fr); }
  .ci-compare__before, .ci-compare__after { padding: 0; }
  .ci-compare__arrow { margin: 11px 0 9px; text-align: left; font-size: 17px; }
  .ci-quad { grid-template-columns: 1fr; }
  .ci-navlinks { gap: 14px; }
  .ci-navlinks a:not(.ci-btn) { display: none; }
  .ci-process-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ci-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .ci-marquee__track { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ci-marquee__track { animation: none; }
  .ci-reveal-scope .ci-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* 2x Labs — Component state layer
   Components carry their static styling inline (token-driven) and use these classes for the
   states inline styles cannot express: hover, active, focus-visible, disabled, invalid,
   placeholders. Class names are stable public API. */

/* ---------- Button ---------- */
.ci-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-display); font-weight: var(--w-semi); border: 1px solid transparent; border-radius: var(--radius-button); cursor: pointer; text-decoration: none; transition: background var(--dur-fast) var(--ease-precise), color var(--dur-fast) var(--ease-precise), box-shadow var(--dur-base) var(--ease-precise), border-color var(--dur-fast) var(--ease-precise); }
.ci-btn--lg { font-size: 17px; padding: 16px 30px; }
.ci-btn--md { font-size: 14px; padding: 10px 18px; }
.ci-btn--sm { font-size: 13px; padding: 8px 14px; }
.ci-btn--block { display: flex; width: 100%; text-align: center; }
.ci-btn--primary { background: var(--accent); color: var(--text-on-accent); }
.ci-btn--primary:hover { background: var(--accent-deep); color: var(--text-on-accent); text-decoration: none; }
.ci-btn--primary:active { background: var(--accent-deep); box-shadow: none; transform: translateY(1px); }
.ci-btn--elevated { box-shadow: var(--shadow-accent); }
.ci-btn--elevated:hover { box-shadow: var(--shadow-accent-hover); }
.ci-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-ink); }
.ci-btn--secondary:hover { background: var(--paper-deep); border-color: var(--stone); color: var(--ink); text-decoration: none; }
.ci-btn--secondary:active { background: var(--paper-sink); transform: translateY(1px); }
.ci-btn--quiet { background: transparent; color: var(--accent-deep); padding-inline: 4px; }
.ci-btn--quiet:hover { color: var(--accent); text-decoration: underline; }
.ci-btn--on-dark.ci-btn--secondary { color: var(--text-on-dark); border-color: var(--surface-dark-raised); }
.ci-btn--on-dark.ci-btn--secondary:hover { background: var(--surface-dark-raised); color: var(--text-on-dark); }
.ci-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ci-btn--on-dark:focus-visible { outline-color: var(--accent); outline-offset: 3px; }
.ci-btn[disabled], .ci-btn[aria-disabled="true"] { background: var(--state-disabled-surface); color: var(--state-disabled-text); border-color: transparent; box-shadow: none; cursor: not-allowed; transform: none; }
@media (max-width: 680px) {
  .ci-btn--lg { font-size: 16px; padding: 15px 26px; }
  .ci-btn--md { font-size: 14px; padding: 12px 18px; }
}

/* ---------- Links ---------- */
.ci-link { text-decoration: none; transition: color var(--dur-fast) var(--ease-precise); }
.ci-link--nav { color: var(--ink-2); }
.ci-link--nav:hover, .ci-link--nav:focus-visible { color: var(--accent); text-decoration: none; }
.ci-link--nav[aria-current="page"] { color: var(--accent-deep); }
.ci-link--inline { color: var(--accent); }
.ci-link--inline:hover { color: var(--accent-deep); text-decoration: underline; }
.ci-link--muted { color: var(--stone); }
.ci-link--muted:hover { color: var(--ink); text-decoration: none; }
.ci-link--on-dark { color: var(--text-muted-dark); }
.ci-link--on-dark:hover { color: var(--text-on-dark); text-decoration: none; }
.ci-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: var(--radius-xs); }
.ci-link--on-dark:focus-visible { outline-color: var(--accent); }
.ci-link[aria-disabled="true"] { color: var(--state-disabled-text); pointer-events: none; }

/* ---------- Nav ---------- */
.ci-navtoggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: var(--tap-min); height: var(--tap-min); background: none; border: none; padding: 12px; cursor: pointer; }
.ci-navtoggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform var(--dur-base) var(--ease-precise), opacity var(--dur-fast) linear; }
.ci-navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ci-navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ci-navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.ci-navtoggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

/* ---------- Interactive card ---------- */
.ci-card--link { display: block; text-decoration: none; color: inherit; transition: box-shadow var(--dur-base) var(--ease-precise), border-color var(--dur-base) var(--ease-precise); }
.ci-card--link:hover { border-color: var(--stone-2); box-shadow: var(--shadow-card); text-decoration: none; }
.ci-card--link:active { box-shadow: var(--shadow-xs); }
.ci-card--link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

/* ---------- Forms ---------- */
.ci-input { width: 100%; font-family: var(--font-sans); font-size: var(--fs-body-3); line-height: var(--lh-body); color: var(--ink); background: var(--card); border: 1px solid var(--line-ink); border-radius: var(--radius-sm); padding: 12px 14px; min-height: var(--tap-min); transition: border-color var(--dur-fast) var(--ease-precise), box-shadow var(--dur-fast) var(--ease-precise), background var(--dur-fast) var(--ease-precise); }
.ci-input::placeholder { color: var(--stone-2); }
.ci-input:hover { border-color: var(--stone-2); }
.ci-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.ci-input:focus-visible { outline: none; }
.ci-input[disabled] { background: var(--state-disabled-surface); color: var(--state-disabled-text); border-color: transparent; cursor: not-allowed; }
.ci-input[aria-invalid="true"] { border-color: var(--state-error); background: var(--state-error-tint); }
.ci-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--state-error-tint); }
textarea.ci-input { min-height: 132px; resize: vertical; }
select.ci-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%), linear-gradient(135deg, var(--stone) 50%, transparent 50%); background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.ci-check { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.ci-check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; background: var(--card); border: 1px solid var(--line-ink); border-radius: var(--radius-xs); cursor: pointer; transition: background var(--dur-fast) var(--ease-precise), border-color var(--dur-fast) var(--ease-precise); }
.ci-check:hover input { border-color: var(--stone-2); }
.ci-check input:checked { background: var(--accent); border-color: var(--accent); background-image: linear-gradient(to bottom right, transparent 46%, var(--card-pure) 46%); }
.ci-check input:checked::after { content: ""; display: block; width: 10px; height: 5px; margin: 3px auto 0; border-left: 1.6px solid var(--card-pure); border-bottom: 1.6px solid var(--card-pure); transform: rotate(-45deg); }
.ci-check input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ci-check input[disabled] { background: var(--state-disabled-surface); border-color: transparent; cursor: not-allowed; }





    .ci-dbs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--line-ink); }
    .ci-dbs__col { padding:40px 44px 44px 0; }
    .ci-dbs__col + .ci-dbs__col { padding-left:44px; border-left:1px solid var(--line-2); }
    .ci-numrow { display:grid; grid-template-columns:auto minmax(0,1fr); gap:20px; align-items:start; }
    .ci-proof { display:grid; grid-template-columns:1fr 1fr; }
    .ci-proof--single { grid-template-columns:1fr; }
    .ci-proof--single .ci-proof__col { padding:0; border-left:none; }
    .ci-proof__col { padding:0 56px; }
    .ci-proof__col:first-child { padding-left:0; }
    .ci-proof__col:last-child { padding-right:0; border-left:1px solid var(--line-ink); }
    .ci-proof--single .ci-proof__col:last-child { padding:0; border-left:none; }
    .ci-benefits { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line-ink); }
    .ci-benefit { padding:34px 52px 40px 0; }
    .ci-benefit:nth-child(even) { padding-left:52px; padding-right:0; border-left:1px solid var(--line-2); }
    .ci-benefit:nth-child(1), .ci-benefit:nth-child(2) { border-bottom:1px solid var(--line-2); }
    .ci-brm { display:none; }
    .ci-quote { font-size:19px; }
    @media (max-width:1024px) {
      .ci-dbs { grid-template-columns:1fr; }
      .ci-dbs__col { padding:32px 0; border-bottom:1px solid var(--line-2); }
      .ci-dbs__col + .ci-dbs__col { padding-left:0; border-left:none; }
      .ci-dbs__col:last-child { border-bottom:none; }
      .ci-proof { grid-template-columns:1fr; }
      .ci-proof__col { padding:0; }
      .ci-proof__col:last-child { border-left:none; border-top:1px solid var(--line-ink); padding-top:44px; margin-top:44px; }
    }
    @media (max-width:680px) {
      .ci-brm { display:inline; }
      .ci-quote { font-size:17px; line-height:1.6; }
      .ci-proof__divider { display:none; }
      .ci-benefits { grid-template-columns:1fr; }
      .ci-benefit { padding:28px 0 30px 0 !important; border-left:none !important; border-bottom:1px solid var(--line-2) !important; }
      .ci-benefit:last-child { border-bottom:none !important; }
      .ci-dbs__num { font-size:32px !important; }
    }


    .ci-team { display:grid; grid-template-columns:1fr 1fr; grid-auto-rows:1fr; gap:48px 56px; }
    .ci-teamcard { display:grid; grid-template-columns:168px minmax(0,1fr); gap:24px; align-items:start; height:100%; }
    .ci-teamcard:last-child:nth-child(odd) { grid-column:1 / -1; width:calc((100% - 56px) / 2); justify-self:center; }
    @media (max-width:1024px) { .ci-team { grid-template-columns:1fr; grid-auto-rows:auto; gap:48px; } .ci-teamcard { height:auto; } .ci-teamcard:last-child:nth-child(odd) { grid-column:auto; width:auto; } }
    @media (max-width:680px) { .ci-teamcard { grid-template-columns:1fr; gap:20px; } .ci-teamcard > img { width:144px !important; } }

  [data-page] { display:none; }
  [data-page].is-active { display:block; }


/* Homepage variants and production form */
.site-mobile { display: none; }
.site-variant { width: 100%; background: var(--paper); overflow-x: clip; }
.site-variant > nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); }
.brand-wordmark { display: inline-flex; align-items: flex-end; font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.brand-wordmark > span { color: var(--accent); line-height: .8; }
.quote-gate[hidden] { display: none !important; }
.contact-section { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--section-y-lg) var(--si); }
.contact-inner { max-width: 980px; }
.contact-kicker { margin: 0 0 18px; color: var(--accent-deep); font: 600 12px/1.4 var(--font-mono); letter-spacing: .12em; }
.contact-section h2 { margin: 0 0 20px; color: var(--ink); font: 600 clamp(40px,5vw,68px)/1.05 var(--font-display); letter-spacing: -.025em; }
.contact-lead { max-width: 62ch; margin: 0 0 44px; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-wide { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: 9px; color: var(--ink); font: 600 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 3px; background: var(--card-pure); color: var(--ink); padding: 14px 16px; font: 400 16px/1.5 var(--font-body); text-transform: none; letter-spacing: normal; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 24%, transparent); }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 26px; }
.form-footer p { max-width: 58ch; margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.form-footer button { flex: 0 0 auto; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: white; padding: 14px 20px; font: 600 14px/1.2 var(--font-body); cursor: pointer; }
.form-footer button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.form-footer button:disabled { opacity: .65; cursor: wait; }
.form-status { min-height: 24px; margin: 16px 0 0; color: var(--ink-2); font-size: 14px; }
.is-disabled { opacity: .5; pointer-events: none; }
@media (max-width: 767px) {
  .site-desktop { display: none; }
  .site-mobile { display: block; }
  .brand-wordmark { font-size: 23px; }
  .contact-section { padding: 68px 20px; }
  .contact-section h2 { font-size: 42px; }
  .contact-lead { font-size: 17px; margin-bottom: 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-wide { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer button { width: 100%; }
}

/* Shared navigation and legal pages */
.mobile-menu-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; display: grid; gap: 2px; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 14px 24px rgba(30,25,20,.08); }
.mobile-menu-panel[hidden] { display: none; }
.mobile-menu-panel a { padding: 13px 4px; color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-menu-panel .mobile-menu-cta { margin-top: 8px; padding: 14px 16px; background: var(--accent); color: white; text-align: center; }
.legal-menu-button { display: none; width: 44px; height: 44px; padding: 12px; border: 0; background: transparent; }
.legal-menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }
.legal-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding: 0 var(--si); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); }
.legal-main { padding: 80px var(--si) 120px; }
.legal-content { max-width: 820px; }
.legal-content h1 { margin: 0 0 56px; color: var(--ink); font: 600 clamp(44px,6vw,76px)/1.05 var(--font-display); letter-spacing: -.025em; }
.legal-content h2 { margin: 52px 0 18px; color: var(--ink); font: 600 26px/1.25 var(--font-display); letter-spacing: -.012em; }
.legal-content p, .legal-content li { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.legal-content p { margin: 0 0 18px; }
.legal-content ul { margin: 0 0 22px; padding-left: 24px; }
.legal-content code { font-family: var(--font-mono); color: var(--accent-deep); }
.legal-footer { display: flex; align-items: center; justify-content: space-between; padding: 28px var(--si); background: var(--surface-dark); }
.brand-wordmark--footer { color: var(--text-on-dark); font-size: 20px; text-decoration: none; }
.legal-footer nav { display: flex; gap: 24px; }
.legal-footer nav a { color: var(--text-on-dark); font-size: 13px; }
@media (max-width: 767px) {
  .ci-navlinks { display: none !important; }
  .legal-menu-button { display: block; }
  .site-nav, .legal-nav { position: sticky !important; }
  .legal-nav { height: 62px; padding: 0 20px; }
  .legal-main { padding: 58px 20px 80px; }
  .legal-content h1 { margin-bottom: 40px; font-size: 44px; }
  .legal-content h2 { margin-top: 40px; font-size: 23px; }
  .legal-footer { align-items: flex-start; flex-direction: column; gap: 24px; padding: 30px 20px; }
}


/* Final V43 production adaptations */
.ci-hero-title { width: 100%; }
@media (min-width:900px) {
  .ci-hero-title { font-size: clamp(40px, 4vw, 68px) !important; }
  .ci-hero-title > span {
    width: max-content;
    max-width: none;
    white-space: nowrap;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}
.ci-reveal-scope .ci-reveal { opacity: 1 !important; transform: none !important; }
.ci-page > nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); }
.contact-pending { margin: -22px 0 30px; color: var(--accent-deep); font-weight: 600; }
.contact-form[data-form-status="pending-setup"] { opacity: .58; }
.contact-form[data-form-status="pending-setup"] input,
.contact-form[data-form-status="pending-setup"] textarea { background: var(--paper-sink); cursor: not-allowed; }
.legal-footer .brand-wordmark { color: var(--text-on-dark); }
.legal-footer > div { display: flex; gap: 24px; }
@media (max-width:680px) {
  .ci-page > nav { padding-inline: 20px !important; }
  .ci-navlinks > .ci-link { display: none; }
  .ci-navlinks { gap: 12px; }
  .ci-navlinks .ci-btn { font-size: 12px; padding: 10px 12px; }
}
