/* SHARED BRAND COLORS, FONTS & COMPONENTS - SYSTEM FONTS ONLY */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Color system (oklch-based) */
  --gold: oklch(78% 0.12 80);
  --gold-dim: oklch(55% 0.08 80);
  --steel: oklch(72% 0.02 220);
  --bg: #000;
  --vault-bg: #0a0a0c;
  --reveal-bg: oklch(7% 0.015 240);
  --text: oklch(92% 0.01 220);
  --text-dim: oklch(60% 0.02 220);
  --accent: oklch(78% 0.12 80);

  /* SVG / cog tones */
  --cog-fill: oklch(18% 0.02 220);
  --cog-stroke: oklch(45% 0.06 220);
  --cog-active: oklch(78% 0.12 80);

  /* Seal illumination tones (vault SVG) */
  --seal-dim: #4a5a6a;
  --seal-glow: #0AFFFF;

  /* Borders / dividers (subtle steel tones) */
  --border-dim: oklch(25% 0.04 220);
  --border-soft: oklch(22% 0.03 220);
  --border-strong: oklch(35% 0.04 220);

  /* Card surfaces */
  --card-bg: oklch(12% 0.005 220);
  --card-bg-deep: oklch(9% 0.015 240);
  --card-bg-hover: oklch(12% 0.02 220);

  /* Misc */
  --dot-inactive: oklch(30% 0.03 220);
  --footer-copy-1: oklch(62% 0.02 220);   /* nav sublabel  (WCAG AA on black) */
  --footer-copy-2: oklch(58% 0.02 220);   /* legal links   (WCAG AA on black) */
  --footer-copy-3: oklch(54% 0.02 220);   /* © copy        (WCAG AA on black) */
  --act60-color: oklch(55% 0.06 80);

  /* Layout */
  --container-width: min(500px, 100vw);

  /* Font families (system only) */
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', Helvetica, sans-serif;
}

/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.6;
}

body {
  overflow-y: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(28px, 5vw, 48px); color: var(--gold); font-weight: 600; }
h2 { font-size: clamp(22px, 3vw, 30px); color: var(--gold); margin-top: clamp(28px, 4vw, 40px); font-weight: 500; }
h3 { font-size: clamp(18px, 3vw, 32px); font-weight: 400; }
h4 { font-size: clamp(16px, 2.5vw, 24px); }
.master-headline { color: var(--gold); }
.shell-intro {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.7vw, 17px);
  color: var(--text-dim);
  line-height: 1.7;
  border-left: 2px solid var(--gold-dim);
  padding-left: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.legal-master-heading {
  margin-bottom: clamp(20px, 3svh, 32px);
  padding-bottom: clamp(14px, 2svh, 20px);
  border-bottom: 1px solid var(--border-dim);
}
.legal-section-heading {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold);
  margin-bottom: clamp(16px, 2svh, 24px);
}

/* ==========================================================================
   CONTACT FORM TABS (Sales / Partnerships / Support)
   ========================================================================== */
.contact-tabs { margin-top: clamp(20px, 3vw, 32px); }

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border-dim);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.tab-bar .tab {
  background: transparent;
  border: none;
  padding: clamp(12px, 1.8vw, 16px) clamp(18px, 3vw, 28px);
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.4vw, 13px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  min-height: 44px;
  margin-bottom: -1px;
}
.tab-bar .tab:hover { color: var(--text); }
.tab-bar .tab[aria-selected="true"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.tab-bar .tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.tab-panel { animation: tab-fade-in 0.25s ease-out; }
.tab-panel[hidden] { display: none; }

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

p, li {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

ul, ol { margin-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.8rem; }

section { margin-bottom: clamp(32px, 5vw, 48px); }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--steel); }

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) clamp(20px, 5vw, 40px);
  font-family: var(--font-sans);
  /* Container query root: descendants can react to main's actual width,
     not viewport. Wide main (shell pages) gets 2-col service cards;
     narrow main (reading pages) and narrow content (vault) stay 1-col. */
  container-type: inline-size;
  container-name: main;
}

/* Reading-width pages (long-form text): about, privacy, terms, etc. */
body.reading main {
  max-width: 720px;
}

/* Homepage hero and vault results sit close to the header — the default main
   top padding leaves the lead content floating too low on these pages. */
main:has(> .home-hero),
body.vault-page main {
  padding-top: clamp(16px, 3vw, 32px);
}

/* When main itself is wide enough, any <section> whose direct children
   include a .service-card flows those cards into a 2-column grid. Section
   headings and intro <p>s span the full row. Below 720px main width
   (mobile, narrow main, or vault panel) cards stay in a single column. */
@container main (min-width: 720px) {
  section:has(> .service-card) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
  }
  section:has(> .service-card) > h1,
  section:has(> .service-card) > h2,
  section:has(> .service-card) > h3,
  section:has(> .service-card) > p {
    grid-column: 1 / -1;
  }
  section:has(> .service-card) > .service-card {
    margin-bottom: 0;
  }
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  font-family: var(--font-sans);
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: clamp(32px, 5vw, 48px) 0;
}

/* ==========================================================================
   3. BACK LINK (interior pages)
   ========================================================================== */
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.back-link:hover { color: var(--steel); }

/* ==========================================================================
   4. HEADER / WORDMARK
   ========================================================================== */
.site-header {
  position: absolute;
  top: clamp(24px, 5svh, 48px);
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: clamp(80px, 12svh, 140px);
  height: auto;
}

.header-title {
  font-size: clamp(13px, 2.2svh, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  font-family: var(--font-serif);
  margin: 0;
}

.header-subtitle {
  font-size: clamp(12px, 1.3svh, 12px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
  font-family: var(--font-sans);
}

/* ==========================================================================
   5. QUESTION AREA (vault)
   ========================================================================== */
.question-prompt {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.8svh, 14px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  min-height: 1.6em;
  transition: opacity 0.4s;
}

.question-text {
  font-size: clamp(15px, 2.6svh, 20px);
  color: var(--text);
  text-align: center;
  line-height: 1.4;
  min-height: 2.8em;
  transition: opacity 0.5s;
  text-wrap: pretty;
  font-family: var(--font-serif);
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5svh, 12px);
  width: 100%;
  transition: opacity 0.4s;
}

.opt-btn {
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text);
  padding: clamp(10px, 1.8svh, 14px) clamp(14px, 3vw, 22px);
  font-size: clamp(12px, 1.9svh, 15px);
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.26, 0.64, 1);
  text-align: left;
  line-height: 1.3;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.opt-btn::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.25s;
  transform-origin: center;
}

.opt-btn:hover {
  border-color: var(--gold);
  background: color-mix(in oklch, var(--gold) 8%, transparent);
  color: var(--gold);
  padding-left: clamp(20px, 4vw, 30px);
}
.opt-btn:hover::before { transform: scaleY(1); }
.opt-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.step-dots {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dot-inactive);
  transition: background 0.4s, transform 0.4s;
}
.dot.active { background: var(--gold); transform: scale(1.4); }
.dot.done { background: var(--gold-dim); }

.unlock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.unlock-overlay.visible { opacity: 1; }

.unlock-text {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.8svh, 13px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

/* ==========================================================================
   6. CONTENT BODY
   ========================================================================== */
.content-wrap {
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.3s, transform 0.8s 0.3s;
}
.content-wrap.visible { opacity: 1; transform: translateY(0); }

.content-sector-tag {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.3svh, 12px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(8px, 1.5svh, 14px);
}

.content-headline {
  font-size: clamp(22px, 4svh, 34px);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: clamp(16px, 3svh, 28px);
  text-wrap: pretty;
  font-family: var(--font-serif);
}

.content-overview {
  font-size: clamp(13px, 2vw, 16px);
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: clamp(24px, 4svh, 40px);
  border-left: 2px solid var(--gold-dim);
  padding-left: 16px;
  font-family: var(--font-sans);
}

.content-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: clamp(20px, 3.5svh, 32px) 0;
}

.content-section-label {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.3svh, 12px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(12px, 2svh, 20px);
}

/* ==========================================================================
   7. SERVICE CARD
   ========================================================================== */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-dim);
  padding: clamp(14px, 2vw, 20px) clamp(16px, 3vw, 22px);
  margin-bottom: clamp(10px, 1.8svh, 14px);
  border-radius: 2px;
  transition: border-color 0.25s;
}
.service-card:hover { border-color: var(--gold); }

.service-card h3 {
  font-size: clamp(14px, 2vw, 19px);
  color: var(--text);
  font-weight: 400;
  margin-bottom: 6px;
  font-family: var(--font-serif);
}

.service-card p {
  font-size: clamp(12px, 1.5vw, 15px);
  color: var(--text-dim);
  line-height: 1.6;
  font-family: var(--font-sans);
  margin-bottom: 0;
}

/* ==========================================================================
   8. DEPLOYMENT BLOCK (vault content)
   ========================================================================== */
.deployment-block {
  background: var(--card-bg);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: clamp(18px, 3svh, 28px) clamp(16px, 3vw, 24px);
  margin: clamp(20px, 3.5svh, 32px) 0;
}

.deployment-label {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.3svh, 12px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.deployment-title {
  font-size: clamp(16px, 2.5svh, 22px);
  color: var(--text);
  margin-bottom: 12px;
  font-family: var(--font-serif);
}

.deployment-text {
  font-size: clamp(12px, 1.8vw, 15px);
  color: var(--text-dim);
  line-height: 1.7;
  font-family: var(--font-sans);
}

/* ==========================================================================
   9. CTAs
   ========================================================================== */
.cta-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: clamp(24px, 4svh, 40px) 0;
}

.cta-primary {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: clamp(14px, 2.5svh, 18px) 28px;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.8svh, 14px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
  width: 100%;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.cta-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.cta-secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
  padding: clamp(12px, 2svh, 16px) 24px;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.6svh, 13px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  width: 100%;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.cta-secondary:hover { border-color: var(--gold); color: var(--text); }

/* Content-width CTA (overrides the default full-width on .cta-primary/secondary) */
.cta-auto { width: auto; }

.cta-reset {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
  padding: clamp(10px, 1.8svh, 14px) 22px;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.5svh, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.cta-reset:hover { border-color: var(--gold); color: var(--gold); }

/* Sector-page CTA section (used by shell pages and vault result) */
.cta-section {
  background: color-mix(in oklch, var(--gold) 8%, transparent);
  border: 1px solid var(--gold);
  padding: 2.5rem;
  border-radius: 2px;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.cta-section h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-family: var(--font-serif);
}
.cta-section p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

.cta-button {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 32px);
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.8vw, 14px);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  margin: 0.5rem;
}
.cta-button:hover { opacity: 0.88; transform: translateY(-2px); }

.cta-button.secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
}
.cta-button.secondary:hover { border-color: var(--gold); color: var(--text); }

/* Generic .button (legacy / utility) */
.button {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 28px);
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.8vw, 14px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}
.button:hover { opacity: 0.88; transform: translateY(-2px); }
.button.secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
}
.button.secondary:hover { border-color: var(--gold); color: var(--text); }

/* ==========================================================================
   10. FOOTER (shared by inline and component-loaded footers)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-dim);
  padding: clamp(28px, 5svh, 48px) clamp(20px, 5vw, 40px);
  margin-top: clamp(32px, 6svh, 60px);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.footer-logo {
  font-size: clamp(12px, 1.8svh, 14px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  font-family: var(--font-serif);
}
.footer-tagline {
  font-size: clamp(12px, 1.5svh, 12px);
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-style: italic;
  margin-bottom: clamp(20px, 3.5svh, 32px);
}
.footer-eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.3svh, 12px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(12px, 2svh, 20px);
}
/* Sectors block separates from the main nav above it (mobile flow). Matches
   the original 1.5rem margin-top that lived inline on the Sectors wrapper.
   Bottom spacing comes from the inner .footer-nav's own margin-bottom. */
.footer-sectors {
  margin-top: clamp(8px, 1.5svh, 24px);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(20px, 3.5svh, 32px);
}
.footer-nav a {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.6svh, 13px);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-nav a:hover { color: var(--gold); }
.footer-nav a span {
  font-size: clamp(12px, 1.2svh, 12px);
  letter-spacing: 0.12em;
  color: var(--footer-copy-1);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-legal a {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.3svh, 12px);
  color: var(--footer-copy-2);
  text-decoration: none;
  letter-spacing: 0.1em;
}
.footer-legal a:hover { color: var(--text-dim); }
.footer-copy {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.2svh, 12px);
  color: var(--footer-copy-3);
  letter-spacing: 0.08em;
}

/* Desktop footer layout: 3-column grid using template areas.
   Matches the existing 720px mobile breakpoint used elsewhere (see nav rules).
   Mobile (<=720px) inherits the default block flow — no changes. */
@media (min-width: 721px) {
  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand   nav sectors"
      "legal   nav sectors"
      "copy    nav sectors";
    column-gap: clamp(32px, 5vw, 64px);
    row-gap: 0;
    align-items: start;
  }
  .footer-brand    { grid-area: brand; }
  .footer-nav--main { grid-area: nav; margin-bottom: 0; }
  .footer-sectors  { grid-area: sectors; margin-top: 0; margin-bottom: 0; }
  .footer-sectors .footer-nav { margin-bottom: 0; }
  .footer-legal    { grid-area: legal; margin-top: clamp(16px, 2.5svh, 24px); }
  .footer-copy     { grid-area: copy; margin-top: clamp(4px, 0.6svh, 8px); }
}

.act-badge {
  display: inline-block;
  margin-top: 12px;
  border: 1px solid var(--act60-color);
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.1svh, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--act60-color);
}

/* ==========================================================================
   11. UTILITIES
   ========================================================================== */
.fade { transition: opacity 0.35s; }
.fade.hidden { opacity: 0; pointer-events: none; }

/* ==========================================================================
   12. SCAN LINES OVERLAY (subtle CRT texture)
   ========================================================================== */
main::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.012) 2px,
      rgba(255, 255, 255, 0.012) 3px
    );
  pointer-events: none;
  z-index: 1000;
}

/* ==========================================================================
   13. SKIP-TO-CONTENT (a11y)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
  color: var(--bg);
}

/* ==========================================================================
   14. SHARED PRIMARY HEADER + NAV (header.html)
   ========================================================================== */
.site-header-bar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(14px, 2.5svh, 22px) clamp(20px, 5vw, 40px);
  background: var(--vault-bg);
  border-bottom: 1px solid var(--border-dim);
}
.header-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  min-height: 44px;
  justify-content: center;
}
.header-wordmark .header-title {
  font-family: var(--font-serif);
  font-size: clamp(13px, 2.2svh, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.header-wordmark .header-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.3svh, 12px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.primary-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}
.primary-nav a {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.5svh, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.primary-nav a:hover { color: var(--gold); }

/* Visible keyboard focus for interactive nav + footer elements (WCAG 2.4.7) */
.primary-nav a:focus-visible,
.nav-toggle:focus-visible,
.nav-close:focus-visible,
.footer-nav a:focus-visible,
.footer-legal a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Dedicated close-X that lives inside the drawer (no stacking-context games
   needed — the X is always inside the open drawer at top-right). */
.nav-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, color 0.2s;
}
.nav-close:hover { border-color: var(--gold); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 80vw);
    background: var(--vault-bg);
    border-left: 1px solid var(--border-dim);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: clamp(70px, 12svh, 100px) clamp(20px, 5vw, 32px) 32px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
    z-index: 600;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-dim);
    min-height: 56px;
  }

  /* Hamburger hides while drawer is open; the X close appears inside the drawer. */
  body.nav-open .nav-toggle { display: none; }
  body.nav-open .nav-close { display: flex; align-items: center; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* Hide the shared header on the vault page (it uses its own internal layout) */
body.vault-page .site-header-bar { display: none; }

/* ==========================================================================
   15. MARKETING HOMEPAGE
   ========================================================================== */
.home-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px) clamp(28px, 8vw, 80px);
  text-align: center;
}
.home-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.4vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(16px, 3vw, 24px);
}
.home-hero h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  color: var(--text);
  margin-bottom: clamp(16px, 3vw, 24px);
  line-height: 1.15;
}
.home-hero p.lead {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 40px);
}
.home-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.home-proof {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  text-align: center;
}
.home-proof-line {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.4vw, 13px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 24px) 0;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  max-width: 700px;
}
.home-pillars {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 10vw, 100px) clamp(20px, 5vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.home-pillars-heading {
  grid-column: 1 / -1;
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
}
.home-pillar {
  border: 1px solid var(--border-dim);
  padding: clamp(22px, 3vw, 32px);
  border-radius: 2px;
  background: var(--card-bg);
  transition: border-color 0.25s;
}
.home-pillar:hover { border-color: var(--gold); }
.home-pillar h3 {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}
.home-pillar p {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.5vw, 15px);
  color: var(--text-dim);
  line-height: 1.6;
}
.home-sectors {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px) clamp(40px, 10vw, 100px);
}
.home-sectors h2 {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.home-sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(12px, 2vw, 18px);
}
.home-sector-card {
  display: block;
  padding: clamp(18px, 2.5vw, 24px);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.home-sector-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.home-sector-card .sector-name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--gold);
  margin-bottom: 6px;
}
.home-sector-card .sector-desc {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--text-dim);
  line-height: 1.5;
}

/* Suppress scanlines on the homepage and shell pages — they make dense grids noisy */
body.no-scanlines main::before { display: none; }

/* ==========================================================================
   11. NEW CTA STACK + ENGAGEMENT PATH + FAQ (copy plan v1.0)
   ========================================================================== */

/* The CTA section becomes a longer, left-aligned reading block. The legacy
   .cta-section h3 rule still applies for any older inline CTA fragments. */
.cta-section {
  text-align: left;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
}
.cta-section h2 {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}
.cta-section > p,
.cta-section .pricing-block p {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.response-sla {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed color-mix(in oklch, var(--gold) 40%, transparent);
}
.response-sla strong { color: var(--gold); font-weight: 600; }

.pricing-block {
  background: color-mix(in oklch, var(--gold) 4%, transparent);
  border-left: 2px solid var(--gold);
  padding: 1rem 16px;
  margin: 1.5rem 0;
}
.pricing-block p {
  margin-bottom: 0.5rem;
  font-size: clamp(12.5px, 1.4vw, 14px);
  line-height: 1.55;
}
.pricing-block p:last-child { margin-bottom: 0; }
.pricing-block p strong { color: var(--text); font-weight: 600; }

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  text-align: center;
}
.cta-stack .cta-button { margin: 0; min-width: min(320px, 100%); }

/* Calendly inline scheduling widget (in the CTA component) */
.cta-calendly { margin-top: clamp(20px, 3vw, 32px); }
.cta-calendly-heading {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}
.calendly-inline-widget { min-width: 320px; margin: 0; padding: 0; border: 0; }
/* The injected iframe is inline by default — its baseline descender adds a few
   stray px below it (reads as a scroll/jitter). display:block removes that. */
.calendly-inline-widget iframe { display: block; border: 0; }

/* Calendly needs >=320px wide; nested container padding leaves less than that
   on phones. Pull the widget out to the page's content gutter (20px each side),
   centered on the viewport. */
@media (max-width: 480px) {
  .calendly-inline-widget {
    width: calc(100vw - 40px);
    margin-left: calc(50% - (100vw - 40px) / 2);
    margin-right: 0;
  }
  /* Vault result pages: #pillar's 1px border is already the visual container,
     so main's 20px side gutter on top of it is redundant on mobile. Tighten
     main sides to ~8px on vault so cta-section inner (= pillar 373 - main 16
     - cta 32 = 325) clears calendly's 320 min-width without the breakout. */
  body.vault-page main {
    padding-left: 8px;
    padding-right: 8px;
  }
  body.vault-page .calendly-inline-widget {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
.cta-tertiary {
  display: inline-block;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 1.4vw, 14px);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-dim);
  padding: 4px 0;
  margin-top: 0.25rem;
  transition: color 0.2s, border-color 0.2s;
}
.cta-tertiary:hover { color: var(--gold); border-bottom-color: var(--gold); }

.cta-partnerships {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  text-align: center;
  margin: 0.75rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-dim);
}
.cta-partnerships a {
  color: var(--gold);
  text-decoration: none;
}
.cta-partnerships a:hover { text-decoration: underline; }

/* Engagement Path — numbered process list. */
.engagement-section {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  background: color-mix(in oklch, var(--card-bg-deep, #0a0a0c) 60%, transparent);
}
.engagement-section h2 {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  margin: 0 0 1rem;
}
.engagement-path {
  list-style: none;
  counter-reset: ep;
  margin: 0;
  padding: 0;
}
.engagement-path li {
  counter-increment: ep;
  position: relative;
  padding: 0.75rem 0 0.75rem clamp(2rem, 5vw, 2.75rem);
  border-bottom: 1px solid var(--border-dim);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.6;
}
.engagement-path li:last-child { border-bottom: none; }
.engagement-path li::before {
  content: counter(ep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.engagement-path li strong { color: var(--text); font-weight: 600; }

/* FAQ block — semantic <h3>/<p> per question, AI-search optimized. */
.faq-section {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
}
.faq-section > h2 {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  margin: 0 0 1rem;
}
.faq-block {
  display: flex;
  flex-direction: column;
}
.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-dim);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 500;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.faq-item p {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.5vw, 14.5px);
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

/* Stage stakes — closing paragraph at the bottom of every stage file. */
.stage-stakes {
  margin-top: 1.5rem;
  padding: 1rem 16px;
  border-left: 2px solid var(--gold);
  background: color-mix(in oklch, var(--gold) 4%, transparent);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(13.5px, 1.6vw, 15.5px);
  line-height: 1.65;
  font-style: italic;
}

/* Segment frame — one-sentence sector framing inside each segment block. */
.segment-frame {
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 1.5vw, 14px);
  line-height: 1.55;
  font-style: italic;
  margin: 0.25rem 0 1rem;
  max-width: 640px;
}

/* Client roster — new section inside global_authority. */
.client-roster {
  margin-top: 1.5rem;
}
.client-roster h2 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.client-roster p {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 1.4vw, 14px);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   SPLIT-PANE SHELL
   ========================================================================== */

.shell-body {
  overflow: hidden;
  height: 100vh;
}

.shell {
  --sidebar-w: 280px;
  --header-h: 56px;
  --splitter-w: 6px;
  display: grid;
  grid-template-columns: var(--sidebar-w) var(--splitter-w) 1fr;
  grid-template-rows: var(--header-h) 1fr;
  grid-template-areas:
    "header  header   header"
    "sidebar splitter content";
  height: 100vh;
  width: 100vw;
  background: var(--bg);
}

.shell.sidebar-collapsed {
  grid-template-columns: 48px 0 1fr;
}

.shell-header {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-dim);
  background: var(--vault-bg);
  z-index: 2;
}

.shell-header .header-wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  line-height: 1.1;
}
.shell-header .header-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
  font-weight: 600;
}
.shell-header .header-subtitle {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.sidebar-toggle:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-dim);
  color: var(--gold);
}
.sidebar-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.shell-sidebar {
  grid-area: sidebar;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--border-dim);
  background: var(--vault-bg);
  padding: 12px 8px;
}
.shell.sidebar-collapsed .shell-sidebar {
  padding: 12px 4px;
  overflow: hidden;
}
.shell.sidebar-collapsed .tab-item-label {
  display: none;
}
.shell.sidebar-collapsed .tab-item {
  justify-content: center;
  padding: 10px 0;
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Folder sections — non-interactive labels grouping the tab items */
.tab-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tab-group + .tab-group {
  margin-top: 12px;
}
.tab-group-label {
  padding: 6px 12px 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: default;
  user-select: none;
}
.tab-group .tab-item {
  padding-left: 18px;
}
.shell.sidebar-collapsed .tab-group-label {
  display: none;
}
.shell.sidebar-collapsed .tab-group + .tab-group {
  margin-top: 6px;
}
.shell.sidebar-collapsed .tab-group .tab-item {
  padding-left: 0;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.tab-item:hover {
  background: var(--card-bg-hover);
  color: var(--text);
}
.tab-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.tab-item.is-active {
  background: var(--gold);
  color: #000;
  border-left-color: var(--gold);
  font-weight: 600;
}
.tab-item.is-active .tab-item-dot {
  background: #000;
}

.tab-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot-inactive);
  flex: 0 0 6px;
}
.tab-item:hover .tab-item-dot {
  background: var(--gold-dim);
}
.tab-item-label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-splitter {
  grid-area: splitter;
  background: var(--border-dim);
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: background 120ms ease, color 120ms ease;
  user-select: none;
}
.shell-splitter:hover,
body.is-resizing .shell-splitter {
  background: var(--gold-dim);
  color: var(--gold);
}
.shell.sidebar-collapsed .shell-splitter {
  display: none;
}

body.is-resizing {
  cursor: col-resize;
  user-select: none;
}
body.is-resizing * {
  user-select: none !important;
}

/* The content host is a <main>, so the base `main` rule (max-width/margin/
   padding) would otherwise center and constrain the whole pane. Override so
   the pane fills its grid cell; the inner wrapper handles the reading column. */
.shell-content {
  grid-area: content;
  overflow-y: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--bg);
}

/* Injected tab content sits in a centered reading column, wider than the
   standalone reading width (720px) to use the 80% pane. */
.tab-content-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 56px) 64px;
}

.tab-loading,
.tab-error {
  padding: 48px clamp(20px, 4vw, 56px);
  color: var(--text-dim);
  font-family: var(--font-sans);
}
.tab-error h2 {
  color: var(--gold);
  margin-bottom: 8px;
}

/* ==========================================================================
   REPORTING DASHBOARD — METRIC GRID
   ========================================================================== */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 20px 22px;
  transition: border-color 120ms ease, background 120ms ease;
}
.metric-card:hover {
  border-color: var(--border-strong);
  background: var(--card-bg-hover);
}
.metric-card--accent {
  border-color: var(--gold-dim);
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.metric-value {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--gold);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 6px;
}
.metric-note {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}

/* ==========================================================================
   WEBINAR — CREATIVE FIGURES, TABLES, BLOCKQUOTES
   ========================================================================== */

/* Ad-creative / bridge-page screenshots inside a .service-card. */
.creative-figure {
  margin: 0 0 14px;
}
.creative-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  background: var(--card-bg-deep);
}
.creative-figure figcaption {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 10px;
}

/* Comparison / framework tables. Wrap in .table-wrap for horizontal scroll. */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14px;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-dim);
  vertical-align: top;
}
.table-wrap th {
  color: var(--gold);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table-wrap td { color: var(--text); }
.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td { border-bottom: none; }

/* Pull-quote (e.g. the 80/20 rule). Mirrors the .shell-intro left-border. */
blockquote {
  margin: 18px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--gold);
  color: var(--text-dim);
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 19px);
}

/* ==========================================================================
   REPORTING DASHBOARD — TREND CHART
   ========================================================================== */

.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 20px clamp(12px, 2vw, 24px);
  margin-top: 16px;
}

.trend-chart {
  display: block;
  width: 100%;
  height: auto;
}
.chart-grid line {
  stroke: var(--border-soft);
  stroke-width: 1;
}
.chart-area {
  /* fill set inline via gradient */
}
.chart-line {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-dots circle {
  fill: var(--vault-bg);
  stroke: var(--gold);
  stroke-width: 2;
}
.chart-ylabel text,
.chart-xlabel text {
  fill: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 11px;
}
.chart-ylabel text { text-anchor: end; }
.chart-xlabel text { text-anchor: middle; }

/* ==========================================================================
   STATUS PILL
   ========================================================================== */

.status-pill {
  display: inline-block;
  margin: 4px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.status-pill--pending {
  color: var(--gold);
  background: oklch(78% 0.12 80 / 0.12);
  border: 1px solid var(--gold-dim);
}
.status-pill--live {
  color: oklch(82% 0.15 150);
  background: oklch(82% 0.15 150 / 0.12);
  border: 1px solid oklch(60% 0.12 150);
}

/* Status pill sitting at the top of a context-source card */
.metric-card .status-pill {
  margin: 0 0 10px;
}

/* Live inline AI chat (custom client in enzo-chat.js). Definite-height
   flex column: header (fixed) + thread (scrolls) + input row (fixed). */
.enzo-chat {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  height: clamp(520px, 70vh, 760px);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg-deep);
}
.enzo-chat .chat-thread {
  flex: 1 1 auto;
  min-height: 0;        /* allow the thread to shrink so overflow scrolls */
  overflow-y: auto;
  margin-top: 0;
}
.enzo-chat .chat-input { margin-top: 0; }

/* Chat header — gold profile circle + name */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--border-dim);
  background: var(--vault-bg);
}
.chat-header-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #000;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.chat-header-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   ENZOBOT — CHAT INTERFACE
   ========================================================================== */

.chat-window {
  margin-top: 16px;
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  background: var(--card-bg-deep);
  overflow: hidden;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px clamp(14px, 2vw, 22px);
}

.chat-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 88%;
}
.chat-msg--user {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.chat-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chat-avatar--bot {
  background: var(--gold);
  color: #000;
}
.chat-avatar--user {
  background: var(--card-bg-hover);
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
}

.chat-bubble {
  background: var(--card-bg);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.chat-bubble p { margin: 0 0 10px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-msg--user .chat-bubble {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}
.chat-msg--bot .chat-bubble strong { color: var(--gold); }

.chat-input {
  display: flex;
  gap: 10px;
  padding: 14px clamp(14px, 2vw, 22px);
  border-top: 1px solid var(--border-dim);
  background: var(--vault-bg);
}
.chat-input-field {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;            /* 16px avoids iOS zoom-on-focus */
}
.chat-input-field::placeholder { color: var(--text-dim); }
.chat-input-field:focus {
  outline: none;
  border-color: var(--gold-dim);
}
.chat-send {
  flex: 0 0 auto;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.chat-send:hover:not(:disabled) { background: var(--gold-dim); }
.chat-input-field:disabled,
.chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Typing indicator (three pulsing gold dots) */
.chat-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 2px 0;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  animation: chat-typing-bounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-typing-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.chat-disabled-note {
  margin: 0;
  padding: 0 clamp(14px, 2vw, 22px) 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--vault-bg);
}

/* ==========================================================================
   SHELL — RESPONSIVE
   ========================================================================== */

@media (max-width: 720px) {
  .shell {
    grid-template-columns: 100vw 0 0;
    grid-template-rows: var(--header-h) auto 1fr;
    grid-template-areas:
      "header  header   header"
      "sidebar sidebar  sidebar"
      "content content  content";
  }
  .shell-sidebar {
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid var(--border-dim);
  }
  .shell-splitter { display: none; }
  .shell.sidebar-collapsed {
    grid-template-rows: var(--header-h) 0 1fr;
  }
  .shell.sidebar-collapsed .shell-sidebar {
    display: none;
  }
}

/* ==========================================================================
   LARGE LAPTOP (MacBook Pro 15"/16" and up, ~1440px+) — scale the reading
   pane up so text is larger and the wider screen's whitespace is filled.
   Base styles stay tuned for the 13" (~1280px) view. Scoped to the SPA pane.
   ========================================================================== */
@media (min-width: 1440px) {
  .tab-content-inner {
    max-width: 1200px;
    padding: clamp(36px, 4vw, 64px) clamp(48px, 5vw, 80px) 88px;
  }
  .tab-content-inner h1 { font-size: 56px; }
  .tab-content-inner h2 { font-size: 34px; }
  .tab-content-inner p,
  .tab-content-inner li { font-size: 17px; }
  .tab-content-inner .shell-intro { font-size: 19px; }
  .tab-content-inner .content-section-label { font-size: 13px; }
  .tab-content-inner .metric-value { font-size: 42px; }
  .tab-content-inner .metric-label,
  .tab-content-inner .metric-note { font-size: 12px; }
  .tab-content-inner .chat-bubble { font-size: 15px; }
  .tab-content-inner .enzo-chat { height: clamp(560px, 72vh, 820px); }

  /* Sidebar tabs scale up too */
  .tab-item { font-size: 15px; padding: 10px 12px; }
  .tab-group-label { font-size: 12px; }
}

