/* ============================================================
   Self-hosted variable webfonts (was: render-blocking Google Fonts,
   4 families / 17 static weights). Variable = every weight in one file.
   ============================================================ */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/geist-latin-ext.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: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/geist-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin.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;
}

/* ====================================================================
   METRIC-MATCHED FALLBACK FONTS — this is the CLS fix.
   font-display:swap repaints text when the webfont arrives. If the
   fallback has different metrics the text reflows, which is what
   scored 0.220 on <div class="hero-metrics"> alone. These overrides
   make Arial occupy exactly the same space as the real face, so the
   swap is invisible to layout. Values were CALIBRATED in a real browser (binary search on size-adjust
   until the fallback's rendered advance width matched the webfont's) —
   the naive avg-advance calculation from the font tables was wrong.
   ==================================================================== */
@font-face {
  font-family: 'Geist Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('Roboto'), local('Liberation Sans'), local('Segoe UI');
  size-adjust: 102.7%; ascent-override: 97.9%; descent-override: 28.7%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Space Grotesk Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('Roboto'), local('Liberation Sans'), local('Segoe UI');
  size-adjust: 113.2%; ascent-override: 86.9%; descent-override: 25.8%; line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('Roboto'), local('Liberation Sans'), local('Segoe UI');
  size-adjust: 122.0%; ascent-override: 83.6%; descent-override: 24.6%; line-gap-override: 0%;
}

/* ==========================================================================
   CSC — Collaborative Supply Chains
   Global stylesheet · v1 · 2026-05-27
   Sections: 1. Tokens · 2. Reset · 3. Layout · 4. Components · 5. Pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand color */
  --color-ink: #0F172A;
  --color-ink-2: #1E293B;
  --color-navy: #0E2A47;
  --color-navy-2: #14375E;
  --color-teal: #23B79C;
  --color-teal-2: #0F8F73;
  --color-teal-tint: #E4F6F0;
  --color-amber: #F59E0B;
  --color-amber-2: #D97706;
  --color-amber-tint: #FEF3E2;
  --color-cyan: #3FB6E0;
  --color-cyan-tint: #E1F3FA;
  --color-red: #DC2626;
  --color-green: #059669;
  --color-blue: #2563EB;

  /* -----------------------------------------------------------------
     Semantic color system (color-system-designer skill)
     Named by *function*, not hue, so intent is unambiguous in code.
     All values verified WCAG AA against white background (≥4.5:1 for
     body text; ≥3:1 for large text and UI components).
     ----------------------------------------------------------------- */
  /* Success — for positive feedback, savings deltas, "approved" states */
  --color-success:       #059669;  /* contrast on #fff: 4.8:1  body-text safe */
  --color-success-tint:  #ECFDF5;  /* light bg for success callouts */
  --color-success-on:    #064E3B;  /* deeper text/foreground on success-tint */
  /* Error — for destructive actions, validation failures, "blocked" states */
  --color-error:         #DC2626;  /* contrast on #fff: 4.8:1  body-text safe */
  --color-error-tint:    #FEF2F2;
  --color-error-on:      #7F1D1D;
  /* Warning — for caution, "review needed", schedule risk.
     Distinct from CTA amber so the two never read as the same intent. */
  --color-warning:       #B45309;  /* contrast on #fff: 5.0:1  body-text safe */
  --color-warning-tint:  #FFFBEB;
  --color-warning-on:    #78350F;
  /* Info — for neutral system messages, "this is how X works" notes */
  --color-info:          #2563EB;  /* contrast on #fff: 7.5:1  body-text safe */
  --color-info-tint:     #EFF6FF;
  --color-info-on:       #1E3A8A;

  /* Accessibility-graded brand variants.
     The base brand colors (--color-teal, --color-amber) are tuned for
     impact on dark backgrounds and inside SVG illustrations. When the
     same brand color is needed as TEXT on a light background, use these
     darker variants — they preserve the brand reading while passing AA. */
  --color-teal-on-light:  #0A7A60;  /* contrast on #fff: 5.0:1  body-text safe */
  --color-amber-on-light: #B45309;  /* contrast on #fff: 5.0:1  body-text safe */

  /* Neutrals (faint green-graphite tint to harmonize with teal) */
  --color-bg: #FFFFFF;
  --color-bg-2: #F4F8F6;
  --color-bg-3: #ECF2EF;
  --color-line: #E2EAE7;
  --color-line-2: #CBD7D2;
  --color-text: #0F172A;
  --color-text-2: #475569;
  --color-text-3: #64748B;
  --color-text-light: #94A3B8;
  --color-white: #FFFFFF;

  /* Dark surfaces — graphite-green base */
  --color-dark: #0C1512;
  --color-dark-2: #14201C;
  --color-dark-3: #20302A;
  --color-dark-text: #E7EFEA;
  --color-dark-text-2: #93A39B;

  /* Typography */
  /* taste-skill: Geist leads with Inter as fallback. Geist's metrics are close enough
     to Inter that layout won't shift; if Geist fails to load, Inter takes over. */
  --font-display: 'Space Grotesk', 'Space Grotesk Fallback', 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Geist', 'Geist Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', 'SF Mono', Menlo, Monaco, Consolas, monospace;

  /* Type scale */
  --size-11: 0.6875rem;
  --size-12: 0.75rem;
  --size-13: 0.8125rem;
  --size-14: 0.875rem;
  --size-15: 0.9375rem;
  --size-16: 1rem;
  --size-18: 1.125rem;
  --size-20: 1.25rem;
  --size-24: 1.5rem;
  --size-28: 1.75rem;
  --size-30: 1.875rem;
  --size-36: 2.25rem;
  --size-48: 3rem;
  --size-60: 3.75rem;
  --size-72: 4.5rem;

  /* Spacing (8px grid) */
  --space-1: 0.25rem;   /*  4px */
  --space-2: 0.5rem;    /*  8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Container */
  --container: 1560px;
  --container-narrow: 1140px;

  /* Shadow (used sparingly) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);

  /* Motion — Emil-skill custom easings (stronger than built-ins).
     --ease: default strong ease-out for ~90% of UI interactions.
     --ease-in-out-strong: morphing/movement on screen (modals sliding, drawers).
     --ease-drawer: iOS-like curve, ideal for drawers/sheets that slide in.
     Never use ease-in for UI — it feels sluggish (skill rule). */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1); /* taste-skill: premium spring-feel for CTAs, primary surfaces */
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 400ms;
  --dur-press: 160ms;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--color-ink); }
p { color: var(--color-text-2); }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: var(--container-narrow); }

.section { padding: clamp(4rem, 7vw, 5.5rem) 0; } /* 64-88px, was 120 */
.section-sm { padding: var(--space-16) 0; }
.section-lg { padding: clamp(4.5rem, 8vw, 6.5rem) 0; }
.section-dark { background: var(--color-dark); color: var(--color-dark-text); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-white); }
.section-dark p { color: var(--color-dark-text-2); }
.section-tint { background: var(--color-bg-2); }
.section-navy { background: var(--color-navy); color: var(--color-white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--color-white); }
.section-navy p { color: rgba(255,255,255,0.78); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .section-lg { padding: var(--space-20) 0; }
}

/* --------------------------------------------------------------------------
   4. Components
   -------------------------------------------------------------------------- */

/* Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-6); max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: var(--space-3); font-weight: 700; color: var(--color-ink); letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-navy); color: var(--color-white); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: var(--size-14); font-weight: 700; }
.brand-text { font-size: var(--size-16); }
.brand-text small { display: block; font-size: var(--size-12); font-weight: 500; color: var(--color-text-3); letter-spacing: 0; }
.brand-svg { width: 40px; height: auto; flex-shrink: 0; }
.brand-icon { height: 36px; width: auto; display: block; border-radius: 6px; }
.brand-icon-footer { height: 40px; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-logo-footer { height: 56px; }

.nav-list { display: flex; align-items: center; gap: var(--space-8); }
.nav-link { font-size: var(--size-16); font-weight: 500; color: var(--color-text-2); padding: var(--space-2) 0; position: relative; transition: color var(--dur-fast) var(--ease); }
.nav-link:hover { color: var(--color-ink); }
.nav-link.is-active { color: var(--color-ink); }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 2px; background: var(--color-teal); }

html.nav-locked, html.nav-locked body { overflow: hidden; }

.nav-item-mega-row { display: flex; align-items: center; }
.nav-caret-btn { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; margin: 0; padding: 0 0 0 2px; font: inherit; color: inherit; cursor: pointer; }

.nav-cta { background: var(--color-amber); color: var(--color-ink); padding: var(--space-2) var(--space-5); border-radius: var(--radius-pill); font-size: var(--size-15); font-weight: 600; transition: background var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease); }
.nav-cta:active { transform: scale(0.97); }
.nav-cta:hover { background: var(--color-amber-2); transform: translateY(-1px); }

.nav-toggle { display: none; width: 32px; height: 32px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-ink); border-radius: 2px; position: relative; transition: background 200ms var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--color-ink); transition: transform 200ms var(--ease), top 200ms var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .nav-list { display: none; }
  .nav-toggle { display: inline-flex; width: 44px; height: 44px; z-index: 101; position: relative; }

  .site-header.is-open .nav-toggle span { background: transparent; }
  .site-header.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .site-header.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

  .site-header.is-open::before {
    content: ""; position: fixed; inset: 0; background: rgba(11, 15, 20, 0.45); z-index: 97;
  }
  .site-header.is-open .nav-list {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-white);
    padding: var(--space-2) var(--space-6) calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
    border-bottom: 1px solid var(--color-line);
    max-height: calc(100vh - 100%); overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-list .nav-item { border-bottom: 1px solid var(--color-line); }
  .nav-list .nav-item:last-of-type { border-bottom: none; }
  .nav-list > .nav-link,
  .nav-item-mega-row { min-height: 52px; }
  .nav-item-mega-row .nav-link { flex: 1; padding: 0; }
  .nav-caret-btn { width: 44px; height: 44px; }
  .nav-list .nav-cta { justify-content: center; margin: var(--space-4) 0; }
}

/* Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-6); border-radius: var(--radius-pill); font-weight: 600; font-size: var(--size-15); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease); white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-amber); color: var(--color-ink); }
.btn-primary { transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-spring); }
.btn-primary:hover { background: var(--color-amber-2); transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(217, 119, 6, 0.35); }
.btn-secondary { background: var(--color-white); color: var(--color-ink); border: 1px solid var(--color-line-2); }
.btn-secondary:hover { background: var(--color-bg-2); border-color: var(--color-ink); }
.btn-dark { background: var(--color-ink); color: var(--color-white); }
.btn-dark:hover { background: var(--color-ink-2); }
.btn-ghost { background: transparent; color: var(--color-white); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--color-white); }
.btn-link { background: none; padding: 0; color: var(--color-ink); font-weight: 600; }
.btn-link::after { content: " →"; transition: transform var(--dur-fast) var(--ease); display: inline-block; margin-left: 4px; }
.btn-link:hover::after { transform: translateX(4px); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--size-18); }

/* Eyebrow / labels ---------------------------------------------------- */
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-teal); margin-bottom: var(--space-4); }
.eyebrow-light { color: rgba(255,255,255,0.7); }

/* Headings ------------------------------------------------------------ */
.h1 { font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.h4 { font-size: var(--size-20); }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.7; color: var(--color-text-2); max-width: 65ch; }
.lede-dark { color: var(--color-dark-text-2); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--space-10, 2.5rem); }
.section-head .lede { margin: var(--space-4) auto 0; }
.section-head-left { text-align: left; max-width: 760px; margin: 0 0 var(--space-10, 2.5rem); }

/* Card ---------------------------------------------------------------- */
.card { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 4px 8px -4px rgba(0, 0, 0, 0.03); transition: transform var(--dur-base) var(--ease-spring), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease-spring); }
.card:hover { transform: translateY(-2px); border-color: var(--color-line-2); box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.03); }
.card-dark { background: var(--color-dark-2); border-color: rgba(255,255,255,0.08); }
.card-dark:hover { border-color: rgba(255,255,255,0.16); }

/* Metric chip / stat -------------------------------------------------- */
.metric { display: flex; flex-direction: column; gap: var(--space-1); }
.metric-value { font-family: var(--font-mono); font-size: var(--size-36); font-weight: 700; color: var(--color-ink); letter-spacing: -0.02em; line-height: 1; }
.metric-value-light { color: var(--color-white); }
.metric-value-teal { color: var(--color-teal); }
.metric-label { font-size: var(--size-14); color: var(--color-text-3); letter-spacing: 0.02em; }
.metric-label-light { color: rgba(255,255,255,0.7); }

.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-8); }
.metric-row .metric { border-left: 2px solid var(--color-teal); padding-left: var(--space-4); }
.metric-row-light .metric { border-color: rgba(255,255,255,0.25); }

/* Tag / pill ---------------------------------------------------------- */
.tag { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-3); background: var(--color-teal-tint); color: var(--color-teal-2); border-radius: var(--radius-pill); font-size: var(--size-13); font-weight: 600; letter-spacing: 0.02em; }
.tag-amber { background: var(--color-amber-tint); color: var(--color-amber-2); }
.tag-navy { background: rgba(14, 42, 71, 0.08); color: var(--color-navy); }
.tag-cyan { background: var(--color-cyan-tint); color: #1E7A9A; }
.tag-outline { background: transparent; border: 1px solid var(--color-line-2); color: var(--color-text-2); }
.tag-dark { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.1); }

/* Logo bar ------------------------------------------------------------ */
.logo-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-8); align-items: center; }
.logo-bar .logo { display: flex; align-items: center; justify-content: center; height: 48px; filter: grayscale(1) opacity(0.55); transition: filter var(--dur-base) var(--ease); }
.logo-bar .logo:hover { filter: grayscale(0) opacity(1); }
.logo-bar .logo svg, .logo-bar .logo .logo-text { max-height: 38px; }
.logo-text { font-family: var(--font-sans); font-weight: 800; font-size: var(--size-16); letter-spacing: -0.02em; color: var(--color-ink); white-space: nowrap; }

/* FAQ ---------------------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--color-line); }
.faq-item:last-child { border-bottom: 1px solid var(--color-line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: var(--space-6) 0; font-size: var(--size-18); font-weight: 600; color: var(--color-ink); text-align: left; }
.faq-q::after { content: "+"; font-family: var(--font-mono); font-weight: 400; font-size: var(--size-24); color: var(--color-teal); transition: transform var(--dur-base) var(--ease); }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 var(--space-6); font-size: var(--size-16); color: var(--color-text-2); max-width: 60ch; }
.faq-item.is-open .faq-a { display: block; }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--color-dark); color: var(--color-dark-text); padding: var(--space-16) 0 var(--space-8); }
.site-footer h4 { color: var(--color-white); font-size: var(--size-15); margin-bottom: var(--space-4); letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a { color: var(--color-dark-text-2); font-size: var(--size-15); display: block; padding: var(--space-1) 0; transition: color var(--dur-fast) var(--ease); }
.site-footer a:hover { color: var(--color-white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-12); }
.footer-bottom { padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); font-size: var(--size-13); color: var(--color-dark-text-2); }
.footer-brand p { color: var(--color-dark-text-2); margin-top: var(--space-3); font-size: var(--size-14); max-width: 32ch; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Filter chips -------------------------------------------------------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.filter-chip { padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--color-white); border: 1px solid var(--color-line-2); font-size: var(--size-13); font-weight: 500; color: var(--color-text-2); cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease); }
.filter-chip:active { transform: scale(0.97); }
.filter-chip:hover { border-color: var(--color-ink); color: var(--color-ink); }
.filter-chip.is-active { background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); }

/* Process steps ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); position: relative; }
.step { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-white); border: 1px solid var(--color-line); position: relative; }
.step-num { font-family: var(--font-mono); font-size: var(--size-13); font-weight: 600; color: var(--color-teal); letter-spacing: 0.08em; }
.step h3 { font-size: var(--size-20); margin: var(--space-3) 0 var(--space-3); }
.step p { font-size: var(--size-14); }

/* Form ---------------------------------------------------------------- */
.form-field { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: var(--size-13); font-weight: 600; color: var(--color-ink); margin-bottom: var(--space-2); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-line-2);
  border-radius: var(--radius-md); font-size: var(--size-15); color: var(--color-ink);
  background: var(--color-white); transition: border-color var(--dur-fast) var(--ease);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(35, 183, 156, 0.15); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-help { font-size: var(--size-12); color: var(--color-text-3); margin-top: var(--space-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   5. Page-specific patterns
   -------------------------------------------------------------------------- */

/* Hero ---------------------------------------------------------------- */
.hero { background: var(--color-dark); color: var(--color-white); padding: var(--space-10) 0 var(--space-16); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(35, 183, 156,0.12), transparent 60%), radial-gradient(ellipse at bottom left, rgba(63,182,224,0.08), transparent 50%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 0.95fr; gap: var(--space-10); align-items: center; }
.hero h1 { color: var(--color-white); margin-bottom: var(--space-5); }
.hero .lede { color: rgba(255,255,255,0.82); margin-bottom: var(--space-8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-12); }
.hero-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-8); padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.1); }

@media (max-width: 900px) {
  .hero { padding: var(--space-16) 0; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-10); }
}

/* Methodology cards -------------------------------------------------- */
/* taste-skill: off-card grouping. Skill bans generic card containers for data
   groups — methodology steps "breathe" via a teal top-rule + negative space,
   no box. Reads as editorial step list, not boxed Bento. */
.method-card { padding: var(--space-6) var(--space-3) 0; border-top: 2px solid var(--color-line); background: transparent; border-radius: 0; position: relative; height: 100%; display: flex; flex-direction: column; }
.method-card .step-num { font-size: var(--size-14); }
.method-card h3 { font-size: var(--size-24); margin: var(--space-4) 0; }
.method-card .method-illustration { margin: var(--space-4) 0 var(--space-6); }
.method-card ul { margin-top: var(--space-4); }
.method-card ul li { font-size: var(--size-14); color: var(--color-text-2); padding: var(--space-2) 0; border-top: 1px dashed var(--color-line); display: flex; align-items: center; gap: var(--space-2); }
.method-card ul li::before { content: ""; width: 4px; height: 4px; background: var(--color-teal); border-radius: 50%; flex-shrink: 0; }

/* How-it-works horizontal timeline ----------------------------------- */
.how-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}
/* progress line behind the numbered nodes (node center sits at 27px) */
.how-timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 16.667%;
  right: 16.667%;
  height: 3px;
  background: var(--color-teal);
  opacity: 1;
  z-index: 0;
}
.how-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.how-node {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--size-20);
  font-weight: 700;
  color: #04241C;
  background: var(--color-teal);
  margin: 0 auto var(--space-6);
  position: relative; z-index: 2;
}
.how-step .method-card { height: 100%; }
@media (max-width: 900px) {
  .how-timeline { grid-template-columns: 1fr; gap: var(--space-8); }
  .how-timeline::before { display: none; }
  .how-node { margin-bottom: var(--space-5); }
}

/* Case card ----------------------------------------------------------- */
.case-card { display: flex; flex-direction: column; height: 100%; }
.case-card .case-img { aspect-ratio: 16 / 9; background: var(--color-bg-2); border-radius: var(--radius-md); margin-bottom: var(--space-5); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.case-meta { display: flex; align-items: center; justify-content: space-between; font-size: var(--size-13); color: var(--color-text-3); margin-bottom: var(--space-3); }
.case-card h3 { font-size: var(--size-20); margin-bottom: var(--space-3); }
.case-savings { font-family: var(--font-mono); font-size: var(--size-30); font-weight: 700; color: var(--color-teal); margin-bottom: var(--space-2); line-height: 1; }
.case-spend { font-size: var(--size-14); color: var(--color-text-3); margin-bottom: var(--space-4); }

/* Service / industry tile -------------------------------------------- */
.tile { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-white); border: 1px solid var(--color-line); display: flex; flex-direction: column; gap: var(--space-3); transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); height: 100%; }
.tile:active { transform: scale(0.99); }
.tile:hover { border-color: var(--color-ink); transform: translateY(-2px); }
.tile-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-teal-tint); display: flex; align-items: center; justify-content: center; color: var(--color-teal-2); }
.tile h3 { font-size: var(--size-18); }
.tile p { font-size: var(--size-14); flex-grow: 1; }
.tile-link { font-size: var(--size-14); font-weight: 600; color: var(--color-ink); margin-top: auto; padding-top: var(--space-2); }
.tile-link::after { content: " →"; }

/* Quote / testimonial ------------------------------------------------- */
.quote { max-width: 920px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: var(--font-mono); font-size: var(--size-60); color: var(--color-teal); line-height: 0.6; margin-bottom: var(--space-4); }
.quote-text { font-size: clamp(1.25rem, 2.5vw, 1.875rem); line-height: 1.4; color: var(--color-white); font-weight: 500; letter-spacing: -0.01em; }
.quote-cite { margin-top: var(--space-6); font-size: var(--size-14); color: rgba(255,255,255,0.7); }
.quote-cite strong { display: block; color: var(--color-white); font-size: var(--size-15); font-weight: 600; }

/* Side-by-side layout ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.split-narrow { gap: var(--space-12); }
.split.flipped { direction: rtl; }
.split.flipped > * { direction: ltr; }
.split-60-40 { grid-template-columns: 40fr 60fr; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-10); } .split.flipped { direction: ltr; } .split-60-40 { grid-template-columns: 1fr; } }

/* Page header (for non-home pages) ------------------------------------ */
.page-header { background: var(--color-bg-2); padding: var(--space-20) 0 var(--space-16); border-bottom: 1px solid var(--color-line); }
.page-header.dark { background: var(--color-dark); color: var(--color-white); }
.page-header.dark h1 { color: var(--color-white); }
.page-header.dark .lede { color: rgba(255,255,255,0.78); }
.breadcrumb { display: flex; gap: var(--space-2); font-size: var(--size-13); color: var(--color-text-3); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--color-text-3); }
.breadcrumb a:hover { color: var(--color-ink); }
.breadcrumb-sep { color: var(--color-text-light); }
.page-header.dark .breadcrumb a, .page-header.dark .breadcrumb { color: rgba(255,255,255,0.65); }

/* Comparison table (engagement models) -------------------------------- */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.compare-col { padding: var(--space-8); border-radius: var(--radius-lg); border: 1px solid var(--color-line); display: flex; flex-direction: column; gap: var(--space-4); background: var(--color-white); }
.compare-col.featured { border-color: var(--color-teal); border-width: 2px; position: relative; box-shadow: var(--shadow-md); }
.compare-col.featured::before { content: "PRIMARY"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--color-teal); color: var(--color-white); padding: 2px 12px; border-radius: var(--radius-pill); font-size: var(--size-12); font-weight: 700; letter-spacing: 0.06em; }
.compare-col h3 { font-size: var(--size-20); }
.compare-col .compare-meta { font-size: var(--size-13); color: var(--color-text-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-line); }
.compare-col ul li { font-size: var(--size-14); color: var(--color-text-2); padding: var(--space-2) 0; display: flex; gap: var(--space-2); align-items: flex-start; }
.compare-col ul li::before { content: "✓"; color: var(--color-teal); font-weight: 700; flex-shrink: 0; }

/* World map / supplier network --------------------------------------- */
.network-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-6); margin: var(--space-12) 0; }
.network-stat { padding: var(--space-5); background: var(--color-white); border-radius: var(--radius-lg); border-left: 3px solid var(--color-teal); }
.network-stat-num { font-family: var(--font-mono); font-size: var(--size-30); font-weight: 700; color: var(--color-ink); }
.network-stat-label { font-size: var(--size-13); color: var(--color-text-3); margin-top: var(--space-1); }

/* Sankey / process flow ---------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); position: relative; }

/* Spec / cost-stack -------------------------------------------------- */
.cost-stack { display: flex; flex-direction: column-reverse; gap: 2px; padding: var(--space-4); background: var(--color-bg-2); border-radius: var(--radius-md); }
.cost-stack-bar { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--color-white); font-size: var(--size-13); font-weight: 500; }
.cost-stack-bar .label { color: var(--color-text-2); }
.cost-stack-bar .value { font-family: var(--font-mono); color: var(--color-ink); font-weight: 600; }

/* Anchored TOC for solution pages ------------------------------------ */
.toc { position: sticky; top: 80px; padding: var(--space-6); border-left: 2px solid var(--color-line); }
.toc a { display: block; padding: var(--space-2) var(--space-4); font-size: var(--size-14); color: var(--color-text-3); border-left: 2px solid transparent; margin-left: calc(var(--space-4) * -1 - 2px); }
.toc a:hover, .toc a.is-active { color: var(--color-ink); border-color: var(--color-teal); }

/* Banner / pilot CTA strip ------------------------------------------- */
.cta-strip { background: linear-gradient(135deg, var(--color-navy), var(--color-navy-2)); color: var(--color-white); padding: var(--space-16) 0; }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.cta-strip h2 { color: var(--color-white); }
.cta-strip p { color: rgba(255,255,255,0.78); margin-top: var(--space-2); }
@media (max-width: 900px) { .cta-strip-inner { flex-direction: column; align-items: flex-start; } }

/* Utility ------------------------------------------------------------- */
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }
.text-teal { color: var(--color-teal); }
.text-amber { color: var(--color-amber); }
.mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); } .mt-12 { margin-top: var(--space-12); }
.mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); } .mb-8 { margin-bottom: var(--space-8); }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Reveal animation (scroll-triggered) -------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
[data-reveal][data-stagger="1"] { transition-delay: 40ms; }
[data-reveal][data-stagger="2"] { transition-delay: 80ms; }
[data-reveal][data-stagger="3"] { transition-delay: 120ms; }
[data-reveal][data-stagger="4"] { transition-delay: 160ms; }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

/* When the Motion (motion.dev) layer is active, it drives reveals + stagger
   with spring physics via the Web Animations API. Disable the CSS transitions
   so the two don't compete; Motion owns the timing. If Motion never loads,
   .motion-on is removed and these rules fall back to the CSS reveal above. */
.motion-on [data-reveal],
.motion-on .stagger > * { transition: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ====================================================================
   GENERATED MEDIA — Batch 01 (Nano Banana Pro + Veo 3)
   Flat-folder convention:
     - Images: /assets/images/sections/
     - Videos: /assets/videos/
   ==================================================================== */

/* 1. Hero — background video removed; solid navy is the canvas ------ */
.hero { isolation: isolate; }
/* (.hero-video and .hero::after rules removed — no background video anymore) */
.hero-inner { position: relative; z-index: 2; }

/* 2. Trust-strip with industrial backdrop -------------------------- */
.trust-strip {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.94) 100%),
    url('/assets/images/sections/trust-bar-bg.webp') center/cover no-repeat;
  padding: var(--space-12) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.trust-strip p { color: rgba(255,255,255,0.6) !important; }
/* Text-logo treatment: white at high opacity so client wordmarks are clearly visible */
.trust-strip .marquee .logo-text {
  color: #FFFFFF !important;
  opacity: 0.85;
  font-weight: 800;
  font-size: var(--size-18);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: opacity 250ms var(--ease), letter-spacing 250ms var(--ease);
}
.trust-strip .marquee .logo-text:hover { opacity: 1; letter-spacing: 0.06em; }
/* Image-logo treatment: local SVGs already arrive in white; do NOT force-filter them.
   The renderer applies a per-logo `whiten: true` inline filter only when needed (color sources). */
.trust-strip .marquee img { opacity: 0.82; height: 34px; width: auto; max-width: 170px; }
.trust-strip .marquee img:hover { opacity: 1; }

/* 3. Methodology section backdrop (subtle texture) ----------------- */
.methodology-bg { position: relative; overflow: hidden; }
.methodology-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url('/assets/images/sections/methodology-bg.webp') center/cover no-repeat;
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  pointer-events: none; z-index: 0;
}
.methodology-bg > .container,
.methodology-bg > div { position: relative; z-index: 1; }

/* 4/5/6. Case-study hero (reusable across all 12 case pages) ------ */
.case-hero {
  position: relative; min-height: 540px;
  background-size: cover; background-position: center right;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-20) 0 var(--space-16);
  display: flex; align-items: center;
  overflow: hidden;
}
.case-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,23,42,0.94) 0%, rgba(15,23,42,0.78) 38%, rgba(15,23,42,0.15) 78%, rgba(15,23,42,0) 100%);
}
.case-hero > .container { position: relative; z-index: 2; max-width: 60%; }
.case-hero h1, .case-hero .h1 { color: var(--color-white); }
.case-hero .breadcrumb, .case-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
@media (max-width: 900px) {
  .case-hero { min-height: 420px; }
  .case-hero > .container { max-width: 100%; }
  .case-hero::before { background: linear-gradient(180deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.95) 100%); }
}

/* 7/8. Solution-page hero (reusable across all 4 solution pages) -- */
.solution-hero {
  position: relative; min-height: min(500px, 70vh);
  background-size: cover; background-position: center right;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-20) 0 var(--space-16);
  display: flex; align-items: center;
  overflow: hidden;
}
.solution-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,23,42,0.96) 0%, rgba(15,23,42,0.92) 45%, rgba(15,23,42,0.72) 66%, rgba(15,23,42,0.18) 88%, rgba(15,23,42,0) 100%);
}
.solution-hero > .container { position: relative; z-index: 2; max-width: 60%; }
.solution-hero h1, .solution-hero .h1 { color: var(--color-white); }
.solution-hero .breadcrumb, .solution-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
@media (max-width: 900px) {
  .solution-hero { min-height: 460px; }
  .solution-hero > .container { max-width: 100%; }
  .solution-hero::before { background: linear-gradient(180deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.95) 100%); }
}

/* 9. Industry-page hero (reusable across all 8 industry pages) ---- */
.industry-hero {
  position: relative; min-height: 540px;
  background-size: cover; background-position: center right;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-20) 0 var(--space-16);
  display: flex; align-items: center;
  overflow: hidden;
}
.industry-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,23,42,0.94) 0%, rgba(15,23,42,0.78) 38%, rgba(15,23,42,0.15) 78%, rgba(15,23,42,0) 100%);
}
.industry-hero > .container { position: relative; z-index: 2; max-width: 60%; }
.industry-hero h1, .industry-hero .h1 { color: var(--color-white); }
.industry-hero .breadcrumb, .industry-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
/* Hero copy sits on a dark image in BOTH themes — force it light so it never
   goes dark-on-dark in light mode. */
.industry-hero .lede, .industry-hero > .container > p { color: rgba(255,255,255,0.85); }
@media (max-width: 900px) {
  .industry-hero { min-height: 420px; }
  .industry-hero > .container { max-width: 100%; }
  .industry-hero::before { background: linear-gradient(180deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.95) 100%); }
}

/* 10. Pilot-program ambient video hero ----------------------------- */
.pilot-hero {
  position: relative; min-height: 70vh; overflow: hidden;
  color: var(--color-white);
  display: flex; align-items: center;
  background-color: var(--color-dark);
}
.pilot-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.pilot-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0.88) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(15,23,42,0) 0%, rgba(15,23,42,0.55) 70%);
}
.pilot-hero > .container { position: relative; z-index: 2; max-width: 60%; }
.pilot-hero h1, .pilot-hero .h1 { color: var(--color-white); }
.pilot-hero .breadcrumb, .pilot-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
@media (max-width: 900px) { .pilot-hero > .container { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .pilot-hero-video { display: none; }
  .pilot-hero {
    background:
      linear-gradient(180deg, rgba(15,23,42,0.65) 0%, rgba(15,23,42,0.9) 100%),
      url('/assets/images/sections/pilot-hero-poster.webp') center/cover no-repeat;
  }
}

/* ====================================================================
   SUPPLIER COVERAGE — real Natural-Earth world map + stats
   ==================================================================== */

/* World map container ---------------------------------------------- */
.world-map-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0 var(--space-10);
  position: relative;
  overflow: hidden;
}
.world-map-wrap::before {
  /* Subtle equator/meridian grid lines */
  content: ""; position: absolute; inset: var(--space-6);
  background-image:
    linear-gradient(90deg, transparent 49.9%, rgba(35, 183, 156,0.04) 50%, transparent 50.1%),
    linear-gradient(180deg, transparent 49.9%, rgba(35, 183, 156,0.04) 50%, transparent 50.1%);
  pointer-events: none;
}
.world-map { display: block; width: 100%; height: auto; }
.world-land {
  fill: rgba(255,255,255,0.06);
  stroke: rgba(35, 183, 156,0.32);
  stroke-width: 0.5;
  stroke-linejoin: round;
  transition: fill 400ms var(--ease);
}
.world-map:hover .world-land { fill: rgba(255,255,255,0.09); }

.world-dot { transition: r 200ms var(--ease); }
.world-dot-hub {
  filter: drop-shadow(0 0 6px rgba(35, 183, 156,0.6));
}
.world-spokes path { opacity: 0.8; }
.world-csc text { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8)); }

@media (max-width: 700px) {
  .world-map-wrap { padding: var(--space-3); }
}

/* Top-line mega stats band ----------------------------------------- */
.coverage-mega {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-10) 0;
  margin: var(--space-12) 0 var(--space-16);
  border-top: 1px solid rgba(35, 183, 156,0.18);
  border-bottom: 1px solid rgba(35, 183, 156,0.18);
}
.coverage-mega-item { text-align: left; padding: 0 var(--space-4); border-left: 2px solid rgba(35, 183, 156,0.4); }
.coverage-mega-item:first-child { border-left: 0; padding-left: 0; }
.coverage-mega-num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.coverage-mega-num span { color: var(--color-teal); margin-left: 2px; }
.coverage-mega-label {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--size-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 900px) {
  .coverage-mega { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .coverage-mega-item:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Ranked country bars ---------------------------------------------- */
.coverage-bars {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-10);
}
.coverage-bars-head { margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid rgba(255,255,255,0.08); }
.coverage-bars-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-12);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
}
.coverage-row {
  display: grid;
  grid-template-columns: 36px 1fr 2fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.coverage-row:last-child { border-bottom: 0; }
.coverage-flag { font-size: 24px; line-height: 1; }
.coverage-name {
  font-size: var(--size-16);
  font-weight: 600;
  color: #fff;
  display: flex; align-items: center; gap: var(--space-3);
}
.coverage-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
}
.coverage-tag-hub { background: rgba(35, 183, 156,0.18); color: var(--color-teal); }
.coverage-tag-lcc { background: rgba(63,182,224,0.15); color: var(--color-cyan); }
.coverage-bar {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.coverage-fill {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, rgba(63,182,224,0.7), var(--color-cyan));
  border-radius: 5px;
  transform-origin: left center;
  animation: coverage-grow 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.coverage-fill-hub {
  background: linear-gradient(90deg, var(--color-teal-2), var(--color-teal));
  box-shadow: 0 0 18px rgba(35, 183, 156,0.4);
}
@keyframes coverage-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.coverage-count {
  font-family: var(--font-mono);
  font-size: var(--size-20);
  font-weight: 700;
  color: #fff;
  min-width: 80px;
  text-align: right;
}
.coverage-count small { color: var(--color-teal); font-size: 0.7em; margin-left: 2px; }
@media (max-width: 900px) {
  .coverage-bars { padding: var(--space-5) var(--space-4); }
  .coverage-row { grid-template-columns: 28px 1fr auto; }
  .coverage-bar { grid-column: 1 / -1; }
  .coverage-count { font-size: var(--size-18); min-width: 64px; }
}

/* Long-tail chip cloud --------------------------------------------- */
.coverage-tail { margin-top: var(--space-10); }
.coverage-tail-head { margin-bottom: var(--space-5); }
.coverage-tail-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-12);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
}
.coverage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.coverage-chip {
  padding: 7px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  font-size: var(--size-13);
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform var(--dur-press) var(--ease);
}
.coverage-chip:hover {
  background: rgba(35, 183, 156,0.12);
  border-color: rgba(35, 183, 156,0.4);
  color: #fff;
  transform: translateY(-1px);
}
.coverage-chip:active { transform: scale(0.97); }
.coverage-chip:last-child {
  background: rgba(245, 158, 11,0.1);
  border-color: rgba(245, 158, 11,0.3);
  color: var(--color-amber);
}

.lede-dark { color: rgba(255,255,255,0.78) !important; }

/* ====================================================================
   PROBLEM SECTION — dramatic dark; sized to fit one viewport
   ==================================================================== */
.problem-section {
  background: linear-gradient(180deg, #0F172A 0%, #0B1224 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0;       /* tighter than default .section padding */
}
.problem-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(220,38,38,0.08), transparent 50%),
              radial-gradient(ellipse at 0% 100%, rgba(63,182,224,0.05), transparent 50%);
  pointer-events: none;
}
.problem-section > .container { position: relative; z-index: 1; }

.problem-section .section-head {
  max-width: 900px;
  margin-bottom: var(--space-8);    /* was space-12 */
}
.problem-headline {
  color: #fff !important;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem) !important;   /* tighter */
  line-height: 1.1 !important;
  margin-bottom: var(--space-3) !important;
}
.problem-headline-red { color: #FCA5A5; }
.problem-section .lede-dark { font-size: var(--size-16) !important; }

.problem-grid { gap: var(--space-6); align-items: stretch; }

.problem-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.problem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
}
.problem-card-1 { border-top: 4px solid #DC2626; }
.problem-card-2 { border-top: 4px solid #F59E0B; }
.problem-card-3 { border-top: 4px solid #3FB6E0; }

/* Card hierarchy: stat + headline lead, illustration supports below.
   (Flex `order` flip — HTML keeps illus first, meta second.) */
.problem-card .problem-meta { order: 1; }
.problem-card .problem-illus { order: 2; margin-top: auto; }

/* Illustration panel — slimmer, now sits at the bottom of the card */
.problem-illus {
  background: #0E1729;
  padding: var(--space-2) var(--space-3) var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 0;
}
.problem-illus svg {
  width: 100%; height: auto; max-height: 260px;
  display: block; margin: 0 auto;
}

/* Meta panel — tighter padding */
.problem-meta {
  padding: var(--space-5) var(--space-5) var(--space-6);
  text-align: center;
  flex: 1;
  display: flex; flex-direction: column;
}
.problem-stat {
  font-family: var(--font-mono);
  font-size: clamp(2.75rem, 5vw, 4rem);              /* was 4–6rem; ~30% smaller */
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}
.problem-stat-red    { color: #FCA5A5; text-shadow: 0 0 24px rgba(220,38,38,0.45); }
.problem-stat-orange { color: #FED7AA; text-shadow: 0 0 24px rgba(245, 158, 11,0.45); }
.problem-stat-blue   { color: #BAE6FD; text-shadow: 0 0 24px rgba(63,182,224,0.45); }
.problem-head {
  font-size: var(--size-18);                          /* was 20 */
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.problem-desc {
  font-size: var(--size-14);                          /* was 15 */
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin: 0;
}
.problem-desc strong { color: #fff; font-weight: 700; }

/* Category tag at the top of each problem card (merged diagnostic labels) */
.problem-tag {
  font-family: var(--font-mono);
  font-size: var(--size-12);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.problem-tag-red   { color: #F87171; }
.problem-tag-amber { color: #FBBF24; }
.problem-tag-blue  { color: #7DD3FC; }


@media (max-width: 900px) {
  .problem-section { padding: var(--space-12) 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-illus { padding: var(--space-3); }
  .problem-illus svg { max-height: 240px; }
  .problem-meta { padding: var(--space-5); }
}

/* ====================================================================
   MOBILE STICKY CTA — bottom bar, mobile-only (10–27% lift per research)
   ==================================================================== */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 700px) {
  .mobile-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99;
    padding: var(--space-4) var(--space-5);
    background: var(--color-amber);
    color: var(--color-ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-16);
    box-shadow: 0 -4px 16px rgba(15,23,42,0.25);
    transition: transform 240ms var(--ease);
    text-decoration: none;
  }
  .mobile-sticky-cta.is-hidden { transform: translateY(110%); transition-duration: 200ms; }
  .mobile-sticky-cta .arrow { font-size: 1.25em; transition: transform 200ms var(--ease); }
  .mobile-sticky-cta:active { transform: translateY(2px); }
  .mobile-sticky-cta:active .arrow { transform: translateX(4px); }
  /* Reserve space at bottom of every page so the bar doesn't cover the footer */
  body { padding-bottom: 68px; }
}

/* ====================================================================
   TESTIMONIAL CARDS — named-VP quotes (recommendation #14)
   ==================================================================== */
.testimonial-row { gap: var(--space-6); margin-top: var(--space-8); }
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--color-teal);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  margin: 0;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--color-amber);
}
.testimonial-quote {
  flex: 1;
  font-family: var(--font-display);
  font-size: var(--size-18);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255,255,255,0.95);
  margin: 0 0 var(--space-6) 0;
  letter-spacing: -0.01em;
}
.testimonial-quote strong {
  color: var(--color-teal);
  font-weight: 700;
}
.testimonial-meta {
  display: flex; align-items: center; gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy-2), var(--color-navy));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-mono);
  font-size: var(--size-14);
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(35, 183, 156,0.3);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-15);
  color: #fff;
  line-height: 1.2;
}
.testimonial-title {
  font-size: var(--size-13);
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.testimonial-company {
  font-family: var(--font-mono);
  font-size: var(--size-12);
  color: var(--color-teal);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ====================================================================
   ROLE-BASED ENTRY CARDS (Procurement / Engineering / CFO)
   Buying-group self-segmentation — Gartner 6-11 stakeholders
   ==================================================================== */
.role-entry-section {
  padding: var(--space-16) 0 var(--space-12);
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-line);
}
.role-entry-head { text-align: center; max-width: 760px; margin: 0 auto var(--space-10); }
.role-entry-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-top: var(--space-2);
}
.role-entry-h2 em { font-style: italic; font-weight: 700; color: var(--color-teal); }
.role-entry-grid { gap: var(--space-6); }

.role-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--color-teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 250ms var(--ease);
}
.role-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-teal);
  box-shadow: var(--shadow-lg);
}
.role-card:hover::before { transform: scaleX(1); }

.role-card-procurement::before { background: var(--color-teal); }
.role-card-engineering::before { background: var(--color-cyan); }
.role-card-cfo::before          { background: var(--color-amber); }

.role-card-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  background: var(--color-teal-tint); color: var(--color-teal);
}
.role-card-engineering .role-card-icon { background: var(--color-cyan-tint); color: var(--color-cyan); }
.role-card-cfo          .role-card-icon { background: var(--color-amber-tint); color: var(--color-amber); }

.role-card-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-12);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-3);
  margin-bottom: var(--space-2);
}
.role-card-h3 {
  font-family: var(--font-display);
  font-size: var(--size-20);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.role-card p {
  font-size: var(--size-15);
  line-height: 1.55;
  color: var(--color-text-2);
  margin-bottom: var(--space-4);
  flex: 1;
}
.role-card-link {
  font-family: var(--font-display);
  font-size: var(--size-14);
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: -0.01em;
  margin-top: auto;
}
.role-card-engineering .role-card-link { color: var(--color-cyan); }
.role-card-cfo          .role-card-link { color: var(--color-amber); }

@media (max-width: 900px) {
  .role-entry-section { padding: var(--space-12) 0 var(--space-10); }
  .role-entry-grid { grid-template-columns: 1fr; }
}

/* ====================================================================
   MEGA-MENU NAV (Solutions + Industries)
   ==================================================================== */
.nav-item-mega { position: relative; }
.nav-caret {
  font-size: 0.7em;
  opacity: 0.5;
  margin-left: 2px;
  transition: transform 200ms var(--ease);
}
.nav-item-mega:hover .nav-caret,
.nav-item-mega:focus-within .nav-caret { transform: rotate(180deg); opacity: 1; }

.mega-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.97);
  transform-origin: top center; /* origin-aware popover: grows from the nav-link below it (Emil-skill) */
  width: 720px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
  z-index: 99;
  padding: var(--space-2);
}
.mega-menu-wide { width: 800px; }

/* Desktop-only: hover/focus reveals the popover mega-menu. Scoped to avoid
   leaking onto mobile, where tapping the caret button satisfies :focus-within
   and previously forced the desktop popover width/transform into the
   collapsed accordion panel (visible content off-screen). */
@media (min-width: 901px) {
  .nav-item-mega:hover .mega-menu,
  .nav-item-mega:focus-within .mega-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    /* ~90ms hover intent so the menu doesn't flash open as the pointer crosses the nav */
    transition: opacity 180ms var(--ease) 90ms, transform 180ms var(--ease) 90ms, visibility 0s 90ms;
  }
  .nav-item-mega:focus-within .mega-menu { transition-delay: 0s; }
  /* close faster than it opens */
  .mega-menu { transition: opacity 140ms var(--ease), transform 140ms var(--ease), visibility 0s linear 140ms; }
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-2);
  padding: var(--space-3);
}

.mega-col-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--size-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-3);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

/* Left column: link list */
.mega-link {
  display: block;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  transition: background 150ms var(--ease);
  text-decoration: none;
}
.mega-link:hover { background: var(--color-bg-2); }
.mega-link-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-15);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.mega-link-desc {
  display: block;
  font-size: var(--size-13);
  color: var(--color-text-3);
  margin-top: 2px;
  line-height: 1.4;
}
.mega-link-compact {
  font-weight: 600;
  font-size: var(--size-14);
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
}
.mega-link-compact:hover { color: var(--color-teal); }
.mega-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

/* Right column: featured case card */
.mega-col-feature {
  background: linear-gradient(135deg, var(--color-dark), var(--color-navy));
  color: var(--color-white);
  padding: var(--space-5);
  border-radius: var(--radius-md);
}
.mega-col-feature .mega-col-eyebrow { color: var(--color-teal); }
.mega-feature { display: block; text-decoration: none; color: inherit; }
.mega-feature-stat {
  font-family: var(--font-mono);
  font-size: var(--size-30);
  font-weight: 800;
  color: var(--color-teal);
  line-height: 1;
  letter-spacing: -0.02em;
}
.mega-feature-stat small {
  font-size: var(--size-12);
  color: rgba(255,255,255,0.55);
  margin-left: var(--space-2);
  font-weight: 500;
}
.mega-feature-title {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-16);
  color: #fff;
}
.mega-feature-desc {
  margin-top: var(--space-2);
  font-size: var(--size-13);
  color: rgba(255,255,255,0.75);
  line-height: 1.45;
}
.mega-feature-link {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--size-14);
  font-weight: 700;
  color: var(--color-teal);
}

/* Mobile: submenus collapse into an accordion (tap the caret to expand),
   closed by default — was previously dumped open, which buried the rest
   of the nav under a wall of always-visible content. */
@media (max-width: 900px) {
  .mega-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    width: 100%; box-shadow: none; border: none; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 260ms var(--ease);
  }
  .nav-item-mega.is-expanded .mega-menu { max-height: 1200px; }
  .mega-menu-inner { grid-template-columns: 1fr; padding: 0 0 var(--space-4); }
  .mega-col-feature { display: none; }
  .mega-links-grid { grid-template-columns: 1fr; }
  .mega-link, .mega-link-compact { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
  .nav-caret-btn .nav-caret { transition: transform 200ms var(--ease); }
  .nav-item-mega.is-expanded .nav-caret-btn .nav-caret { transform: rotate(180deg); opacity: 1; }
}













/* ====================================================================
   STICKY SIDEBAR TOC (long pages — case studies / solutions / industries)
   ==================================================================== */
/* Collapsed pill, bottom-right — expands on hover/focus. The container is
   1560px wide, so a fixed sidebar overlaps content on virtually every
   screen; a pill never blocks the reading column. */
.page-toc {
  position: fixed;
  bottom: var(--space-6); right: var(--space-6);
  max-width: 260px;
  z-index: 50;
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: var(--size-13);
  display: none;
}
@media (min-width: 1000px) {
  .page-toc { display: block; }
}
/* Collapsed by default. The divider and bottom spacing belong to the EXPANDED
   state only — leaving them on the collapsed pill produced a card with a
   heading, a rule, and nothing under it, which read as broken. */
.page-toc .page-toc-list { display: none; }
.page-toc:hover .page-toc-list,
.page-toc:focus-within .page-toc-list,
.page-toc.is-open .page-toc-list { display: block; }
.page-toc-head {
  font-family: var(--font-mono);
  font-size: var(--size-12);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-3);
  margin: 0;
  padding: 0;
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
/* chevron so the pill reads as something you can open */
.page-toc-head::after {
  content: "";
  margin-left: auto;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms var(--ease);
  opacity: 0.75;
}
.page-toc:hover .page-toc-head,
.page-toc:focus-within .page-toc-head,
.page-toc.is-open .page-toc-head {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-line);
}
.page-toc:hover .page-toc-head::after,
.page-toc:focus-within .page-toc-head::after,
.page-toc.is-open .page-toc-head::after {
  transform: translateY(1px) rotate(225deg);
}
.page-toc-head:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 3px; border-radius: 3px; }
.page-toc-list { list-style: none; padding: 0; margin: 0; }
.page-toc-list li { margin: 0; padding: 0; }
.page-toc-list a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-2);
  border-left: 2px solid transparent;
  margin-left: -2px;
  line-height: 1.35;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
  font-weight: 500;
}
.page-toc-list a:hover { color: var(--color-ink); }
.page-toc-list a.is-active {
  color: var(--color-teal);
  border-left-color: var(--color-teal);
  font-weight: 700;
}

/* ====================================================================
   SECONDARY HERO CTA + ROLE-PICKER MODAL
   ==================================================================== */

/* Secondary CTA — quiet link variant (used next to a primary button) */
.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: var(--size-16);
  font-weight: 600;
  padding: var(--space-3) 0;
  margin-left: var(--space-4);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: -0.01em;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn-secondary-link:hover {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
  transform: translateX(2px);
}

/* SOLO variant — sits alone in hero, gets an AMBER outline pill that stands out from
   the teal H1 highlights AND the orange nav CTA. Distinct = visible. */
.btn-secondary-link-solo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: 0;
  padding: var(--space-4) var(--space-6);
  border: 2px solid #F5A524;       /* warm amber — distinct from teal + orange */
  border-bottom: 2px solid #F5A524;  /* override inherited 1px */
  border-radius: var(--radius-pill);
  background: rgba(245, 165, 36, 0.1);
  color: #fff;
  font-size: var(--size-16);
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.6);
  animation: pulseAmber 2.4s ease-in-out 1s 1;
  transition: background 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn-secondary-link-solo::after {
  content: "";
  position: absolute;
  top: 50%; left: -100%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(245, 165, 36, 0.3), transparent);
  transform: translateY(-50%) skewX(-20deg);
  animation: shimmerSweep 1.6s var(--ease-in-out-strong) 1.2s 1 both;
  pointer-events: none;
}
.btn-secondary-link-solo:hover {
  background: #F5A524;
  color: #0F172A;
  border-color: #F5A524;
  transform: translateX(0) translateY(-2px);
  animation: none;                 /* stop pulse on hover */
  box-shadow: 0 8px 24px rgba(245, 165, 36, 0.4);
}
.btn-secondary-link-solo:hover::after { display: none; }

@keyframes pulseAmber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.55); }
  50%      { box-shadow: 0 0 0 12px rgba(245, 165, 36, 0); }
}
@keyframes shimmerSweep {
  0%   { left: -100%; }
  60%  { left: 200%; }
  100% { left: 200%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-secondary-link-solo { animation: none; }
  .btn-secondary-link-solo::after { display: none; }
}

@media (max-width: 600px) {
  .btn-secondary-link { margin-left: 0; margin-top: var(--space-3); display: block; }
  .btn-secondary-link-solo { display: inline-flex; }
}

/* Modal — backdrop + panel */
.role-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
  animation: roleModalIn 200ms var(--ease);
}
.role-modal[hidden] { display: none; }
@keyframes roleModalIn { from { opacity: 0; } to { opacity: 1; } }

.role-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.role-modal-panel {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: calc(100dvh - var(--space-12)); /* dynamic viewport unit prevents iOS address-bar layout jump */
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: var(--space-10) var(--space-8) var(--space-8);
  overflow-y: auto;
  animation: roleModalPanelIn 240ms var(--ease);
}
@keyframes roleModalPanelIn {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.role-modal-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-bg-2);
  font-size: 24px;
  line-height: 1;
  color: var(--color-text-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.role-modal-close:hover { background: var(--color-line); color: var(--color-ink); }

.role-modal-head { text-align: center; max-width: 660px; margin: 0 auto var(--space-8); }
.role-modal-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--size-12);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
}
.role-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.role-modal-title em { font-style: italic; font-weight: 700; color: var(--color-teal); }

.role-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 800px) {
  .role-modal-grid { grid-template-columns: 1fr; }
  .role-modal-panel { padding: var(--space-8) var(--space-5) var(--space-6); }
}

.role-modal-footnote {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--size-14);
  color: var(--color-text-3);
}
.role-modal-footnote a {
  color: var(--color-teal);
  font-weight: 600;
  border-bottom: 1px solid var(--color-teal);
}

/* Lock page scroll when modal is open */
body.modal-open { overflow: hidden; }

/* ====================================================================
   HERO ILLUSTRATION CARD — multi-layer shadow ("smooth shadow" technique)
   ==================================================================== */
.hero-illus-card {
  position: relative;
  background: linear-gradient(155deg, #FFFFFF 0%, #EEF4F1 100%);
  border: 1px solid rgba(35, 183, 156, 0.35);
  /* taste-skill: Liquid Glass Refraction — inner highlight on top edge, inner shadow on bottom
     simulates physical edge refraction so the card reads as real glass, not a flat rectangle. */
  box-shadow:
    inset 0  1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  isolation: isolate;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* Cap by aspect-ratio + viewport height so the card never escapes the hero */
  aspect-ratio: 4 / 5;               /* squarer cut → displays wider, text reads larger */
  max-height: 82vh;
  max-width: 100%;
  margin-left: auto;                 /* if max-height kicks in, the card stays
                                         right-anchored and the column may have
                                         empty space to its left */

  /* Stacked shadows — increasing blur, decreasing opacity. The eye reads this
     as smooth elevation rather than one harsh drop shadow. Plus a teal rim glow
     and a subtle inset highlight on the top edge. */
  box-shadow:
    0 1px 1px   rgba(0, 0, 0, 0.20),
    0 2px 4px   rgba(0, 0, 0, 0.20),
    0 4px 8px   rgba(0, 0, 0, 0.20),
    0 8px 16px  rgba(0, 0, 0, 0.22),
    0 16px 32px rgba(0, 0, 0, 0.25),
    0 32px 64px rgba(0, 0, 0, 0.30),
    0 0 80px   rgba(35, 183, 156, 0.10),   /* teal rim glow */
    inset 0 1px 0 rgba(255, 255, 255, 0.06); /* hairline top highlight */

  transform: translateZ(0); /* promote to its own GPU layer */
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}

/* Subtle floating-on-hover lift */
.hero-illus-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 2px   rgba(0, 0, 0, 0.22),
    0 4px 6px   rgba(0, 0, 0, 0.22),
    0 8px 12px  rgba(0, 0, 0, 0.22),
    0 12px 22px rgba(0, 0, 0, 0.24),
    0 24px 44px rgba(0, 0, 0, 0.28),
    0 40px 80px rgba(0, 0, 0, 0.32),
    0 0 100px  rgba(35, 183, 156, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Decorative teal-corner gleam to anchor the eye top-right */
.hero-illus-card::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 60%; height: 50%;
  background: radial-gradient(ellipse at top right, rgba(35, 183, 156, 0.18), transparent 70%);
  border-radius: var(--radius-xl);
  pointer-events: none;
  z-index: -1;
  display: block;
}

/* Kill the previous "seamless" halo override */
.hero-illus-card::after { display: none; }

@media (max-width: 900px) {
  .hero-illus-card { padding: var(--space-5); }
}

/* Hero cost-flow video — fills the card edge-to-edge, no letterbox */
.hero-cost-flow {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  object-fit: contain;               /* show the whole 4:5 frame — no top/bottom crop */
  margin: 0;

  -webkit-mask-image: none;
          mask-image: none;
}

/* ====================================================================
   DARK / LIGHT THEME TOGGLE
   Light is the default. Dark mode overrides the core tokens.
   ==================================================================== */

/* The toggle button itself ---------------------------------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-text-2);
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
  flex-shrink: 0;
  position: relative;
}
.theme-toggle:hover {
  background: var(--color-bg-2);
  color: var(--color-teal);
  border-color: var(--color-teal);
  transform: rotate(15deg);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}
.theme-toggle svg { display: block; }

/* Icon swap — scoped to .theme-toggle so we beat the .theme-toggle svg
   reset rule (which has specificity 11). These selectors are 20 = wins.
   The bulb reflects the current state: lights "on" (light mode) shows the
   lit bulb with beam rays and an amber glow; dark mode shows it unlit. */
.theme-toggle .theme-icon-on {
  display: block;
  color: #F5A524;
  filter: drop-shadow(0 0 6px rgba(245,165,36,0.5));
}
.theme-toggle .theme-icon-off { display: none !important; }
[data-theme="dark"] .theme-toggle .theme-icon-on  { display: none !important; }
[data-theme="dark"] .theme-toggle .theme-icon-off { display: block !important; }

/* Push the theme toggle to the far right of the nav */
.theme-toggle { margin-left: var(--space-4); }

/* ===== DARK THEME TOKEN OVERRIDES ===== */
[data-theme="dark"] {
  /* Surfaces */
  --color-bg:     #0F172A;
  --color-bg-2:   #14201C;
  --color-bg-3:   #334155;

  /* Lines / borders */
  --color-line:   rgba(255, 255, 255, 0.10);
  --color-line-2: rgba(255, 255, 255, 0.16);

  /* Text */
  --color-text:        #E2E8F0;
  --color-text-2:      #94A3B8;
  --color-text-3:      #8FA0B3;
  --color-text-light:  #475569;
  --color-ink:         #FFFFFF;

  /* Tints used in card backgrounds */
  --color-teal-tint:  rgba(35, 183, 156,0.12);
  --color-cyan-tint:  rgba(63,182,224,0.12);
  --color-amber-tint: rgba(245, 158, 11,0.12);

  /* Shadows (softer in dark mode — heavy shadows look fake on dark) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* Header background — graphite-green glass to match the dark theme */
[data-theme="dark"] .site-header {
  background: rgba(12, 21, 18, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
/* Nav links — readable on the dark header (base color is dark slate, invisible here) */
[data-theme="dark"] .nav-link { color: var(--color-dark-text); }
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.is-active { color: #fff; }
[data-theme="dark"] .nav-caret { color: var(--color-dark-text-2); }

/* Mobile drawer — was hardcoded white, which made the dark-theme (light)
   nav text unreadable when the drawer opened over a dark site. */
@media (max-width: 900px) {
  [data-theme="dark"] .site-header.is-open .nav-list {
    background: var(--color-dark);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  [data-theme="dark"] .nav-list .nav-item { border-bottom-color: rgba(255, 255, 255, 0.08); }
  [data-theme="dark"] .site-header.is-open::before { background: rgba(0, 0, 0, 0.6); }
  [data-theme="dark"] .nav-toggle span,
  [data-theme="dark"] .nav-toggle span::before,
  [data-theme="dark"] .nav-toggle span::after { background: var(--color-dark-text); }
}

/* Logo — invert the dark logo to white in dark mode */
[data-theme="dark"] .brand-logo:not(.brand-logo-footer) {
  filter: invert(1) hue-rotate(180deg) brightness(1.1);
}

/* Mega-menu panel — dark surface */
[data-theme="dark"] .mega-menu {
  background: #14201C;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .mega-link:hover { background: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .mega-link-title { color: #fff; }
[data-theme="dark"] .mega-link-desc { color: var(--color-text-2); }
[data-theme="dark"] .mega-link-compact { color: var(--color-text); }
[data-theme="dark"] .mega-col-eyebrow { color: var(--color-text-2); }

/* Cards & tiles — dark backgrounds */

[data-theme="dark"] .card {
  background: #14201C;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 4px 8px -4px rgba(0, 0, 0, 0.4);
}
/* Ink-colored decorative bullets (black-box card) vanish on dark — lift them */
[data-theme="dark"] .card span[style*="color:#0F172A"] { color: #94A3B8 !important; }

[data-theme="dark"] .card h3,
[data-theme="dark"] .card h4,
[data-theme="dark"] .tile h3,
[data-theme="dark"] .step h3,
[data-theme="dark"] .compare-col h3 { color: #fff; }

/* Tile link reads dark-on-dark by default — flip to teal so it's visible */
[data-theme="dark"] .tile-link { color: var(--color-teal); }
/* Filter chips (case studies) — dark surface in dark mode */
[data-theme="dark"] .filter-chip { background: #14201C; border-color: rgba(255, 255, 255, 0.12); color: var(--color-text-2); }
[data-theme="dark"] .filter-chip:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }

/* Section backgrounds */
[data-theme="dark"] .section-tint { background: #0E1A16; }
/* Dark mode: adjacent content sections can be near-identical darks (bg #0F172A
   vs tint #0E1A16), blurring where one section ends and the next begins. A
   hairline divider makes the separation clear without changing the palette. */
[data-theme="dark"] .section + .section,
[data-theme="dark"] .section + .cta-strip { border-top: 1px solid rgba(255,255,255,0.09); }
/* (section-dark, section-navy, hero, problem-section, etc. already use deep navy — they stay the same) */

/* Footer stays dark in both themes — already correct */

/* TOC sidebar */
[data-theme="dark"] .page-toc {
  background: rgba(20, 32, 28, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .page-toc-list a { color: var(--color-text-2); }
[data-theme="dark"] .page-toc-list a:hover { color: #fff; }

/* Trust strip stays dark in both themes (the design intent) */

/* Inline-styled white-on-white card backgrounds — patch via CSS */
[data-theme="dark"] [style*="background:#F7F8FA"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background:#FFFFFF"] {
  background: #14201C !important;
}

/* Smooth theme transition (apply once user has interacted) */
html { transition: background-color 200ms var(--ease); }
body { transition: background-color 200ms var(--ease), color 200ms var(--ease); }

/* ====================================================================
   LIGHT-MODE OVERRIDES for sections that were "always dark"
   In light mode, these flip to light surfaces with dark text — so the
   page is consistently light. In dark mode they keep their existing
   dark styling (handled in earlier blocks).
   ==================================================================== */
[data-theme="light"] .hero {
  background: var(--color-bg-2);   /* light gray instead of navy */
  color: var(--color-text);
}
[data-theme="light"] .hero h1,
[data-theme="light"] .hero .h1 { color: var(--color-ink); }
[data-theme="light"] .hero .lede { color: var(--color-text-2); }
[data-theme="light"] .hero .eyebrow,
[data-theme="light"] .hero .eyebrow-light { color: var(--color-teal-2); }
[data-theme="light"] .hero .metric-value-teal { color: var(--color-teal-2); }
[data-theme="light"] .hero .metric-label-light { color: var(--color-text-3); }
[data-theme="light"] .hero .hero-metrics {
  border-top-color: var(--color-line);
}
[data-theme="light"] .hero-illus-card {
  background: linear-gradient(155deg, #FFFFFF, #EEF4F1);
  border-color: rgba(35, 183, 156,0.35);
}

/* Problem section — light variant: neutral cool background, calm accents.
   The dark version carries the drama; in light mode we keep it quiet and
   let the illustrations + one deep red accent do the talking. */
[data-theme="light"] .problem-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F6 100%);
  color: var(--color-text);
}
/* Kill the red/blue radial glows — they tint the whole viewport pink */
[data-theme="light"] .problem-section::before { background: none; }
[data-theme="light"] .problem-headline { color: var(--color-ink) !important; }
[data-theme="light"] .problem-headline-red { color: #B91C1C; }
[data-theme="light"] .problem-section .eyebrow,
[data-theme="light"] .problem-section .eyebrow-light { color: var(--color-teal-2); }
[data-theme="light"] .problem-section .lede-dark { color: var(--color-text-2) !important; }
/* Card tags + supporting items on white cards: deeper colors for contrast */
[data-theme="light"] .problem-tag-red   { color: #DC2626; }
[data-theme="light"] .problem-tag-amber { color: #B45309; }
[data-theme="light"] .problem-tag-blue  { color: #2563EB; }

[data-theme="light"] .problem-card {
  background: #fff;
  border-color: var(--color-line);
  box-shadow: var(--shadow-md);
}
[data-theme="light"] .problem-illus {
  /* Softer slate instead of near-black — the SVGs still need a dark
     stage, but this reads as an intentional panel, not a hole */
  background: linear-gradient(180deg, #1E293B 0%, #182238 100%);
  border-top-color: var(--color-line);
}
[data-theme="light"] .problem-head { color: var(--color-ink); }
[data-theme="light"] .problem-desc { color: var(--color-text-2); }
[data-theme="light"] .problem-desc strong { color: var(--color-ink); }
/* Unified calm stats: one voice, no glow. The thin colored top borders
   on the cards keep the per-card coding. */
[data-theme="light"] .problem-stat-red,
[data-theme="light"] .problem-stat-orange,
[data-theme="light"] .problem-stat-blue {
  color: var(--color-ink);
  text-shadow: none;
}

/* Generic dark/navy section helpers — flip in light mode */
[data-theme="light"] .section-dark {
  background: var(--color-bg-2);
  color: var(--color-text);
}
[data-theme="light"] .section-dark h1,
[data-theme="light"] .section-dark h2,
[data-theme="light"] .section-dark h3,
[data-theme="light"] .section-dark h4 { color: var(--color-ink); }
[data-theme="light"] .section-dark p { color: var(--color-text-2); }
[data-theme="light"] .section-dark .eyebrow,
[data-theme="light"] .section-dark .eyebrow-light { color: var(--color-teal-2); }

[data-theme="light"] .section-navy {
  background: var(--color-bg-2);
  color: var(--color-text);
}
[data-theme="light"] .section-navy h1,
[data-theme="light"] .section-navy h2,
[data-theme="light"] .section-navy h3 { color: var(--color-ink); }
[data-theme="light"] .section-navy p { color: var(--color-text-2); }

/* CTA strip flips to light teal accent in light mode */
[data-theme="light"] .cta-strip {
  background: linear-gradient(135deg, var(--color-teal-tint), var(--color-bg-2));
  color: var(--color-text);
}
[data-theme="light"] .cta-strip h2 { color: var(--color-ink); }
[data-theme="light"] .cta-strip p { color: var(--color-text-2); }
[data-theme="light"] .cta-strip .eyebrow,
[data-theme="light"] .cta-strip .eyebrow-light { color: var(--color-teal-2); }

/* Testimonial cards on light bg */
[data-theme="light"] .testimonial-card {
  background: #fff;
  border-color: var(--color-line);
  box-shadow: var(--shadow-md);
}
[data-theme="light"] .testimonial-quote { color: var(--color-text); }
[data-theme="light"] .testimonial-name { color: var(--color-ink); }
[data-theme="light"] .testimonial-title { color: var(--color-text-2); }

/* Quote callout */
[data-theme="light"] .quote .quote-text { color: var(--color-ink); }
[data-theme="light"] .quote .quote-cite { color: var(--color-text-2); }

/* Trust strip: keep it dark in BOTH modes — it's a logo strip designed
   to make white logos pop. Don't flip it. */

/* Footer stays dark in both — footer is meant to feel like a basement */

/* ====================================================================
   LIGHT-MODE READABILITY FIXES — eyebrows, ledes, quotes, SVG text
   ==================================================================== */

/* Eyebrow-light was designed for dark bg (white-ish text). In light mode
   inside formerly-dark sections, flip it to a dark teal so it's readable. */
[data-theme="light"] .section-dark .eyebrow-light,
[data-theme="light"] .section-navy .eyebrow-light,
[data-theme="light"] .cta-strip .eyebrow-light,
[data-theme="light"] .problem-section .eyebrow-light {
  color: var(--color-teal-2) !important;
}

/* Lede-dark (light text for dark bg) flips to muted text-2 in light mode */
[data-theme="light"] .lede-dark,
[data-theme="light"] .section-dark .lede,
[data-theme="light"] .section-navy .lede,
[data-theme="light"] .cta-strip .lede {
  color: var(--color-text-2) !important;
}

/* Metric labels designed for dark bg flip in light mode */
[data-theme="light"] .section-dark .metric-label-light,
[data-theme="light"] .section-navy .metric-label-light,
[data-theme="light"] .cta-strip .metric-label-light {
  color: var(--color-text-3);
}
[data-theme="light"] .section-dark .metric-value-light,
[data-theme="light"] .section-navy .metric-value-light,
[data-theme="light"] .cta-strip .metric-value-light {
  color: var(--color-ink);
}

/* John-Deere style quote on .section-navy — was white text */
[data-theme="light"] .section-navy .quote-text,
[data-theme="light"] .quote .quote-text {
  color: var(--color-ink);
}
[data-theme="light"] .section-navy .quote-cite,
[data-theme="light"] .quote .quote-cite {
  color: var(--color-text-2);
}
[data-theme="light"] .quote-mark { color: var(--color-teal-2); }

/* CTA-strip text on the new light teal-tinted bg */
[data-theme="light"] .cta-strip p { color: var(--color-text-2); }

/* ====================================================================
   INLINE-SVG TEXT — the hardest case
   Many illustrations have <text fill="#fff"> or fill="rgba(255,255,255,X)"
   hardcoded. Use attribute selectors to flip them to dark in light mode
   when they're inside a formerly-dark section.
   ==================================================================== */
[data-theme="light"] .section-dark svg text[fill="#fff"],
[data-theme="light"] .section-dark svg text[fill="#FFFFFF"],
[data-theme="light"] .section-dark svg text[fill="white"],
[data-theme="light"] .section-navy svg text[fill="#fff"],
[data-theme="light"] .section-navy svg text[fill="#FFFFFF"] {
  fill: var(--color-ink) !important;
}

[data-theme="light"] .section-dark svg text[fill^="rgba(255,255,255"],
[data-theme="light"] .section-dark svg text[fill^="rgba(255, 255, 255"],
[data-theme="light"] .section-navy svg text[fill^="rgba(255,255,255"] {
  fill: var(--color-text-2) !important;
}

/* Some illustrations use rect/line strokes in white — flip those too */
[data-theme="light"] .section-dark svg line[stroke^="rgba(255,255,255"],
[data-theme="light"] .section-dark svg rect[fill^="rgba(255,255,255"] {
  stroke: var(--color-line-2);
  fill: var(--color-bg-2);
}

/* Legend swatches in dark-section SVGs — keep their original colors,
   they're brand-coded and meant to be visible in both themes */

/* Make sure the section-head INSIDE flipped sections gets dark text on the headline */
[data-theme="light"] .section-dark .section-head h2,
[data-theme="light"] .section-navy .section-head h2,
[data-theme="light"] .cta-strip .section-head h2 {
  color: var(--color-ink);
}

/* ====================================================================
   FINAL LIGHT-MODE PATCHES
   Catch remaining inline-style elements that have hardcoded light colors
   ==================================================================== */

/* Inline-styled elements with hardcoded color:#fff or rgba(255,...) text
   inside formerly-dark sections need to become dark in light mode */
[data-theme="light"] .section-dark [style*="color:#fff"],
[data-theme="light"] .section-dark [style*="color: #fff"],
[data-theme="light"] .section-navy [style*="color:#fff"],
[data-theme="light"] .section-navy [style*="color: #fff"] {
  color: var(--color-ink) !important;
}
[data-theme="light"] .section-dark [style*="color:rgba(255,255,255"],
[data-theme="light"] .section-navy [style*="color:rgba(255,255,255"] {
  color: var(--color-text-2) !important;
}

/* The tariff race section uses .section section-dark — its inline SVG
   has lots of rgba(255,255,255,X) text. Catch the common variants. */
[data-theme="light"] .section-dark svg text {
  /* Don't blanket override — only the ones that are clearly meant to be
     white-on-dark. Already handled above via attribute selectors. */
}

/* Catch the result-strip rect that uses rgba dark fill in the tariff SVG */
[data-theme="light"] .section-dark svg rect[fill="rgba(0,0,0,0.5)"] {
  fill: var(--color-bg-3) !important;
}

/* Opt-out: an SVG that carries its OWN dark backing rect (.svg-dark-panel)
   stays a dark panel in BOTH themes, so its white text must NOT be flipped
   dark in light mode (that would make it invisible on the dark backing). */
[data-theme="light"] .section-dark svg.svg-dark-panel text[fill="#fff"],
[data-theme="light"] .section-dark svg.svg-dark-panel text[fill="#FFFFFF"],
[data-theme="light"] .section-dark svg.svg-dark-panel text[fill="white"] {
  fill: #fff !important;
}
[data-theme="light"] .section-dark svg.svg-dark-panel text[fill^="rgba(255,255,255"] {
  fill: rgba(255,255,255,0.7) !important;
}

/* The cta-strip teal/orange savings boxes already use solid colors — those stay
   visible in both themes */

/* Light-mode: "Not sure where to start?" CTA — dark text on the amber tint */
[data-theme="light"] .btn-secondary-link-solo {
  color: #B45309;                                /* deep amber, readable on pale bg */
  background: rgba(245, 165, 36, 0.15);          /* slightly stronger tint */
  border-color: #D97706;                         /* darker amber border for contrast */
}
[data-theme="light"] .btn-secondary-link-solo:hover {
  background: #F5A524;
  color: #0F172A;
  border-color: #F5A524;
}
/* Light-mode pulse halo — match the deeper amber so it shows on white */
@keyframes pulseAmberLight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.55); }
  50%      { box-shadow: 0 0 0 12px rgba(217, 119, 6, 0); }
}
[data-theme="light"] .btn-secondary-link-solo {
  animation: pulseAmberLight 2.4s ease-in-out 1s 1;
}
[data-theme="light"] .btn-secondary-link-solo::after {
  background: linear-gradient(90deg, transparent, rgba(217,119,6,0.25), transparent);
}

/* The secondary-link variant (used elsewhere) needs the same treatment */
[data-theme="light"] .btn-secondary-link {
  color: var(--color-text-2);
  border-bottom-color: var(--color-line-2);
}
[data-theme="light"] .btn-secondary-link:hover {
  color: var(--color-teal-2);
  border-bottom-color: var(--color-teal-2);
}

/* Method-card uses literal #fff bg via --color-white token (which intentionally
   never changes) — so we override directly for dark mode */
[data-theme="dark"] .method-card {
  background: #14201C;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .method-card h3 { color: #fff; }
[data-theme="dark"] .method-card p,
[data-theme="dark"] .method-card ul li { color: var(--color-text-2); }
[data-theme="dark"] .method-card ul li { border-top-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .method-card .step-num { color: var(--color-teal); }

/* The inner illustration panel uses a hardcoded gradient — flip it for dark */
[data-theme="dark"] .method-card .method-illustration {
  background: linear-gradient(180deg, #0B1224, #14375E) !important;
}

/* ====================================================================
   TARIFF SECTION — compact one-viewport variant
   ==================================================================== */
.tariff-section {
  padding: var(--space-12) 0 var(--space-16);   /* tighter than default 7.5rem */
}
.tariff-section .section-head-tight {
  max-width: 760px;
  margin-bottom: var(--space-8);                 /* less than the default */
}
.tariff-section .section-head-tight .h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);       /* tighter from the default H2 */
  line-height: 1.15;
}
.tariff-section .section-head-tight .lede {
  font-size: var(--size-16);
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}
.tariff-section .illus { max-height: 56vh; }     /* SVG breathes within viewport */

/* ====================================================================
   ROLE-PICKER MODAL — dark-mode override
   The panel has hardcoded white bg in the base styles; flip it for dark.
   ==================================================================== */
[data-theme="dark"] .role-modal-panel {
  background: #0F172A;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .role-modal-title {
  color: #F1F5F9;
}
[data-theme="dark"] .role-modal-title em {
  color: var(--color-teal);
}
[data-theme="dark"] .role-modal-close {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-2);
}
[data-theme="dark"] .role-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
[data-theme="dark"] .role-modal-footnote {
  color: var(--color-text-2);
}
[data-theme="dark"] .role-modal-footnote a {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}

/* The 3 role cards inside the modal use .role-card — they already get the
   dark-mode card override from earlier. But confirm their inner labels
   stay readable: */
[data-theme="dark"] .role-modal .role-card-h3 { color: #fff; }
[data-theme="dark"] .role-modal .role-card p  { color: var(--color-text-2); }
[data-theme="dark"] .role-modal .role-card-eyebrow { color: var(--color-text-3); }

/* ====================================================================
   3-COLUMN MEGA-MENU (Solutions: Solutions + Capabilities + Featured)
   ==================================================================== */
.mega-menu-inner-3col {
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: var(--space-2);
}
@media (min-width: 901px) {
  .nav-item-mega:hover .mega-menu-wide,
  .nav-item-mega:focus-within .mega-menu-wide {
    width: 980px;
  }
}
@media (max-width: 900px) {
  .mega-menu-inner-3col { grid-template-columns: 1fr !important; }
}

/* ========================================================================
   DESIGN-ENG POLISH PASS (Emil Kowalski skill)
   - Touch-device hover guard
   - Universal reduced-motion respect
   - Asymmetric modal enter/exit
   ======================================================================== */

/* 1. Touch-device hover guard.
   Hover fires on tap on touch devices, producing false-positive transforms
   (cards lifting, chips brightening). Disable hover-driven transforms there.
   Coalesced into one block instead of wrapping 33 individual :hover rules. */
@media (hover: none) and (pointer: coarse) {
  .card:hover,
  .case-card:hover,
  .tile:hover,
  .filter-chip:hover,
  .coverage-chip:hover,
  .nav-cta:hover,
  .btn:hover,
  .logo-bar .logo:hover,
  .role-modal-close:hover {
    transform: none;
    filter: none;
  }
  /* Color/background still transition — that's comprehension, not motion. */
}

/* 2. Universal reduced-motion: kill movement, keep meaning.
   Earlier prefers-reduced-motion blocks only handled specific elements.
   This is the catch-all so any future animations inherit the behaviour.
   Opacity/color transitions stay because they aid comprehension (skill rule). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Re-enable comprehension transitions (opacity, color) at a gentle speed. */
  *,
  *::before,
  *::after {
    transition-property: opacity, color, background-color, border-color;
    transition-duration: 200ms !important;
  }
  /* Kill any transform-based hover lifts and entrance translations. */
  [data-reveal] { transform: none; }
  .card:hover, .case-card:hover, .tile:hover, .coverage-chip:hover { transform: none; }
}

/* Touch-device hover gating (Emil-skill: gate hover motion behind a real pointer).
   On touch devices a tap fires :hover and the lift sticks until the next tap
   elsewhere. Neutralize the transform-based lifts where there is no fine hover. */
@media (hover: none), (pointer: coarse) {

}

/* 3. Asymmetric modal exit.
   Open: 240ms (matches existing roleModalPanelIn — gives the eye time to land).
   Close: 160ms (snappy — the user has already decided).
   Triggered by a .is-closing class the modal JS can add before unmount. */
.role-modal.is-closing .role-modal-panel {
  animation: roleModalPanelOut 160ms var(--ease) forwards;
}
@keyframes roleModalPanelOut {
  from { transform: translateY(0)   scale(1);    opacity: 1; }
  to   { transform: translateY(8px) scale(0.98); opacity: 0; }
}
.role-modal.is-closing .role-modal-backdrop {
  animation: roleModalFadeOut 160ms var(--ease) forwards;
}
@keyframes roleModalFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ========================================================================
   TASTE-SKILL POLISH PASS (Leonxlnx anti-slop)
   - Diffusion shadow utility (premium B2B surfaces)
   - Inner-edge refraction utility (for any glass surface beyond the hero)
   - Off-card grouping utilities (data sections without box clutter)
   - Off-black guard (prevents future #000 from sneaking in via inline styles)
   ======================================================================== */

/* 1. Diffusion shadow — wide, soft, low-opacity. Drop on any card or panel
      that should read as "premium" rather than "raised". Skill's recommended
      profile for high-end SaaS / consulting surfaces. */
.shadow-diffusion {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05),
              0 4px 8px -4px rgba(0, 0, 0, 0.03);
}
.shadow-diffusion-lg {
  box-shadow: 0 32px 60px -20px rgba(0, 0, 0, 0.08),
              0 8px 16px -8px rgba(0, 0, 0, 0.04);
}

/* 2. Inner-edge refraction — reusable version of the trick on .hero-illus-card.
      Add to any element with a backdrop (modal panels, dark feature cards) to
      give it a physical edge. */
.refract-glass {
  box-shadow:
    inset 0  1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.refract-glass-light {
  box-shadow:
    inset 0  1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(15, 23, 42, 0.04);
}

/* 3. Off-card data grouping — skill discourages generic .card boxes for data
      groups. Use these instead: a top rule + breathing room communicates
      "section" without elevation clutter. */
.data-group {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-5);
  margin-top: var(--space-6);
}
.data-divide > * + * {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}

/* 4. Off-black guard. Skill bans pure #000000. We already use #0B0F14 / Slate
      everywhere, but if a future inline style or third-party widget injects
      pure black text, this catches it visually for review. */
[style*="color:#000"], [style*="color: #000"],
[style*="color:#000000"], [style*="color: #000000"],
[style*="color:black"], [style*="color: black"] {
  /* No visual change in production; uncomment outline during reviews. */
  /* outline: 2px dashed #ff00ff; */
}

/* 5. Display-headline polish — tighter tracking and leading on the largest
      type, per skill rule "Display: tracking-tighter leading-none". Our .h1
      already has -0.025em / 1.05, this nudges it further on very large
      viewports where the relationship between letters reads stronger. */
@media (min-width: 1280px) {
  .h1 { letter-spacing: -0.035em; line-height: 1; }
}



/* ====================================================================
   HOMEPAGE SECTION RHYTHM
   Crisp boundaries between sections + gentle scroll snapping so the
   viewport settles at the top of a section instead of in between.
   ==================================================================== */

/* Anchor links land below the sticky header. (Native CSS scroll-snap was
   glitchy mid-scroll — snapping is handled by a gentle JS settle in
   main.js instead.) */
html:has(body[data-page="home"]) {
  scroll-padding-top: 76px;
}

/* Hairline seam at every boundary. Translucent ink: reads as a subtle
   gray line on light surfaces, near-invisible across dark ones — so it
   never looks like a crack between two dark sections. */
body[data-page="home"] section:not(.hero) {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="dark"] body[data-page="home"] section:not(.hero) {
  border-top-color: rgba(255, 255, 255, 0.10);
}

/* Light mode: enforce strict white/tint alternation down the page —
   dark hero+trust, slate problem, white methodology, tinted framework,
   white tariff, tinted proof, white testimonials, teal CTA. */
[data-theme="light"] body[data-page="home"] .methodology-bg { background-color: var(--color-bg); }
[data-theme="light"] body[data-page="home"] #ip-framework { background: var(--color-bg-2); }
[data-theme="light"] body[data-page="home"] .tariff-section { background: var(--color-bg); }
[data-theme="light"] body[data-page="home"] #proof { background: var(--color-bg-2); }
[data-theme="light"] body[data-page="home"] .section-navy { background: var(--color-bg); }

/* ====================================================================
   METHODOLOGY STAGE BANDS — full-width rows so the loop videos are
   large enough to read; copy on one side, video on the other, alternating.
   ==================================================================== */
.stage-bands { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); }
.stage-band {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2.4fr);
  gap: var(--space-8);
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 4px 8px -4px rgba(0, 0, 0, 0.03);
}
/* Flipped bands: media first — swap the column widths too, so the video
   still gets the wide track (order alone would drop it into the 1fr column) */
.stage-band-flip { grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr); }
.stage-band-flip .stage-band-copy { order: 2; }
.stage-band-flip .stage-band-media { order: 1; }
.stage-band-num {
  font-family: var(--font-mono);
  font-size: var(--size-48);
  font-weight: 800;
  line-height: 1;
  color: var(--color-teal);
  opacity: 0.3;
  margin-bottom: var(--space-2);
}
.stage-band-copy h3 { font-size: var(--size-28); margin: var(--space-2) 0 var(--space-3); }
.stage-band-copy p { color: var(--color-text-2); font-size: var(--size-15); line-height: 1.6; margin: 0; }
.stage-band-media video {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--color-line);
}
[data-theme="dark"] .stage-band { background: #14201C; border-color: rgba(255, 255, 255, 0.10); }
[data-theme="dark"] .stage-band-copy h3 { color: #fff; }
@media (max-width: 900px) {
  .stage-band { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-5); }
  .stage-band-flip .stage-band-copy { order: 1; }   /* copy first on mobile */
  .stage-band-flip .stage-band-media { order: 2; }
}

/* ====================================================================
   STRATEGIC SOURCING — LIGHT-MODE FIXES
   The coverage stats/bars and resilience cards were authored white-on-
   dark with no light variants; map them onto the ink/slate scale.
   ==================================================================== */
[data-theme="light"] .coverage-mega-num { color: var(--color-ink); }
[data-theme="light"] .coverage-mega-label { color: var(--color-text-3); }
[data-theme="light"] .coverage-bars { background: #fff; border-color: var(--color-line); }
[data-theme="light"] .coverage-bars-head { border-bottom-color: var(--color-line); }
[data-theme="light"] .coverage-bars-eyebrow { color: var(--color-text-3); }
[data-theme="light"] .coverage-row { border-bottom-color: var(--color-line); }
[data-theme="light"] .coverage-name { color: var(--color-ink); }
[data-theme="light"] .coverage-count { color: var(--color-ink); }
[data-theme="light"] .coverage-tag { background: rgba(15, 23, 42, 0.06); color: var(--color-text-2); }
[data-theme="light"] .coverage-bar { background: rgba(15, 23, 42, 0.08); }

/* Resilience strategies: drop the dark photo backdrop in light mode and
   put the six cards on white surfaces (left accent borders survive). */
[data-theme="light"] .resilience-section { background: var(--color-bg-2) !important; }
[data-theme="light"] .resilience-section .grid > div {
  background: #fff !important;
  border-top-color: var(--color-line) !important;
  border-right-color: var(--color-line) !important;
  border-bottom-color: var(--color-line) !important;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.08);
}

/* Strategic sourcing — remaining light-mode stragglers */
.resilience-note { color: rgba(255,255,255,0.78); }
[data-theme="light"] .resilience-note { color: var(--color-text-2); }

/* Country chip cloud under the top-10 bars */
[data-theme="light"] .coverage-tail-eyebrow { color: var(--color-text-3); }
[data-theme="light"] .coverage-chip {
  background: #fff;
  border-color: var(--color-line-2);
  color: var(--color-text-2);
}
[data-theme="light"] .coverage-chip:hover { color: var(--color-teal-2); }
[data-theme="light"] .coverage-chip:last-child {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(180, 83, 9, 0.4);
  color: #B45309;
}

/* Resilience cards: force readable text regardless of inline colors */
[data-theme="light"] .resilience-section h2[style] { color: var(--color-ink) !important; }
[data-theme="light"] .resilience-section h3[style] { color: var(--color-ink) !important; }
[data-theme="light"] .resilience-section p[style] { color: var(--color-text-2) !important; }

/* ====================================================================
   LIGHT-THEME CONTRAST PASS (headless-browser audited, WCAG AA)
   Brand teal #23B79C measures ~2.5:1 as text on white. In light mode
   the accent tokens deepen so every eyebrow/stat/accent passes; dark
   mode keeps the bright brand teal.
   ==================================================================== */
[data-theme="light"] {
  --color-teal: #0B7A5F;      /* 5.3:1 on white (was 2.5:1) */
  --color-teal-2: #0A6B54;    /* 6.5:1 on white */
  --color-text-3: #566578;    /* 5.4:1 on tinted surfaces (was 4.4) */
}
/* Inline literal teal text follows the deepened token */
[data-theme="light"] [style*="color:#23B79C"],
[data-theme="light"] [style*="color:#2BB89A"] { color: var(--color-teal) !important; }

/* Pull-quote attribution was white-on-white */
[data-theme="light"] .quote-cite strong { color: var(--color-ink); }

/* Compliance chips (About) were white-on-light */
[data-theme="light"] .tag-dark {
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-text-2);
  border-color: var(--color-line-2);
}

/* Amber small text: deepen on tinted chips */
[data-theme="light"] .tag-amber { color: #92400E; }
[data-theme="light"] .coverage-chip:last-child { color: #92400E; }

/* Resilience strategy tags: pastel dark-mode accents → strong equivalents */
[data-theme="light"] .resilience-section [style*="color:#F97316"] { color: #C2570C !important; }
[data-theme="light"] .resilience-section [style*="color:#2BB89A"] { color: var(--color-teal) !important; }
[data-theme="light"] .resilience-section [style*="color:#A78BFA"] { color: #7C3AED !important; }
[data-theme="light"] .resilience-section [style*="color:#F472B6"] { color: #DB2777 !important; }
[data-theme="light"] .resilience-section [style*="color:#60A5FA"] { color: #2563EB !important; }
[data-theme="light"] .resilience-section [style*="color:#93C5FD"] { color: #2563EB !important; }
/* …except inside deliberately-dark cards, where the original treatment holds */
[data-theme="light"] [style*="background:var(--color-dark)"] .tag-dark {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Dark cards (contact/location) keep their dark surface in light mode —
   restore light text that the global light flips took away */
[data-theme="light"] .card-dark h1, [data-theme="light"] .card-dark h2,
[data-theme="light"] .card-dark h3, [data-theme="light"] .card-dark h4 { color: #fff !important; }
[data-theme="light"] .card-dark p { color: rgba(255, 255, 255, 0.75) !important; }
[data-theme="light"] .card-dark a { color: #23B79C !important; }
[data-theme="light"] .card-dark [style*="color:#23B79C"],
[data-theme="light"] .card-dark [style*="color:var(--color-teal)"] { color: #23B79C !important; }

/* Pilot hero keeps its dark video backdrop in light mode */
[data-theme="light"] .pilot-hero .lede { color: rgba(255, 255, 255, 0.82) !important; }

/* Hero: catch inline-styled white text (404 etc.) */
[data-theme="light"] .hero [style*="color:#fff"] { color: var(--color-ink) !important; }
/* ...except the narration chip, which sits on the dark video in BOTH themes —
   the flip above would turn its text dark-on-dark (invisible in light mode). */
[data-theme="light"] .hero #hero-vo-chip,
[data-theme="light"] .hero #hero-vo-chip * { color: #fff !important; }
[data-theme="light"] .hero [style*="color:rgba(255,255,255"] { color: var(--color-text-2) !important; }
[data-theme="light"] .hero .btn-ghost { color: var(--color-ink); border-color: var(--color-line-2); }

/* Inline-styled white/teal text inside dark cards must STAY light — these
   outrank the generic section-dark flips (equal specificity, later order) */
[data-theme="light"] .card-dark [style*="color:#fff"],
[data-theme="light"] .card-dark [style*="color: #fff"],
[data-theme="light"] .card-dark [style*="color:rgba(255,255,255"] { color: rgba(255, 255, 255, 0.92) !important; }

/* Solution heroes keep their dark photo backdrop in light mode */
[data-theme="light"] .solution-hero .lede { color: rgba(255, 255, 255, 0.85) !important; }

/* Cyan + amber as small text on light surfaces: deepen (like teal) */
[data-theme="light"] [style*="color:#3FB6E0"],
[data-theme="light"] [style*="color:var(--color-cyan)"] { color: #0C7594 !important; }
[data-theme="light"] [style*="color:#F5A524"],
[data-theme="light"] [style*="color:var(--color-amber)"] { color: #B45309 !important; }
/* …but not inside dark cards */
[data-theme="light"] .card-dark [style*="color:#F5A524"] { color: #F5A524 !important; }
[data-theme="light"] .card-dark [style*="color:#3FB6E0"] { color: #3FB6E0 !important; }
/* Red delta text on red-tint chips: deepen slightly */
[data-theme="light"] [style*="color:#DC2626"] { color: #B91C1C !important; }

/* ====================================================================
   DARK-THEME CONTRAST PATCHES (audited)
   ==================================================================== */
/* Amber CTAs: --color-ink flips to white in dark mode, taking the button
   text with it. Amber demands dark text in every theme. */
[data-theme="dark"] .nav-cta,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary:hover { color: #0F172A; }

/* Deep-amber inline text (light-mode shade) needs the bright amber on dark */
[data-theme="dark"] [style*="color:#B45309"] { color: #F5A524 !important; }

/* Dark surfaces: deep "on-light" amber + amber-2 text need the bright amber */
[data-theme="dark"] [style*="color:var(--color-amber-on-light)"],
[data-theme="dark"] [style*="color:var(--color-amber-2)"] { color: #F5A524 !important; }
[data-theme="dark"] .tag-amber { color: #F5A524; }

/* Compare columns use the never-flipping white token — give them a dark
   surface in dark mode so their (flipped-to-white) text stays readable */
[data-theme="dark"] .compare-col {
  background: #14201C;
  border-color: rgba(255, 255, 255, 0.10);
}
/* "amber-on-light" is a light-surface color by definition — remap on dark */
[data-theme="dark"] { --color-amber-on-light: #F5A524; }

/* Capability tiles use the never-flipping white token — dark surface */
[data-theme="dark"] .tile {
  background: #14201C;
  border-color: rgba(255, 255, 255, 0.10);
}
/* teal-2 is a light-surface shade — brighten it on dark surfaces */
[data-theme="dark"] { --color-teal-2: #2FCBA4; }

/* Inline deep-red text on dark surfaces → soft red */
[data-theme="dark"] [style*="color:#DC2626"] { color: #F87171 !important; }

/* Mid-slate callout panels: lift body + accent text */
[data-theme="dark"] [style*="background:#334155"] p { color: rgba(255, 255, 255, 0.85) !important; }
[data-theme="dark"] [style*="background:#334155"] [style*="color:#23B79C"] { color: #34D3AC !important; }
/* Deep red token is a light-surface shade — soften on dark */
[data-theme="dark"] { --color-red: #F87171; }

/* bg-3 callout panels on dark: lift body + teal label */
[data-theme="dark"] [style*="background:var(--color-bg-3)"] p { color: #CBD5E1 !important; }
[data-theme="dark"] [style*="background:var(--color-bg-3)"] [style*="color:var(--color-teal)"] { color: #34D3AC !important; }
/* Pale chip surfaces that never flip: keep deep text on them in dark */
[data-theme="dark"] [style*="background:#FEE2E2"] { color: #B91C1C !important; }
[data-theme="dark"] [style*="background:var(--color-teal)"][style*="color:#fff"] { color: #0B1120 !important; }


/* ============================================================
   MOBILE REFINEMENTS (added by optimization pass)
   Targets real layout classes; fixes the common phone issues:
   horizontal scroll, oversized media/type, multi-col grids.
   ============================================================ */

/* 1) Kill horizontal scrolling and let media shrink to fit */
html, body { overflow-x: hidden; max-width: 100%; }
/* overflow-x:hidden turns the root into a scroll container, which kills
   position:sticky on .site-header. overflow:clip prevents the sideways
   scrollbar the same way but is NOT a scroll container, so sticky works.
   The rule above stays as the fallback for browsers without `clip`. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
img, video, svg, canvas, iframe, table { max-width: 100%; height: auto; }

/* 2) Phones (<=560px): force remaining multi-column grids to a single column */
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-auto-3, .grid-auto-4,
  .metric-row, .hero-metrics, .logo-bar, .compare, .network-stats,
  .flow, .steps, .coverage-mega, .footer-grid, .split, .split-60-40,
  .role-modal-grid, .problem-grid { grid-template-columns: 1fr !important; }

  /* Fluid headings so titles never overflow the screen */
  h1, .h1 { font-size: clamp(1.7rem, 8vw, 2.4rem) !important; line-height: 1.15 !important; }
  h2, .h2 { font-size: clamp(1.4rem, 6.5vw, 2rem) !important; line-height: 1.2 !important; }
  h3, .h3 { font-size: clamp(1.15rem, 5vw, 1.5rem) !important; }

  /* Tighter section spacing so pages aren't endless on a phone */
  section { padding-top: 2.4rem !important; padding-bottom: 2.4rem !important; }

  /* Comfortable side gutters + readable body text */
  .container, .wrap, main > section > * { padding-left: 18px; padding-right: 18px; }
  body { font-size: 16px; }

  /* Bigger tap targets (Apple/Google min is 44px) */
  a.btn, button, .btn, [role="button"], input[type="submit"] { min-height: 44px; }
}

/* 3) Wide data rows: let them scroll sideways instead of breaking the page */
@media (max-width: 700px) {
  .coverage-row, .coverage-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* 4) Hero: stack cleanly and keep the illustration from overflowing */
@media (max-width: 560px) {
  .hero-inner { grid-template-columns: 1fr !important; }
  .hero-illus-card, .hero-cost-flow { width: 100% !important; height: auto !important; }
}


/* ====================================================================
   ABOVE-THE-FOLD REVEAL — no JS, no third-party module
   [data-reveal] starts at opacity:0 and waits for motion.dev to load and
   inView to fire. That is fine below the fold, but the hero card is the
   LCP element, so gating it on a network module cost ~840ms of render
   delay. [data-reveal-now] animates on parse instead, and moves only
   transform so the element counts as painted immediately.
   ==================================================================== */
[data-reveal-now] { animation: revealNow 340ms var(--ease) both; will-change: transform; }
@keyframes revealNow { from { transform: translateY(18px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { [data-reveal-now] { animation: none; } }

/* ====================================================================
   FOOTER CONTRAST
   The light-theme pass deepens --color-teal to #0B7A5F for legibility on
   white. The footer is always dark, so that token measured 3.5:1 there
   (fails AA). The footer re-asserts the bright brand teal: 7.4:1 on
   --color-dark.
   ==================================================================== */
/* Always-dark surfaces: the [data-theme="light"] pass deepens --color-teal to
   #0B7A5F for legibility on white, which is unreadable on these dark
   backgrounds (2.12:1 measured on the solution hero). Re-assert the bright
   brand teal wherever the surface is dark in BOTH themes. */
.site-footer,
.solution-hero,
.industry-hero,
.trust-strip,
.page-header.dark { --color-teal: #23B79C; --color-teal-2: #23B79C; }

/* Footer column headings are <h2> so document heading order never skips
   a level (previously <h4> straight after an <h2> section heading).
   Styling is unchanged. */
.site-footer h2 { color: var(--color-white); font-size: var(--size-15); margin-bottom: var(--space-4); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }

/* ====================================================================
   TOUCH TARGETS — 44x44 minimum on touch/mobile widths
   ==================================================================== */
@media (max-width: 900px) {
  .breadcrumb a { display: inline-block; padding: 11px 8px; margin: -11px -8px; }
  .nav-caret-btn { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .nav-list .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-item-mega-row { min-height: 44px; }
}

/* Merged from animations.css — it was a separate render-blocking request
   that cost ~1,180ms of latency for 2.7KB on the wire. */
/* ==========================================================================
   CSC — Animations
   Scroll-triggered, looping, and hover animations for illustrations.
   ========================================================================== */

/* ---------- Keyframes ---------- */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes pulse-node {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes flow-line {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}
@keyframes grow-bar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes shrink-bar {
  from { transform: scaleY(1); }
  to { transform: scaleY(0.5); opacity: 0.5; }
}
@keyframes count-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rotate-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes dash-shift { to { stroke-dashoffset: -40; } }
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(35, 183, 156,0)); }
  50% { filter: drop-shadow(0 0 12px rgba(35, 183, 156,0.6)); }
}
@keyframes pan-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(20px); }
}
@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}
@keyframes appear-from-bottom {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes morph-cost {
  0%   { d: path('M 0 200 L 200 200 L 200 100 L 0 100 Z'); }
  100% { d: path('M 0 200 L 200 200 L 200 130 L 0 130 Z'); }
}
@keyframes drop-in {
  0%   { transform: translateY(-180px); opacity: 0; }
  70%  { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes winner-pop {
  0% { transform: scale(0.9); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- Reveal-and-animate (triggered when .is-revealed) ---------- */
.is-revealed .anim-grow-bar { animation: grow-bar 0.6s var(--ease, cubic-bezier(0.4,0,0.2,1)) forwards; transform-origin: bottom; }
.is-revealed .anim-grow-bar-1 { animation-delay: 0.05s; }
.is-revealed .anim-grow-bar-2 { animation-delay: 0.12s; }
.is-revealed .anim-grow-bar-3 { animation-delay: 0.2s; }
.is-revealed .anim-grow-bar-4 { animation-delay: 0.28s; }
.is-revealed .anim-grow-bar-5 { animation-delay: 0.35s; }
.is-revealed .anim-grow-bar-6 { animation-delay: 0.42s; }
.is-revealed .anim-grow-bar-7 { animation-delay: 0.5s; }

.is-revealed .anim-draw-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw-line 0.8s var(--ease) forwards; }
.is-revealed .anim-draw-path-1 { animation-delay: 0.1s; }
.is-revealed .anim-draw-path-2 { animation-delay: 0.3s; }
.is-revealed .anim-draw-path-3 { animation-delay: 0.5s; }

.is-revealed .anim-count { animation: count-fade 0.3s var(--ease) forwards; opacity: 0; }
.is-revealed .anim-count-1 { animation-delay: 0.15s; }
.is-revealed .anim-count-2 { animation-delay: 0.25s; }
.is-revealed .anim-count-3 { animation-delay: 0.35s; }
.is-revealed .anim-count-4 { animation-delay: 0.45s; }

.is-revealed .anim-shrink { animation: shrink-bar 0.7s var(--ease) 0.4s forwards; transform-origin: top; }

.is-revealed .anim-drop { opacity: 0; animation: drop-in 0.45s cubic-bezier(0.34, 1.36, 0.64, 1) forwards; }
.is-revealed .anim-drop-1 { animation-delay: 0.5s; }
.is-revealed .anim-drop-2 { animation-delay: 0.6s; }
.is-revealed .anim-drop-3 { animation-delay: 0.7s; }
.is-revealed .anim-drop-4 { animation-delay: 0.8s; }

.is-revealed .anim-winner-pop { opacity: 0; animation: winner-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 1.1s; transform-origin: center; }

/* ---------- Always-on loops ---------- */
.anim-pulse-ring { transform-origin: center; animation: pulse-ring 2.4s ease-out infinite; }
.anim-pulse-node { animation: pulse-node 2s ease-in-out infinite; }
.anim-pulse-node-1 { animation-delay: 0s; }
.anim-pulse-node-2 { animation-delay: 0.3s; }
.anim-pulse-node-3 { animation-delay: 0.6s; }
.anim-pulse-node-4 { animation-delay: 0.9s; }
.anim-pulse-node-5 { animation-delay: 1.2s; }
.anim-pulse-node-6 { animation-delay: 1.5s; }

.anim-flow { stroke-dasharray: 6 6; animation: dash-shift 2s linear infinite; }
.anim-flow-slow { stroke-dasharray: 6 6; animation: dash-shift 4s linear infinite; }

.anim-float { animation: float 4s ease-in-out infinite; }
.anim-rotate { animation: rotate-slow 18s linear infinite; transform-origin: center; }
.anim-glow { animation: glow 2.6s ease-in-out infinite; }
.anim-shimmer { animation: shimmer 2s ease-in-out infinite; }

/* Sweep / scanline */
.scanline { position: relative; overflow: hidden; }
.scanline::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(35, 183, 156,0.18), transparent); animation: sweep 3s linear infinite; }

/* Stagger helper */
.stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.is-revealed.stagger > *,
.stagger.is-revealed > * { opacity: 1; transform: translateY(0); }
.is-revealed.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.is-revealed.stagger > *:nth-child(2) { transition-delay: 0.15s; }
.is-revealed.stagger > *:nth-child(3) { transition-delay: 0.25s; }
.is-revealed.stagger > *:nth-child(4) { transition-delay: 0.35s; }
.is-revealed.stagger > *:nth-child(5) { transition-delay: 0.45s; }
.is-revealed.stagger > *:nth-child(6) { transition-delay: 0.55s; }
.is-revealed.stagger > *:nth-child(7) { transition-delay: 0.65s; }
.is-revealed.stagger > *:nth-child(8) { transition-delay: 0.75s; }

/* Hover-driven micro-interactions */
.tile { overflow: hidden; position: relative; }
.tile::before { content: ""; position: absolute; inset: -2px; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(35, 183, 156,0.12), transparent 40%); opacity: 0; transition: opacity 250ms var(--ease); pointer-events: none; }
.tile:hover::before { opacity: 1; }

/* Illustration container — gives illustrations a consistent floor */
.illus { width: 100%; height: auto; display: block; }
.illus-wide { aspect-ratio: 16 / 9; background: var(--color-bg-2); border-radius: var(--radius-lg); padding: var(--space-6); position: relative; overflow: hidden; }
.illus-square { aspect-ratio: 1 / 1; }
.illus-tall { aspect-ratio: 3 / 4; }

/* Marquee for logo bar (animated) */
.marquee { display: flex; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
/* inline-flex + nowrap on the parent means the two copies stay on ONE line even
   if .marquee ever fails to compute as a flex container — previously they
   would stack into two rows. min-width:max-content stops any shrinking. */
.marquee-track { display: inline-flex; flex: 0 0 auto; flex-wrap: nowrap; min-width: max-content; vertical-align: top; gap: var(--space-12); animation: marquee 80s linear infinite; padding-right: var(--space-12); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .anim-pulse-ring, .anim-pulse-node, .anim-flow, .anim-flow-slow, .anim-float, .anim-rotate, .anim-glow, .anim-shimmer, .scanline::after, .marquee-track {
    animation: none !important;
  }
  .is-revealed .anim-grow-bar, .is-revealed .anim-draw-path, .is-revealed .anim-count, .is-revealed .anim-shrink, .is-revealed .anim-drop, .is-revealed .anim-winner-pop, .is-revealed.stagger > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   THEME SWITCH — headlight beam sweep
   A tall, blurred shaft of light (skewed ~14°, like a beam hitting the
   road at an angle) sweeps across the screen in ~0.9s. main.js flips the
   theme at ~420ms, right as the beam crosses mid-screen, so the color
   change is "revealed" by the light passing over the page.
   To light  = warm amber-white beam (headlights flicking on toward you).
   To dark   = cool, dim blue-grey sweep (lights fading off).
   GPU-friendly: fixed overlay, transform-only animation, no layout work.
   ========================================================================== */

.theme-beam {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

/* The beam itself: skewed gradient shaft, blurred, swept via translateX.
   The cubic-bezier accelerates through the middle of the screen. */
.theme-beam::before {
  content: "";
  position: absolute;
  top: -25vh;
  bottom: -25vh;
  left: 0;
  width: 34vw;
  min-width: 220px;
  filter: blur(16px);
  transform: translateX(-80vw) skewX(-14deg);
  will-change: transform;
  animation: theme-beam-sweep 900ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* Warm amber-white — lights on */
.theme-beam-to-light::before {
  background: linear-gradient(90deg,
    rgba(255, 196, 92, 0)     0%,
    rgba(255, 205, 112, 0.45) 16%,
    rgba(255, 236, 196, 0.92) 42%,
    rgba(255, 248, 230, 0.98) 50%,
    rgba(255, 236, 196, 0.92) 58%,
    rgba(255, 205, 112, 0.45) 84%,
    rgba(255, 196, 92, 0)     100%);
}

/* Cool blue-grey — lights fading off */
.theme-beam-to-dark::before {
  background: linear-gradient(90deg,
    rgba(116, 138, 172, 0)    0%,
    rgba(126, 148, 184, 0.22) 16%,
    rgba(158, 180, 214, 0.48) 42%,
    rgba(176, 196, 226, 0.55) 50%,
    rgba(158, 180, 214, 0.48) 58%,
    rgba(126, 148, 184, 0.22) 84%,
    rgba(116, 138, 172, 0)    100%);
}

@keyframes theme-beam-sweep {
  from { transform: translateX(-80vw)  skewX(-14deg); }
  to   { transform: translateX(180vw) skewX(-14deg); }
}

/* Reduced motion: no beam at all (main.js also skips straight to the flip) */
@media (prefers-reduced-motion: reduce) {
  .theme-beam { display: none; }
}


/* Anchor targets must clear the sticky header (~88px) — without this,
   /talk.html#book lands with the section heading hidden behind the nav. */
:target, [id="book"], section[id] { scroll-margin-top: 104px; }


/* ====================================================================
   NETWORK STATS inside .section-dark
   .section-dark flips to a LIGHT surface in light mode, so the stats'
   hardcoded white inline colours rendered invisible. These theme-aware
   rules replace them. --color-teal is already #0B7A5F in light (5.3:1 on
   white) and #23B79C in dark, so the number colour needs no override.
   ==================================================================== */
.section-dark .network-stat {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--color-teal);
}
.section-dark .network-stat-num   { color: var(--color-teal); }
.section-dark .network-stat-label { color: rgba(255, 255, 255, 0.72); }
[data-theme="light"] .section-dark .network-stat       { background: var(--color-white); border-left-color: var(--color-teal); }
[data-theme="light"] .section-dark .network-stat-label { color: var(--color-text-2); }

/* ==========================================================================
   Consent banner (assets/js/analytics.js builds the markup)
   Always a dark surface in both themes — same treatment as the footer, so
   contrast is verified once and holds everywhere. Fixed to the bottom, above
   the fold on mobile, and it never shifts layout (position: fixed).
   ========================================================================== */
.consent-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 9000;
  background: #0F1A17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.consent-banner.is-visible { opacity: 1; transform: translateY(0); }

.consent-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
  max-width: 1100px;
  margin: 0 auto;
}
.consent-copy { flex: 1 1 auto; min-width: 0; }
.consent-title {
  margin: 0 0 4px;
  color: #fff;
  font-weight: 700;
  font-size: var(--size-15);
}
.consent-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: var(--size-14);
  line-height: 1.55;
}
.consent-desc a { color: #35D6B0; text-decoration: underline; text-underline-offset: 2px; }
.consent-desc a:hover { color: #fff; }

.consent-actions { display: flex; gap: var(--space-3); flex: 0 0 auto; }
/* 44px minimum touch target, matching the rest of the site's mobile rules */
.consent-actions .btn { min-height: 44px; }

.consent-banner :focus-visible {
  outline: 2px solid #35D6B0;
  outline-offset: 2px;
  border-radius: var(--radius-pill);
}

@media (max-width: 720px) {
  .consent-banner { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); }
  .consent-inner { flex-direction: column; align-items: stretch; gap: var(--space-4); padding: var(--space-5); }
  .consent-actions .btn { flex: 1 1 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .consent-banner { transition: none; transform: none; }
}

/* Footer "Cookie settings" control — a link, styled like its siblings */
.footer-bottom [data-consent-settings] {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom [data-consent-settings]:hover { color: var(--color-teal); }

/* ==========================================================================
   Content table — used by the cookie disclosure on /privacy.html.
   Scrolls horizontally rather than overflowing on narrow screens.
   ========================================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.table { width: 100%; border-collapse: collapse; font-size: var(--size-14); min-width: 560px; }
.table th, .table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-line); vertical-align: top; }
.table thead th { background: var(--color-bg-2); color: var(--color-text); font-weight: 700; font-size: var(--size-13); letter-spacing: 0.02em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td { color: var(--color-text-2); }
.table code { font-family: var(--font-mono); font-size: var(--size-13); background: var(--color-bg-3); padding: 1px 5px; border-radius: 4px; color: var(--color-text); }
[data-theme="dark"] .table-wrap { border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .table th, [data-theme="dark"] .table td { border-bottom-color: rgba(255,255,255,0.10); }
[data-theme="dark"] .table thead th { background: rgba(255,255,255,0.05); }

/* Long-form legal/utility pages (/privacy.html): give plain <ul> real list
   affordances — the site's global reset strips them, which is right for the
   marketing pages but makes prose lists read as run-on paragraphs. */
[data-page="privacy"] .container ul { padding-left: 0; }
[data-page="privacy"] .container ul li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
  color: var(--color-text-2);
  line-height: 1.65;
}
[data-page="privacy"] .container ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
}
[data-page="privacy"] .container ul li strong { color: var(--color-text); }
[data-page="privacy"] .container p { line-height: 1.7; }

/* Notice-mode consent bar (opt-out regions).
   The blocking variant spans the viewport because it demands a decision.
   This one doesn't — it's informing — so it's a small card tucked into the
   bottom-left corner instead of a slab across the screen. Same information,
   far less alarming. */
.consent-banner-notice {
  background: #16211E;
  right: auto;
  max-width: 440px;
}
.consent-banner-notice .consent-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
}
.consent-banner-notice .consent-title { font-size: var(--size-14); }
.consent-banner-notice .consent-desc  { font-size: var(--size-13); }
.consent-banner-notice .consent-actions { width: 100%; justify-content: flex-end; }
.consent-banner-notice .btn { padding: var(--space-2) var(--space-5); font-size: var(--size-14); }

@media (max-width: 720px) {
  /* On a phone there is no corner to tuck into — go full width like the
     blocking variant, but keep the shorter copy and smaller type. */
  .consent-banner-notice { right: var(--space-3); max-width: none; }
  .consent-banner-notice .consent-actions .btn { flex: 1 1 0; justify-content: center; }
}


/* ====================================================================
   NAV FEATURED — Mold Insulation + CSC Metals
   Same size/weight rhythm as the other links; teal text and a small dot
   mark them as featured. Active state = the standard teal underline.
   ==================================================================== */
.nav-link-featured {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--color-teal-on-light);
  font-weight: 600;
}
.nav-link-featured:hover { color: var(--color-ink); }
.nav-link-featured.is-active { color: var(--color-ink); }
.nav-feat-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(35, 183, 156, 0.18);
}
[data-theme="dark"] .nav-link-featured { color: #5EE0C2; }
[data-theme="dark"] .nav-link-featured:hover,
[data-theme="dark"] .nav-link-featured.is-active { color: #fff; }

/* keep every top-bar item on one line; tighten progressively on laptop widths */
@media (min-width: 901px) {
  .nav-link, .nav-cta, .nav-item-mega-row { white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1340px) {
  .nav-list { gap: var(--space-5); }
  .nav-cta { padding: var(--space-2) var(--space-4); }
}
@media (min-width: 901px) and (max-width: 1140px) {
  .nav { padding-left: var(--space-4); padding-right: var(--space-4); }
  .nav-list { gap: var(--space-4); }
  .nav-link { font-size: var(--size-15); }
  .nav-cta { font-size: var(--size-14); padding: var(--space-2) var(--space-3); }
  .brand-logo { max-width: 150px; height: auto; }
  .nav-cta-long { display: none; }
}
@media (min-width: 901px) {
  .nav-list { margin-left: var(--space-6); }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .nav-link-optional { display: none; }   /* Insights stays in the footer + mobile drawer */
  .nav-list { gap: var(--space-3); margin-left: var(--space-4); }
  .brand-logo { max-width: 128px; }
}


/* ====================================================================
   Emil: hover motion only on real pointers. Touch taps trigger :hover and
   leave cards "stuck" lifted, so cancel hover transforms on touch devices.
   ==================================================================== */
@media (hover: none), (pointer: coarse) {
  .nav-cta:hover, .btn-primary:hover, .card:hover, .case-card:hover, .tile:hover,
  .coverage-chip:hover, .filter-chip:hover, .btn-secondary-link-solo:hover { transform: none; }
  .btn-link:hover::after { transform: none; }
}
