/* Applied AI Agent — Design System v5 "Vineyard at Night"
   Green-black darks, ivory lights, champagne for the teammate's voice,
   electric vine-green for anything alive or awaiting your yes.
   The teammate's own words render in serif italic (.voice). */

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

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  /* Dark surfaces — vineyard at night (green-black) */
  --hero-bg:          oklch(17% 0.018 165);
  --hero-mid:         oklch(22% 0.022 162);
  --dark:             oklch(17% 0.018 165);
  --dark-mid:         oklch(23% 0.022 160);

  /* Light surfaces — ivory */
  --surface:          oklch(98.2% 0.005 95);
  --surface-alt:      oklch(96.2% 0.008 95);
  --surface-warm:     oklch(94.8% 0.011 95);

  /* Text on light — near-black, faintly green */
  --ink:              oklch(20% 0.012 160);
  --ink-mid:          oklch(37% 0.012 160);
  --ink-soft:         oklch(51% 0.012 155);

  /* Text on dark — moonlit ivory */
  --text-light:       oklch(96.5% 0.010 105);
  --text-light-mid:   oklch(80% 0.018 130);
  --text-light-soft:  oklch(61% 0.020 145);

  /* Accent — vine green (CTAs, asks, approvals) */
  --accent:           oklch(54% 0.125 152);
  --accent-hover:     oklch(48% 0.125 152);
  --accent-muted:     oklch(54% 0.125 152 / 0.12);
  --accent-light:     oklch(92% 0.05 150);
  --ember:            oklch(86% 0.085 95);   /* champagne — voice & highlights on dark */

  /* Live — electric vine (status, on-duty, done) */
  --sage:             oklch(64% 0.14 150);
  --sage-light:       oklch(88% 0.06 150);

  /* Rules */
  --rule:             oklch(20% 0.012 160 / 0.08);
  --rule-md:          oklch(20% 0.012 160 / 0.15);
  --rule-dark:        oklch(96% 0.010 105 / 0.12);

  /* Type */
  --font-ui:          'Inter', system-ui, -apple-system, sans-serif;
  --font-voice:       'Source Serif 4', Georgia, serif;

  /* Easing */
  --ease-expo:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart:       cubic-bezier(0.25, 1, 0.5, 1);
}

/* The teammate's voice — serif italic, everywhere it "speaks" */
.voice {
  font-family: var(--font-voice);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────
   CONTAINER
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}
@media (max-width: 1024px) { .container { padding: 0 2.5rem; } }
@media (max-width: 768px)  { .container { padding: 0 1.5rem; } }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 3rem;
  transition: background 0.3s var(--ease-expo),
              border-color 0.3s var(--ease-expo),
              box-shadow 0.3s var(--ease-expo);
  border-bottom: 1px solid transparent;
}
.logo {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9375rem;
  letter-spacing: -0.02em; color: var(--nav-logo, var(--text-light));
  text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 400; letter-spacing: -0.005em;
  color: var(--nav-text, var(--text-light-soft));
  text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover { color: var(--nav-logo, var(--text-light)); }
.nav-links a.active { color: var(--accent); font-weight: 500; }

.btn-nav {
  font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 500;
  background: var(--accent); color: #fff;
  padding: 0.5rem 1.125rem; border-radius: 8px;
  border: none; cursor: pointer; letter-spacing: -0.01em;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn-nav:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-muted);
  transform: translateY(-1px);
}

nav#nav.over-dark {
  background: transparent;
  --nav-text: var(--text-light-soft);
  --nav-logo: var(--text-light);
}
nav#nav.over-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 var(--rule);
  --nav-text:  var(--ink-soft);
  --nav-logo:  var(--ink);
}

/* ─────────────────────────────────────────
   HAMBURGER + MOBILE MENU
───────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 300;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--nav-logo, var(--text-light)); transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  background: var(--dark); z-index: 150;
  padding: 5.5rem 1.5rem 2.5rem;
  transform: translateY(-100%); transition: transform 0.35s var(--ease-expo);
  border-bottom: 1px solid var(--rule-dark);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; margin-bottom: 2rem; }
.mobile-menu ul li { border-bottom: 1px solid var(--rule-dark); }
.mobile-menu ul li a {
  display: block; padding: 1rem 0;
  font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em;
  color: var(--text-light); text-decoration: none;
}
.mobile-menu-cta {
  background: var(--accent); color: #fff; display: block;
  text-align: center; padding: 0.875rem; border-radius: 10px;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em;
  border: none; cursor: pointer; width: 100%;
}

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.1;
  color: var(--ink); text-wrap: balance;
}
h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.125rem, 1.75vw, 1.375rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.25;
  color: var(--ink);
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff;
  padding: 0.8125rem 1.75rem; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 0.9375rem; font-weight: 500;
  letter-spacing: -0.015em;
  border: none; cursor: pointer; text-decoration: none;
  transition: background 0.15s var(--ease-quart),
              box-shadow 0.15s var(--ease-quart),
              transform 0.15s var(--ease-quart);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px var(--accent-muted);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--text-light-mid);
  padding: 0.8125rem 1.75rem; border-radius: 10px;
  border: 1px solid var(--rule-dark);
  font-family: 'Inter', sans-serif; font-size: 0.9375rem; font-weight: 400;
  letter-spacing: -0.01em; cursor: pointer; text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-secondary:hover {
  border-color: var(--text-light-soft);
  color: var(--text-light);
  background: oklch(96% 0.010 105 / 0.06);
}

/* Legacy aliases */
.btn-gold { display: inline-flex; align-items: center; background: var(--accent); color: #fff; padding: 0.8125rem 1.75rem; border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.015em; border: none; cursor: pointer; transition: background 0.15s, box-shadow 0.15s, transform 0.15s; }
.btn-gold:hover { background: var(--accent-hover); box-shadow: 0 8px 24px var(--accent-muted); transform: translateY(-2px); }

/* ─────────────────────────────────────────
   FLOATING BUTTON
───────────────────────────────────────── */
.float-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 100;
  background: var(--ink); color: var(--text-light);
  padding: 0.75rem 1.25rem; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 500;
  letter-spacing: -0.01em; border: none; cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease-expo),
              transform 0.4s var(--ease-expo),
              background 0.15s;
  pointer-events: none;
  box-shadow: 0 4px 20px oklch(20% 0.012 160 / 0.2);
}
.float-btn.visible { opacity: 1; transform: none; pointer-events: auto; }
.float-btn:hover { background: var(--dark-mid); }

/* ─────────────────────────────────────────
   FOCUS RINGS
───────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─────────────────────────────────────────
   MODAL
───────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: oklch(10% 0.012 165 / 0.85); backdrop-filter: blur(10px);
}
.modal-card {
  position: relative; background: var(--surface); border-radius: 16px;
  padding: 3rem; width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto; z-index: 1;
  box-shadow: 0 32px 80px oklch(10% 0.012 165 / 0.3);
  border: 1px solid var(--rule);
}
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.25rem; color: var(--ink-soft); line-height: 1;
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--surface-alt); color: var(--ink); }
.modal-header-label {
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.875rem; font-weight: 600;
}
.modal-title {
  font-family: 'Inter', sans-serif; font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 0.5rem;
  line-height: 1.2;
}
.modal-title em { font-style: italic; color: var(--ink-mid); font-weight: 400; }
.modal-sub { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 2rem; }
.modal-success { display: none; text-align: center; padding: 2rem 0; }

/* ─────────────────────────────────────────
   FORMS
───────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.875rem; }
.form-group { margin-bottom: 0.875rem; }
.form-group label {
  display: block; font-size: 0.75rem; color: var(--ink-mid);
  margin-bottom: 0.375rem; font-weight: 500; letter-spacing: -0.005em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--surface-alt); border: 1px solid var(--rule-md);
  border-radius: 8px; padding: 0.6875rem 0.875rem; color: var(--ink);
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 400;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-soft); }
.form-group textarea { min-height: 90px; resize: vertical; }
.btn-submit {
  width: 100%; background: var(--ink); color: var(--text-light);
  padding: 0.8125rem; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.9375rem; font-weight: 500;
  letter-spacing: -0.01em; border: none; cursor: pointer;
  transition: background 0.15s; margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--dark-mid); }

/* ─────────────────────────────────────────
   SCROLL FADE
───────────────────────────────────────── */
.fade {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
}
.fade.on { opacity: 1; transform: none; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--rule-dark);
  padding: 2.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-logo {
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.02em;
  color: var(--text-light); text-decoration: none;
}
.footer-location { font-size: 0.75rem; color: var(--text-light-soft); margin-top: 0.125rem; }
.footer-copy { font-size: 0.75rem; color: var(--text-light-soft); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.8125rem; color: var(--text-light-soft);
  text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-light-mid); }

/* ─────────────────────────────────────────
   RESPONSIVE — SHARED
───────────────────────────────────────── */
@media (max-width: 960px) {
  nav#nav { padding: 1rem 2rem; }
  .nav-links { gap: 1.5rem; }
}
@media (max-width: 768px) {
  nav#nav { padding: 1rem 1.5rem; }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-links { display: none; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .float-btn { bottom: 1.25rem; right: 1.25rem; }
  .modal-card { padding: 2rem 1.25rem; border-radius: 12px; }
}

/* ─────────────────────────────────────────
   DEMO ENGINE — live operations feed
   One renderer, nine scripts (demo-engine.js)
───────────────────────────────────────── */
.demo-feed {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 0 0 1px oklch(20% 0.012 160 / 0.08),
    0 24px 60px oklch(10% 0.012 165 / 0.45),
    0 8px 20px oklch(10% 0.012 165 / 0.25);
  font-variant-numeric: tabular-nums;
}
.demo-feed--flat {
  border-radius: 20px;
  box-shadow:
    0 0 0 1px var(--rule),
    0 2px 6px oklch(20% 0.012 160 / 0.05),
    0 24px 64px oklch(20% 0.012 160 / 0.12),
    0 0 90px var(--accent-muted);
}

/* Typing indicator — the teammate is "thinking" before it speaks */
.df-typing {
  display: none;
  align-items: center; gap: 4px;
  align-self: flex-start;
  margin-left: 5rem;
  padding: 0.5625rem 0.875rem;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: 12px 12px 12px 3px;
}
.df-typing.on { display: inline-flex; }
.df-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-soft);
  animation: typingDot 1.1s ease-in-out infinite;
}
.df-typing span:nth-child(2) { animation-delay: 0.15s; }
.df-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-3px); }
}
.df-header {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.625rem;
}
.df-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage); flex-shrink: 0;
  animation: dfPulse 2s ease-in-out infinite;
}
@keyframes dfPulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(60% 0.052 158 / 0.5); }
  50%      { box-shadow: 0 0 0 5px oklch(60% 0.052 158 / 0); }
}
.df-agent {
  flex: 1;
  font-size: 0.75rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink-mid);
}
.df-agent span { color: var(--ink-soft); font-weight: 400; }
.df-live-label {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--sage);
}
.df-events {
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  min-height: 240px;
}
.df-event {
  display: flex; gap: 0.75rem; align-items: flex-start;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s var(--ease-expo), transform 0.35s var(--ease-expo);
}
.df-event.on { opacity: 1; transform: none; }
.df-time {
  font-size: 0.6875rem; color: var(--ink-soft);
  flex-shrink: 0; width: 4.25rem; padding-top: 0.125rem;
  letter-spacing: -0.005em;
}
.df-body { flex: 1; min-width: 0; }
.df-event--inbound .df-body {
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: 10px 10px 10px 3px;
  padding: 0.5rem 0.75rem;
}
.df-who {
  font-size: 0.6875rem; font-weight: 600; color: var(--ink-mid);
  margin-bottom: 0.125rem;
}
.df-text {
  font-size: 0.8125rem; line-height: 1.5; color: var(--ink);
  letter-spacing: -0.005em;
}
.df-event--action .df-text { color: var(--ink-mid); }
.df-event--action .df-text::before {
  content: '✓'; color: var(--sage); font-weight: 700;
  margin-right: 0.45rem;
}
.df-event--result .df-body {
  border-left: 3px solid var(--accent);
  padding-left: 0.625rem;
}
.df-event--result .df-text { font-weight: 600; color: var(--ink); }
.df-event--result.on { animation: dfPop 0.4s var(--ease-expo); }
@keyframes dfPop {
  0%   { transform: translateY(8px) scale(0.98); }
  60%  { transform: translateY(0) scale(1.012); }
  100% { transform: none; }
}
.df-punchline {
  border-top: 1px solid var(--rule);
  background: var(--surface-alt);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem; font-weight: 600; font-style: italic;
  color: var(--ink-mid); letter-spacing: -0.01em;
  opacity: 0; transition: opacity 0.5s var(--ease-expo);
  min-height: 2.75rem;
}
.df-punchline.on { opacity: 1; }

/* Vertical chips that drive the feed */
.demo-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.demo-chip {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  border-radius: 100px;
  border: 1px solid var(--rule-md);
  background: var(--surface);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem; font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink-mid); cursor: pointer;
  transition: background 0.15s var(--ease-quart), border-color 0.15s, color 0.15s;
}
.demo-chip:hover { background: var(--surface-alt); }
.demo-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .df-event, .df-punchline { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .df-live-dot { animation: none; }
}

/* ─────────────────────────────────────────
   MISSION CONTROL DASHBOARD (shared component)
───────────────────────────────────────── */
/* ─── MISSION CONTROL ─── */
.mc-section {
    position: relative; overflow: hidden;
    background: var(--dark);
    padding: 7rem 0;
    border-top: 1px solid var(--rule-dark);
}
.mc-section::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 55% 60% at 80% 10%,
        oklch(38% 0.055 130 / 0.5) 0%, transparent 65%);
}
.mc-inner { position: relative; z-index: 1; }
.mc-head { max-width: 560px; margin-bottom: 3rem; }
.mc-label {
    font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ember);
    display: block; margin-bottom: 1rem;
}
.mc-head h2 {
    color: var(--text-light);
    font-size: clamp(1.875rem, 3.25vw, 2.5rem);
    letter-spacing: -0.045em; line-height: 1.1;
    margin-bottom: 0.875rem;
}
.mc-head p {
    font-size: 1rem; color: var(--text-light-mid); line-height: 1.75;
    letter-spacing: -0.005em;
}
.mc-head p strong { color: var(--text-light); font-weight: 600; }

.mc-dash {
    background: oklch(21% 0.022 162 / 0.8);
    border: 1px solid oklch(96% 0.010 105 / 0.12);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 32px 80px oklch(8% 0.010 165 / 0.6);
    font-variant-numeric: tabular-nums;
}
.mc-bar {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--rule-dark);
}
.mc-bar-dots { display: flex; gap: 5px; }
.mc-bar-dot { width: 9px; height: 9px; border-radius: 50%; background: oklch(96% 0.010 105 / 0.15); }
.mc-bar-title { flex: 1; font-size: 0.75rem; font-weight: 500; color: var(--text-light-mid); letter-spacing: -0.005em; }
.mc-bar-live { display: flex; align-items: center; gap: 0.375rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; color: var(--sage); }
.mc-bar-live .df-live-dot { width: 6px; height: 6px; }

.mc-metrics {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--rule-dark);
}
.mc-metric {
    padding: 1.5rem 1.5rem 1.375rem;
    border-right: 1px solid var(--rule-dark);
}
.mc-metric:last-child { border-right: none; }
.mc-metric-val {
    display: block;
    font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700;
    letter-spacing: -0.04em; color: var(--text-light); line-height: 1.1;
}
.mc-metric-label {
    display: block; margin-top: 0.375rem;
    font-size: 0.75rem; color: var(--text-light-soft); letter-spacing: -0.005em;
}
.mc-metric-delta {
    display: inline-block; margin-top: 0.5rem;
    font-size: 0.6875rem; font-weight: 600; color: var(--sage);
}

.mc-body {
    display: grid; grid-template-columns: 1.2fr 1fr;
}
.mc-chart { padding: 1.5rem; border-right: 1px solid var(--rule-dark); }
.mc-panel-title {
    font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--text-light-soft);
    display: block; margin-bottom: 1rem;
}
.mc-spark { width: 100%; height: auto; display: block; }
.mc-spark .spark-line {
    fill: none; stroke: oklch(74% 0.12 148); stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
}
.mc-spark .spark-fill { opacity: 0; transition: opacity 1s var(--ease-expo) 1.2s; }
.mc-on .mc-spark .spark-fill { opacity: 1; }
.mc-spark .spark-line {
    stroke-dasharray: 1; stroke-dashoffset: 1;
}
.mc-on .mc-spark .spark-line { animation: sparkDraw 1.8s var(--ease-quart) 0.3s forwards; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
.mc-chart-foot {
    display: flex; justify-content: space-between; margin-top: 0.625rem;
    font-size: 0.6875rem; color: var(--text-light-soft);
}

.mc-activity { padding: 1.5rem; }
.mc-rows { display: flex; flex-direction: column; gap: 0.875rem; }
.mc-row {
    display: flex; align-items: baseline; gap: 0.625rem;
    font-size: 0.8125rem; color: var(--text-light-mid); letter-spacing: -0.005em;
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.4s var(--ease-expo), transform 0.4s var(--ease-expo);
}
.mc-on .mc-row { opacity: 1; transform: none; }
.mc-on .mc-row:nth-child(1) { transition-delay: 0.5s; }
.mc-on .mc-row:nth-child(2) { transition-delay: 0.8s; }
.mc-on .mc-row:nth-child(3) { transition-delay: 1.1s; }
.mc-on .mc-row:nth-child(4) { transition-delay: 1.4s; }
.mc-row-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--sage); flex-shrink: 0; align-self: center;
}
.mc-row-time { margin-left: auto; font-size: 0.6875rem; color: var(--text-light-soft); flex-shrink: 0; }

.mc-agents {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--rule-dark);
}
.mc-agent {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.3125rem 0.75rem; border-radius: 100px;
    border: 1px solid var(--rule-dark);
    font-size: 0.6875rem; font-weight: 500; color: var(--text-light-mid);
}
.mc-agent-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }

.mc-note {
    margin-top: 1.5rem;
    font-size: 0.875rem; color: var(--text-light-soft);
    letter-spacing: -0.005em; text-align: center;
}
.mc-note strong { color: var(--text-light-mid); font-weight: 600; }

@media (max-width: 960px) {
    .mc-metrics { grid-template-columns: 1fr 1fr; }
    .mc-metric:nth-child(2) { border-right: none; }
    .mc-metric:nth-child(-n+2) { border-bottom: 1px solid var(--rule-dark); }
    .mc-body { grid-template-columns: 1fr; }
    .mc-chart { border-right: none; border-bottom: 1px solid var(--rule-dark); }
}

/* Bar-chart variant — weekly report flavor (work.html featured card) */
.mc-bars {
    display: flex; align-items: flex-end; gap: 6px;
    height: 110px;
}
.mc-bars span {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top,
        oklch(68% 0.13 150 / 0.25),
        oklch(70% 0.13 150));
    height: calc(var(--h) * 1%);
    transform: scaleY(0); transform-origin: bottom;
    transition: transform 0.7s var(--ease-quart);
    transition-delay: calc(var(--d) * 60ms + 200ms);
}
.mc-bars span.hot { background: linear-gradient(to top, oklch(68% 0.13 150 / 0.5), oklch(76% 0.12 148)); }
.mc-on .mc-bars span { transform: scaleY(1); }

/* Insight rows — amber flag dots */
.mc-row-dot--amber { background: oklch(82% 0.11 85); }

/* ── LUX variant — futuristic client-report treatment ── */
@property --mc-ang {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.mc-lux {
    position: relative;
    border-radius: 19px;
    padding: 1px;
}
.mc-lux::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 19px;
    padding: 1px;
    background: conic-gradient(from var(--mc-ang),
        transparent 0%,
        oklch(68% 0.13 150 / 0.7) 10%,
        transparent 28%,
        transparent 55%,
        oklch(84% 0.08 95 / 0.45) 70%,
        transparent 85%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: mcSpin 9s linear infinite;
    pointer-events: none;
}
@keyframes mcSpin { to { --mc-ang: 360deg; } }
.mc-lux .mc-dash {
    position: relative;
    border: 1px solid transparent;
    box-shadow: 0 24px 80px oklch(8% 0.010 165 / 0.6),
                0 0 90px oklch(68% 0.13 150 / 0.18);
}
/* One light sweep across the glass when the card wakes up */
.mc-dash--lux::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg,
        transparent 42%, oklch(96% 0.010 105 / 0.07) 50%, transparent 58%);
    transform: translateX(-130%);
}
.mc-dash--lux.mc-on::after { animation: mcSweep 1.6s var(--ease-quart) 1.1s forwards; }
@keyframes mcSweep { to { transform: translateX(130%); } }

/* Score ring — gauge that draws itself */
.mc-hero-row {
    display: grid; grid-template-columns: 132px repeat(3, 1fr);
    align-items: stretch;
    border-bottom: 1px solid var(--rule-dark);
}
.mc-hero-row .mc-metric { border-bottom: none; display: flex; flex-direction: column; justify-content: center; }
.mc-ring-cell {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.25rem; padding: 1rem 0.75rem;
    border-right: 1px solid var(--rule-dark);
}
.mc-ring-wrap { position: relative; width: 88px; height: 88px; }
.mc-ring { width: 88px; height: 88px; transform: rotate(-90deg); display: block; }
.mc-ring-bg { fill: none; stroke: oklch(96% 0.010 105 / 0.08); stroke-width: 6; }
.mc-ring-fg {
    fill: none; stroke: url(#mcRingGrad); stroke-width: 6; stroke-linecap: round;
    stroke-dasharray: 264; stroke-dashoffset: 264;
    filter: drop-shadow(0 0 6px oklch(70% 0.13 150 / 0.55));
    transition: stroke-dashoffset 1.8s var(--ease-quart) 0.35s;
}
.mc-on .mc-ring-fg { stroke-dashoffset: 15.8; }   /* 94% of 264 */
.mc-ring-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mc-ring-val {
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.04em;
    color: var(--text-light); line-height: 1;
}
.mc-ring-cap {
    margin-top: 0.2rem;
    font-size: 0.5rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-light-soft);
}

/* Bars on a faint grid, hot bar glows */
.mc-dash--lux .mc-bars {
    background: repeating-linear-gradient(to top,
        oklch(96% 0.010 105 / 0.045) 0 1px, transparent 1px 26px);
}
.mc-dash--lux .mc-bars span.hot {
    box-shadow: 0 0 16px oklch(70% 0.13 150 / 0.55);
}

/* Shimmering AI-insight footer */
.mc-insight {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--rule-dark);
    font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.01em;
}
.mc-insight-star { color: var(--ember); flex-shrink: 0; }
.mc-insight-text {
    background: linear-gradient(90deg,
        oklch(84% 0.06 120), oklch(95% 0.025 110),
        oklch(84% 0.08 100), oklch(84% 0.06 120));
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: mcShimmer 4.5s linear infinite;
}
@keyframes mcShimmer { to { background-position: -200% 0; } }

@media (max-width: 640px) {
    .mc-hero-row { grid-template-columns: repeat(3, 1fr); }
    .mc-ring-cell {
        grid-column: 1 / -1;
        flex-direction: row; gap: 1rem;
        border-right: none; border-bottom: 1px solid var(--rule-dark);
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-lux::before { animation: none; }
    .mc-dash--lux::after { display: none; }
    .mc-ring-fg { transition: none; }
    .mc-insight-text {
        animation: none;
        background: none; color: var(--text-light-mid);
        -webkit-background-clip: border-box; background-clip: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-spark .spark-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
    .mc-spark .spark-fill, .mc-row { opacity: 1; transform: none; transition: none; }
    .mc-bars span { transform: none; transition: none; }
}

/* 3-metric variant (work.html featured card) */
.mc-metrics--3 { grid-template-columns: repeat(3, 1fr); }
.mc-dash--compact .mc-metric { padding: 1.125rem 1.125rem 1rem; }
.mc-dash--compact .mc-metric-val { font-size: 1.375rem; }
.mc-dash--compact .mc-chart, .mc-dash--compact .mc-activity { padding: 1.125rem; }

/* Dark-surface chips (work.html demo band) */
.demo-chips--dark .demo-chip {
  background: transparent;
  border-color: var(--rule-dark);
  color: var(--text-light-mid);
}
.demo-chips--dark .demo-chip:hover { background: oklch(96% 0.010 105 / 0.06); }
.demo-chips--dark .demo-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─────────────────────────────────────────
   PERMISSION MOTIF — ask & reply events
───────────────────────────────────────── */
.df-event--ask .df-body {
  background: #fff;
  border: 1px solid oklch(54% 0.125 152 / 0.3);
  border-radius: 14px 14px 14px 4px;
  padding: 0.75rem 0.9375rem;
  box-shadow:
    0 4px 16px oklch(54% 0.125 152 / 0.14),
    0 1px 3px oklch(20% 0.012 160 / 0.06);
}
.df-pill--yes.picked {
  box-shadow: 0 0 14px oklch(54% 0.125 152 / 0.45);
}
.df-event--ask .df-text { color: var(--ink); font-size: 0.875rem; line-height: 1.5; }
.df-ask-pills { display: flex; gap: 0.375rem; margin-top: 0.625rem; }
.df-pill {
  font-family: var(--font-ui); font-style: normal;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: -0.005em;
  padding: 0.25rem 0.75rem; border-radius: 100px;
  border: 1px solid var(--rule-md); color: var(--ink-mid);
  background: var(--surface);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-expo);
}
.df-pill--yes.picked {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: scale(1.06);
}
.df-event--reply { justify-content: flex-end; }
.df-event--reply .df-body {
  flex: 0 0 auto; max-width: 60%;
  background: var(--ink); color: var(--surface);
  border-radius: 12px 12px 3px 12px;
  padding: 0.4375rem 0.875rem;
}
.df-event--reply .df-text { color: var(--surface); font-weight: 600; font-size: 0.8125rem; }

/* ─────────────────────────────────────────
   HERO SMS CARD — the teammate texts you
───────────────────────────────────────── */
.sms-card {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px oklch(20% 0.012 160 / 0.08),
    0 24px 60px oklch(10% 0.012 165 / 0.5),
    0 8px 20px oklch(10% 0.012 165 / 0.3);
}
.sms-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--rule);
}
.sms-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-voice); font-style: italic;
  font-size: 1rem; font-weight: 600; flex-shrink: 0;
}
.sms-id { flex: 1; min-width: 0; }
.sms-name { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.sms-sub { display: block; font-size: 0.6875rem; color: var(--ink-soft); }
.sms-status { display: flex; align-items: center; gap: 0.375rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; color: var(--sage); }
.sms-thread {
  padding: 1.125rem; display: flex; flex-direction: column; gap: 0.625rem;
  min-height: 240px;
}
.sms-day {
  align-self: center; font-size: 0.65rem; font-weight: 500;
  color: var(--ink-soft); letter-spacing: 0.02em;
}
.sms-msg { max-width: 88%; opacity: 0; }
.sms-msg--them { align-self: flex-start; }
.sms-msg--me { align-self: flex-end; }
.sms-bubble {
  padding: 0.625rem 0.875rem; font-size: 0.84375rem; line-height: 1.55;
  letter-spacing: -0.005em;
}
.sms-msg--them .sms-bubble {
  background: var(--surface-alt); border: 1px solid var(--rule);
  border-radius: 14px 14px 14px 4px; color: var(--ink);
}
.sms-msg--them .sms-bubble.voice { font-size: 0.9375rem; }
.sms-msg--me .sms-bubble {
  background: var(--accent); color: #fff;
  border-radius: 14px 14px 4px 14px; font-weight: 600;
}
.sms-pills { display: flex; gap: 0.375rem; margin-top: 0.625rem; }
@keyframes smsIn {
  0%   { opacity: 0; transform: translateY(10px) scale(0.96); }
  70%  { opacity: 1; transform: translateY(-1px) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
.sms-card .sms-msg.m1 { animation: smsIn 0.5s var(--ease-expo) 1.1s both; }
.sms-card .sms-msg.m2 { animation: smsIn 0.5s var(--ease-expo) 2.0s both; }
.sms-card .sms-msg.m3 { animation: smsIn 0.5s var(--ease-expo) 3.1s both; }
.sms-card .sms-msg.m4 { animation: smsIn 0.5s var(--ease-expo) 4.6s both; }
.sms-card .df-pill--yes { animation: smsPick 0.3s var(--ease-expo) 2.85s both; }
@keyframes smsPick {
  from { background: var(--surface); color: var(--ink-mid); }
  to   { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.06); }
}

/* Typing bubbles inside the hero thread */
.sms-typing {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0.625rem 0.875rem;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: 14px 14px 14px 4px;
  opacity: 0;
}
.sms-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-soft);
  animation: typingDot 1.1s ease-in-out infinite;
}
.sms-typing span:nth-child(2) { animation-delay: 0.15s; }
.sms-typing span:nth-child(3) { animation-delay: 0.3s; }
.sms-typing.t1 { animation: smsTypeShow 0.8s linear 0.3s both; }
.sms-typing.t2 { animation: smsTypeShow 1.2s linear 3.4s both; }
@keyframes smsTypeShow {
  0%   { opacity: 0; height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
  8%   { opacity: 1; height: auto; padding-top: 0.625rem; padding-bottom: 0.625rem; border-width: 1px; }
  92%  { opacity: 1; height: auto; padding-top: 0.625rem; padding-bottom: 0.625rem; border-width: 1px; }
  100% { opacity: 0; height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
}

/* Delivered receipt under the owner's reply */
.sms-receipt {
  align-self: flex-end;
  font-size: 0.625rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin-top: -0.25rem;
  animation: smsIn 0.4s var(--ease-expo) 3.7s both;
}
.sms-foot {
  border-top: 1px solid var(--rule);
  background: var(--surface-alt);
  padding: 0.6875rem 1.125rem;
  font-size: 0.6875rem; color: var(--ink-soft); letter-spacing: -0.005em;
  display: flex; justify-content: space-between;
}

/* ─────────────────────────────────────────
   CAPABILITY MARQUEE
───────────────────────────────────────── */
.marquee-section {
  background: var(--surface);
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--rule);
}
.marquee-head {
  text-align: center; max-width: 480px; margin: 0 auto 2.5rem; padding: 0 1.5rem;
}
.marquee-head p {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 0.875rem; }
.marquee-track {
  display: flex; gap: 0.875rem; width: max-content;
  animation: marqueeL 56s linear infinite;
}
.marquee--reverse .marquee-track { animation-name: marqueeR; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeL { to { transform: translateX(-50%); } }
@keyframes marqueeR { from { transform: translateX(-50%); } to { transform: none; } }
.cap-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
  padding: 0.625rem 1.125rem; border-radius: 100px;
  border: 1px solid var(--rule-md);
  background: var(--surface);
  font-size: 0.875rem; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink-mid);
}
.cap-chip::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage); flex-shrink: 0;
}
.cap-chip--ask { border-color: oklch(54% 0.125 152 / 0.4); color: var(--ink); }
.cap-chip--ask::before { background: var(--accent); }

/* ─────────────────────────────────────────
   SCENARIO TABS — a week with your teammate
───────────────────────────────────────── */
.scenario-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin-bottom: 2.25rem;
}

/* ─────────────────────────────────────────
   INTEGRATIONS — logo wall
───────────────────────────────────────── */
.logo-wall-section {
  background: var(--surface-alt);
  padding: 6.5rem 0;
  border-top: 1px solid var(--rule);
}
.logo-wall-head { max-width: 520px; margin-bottom: 3rem; }
.logo-wall-head h2 { margin-bottom: 0.75rem; }
.logo-wall-head p { font-size: 1rem; color: var(--ink-soft); line-height: 1.7; letter-spacing: -0.005em; }
.logo-wall {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 16px; overflow: hidden;
}
.logo-tile {
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 2rem 1rem; min-height: 122px;
  transition: background 0.2s;
}
.logo-tile:hover { background: #fff; }
.logo-tile img {
  height: 30px; width: auto; max-width: 72px; object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.25s var(--ease-quart), transform 0.25s var(--ease-quart);
}
.logo-tile:hover img { filter: none; transform: scale(1.06); }
.logo-tile span { font-size: 0.6875rem; font-weight: 500; color: var(--ink-soft); letter-spacing: -0.005em; }
.logo-tile--more span { font-size: 0.8125rem; color: var(--ink-mid); font-weight: 600; text-align: center; line-height: 1.5; }
@media (max-width: 1024px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .logo-wall { grid-template-columns: repeat(3, 1fr); } .logo-tile { min-height: 104px; padding: 1.5rem 0.75rem; } .logo-tile img { height: 26px; } }

/* ─────────────────────────────────────────
   PENDING APPROVAL — inside the weekly record
───────────────────────────────────────── */
.mc-pending {
  margin: 0 1.5rem 1.5rem;
  border: 1px solid oklch(86% 0.085 95 / 0.3);
  background: oklch(86% 0.085 95 / 0.07);
  border-radius: 12px;
  overflow: hidden;
}
.mc-pending-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  border-bottom: 1px solid var(--rule-dark);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ember);
}
.mc-pending-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ember);
  animation: dfPulse 2s ease-in-out infinite;
}
.mc-pending-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--rule-dark);
}
.mc-pending-item:last-child { border-bottom: none; }
.mc-pending-text {
  flex: 1; font-size: 0.8125rem; line-height: 1.5;
  color: var(--text-light-mid); letter-spacing: -0.005em;
}
.mc-pending-text .voice { color: var(--text-light); }
.mc-pending-actions { display: flex; gap: 0.375rem; flex-shrink: 0; }
.mc-pending-actions .df-pill {
  background: transparent; border-color: var(--rule-dark); color: var(--text-light-mid);
}
.mc-pending-actions .df-pill--yes { border-color: var(--ember); color: var(--ember); }

/* ─────────────────────────────────────────
   TRUST / GUARDRAILS
───────────────────────────────────────── */
.trust-section {
  background: var(--surface);
  padding: 6.5rem 0;
  border-top: 1px solid var(--rule);
}
.trust-head { max-width: 520px; margin-bottom: 3rem; }
.trust-head h2 { margin-bottom: 0.75rem; }
.trust-head p { font-size: 1rem; color: var(--ink-soft); line-height: 1.7; letter-spacing: -0.005em; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.trust-card {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.875rem;
  background: var(--surface);
}
.trust-card h3 {
  font-family: var(--font-voice); font-style: italic; font-weight: 600;
  font-size: 1.25rem; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 0.625rem;
}
.trust-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; letter-spacing: -0.005em; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .sms-msg { opacity: 1 !important; animation: none !important; }
  .sms-typing { display: none !important; animation: none !important; }
  .sms-receipt { opacity: 1 !important; animation: none !important; }
  .df-typing { display: none !important; }
  .sms-card .df-pill--yes { animation: none; background: var(--accent); border-color: var(--accent); color: #fff; }
  .mc-pending-dot { animation: none; }
}

/* ─────────────────────────────────────────
   MOBILE REFINEMENTS (shared components)
───────────────────────────────────────── */
@media (max-width: 640px) {
  /* Long chip sets become a swipeable row instead of a tall stack */
  .demo-chips--scroll {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 -1.5rem; padding: 0 1.5rem 0.5rem;
  }
  .demo-chips--scroll::-webkit-scrollbar { display: none; }
  .demo-chips--scroll .demo-chip { flex-shrink: 0; scroll-snap-align: start; }
}

@media (max-width: 480px) {
  /* Demo feed: reclaim horizontal space */
  .demo-feed { border-radius: 14px; }
  .df-events { padding: 0.875rem; gap: 0.625rem; min-height: 220px; }
  .df-time { width: 3.25rem; font-size: 0.625rem; }
  .df-text { font-size: 0.78125rem; }
  .df-punchline { padding: 0.625rem 0.875rem; font-size: 0.78125rem; }

  /* Mission-control dashboard: tighter cells, smaller numerals */
  .mc-dash { border-radius: 14px; }
  .mc-metric { padding: 1rem 1rem 0.875rem; }
  .mc-metric-val { font-size: 1.375rem; }
  .mc-metric-delta { font-size: 0.625rem; }
  .mc-chart, .mc-activity { padding: 1.125rem; }
  .mc-rows { gap: 0.75rem; }
  .mc-row { font-size: 0.75rem; }
  .mc-row-time { font-size: 0.625rem; }
  .mc-agents { padding: 0.875rem 1.125rem; gap: 0.375rem; }
  .mc-agent { font-size: 0.625rem; padding: 0.25rem 0.625rem; }
  .mc-bars { height: 90px; gap: 4px; }
}


/* ─────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade { opacity: 1 !important; transform: none !important; }
}
