/* ============================================================
   MATRIQ — Shared styles (tokens + components)
   Brand: Warm Cream + Rust (see matriq-brand-theme skill)
   ============================================================ */

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

:root {
  /* Fonts */
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Backgrounds */
  --bg-page: #f7f3ec;
  --bg-alt: #efe9df;
  --bg-card: #fdfbf7;

  /* Text */
  --text-primary: #241f1a;
  --text-secondary: #6b5f52;
  --text-muted: #8a7d6d;
  --text-muted-2: #a89a86;

  /* Borders */
  --border: #e3dccf;
  --border-strong: #d8cebc;

  /* Accent */
  --accent: #b4531f;
  --accent-hover: #8f3d13;
  --accent-light: #fbeee4;
  --accent-light-border: #f0d3bf;
  --accent-on: #faf7f1;

  /* Dark sections */
  --dark-bg: #241f1a;
  --dark-darkest: #1c1814;
  --dark-card: #2c2621;
  --dark-border: #3d352e;
  --dark-text: #f4ede2;
  --dark-text-bright: #faf4ec;
  --dark-muted: #a8998a;
  --dark-muted-2: #b3a696;
  --dark-muted-3: #c2b7a6;
  --dark-accent: #f0a868;
  --dark-cta-bg: #e0752f;
  --dark-cta-text: #241206;

  /* Status */
  --live-green: #3f7d4e;
  --missing-orange: #ff7a52;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-full: 999px;

  --shadow-panel: 0 24px 50px -30px rgba(60,45,30,0.45);
  --shadow-panel-lg: 0 24px 54px -34px rgba(60,45,30,0.3);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

@keyframes mq-dash { to { stroke-dashoffset: -22; } }
@keyframes mq-pulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.14); } }
@keyframes mq-glow { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes mq-spin { to { transform: rotate(360deg); } }
@keyframes mq-hatch { to { background-position: 42px 0; } }
@keyframes mq-rise { 0%,100% { transform:translateY(0); opacity:0.5; } 50% { transform:translateY(-3px); opacity:1; } }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; width: 100%; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,236,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 15px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 9px; }
.logo-mark { width: 22px; height: 22px; border: 1.5px solid var(--text-primary); border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark span { width: 8px; height: 8px; background: var(--accent); display: block; }
.wordmark { font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--text-secondary); font-weight: 500; list-style: none; }
.nav-links a { transition: color 150ms ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active { font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-signin { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.nav-signin:hover { color: var(--text-primary); }
.btn-nav-cta {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  background: var(--text-primary); color: var(--bg-page); padding: 9px 16px; border-radius: 7px;
  transition: background 150ms ease;
}
.btn-nav-cta:hover { background: #3a3128; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform 150ms ease, opacity 150ms ease; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; padding: 16px 32px 20px; background: var(--bg-page); border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--text-primary); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta { margin-top: 12px; padding: 11px 20px; background: var(--text-primary); color: var(--bg-page); border-radius: var(--radius-md); text-align: center; font-weight: 600; font-size: 14px; border-bottom: none; font-family: var(--font-mono); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; padding: 14px 28px;
  background: var(--accent); color: var(--accent-on); font-size: 15px; font-weight: 600;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: background 150ms ease; font-family: var(--font-sans);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  display: inline-flex; align-items: center; padding: 14px 28px;
  background: var(--bg-card); color: var(--text-primary); font-size: 15px; font-weight: 600;
  border-radius: var(--radius-md); border: 1.5px solid var(--border-strong); cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease; font-family: var(--font-sans);
}
.btn-secondary:hover { border-color: var(--text-muted); background: var(--bg-alt); }
.btn-dark-cta {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 15px; font-weight: 500;
  background: var(--dark-cta-bg); color: var(--dark-cta-text); padding: 15px 34px; border-radius: var(--radius-md);
  transition: background 150ms ease;
}
.btn-dark-cta:hover { background: #eb8544; }
.btn-outline-dark {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--dark-text);
  border: 1.5px solid var(--dark-border); padding: 11px 22px; border-radius: var(--radius-md);
  transition: border-color 150ms ease;
}
.btn-outline-dark:hover { border-color: var(--dark-accent); }
.btn-outline-light {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-primary);
  border: 1.5px solid var(--border-strong); padding: 11px 22px; border-radius: var(--radius-md); background: var(--bg-card);
  transition: border-color 150ms ease;
}
.btn-outline-light:hover { border-color: var(--text-muted); }

/* ===== SECTION PRIMITIVES ===== */
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--dark-accent); }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-light);
  border: 1px solid var(--accent-light-border); padding: 6px 12px; border-radius: 6px;
}
.badge-pill .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: mq-pulse 2.4s ease-in-out infinite; }
.section-h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.14;
  color: var(--text-primary); margin: 0;
}
.section-h2.on-dark { color: var(--dark-text-bright); }
.section-p { font-size: 16px; color: var(--text-secondary); line-height: 1.62; }
.section-header-centered { text-align: center; margin: 0 auto; }
section.block { padding: clamp(56px,7vw,84px) 32px; scroll-margin-top: 60px; }
section.block.alt { background: var(--bg-alt); }
section.block.dark { background: var(--dark-bg); color: #e7ded2; }

/* ===== HERO ===== */
.hero { padding: clamp(56px,7vw,84px) 32px 40px; text-align: center; }
.hero-inner { max-width: 1180px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 600;
  margin: 0 auto 20px; max-width: 880px; color: var(--text-primary);
}
.hero-sub { font-size: clamp(16px,1.7vw,19px); line-height: 1.62; color: var(--text-secondary); margin: 0 auto 32px; max-width: 600px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Two-column hero (Foundation) */
.hero-split { padding: clamp(48px,6vw,72px) 32px clamp(40px,5vw,56px); }
.hero-split-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.hero-split h1 { font-size: clamp(34px,4.6vw,52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 20px; text-align: left; }
.hero-split .hero-sub { text-align: left; margin: 0 0 30px; max-width: 490px; }
.hero-split .hero-cta { justify-content: flex-start; }

/* Centered narrow hero (Studio / About) */
.hero-narrow .hero-inner { max-width: 820px; }
.hero-narrow h1 { max-width: 100%; }
.hero-narrow .hero-inner.wide { max-width: 1000px; }

/* ===== DIAGRAM PANEL (shared card look for diagrams) ===== */
.panel {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-panel);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; }
.panel-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted-2); }
.panel-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--live-green); }
.panel-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live-green); animation: mq-glow 2s ease-in-out infinite; }

/* ===== PROBLEM GRID (dark, divided columns) ===== */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.problem-col { padding: 8px 28px; text-align: center; border-right: 1px solid var(--dark-border); }
.problem-col:last-child { border-right: none; }
.problem-icon { width: 72px; height: 72px; margin: 0 auto 22px; }
.problem-title { font-size: 15.5px; font-weight: 600; color: var(--dark-text); letter-spacing: -0.01em; margin-bottom: 8px; }
.problem-missing { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--missing-orange); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.problem-desc { font-size: 14.5px; color: var(--dark-muted-3); line-height: 1.55; margin: 0; }

/* ===== STEPS (numbered, no card) ===== */
.steps-plain { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; }
.step-plain-num { font-family: var(--font-mono); font-size: 26px; color: #d8bfa8; font-weight: 600; line-height: 1; }
.step-plain-num.active { color: var(--accent); }
.step-plain-rule { height: 1px; background: var(--border); margin: 14px 0; }
.step-plain-rule.active { background: var(--accent); }
.step-plain-title { font-weight: 600; font-size: 16px; margin-bottom: 7px; }
.step-plain-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }
.step-plain-tag { font-family: var(--font-mono); font-size: 10px; color: var(--accent); border: 1px solid #e6c3ab; padding: 2px 7px; border-radius: 5px; font-weight: 500; vertical-align: middle; margin-left: 6px; }

/* ===== STEPS (bordered card strip — Foundation) ===== */
.steps-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card); }
.step-cell { padding: 28px 26px; border-right: 1px solid var(--border); }
.step-cell:last-child { border-right: none; }
.step-cell.certify { background: var(--accent-light); }
.step-cell-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.step-cell-title { font-weight: 600; font-size: 16px; margin-bottom: 7px; }
.step-cell-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }
.step-cell-chip { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); border: 1px solid #e6c3ab; padding: 3px 9px; border-radius: 5px; }

/* ===== TWO PRODUCTS PANEL (Home) ===== */
.products-panel { background: var(--bg-page); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-panel-lg); }
.products-grid-3 { display: grid; grid-template-columns: 1.35fr 90px 1fr; }
.product-pane { padding: clamp(32px,4vw,44px); display: flex; flex-direction: column; }
.product-pane.foundation { background: linear-gradient(180deg,#fdfbf7,#f4ede2); }
.product-pane.studio { padding: clamp(32px,4vw,40px) clamp(24px,3vw,36px); background: var(--dark-bg); color: var(--dark-text); }
.product-pane-label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.product-pane.foundation .product-pane-label { color: var(--accent); }
.product-pane.studio .product-pane-label { color: var(--dark-accent); }
.product-pane h3 { font-size: clamp(21px,2.4vw,25px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.16; margin: 0 0 12px; }
.product-pane.studio h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.22; margin-bottom: 10px; color: var(--dark-text); }
.product-pane p.body { font-size: 14.5px; color: var(--text-secondary); line-height: 1.62; margin: 0 0 20px; max-width: 420px; }
.product-pane.studio p.body { font-size: 13.5px; color: var(--dark-muted); margin-bottom: 20px; }
.product-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.product-tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent-hover); background: #fff; border: 1px solid #eec9b3; border-radius: 6px; padding: 6px 11px; }
.product-tag.featured { color: var(--accent-on); background: var(--accent); font-weight: 600; animation: mq-pulse 3s ease-in-out infinite; border: none; }
.product-tag.on-dark { font-size: 10.5px; color: #e7ded2; border: 1px solid var(--dark-border); padding: 5px 10px; border-radius: var(--radius-full); background: none; }
.product-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #4f4539; padding-top: 16px; border-top: 1px solid var(--border); margin-bottom: 20px; }
.product-stats .sep { color: #d8c3a8; }
.product-spine { background: #f4ede2; display: flex; align-items: center; }
.product-cta { margin-top: auto; align-self: flex-start; }

/* Studio chat mock inside product pane */
.chat-mock-dark { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.chat-bubble-user { align-self: flex-end; background: var(--dark-cta-bg); color: var(--dark-cta-text); font-size: 12px; padding: 7px 11px; border-radius: 8px 8px 2px 8px; max-width: 85%; }
.chat-bubble-agent { align-self: flex-start; background: #211d18; border: 1px solid var(--dark-border); color: #e7ded2; font-size: 12px; padding: 7px 11px; border-radius: 8px 8px 8px 2px; max-width: 88%; }
.chat-bubble-agent .metric { color: var(--dark-accent); font-weight: 600; }

/* ===== RIGOR GRID (dark cards) ===== */
.rigor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.rigor-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 12px; padding: 26px; }
.rigor-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(224,117,47,0.14); border-radius: 8px; margin-bottom: 14px; color: var(--dark-accent); }
.rigor-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--dark-text); }
.rigor-card p { font-size: 13px; color: var(--dark-muted); line-height: 1.6; margin: 0; }

/* ===== SECURITY / GOVERNANCE PILLS ===== */
.security-block { text-align: center; }
.security-block .container-narrow2 { max-width: 820px; margin: 0 auto; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pill {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); border: 1px solid var(--border-strong);
  padding: 7px 15px; border-radius: var(--radius-full); background: var(--bg-card);
}

/* ===== DESIGN PARTNER CALLOUT ===== */
.partner-callout {
  border: 1px solid var(--border); background: var(--bg-card); border-radius: var(--radius-xl);
  padding: clamp(32px,4vw,48px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.partner-callout h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.partner-callout p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ===== CLOSING CTA (dark) ===== */
.closing { padding: clamp(64px,8vw,92px) 32px; background: var(--dark-bg); color: var(--dark-text); text-align: center; }
.closing-inner { max-width: 720px; margin: 0 auto; }
.closing h2 { font-size: clamp(28px,3.6vw,40px); font-weight: 600; letter-spacing: -0.03em; margin: 0 0 14px; color: var(--dark-text); }
.closing p { font-size: 16px; color: var(--dark-muted-2); margin: 0 auto 30px; max-width: 480px; }

/* Closing CTA on light bg (About page only) */
.closing.light { background: var(--bg-page); color: var(--text-primary); }
.closing.light h2 { color: var(--text-primary); }
.closing.light p { color: var(--text-secondary); }
.closing-email-line { margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.closing-email-line a { color: var(--accent); font-weight: 600; }

/* ===== FOOTER ===== */
.footer { background: var(--dark-darkest); color: var(--dark-muted); padding: 56px 32px 28px; }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #33291f; }
.footer-logo-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.footer-logo-mark { width: 20px; height: 20px; border: 1.5px solid var(--dark-muted); border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.footer-logo-mark span { width: 7px; height: 7px; background: var(--dark-cta-bg); display: block; }
.footer-wordmark { font-family: var(--font-mono); font-weight: 600; font-size: 16px; color: #e7ded2; }
.footer-brand p { font-size: 13px; color: #7d7062; margin: 0; max-width: 240px; line-height: 1.55; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #7d7062; margin-bottom: 14px; font-weight: 400; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col ul li a:hover { color: #e7ded2; }
.footer-bottom { padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom .copyright { font-size: 13px; color: #6a5d50; }
.footer-bottom .domain { font-family: var(--font-mono); font-size: 12px; color: #6a5d50; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-on);
  border: none; border-radius: var(--radius-full); cursor: pointer; box-shadow: 0 10px 26px -12px rgba(60,45,30,0.5);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 150ms ease, transform 150ms ease, background 150ms ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); }

/* ===== ABOUT-PAGE SPECIFIC ===== */
.block-prose p { font-size: 16px; color: #4f4539; line-height: 1.7; margin: 0 0 18px; }
.block-prose p:last-child { margin-bottom: 0; }
.block-prose p strong { color: var(--text-primary); font-weight: 600; }

.beliefs-list { border-top: 1px solid #ddd2bf; }
.belief-row { display: grid; grid-template-columns: 90px 1fr; gap: 0 32px; align-items: start; border-bottom: 1px solid #ddd2bf; padding: 26px 0; }
.belief-num { font-family: var(--font-mono); font-size: 40px; font-weight: 600; color: #d8bfa8; line-height: 1; }
.belief-row h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.belief-row p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.founder-grid { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.founder-photo { width: 120px; height: 120px; border-radius: 50%; background: var(--accent-light); border: 1px solid var(--accent-light-border); display: flex; align-items: center; justify-content: center; color: var(--accent-hover); font-size: 30px; font-weight: 700; font-family: var(--font-mono); }
.founder-name { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
.founder-title { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin: 0 0 16px; }
.founder-bio { font-size: 15px; color: #4f4539; line-height: 1.7; margin: 0 0 18px; }
.founder-bio strong { color: var(--text-primary); }
.founder-links { display: flex; gap: 20px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.founder-links a.linkedin { color: var(--accent); }
.founder-links a.email { color: var(--text-primary); }

.customers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.customers-col { padding: 8px 24px; text-align: center; border-right: 1px solid var(--dark-border); }
.customers-col:last-child { border-right: none; }
.customers-icon { width: 44px; height: 44px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--dark-accent); border-radius: 10px; color: var(--dark-accent); }
.customers-col h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--dark-text); }
.customers-col p { font-size: 13.5px; color: var(--dark-muted); line-height: 1.6; margin: 0; }

/* ===== FOUNDATION-PAGE SPECIFIC ===== */
.compare-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; }
.compare-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
.compare-col h3 { font-size: 16px; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
.compare-col p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; margin: 0; }

.layer-stack-section { max-width: 1000px; margin: 0 auto; }
.layer-stack-card { background: var(--dark-card); border-radius: var(--radius-lg); padding: 44px 40px; }
.layer-stack-flex { display: flex; gap: 28px; align-items: stretch; flex-wrap: wrap; }
.layer-stack-col { position: relative; flex: 1 1 420px; padding-left: 26px; }
.layer-timeline { position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1.5px; background: linear-gradient(#5a4a3a, transparent); }
.layer-dot { position: absolute; left: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--dark-accent); animation: mq-rise 2.2s ease-in-out infinite; }
.layer-items { display: flex; flex-direction: column; gap: 16px; }
.layer-item { border-radius: 12px; padding: 20px 24px; }
.layer-item.layer-4 { background: var(--accent); margin-left: 66px; box-shadow: 0 10px 26px -14px rgba(180,83,31,0.6); }
.layer-item.layer-4 .layer-kicker { color: #fbe4d2; }
.layer-item.layer-4 .layer-title { color: var(--dark-text-bright); }
.layer-item.layer-4 .layer-desc { color: #fbe4d2; }
.layer-item.layer-3, .layer-item.layer-2, .layer-item.layer-1 { background: #332b24; border: 1px solid #47392c; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 12px 28px -16px rgba(0,0,0,0.5); }
.layer-item.layer-3 { margin-left: 44px; }
.layer-item.layer-2 { margin-left: 22px; }
.layer-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.layer-title { font-weight: 600; font-size: 14.5px; color: var(--dark-text); }
.layer-item.layer-4 .layer-title { font-weight: 700; font-size: 15px; }
.layer-desc { font-size: 12.5px; color: var(--dark-muted-2); margin-top: 4px; }
.layer-ai-tag { font-family: var(--font-mono); font-size: 9.5px; color: var(--dark-accent); border: 1px solid #5a4a3a; padding: 3px 8px; border-radius: 5px; white-space: nowrap; flex-shrink: 0; }
.governance-panel {
  flex: 0 0 220px; position: relative; overflow: hidden; background: var(--dark-bg); border: 1px dashed #5a4a3a;
  border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: center;
}
.governance-hatch { position: absolute; inset: 0; opacity: 0.5; background-image: repeating-linear-gradient(135deg, rgba(240,168,104,0.09) 0 2px, transparent 2px 14px); animation: mq-hatch 5s linear infinite; }
.governance-content { position: relative; }
.governance-content .layer-kicker { color: var(--dark-accent); margin-bottom: 10px; }
.governance-content h4 { font-weight: 600; font-size: 15px; color: var(--dark-text); margin-bottom: 10px; }
.governance-content p { font-size: 12.5px; color: var(--dark-muted-2); line-height: 1.55; }

/* ===== STUDIO-PAGE SPECIFIC ===== */
.persona-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 42px; }
.persona-pill { font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid; }

.collab-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; }
.collab-card { background: var(--bg-card); border: 1px solid; border-top-width: 3px; border-radius: var(--radius-lg); padding: 26px; }
.collab-card .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 15px; }
.collab-card ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.collab-card li { font-size: 14px; color: var(--text-primary); line-height: 1.55; }
.collab-plus { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 300; }
.collab-banner-wrap { text-align: center; margin-top: 26px; }
.collab-banner { font-family: var(--font-mono); font-size: 12.5px; color: #fff; background: linear-gradient(135deg, oklch(0.5 0.14 250), var(--accent)); display: inline-block; padding: 10px 20px; border-radius: var(--radius-full); }

.persona-card { display: flex; gap: 32px; align-items: stretch; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 30px; margin-bottom: 18px; }
.persona-card.reverse { flex-direction: row-reverse; }
.persona-info { flex: 1.15; }
.persona-badge-row { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.persona-badge { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 11.5px; border: 1px solid; }
.persona-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.persona-info h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.28; margin: 0 0 12px; }
.persona-info > p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin: 0 0 16px; }
.persona-agent { border-top: 1px solid; padding-top: 15px; }
.persona-agent-name { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.persona-agent p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.persona-artifact { flex: 0.85; display: flex; flex-direction: column; gap: 13px; }
.artifact-panel { background: var(--dark-bg); border-radius: 12px; padding: 15px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.artifact-chat-user { align-self: flex-end; color: #fff; font-size: 12px; padding: 7px 11px; border-radius: 8px 8px 2px 8px; max-width: 88%; }
.artifact-chat-agent { align-self: flex-start; background: var(--dark-card); border: 1px solid var(--dark-border); color: #e7ded2; font-size: 12px; padding: 7px 11px; border-radius: 8px 8px 8px 2px; max-width: 92%; }
.artifact-vbars { display: flex; align-items: flex-end; gap: 12px; flex: 1; padding: 16px; }
.artifact-vbar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.artifact-vbar-label { font-family: var(--font-mono); font-size: 10px; color: var(--dark-accent); }
.artifact-vbar { width: 100%; max-width: 30px; border-radius: 4px 4px 0 0; }
.artifact-vbar-name { font-family: var(--font-mono); font-size: 9.5px; color: var(--dark-muted); }
.artifact-hbars { display: flex; flex-direction: column; justify-content: center; gap: 12px; flex: 1; padding: 16px; }
.artifact-hbar-head { display: flex; justify-content: space-between; font-size: 11px; color: #e7ded2; margin-bottom: 6px; }
.artifact-hbar-head span:last-child { font-family: var(--font-mono); color: var(--dark-accent); }
.artifact-hbar-track { height: 7px; border-radius: 4px; background: var(--dark-border); overflow: hidden; }
.artifact-hbar-fill { height: 100%; border-radius: 4px; }
.artifact-list { padding: 14px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.artifact-list-item { display: flex; align-items: center; gap: 10px; background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 8px; padding: 9px 11px; }
.artifact-list-icon { width: 22px; height: 22px; border-radius: 5px; background: var(--dark-border); flex-shrink: 0; }
.artifact-list-title { font-size: 12.5px; color: #e7ded2; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artifact-list-meta { font-family: var(--font-mono); font-size: 10px; color: var(--dark-muted); }
.persona-outcome { border-radius: 10px; padding: 13px; text-align: center; border: 1.5px solid; }
.persona-outcome-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.persona-outcome-value { font-size: 14px; font-weight: 600; }

.work-together-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; }
.work-card { background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid; border-radius: 12px; padding: 24px; }
.work-card .kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.work-card .label { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; }
.work-card .value { font-size: 13px; color: var(--text-primary); line-height: 1.5; margin-bottom: 13px; }
.work-card .value:last-child { margin-bottom: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-right .nav-signin { display: none; }
  .mobile-menu-btn { display: flex; }
  .rigor-grid { grid-template-columns: 1fr 1fr; }
  .products-grid-3 { grid-template-columns: 1fr; }
  .product-spine { display: none; }
  .hero-split-inner { grid-template-columns: 1fr; }
  .hero-split h1, .hero-split .hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-split .hero-cta { justify-content: center; }
  .collab-grid { grid-template-columns: 1fr; }
  .collab-plus { margin: 0 auto; transform: rotate(90deg); }
}
@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { margin: 0 auto; }
  .founder-links { justify-content: center; }
  .partner-callout { grid-template-columns: 1fr; text-align: center; }
  .partner-avatar { margin: 0 auto; }
  .layer-stack-flex { flex-direction: column; }
  .governance-panel { flex: none; }
}
@media (max-width: 700px) {
  .hero, .hero-split, .hero-narrow { padding-top: 100px; }
  .problem-col, .customers-col { border-right: none !important; border-bottom: 1px solid var(--dark-border); padding-bottom: 32px; margin-bottom: 24px; }
  .problem-col:last-child, .customers-col:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 8px; }
  .steps-strip { grid-template-columns: 1fr; }
  .step-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .step-cell:last-child { border-bottom: none; }
  .belief-row { grid-template-columns: 1fr; gap: 10px; }
  .persona-card, .persona-card.reverse { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* architecture diagram (Home) — stack instead of 5-col grid */
  .arch-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .arch-connectors { display: none !important; }
  .arch-col-list { height: auto !important; }

  /* layer stack timeline (Foundation) — drop the staircase offsets, they don't fit */
  .layer-stack-card { padding: 30px 20px; }
  .layer-stack-col { padding-left: 20px; }
  .layer-item.layer-4, .layer-item.layer-3, .layer-item.layer-2 { margin-left: 0; }
  .layer-item.layer-3, .layer-item.layer-2, .layer-item.layer-1 { flex-wrap: wrap; row-gap: 8px; }
}
