/* Regency Flows — Hi-Fi Blueprint / HUD style
   Deep purple-black, monospace annotations, purple glow CTAs, variable weights.
*/

:root {
  --bg: #0B0614;
  --bg-2: #120828;
  --bg-3: #1a0d35;
  --panel: rgba(139, 92, 246, 0.04);
  --panel-hi: rgba(139, 92, 246, 0.08);
  --rule: rgba(167, 139, 250, 0.14);
  --rule-hi: rgba(167, 139, 250, 0.28);
  --grid: rgba(139, 92, 246, 0.07);
  --grid-major: rgba(139, 92, 246, 0.12);

  --ink: #EDE9FE;
  --ink-2: #C4B5FD;
  --ink-3: #8B7DB8;
  --ink-4: #5a4e7a;

  --accent: #8B5CF6;
  --accent-2: #A78BFA;
  --accent-soft: #6d45d8;
  --accent-glow: rgba(139, 92, 246, 0.55);

  --ok: #4ade80;

  --font-display: 'Inter', 'Geist', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ──────────── Global layout ──────────── */
.site {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* Blueprint grid overlay — tiled dots + thin lines */
.bp-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 90%);
  z-index: 0;
}

/* Ambient purple glow blobs */
.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.aura.a1 { width: 600px; height: 600px; background: #6d28d9; top: -200px; right: -150px; }
.aura.a2 { width: 520px; height: 520px; background: #4c1d95; top: 600px; left: -200px; opacity: 0.35; }
.aura.a3 { width: 500px; height: 500px; background: #7c3aed; top: 1600px; right: -100px; opacity: 0.3; }

/* Top HUD strip */
.hud-strip {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 32px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}
.hud-strip .live { color: var(--accent-2); }
.hud-strip .live::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-right: 8px;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ──────────── Nav ──────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 6, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #a78bfa 0%, var(--accent) 35%, #4c1d95 100%);
  display: grid; place-items: center;
  box-shadow:
    0 0 24px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(76,29,149,0.5), transparent 60%);
  pointer-events: none;
}
/* Faint blueprint grid inside the mark */
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  opacity: 0.5;
}
.logo-mark svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35));
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 13.5px;
  color: var(--ink-3);
  font-weight: 450;
}
.nav-links a { color: inherit; text-decoration: none; transition: color .15s; cursor: pointer; }
.nav-links a:hover { color: var(--ink); }

/* ──────────── Buttons ──────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: all .2s cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.25), 0 8px 24px -4px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.5), 0 12px 32px -4px var(--accent-glow), 0 0 40px -4px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px);
}
.btn.ghost {
  border-color: var(--rule-hi);
  color: var(--ink-2);
  background: rgba(139, 92, 246, 0.03);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 24px -8px var(--accent-glow);
}

/* ──────────── Section shell ──────────── */
.section {
  padding: 120px 32px;
  position: relative;
  z-index: 1;
}
.section-head {
  margin-bottom: 56px;
  position: relative;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 1px; background: var(--accent-2);
}

/* Heading — variable font weights */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.035em; }
h1 {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 300;
  line-height: 0.98;
  color: var(--ink);
}
h1 .em { font-weight: 600; background: linear-gradient(180deg, #fff 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 .em { font-weight: 600; background: linear-gradient(180deg, #fff 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
h4 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }

p { margin: 0; color: var(--ink-2); font-weight: 400; line-height: 1.6; font-size: 15.5px; }

.lead {
  font-size: 19px;
  color: var(--ink);
  max-width: 580px;
  line-height: 1.55;
  font-weight: 350;
}

/* Monospace HUD labels */
.hud-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hud-label.accent { color: var(--accent-2); }
.coord {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
}

/* Corner brackets for technical framing */
.brackets {
  position: relative;
}
.brackets::before, .brackets::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--accent);
  pointer-events: none;
}
.brackets::before { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.brackets::after { bottom: -5px; right: -5px; border-left: none; border-top: none; }

/* Panels / cards */
.panel {
  background: linear-gradient(180deg, rgba(139,92,246,0.06) 0%, rgba(139,92,246,0.02) 100%);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.panel:hover {
  border-color: var(--rule-hi);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.12), 0 20px 40px -20px rgba(139,92,246,0.3);
}
.panel.glow {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.3), 0 0 40px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Grid helpers */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.row { display: flex; gap: 12px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 12px; }

/* Ticks / scales */
.tick-row {
  display: flex;
  align-items: flex-end;
  height: 12px;
  gap: 4px;
  margin-top: 8px;
}
.tick-row span {
  width: 1px; background: var(--rule-hi);
}

/* ──────────── Hero specifics ──────────── */
.hero {
  position: relative;
  padding: 96px 32px 140px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(139,92,246,0.04);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

/* Phone / call card in hero */
.call-card {
  position: relative;
  background: linear-gradient(180deg, rgba(26,13,53,0.7) 0%, rgba(11,6,20,0.9) 100%);
  border: 1px solid var(--rule-hi);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.1),
    0 40px 80px -20px rgba(76, 29, 149, 0.6),
    0 0 80px -20px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.call-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(167,139,250,0.4), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Waveform container */
.wave-wrap {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 12px 0;
}
.wave-wrap .bar {
  flex: 1;
  background: var(--accent-2);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--accent-glow);
  transform-origin: center;
}

/* Trust strip */
.trust-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Voice showcase cards */
.voice-card {
  position: relative;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  cursor: pointer;
}
.voice-card .scenario {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.play-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--panel-hi);
  border: 1px solid var(--rule-hi);
  display: grid; place-items: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: all .2s;
}
.panel:hover .play-btn,
.voice-card:hover .play-btn {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.panel.glow .play-btn {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Services icons */
.svc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(139,92,246,0.15), rgba(139,92,246,0.04));
  border: 1px solid var(--rule-hi);
  display: grid; place-items: center;
  color: var(--accent-2);
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* How it works */
.step-node {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: rgba(11,6,20,0.6);
  backdrop-filter: blur(8px);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.step-connector {
  position: absolute;
  top: 50%;
  right: -20px;
  width: 20px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}
.step-connector::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 0; height: 0;
  border-left: 6px solid var(--accent);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}

/* Case study stat */
.case-stat {
  font-size: 72px;
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--accent-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 24px 0 8px;
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
  cursor: pointer;
  transition: padding .2s;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq-q h4 { font-size: 17px; color: var(--ink); font-weight: 500; }
.faq-chev {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--rule-hi);
  display: grid; place-items: center;
  color: var(--accent-2);
  transition: transform .2s, background .2s;
  flex-shrink: 0;
}
.faq-item.open .faq-chev { transform: rotate(180deg); background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, margin .3s ease;
}
.faq-item.open .faq-a {
  max-height: 200px;
  margin-top: 14px;
}
.faq-a p { max-width: 620px; font-size: 15px; }

/* CTA slab */
.cta-slab {
  position: relative;
  padding: 100px 40px;
  text-align: center;
  border: 1px solid var(--rule-hi);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.25), transparent 60%),
    linear-gradient(180deg, rgba(26,13,53,0.6), rgba(11,6,20,0.9));
  overflow: hidden;
}
.cta-slab .bp-grid { opacity: 0.5; }
.cta-slab .calbox {
  margin: 40px auto 0;
  max-width: 560px;
  padding: 24px;
  border: 1px dashed var(--rule-hi);
  border-radius: 14px;
  background: rgba(11,6,20,0.5);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Footer */
.footer {
  padding: 60px 32px 40px;
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer a { color: var(--ink-3); text-decoration: none; font-size: 13.5px; }
.footer a:hover { color: var(--ink); }
.footer-legal { display: inline-flex; gap: 10px; align-items: center; }
.footer-legal a { color: var(--ink-3); text-decoration: none; transition: color .15s; cursor: pointer; }
.footer-legal a:hover { color: var(--accent-2); }
.footer-legal .sep { color: var(--ink-4); }
.footer-legal .status-dot { color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.footer-legal .status-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}
.footer-bot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}

/* Stat tiles */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 48px;
  background: rgba(139,92,246,0.02);
}
.stat-cell {
  padding: 20px 24px;
  border-right: 1px solid var(--rule);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .num {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-cell .num .unit { color: var(--accent-2); font-weight: 400; }
.stat-cell .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

/* Animation: waveform bars */
@keyframes waveBar {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
.wave-wrap.live .bar {
  animation: waveBar 1.2s ease-in-out infinite;
}

/* Case study modal fade */
@keyframes caseFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tiny phone call transcript line bubbles */
.tx-line {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
  align-items: flex-start;
}
.tx-line .who {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  width: 52px;
  flex-shrink: 0;
  padding-top: 2px;
}
.tx-line.ai .who { color: var(--accent-2); }


/* Utility */
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.accent { color: var(--accent-2); }
.mono { font-family: var(--font-mono); }

/* ──────── TWEAK MODES ──────── */

/* SIGNAL INTENSITY — scales aura, grid, glow, pulse speeds */
[data-signal="calm"] {
  --accent-glow: rgba(139, 92, 246, 0.25);
  --grid: rgba(139, 92, 246, 0.03);
  --grid-major: rgba(139, 92, 246, 0.06);
}
[data-signal="calm"] .aura { opacity: 0.18 !important; filter: blur(160px); }
[data-signal="calm"] .bp-grid { opacity: 0.5; }
[data-signal="calm"] .wave-wrap.live .bar { animation-duration: 2.2s; }
[data-signal="calm"] .pill .dot,
[data-signal="calm"] .hud-strip .live::before { animation-duration: 3s; }

[data-signal="alert"] {
  --accent-glow: rgba(139, 92, 246, 0.8);
  --grid: rgba(139, 92, 246, 0.12);
  --grid-major: rgba(139, 92, 246, 0.22);
}
[data-signal="alert"] .aura { opacity: 0.8 !important; filter: blur(90px); }
[data-signal="alert"] .bp-grid { background-size: 32px 32px; }
[data-signal="alert"] .wave-wrap.live .bar { animation-duration: 0.6s; }
[data-signal="alert"] .pill .dot,
[data-signal="alert"] .hud-strip .live::before { animation-duration: 0.9s; }
[data-signal="alert"] .call-card,
[data-signal="alert"] .panel.glow {
  box-shadow: 0 0 0 1px rgba(139,92,246,0.4), 0 0 80px -10px var(--accent-glow), 0 0 160px -30px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-signal="alert"] .btn.primary {
  box-shadow: 0 0 0 1px rgba(167,139,250,0.5), 0 12px 32px -4px var(--accent-glow), 0 0 60px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* CHROME DENSITY — hide/show HUD furniture */
[data-chrome="minimal"] .hud-strip,
[data-chrome="minimal"] .coord,
[data-chrome="minimal"] .stat-row,
[data-chrome="minimal"] .brackets::before,
[data-chrome="minimal"] .brackets::after,
[data-chrome="minimal"] .bp-grid,
[data-chrome="minimal"] .eyebrow::before,
[data-chrome="minimal"] .footer-bot,
[data-chrome="minimal"] .hud-label {
  display: none !important;
}
[data-chrome="minimal"] .aura { opacity: 0.25 !important; }
[data-chrome="minimal"] .section { padding: 96px 32px; }

[data-chrome="mission"] .section-head::after {
  content: 'RF-OPS / PRIMARY';
  position: absolute;
  top: 0; right: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  opacity: 0.55;
}
[data-chrome="mission"] .site::before {
  content: 'RF-OPS // INBOUND CALL ROUTING // NODE 07';
  position: fixed;
  top: 50%; right: 8px;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right top;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--ink-4);
  z-index: 5;
  pointer-events: none;
}
[data-chrome="mission"] .site::after {
  content: '// READ.ME — all systems nominal';
  position: fixed;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
  z-index: 5;
  pointer-events: none;
}

/* ACCENT MODE — swap the whole palette */
[data-accent="aurora"] {
  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --accent-soft: #0891b2;
  --accent-glow: rgba(34, 211, 238, 0.55);
  --grid: rgba(34, 211, 238, 0.07);
  --grid-major: rgba(34, 211, 238, 0.14);
  --rule-hi: rgba(103, 232, 249, 0.28);
}
[data-accent="aurora"] .logo-mark { background: linear-gradient(135deg, #22d3ee 0%, #0e7490 100%); }
[data-accent="aurora"] .aura.a1 { background: #0891b2; }
[data-accent="aurora"] .aura.a2 { background: #155e75; }
[data-accent="aurora"] .aura.a3 { background: #22d3ee; }
[data-accent="aurora"] h1 .em, [data-accent="aurora"] h2 .em {
  background: linear-gradient(180deg, #fff 0%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text;
}
[data-accent="aurora"] .case-stat {
  background: linear-gradient(180deg, #fff 0%, #67e8f9 80%);
  -webkit-background-clip: text; background-clip: text;
}

[data-accent="mono"] {
  --accent: #e5e5f0;
  --accent-2: #ffffff;
  --accent-soft: #a5a5b8;
  --accent-glow: rgba(255, 255, 255, 0.3);
  --grid: rgba(255, 255, 255, 0.04);
  --grid-major: rgba(255, 255, 255, 0.08);
  --rule-hi: rgba(255, 255, 255, 0.18);
  --bg: #09090c;
}
[data-accent="mono"] .logo-mark { background: linear-gradient(135deg, #2a2a35 0%, #0a0a10 100%); border: 1px solid rgba(255,255,255,0.18); }
[data-accent="mono"] .aura { opacity: 0.12 !important; background: #ffffff !important; }
[data-accent="mono"] .btn.primary { background: #fff; color: #09090c; }
[data-accent="mono"] .btn.primary:hover { background: #e5e5f0; }
[data-accent="mono"] h1 .em, [data-accent="mono"] h2 .em {
  background: linear-gradient(180deg, #fff 0%, #a5a5b8 100%);
  -webkit-background-clip: text; background-clip: text;
}
[data-accent="mono"] .case-stat {
  background: linear-gradient(180deg, #fff 0%, #a5a5b8 80%);
  -webkit-background-clip: text; background-clip: text;
}

/* ──────────────────────────────────────────────
   RESPONSIVE — TABLET & MOBILE
   ────────────────────────────────────────────── */

/* Mobile nav toggle is hidden on desktop */
.nav .nav-toggle { display: none; }

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .section { padding: 88px 28px; }
  [data-chrome="minimal"] .section { padding: 72px 24px; }
  .hero { padding: 32px 28px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .nav { padding: 18px 28px; }
  /* FAQ side-by-side becomes stacked */
  section[id="faq"] > div[style*="grid-template-columns: 1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* Case modal results 4-col → 2-col */
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ───── Case modal — mobile cleanup ───── */
@media (max-width: 720px) {
  .case-modal-panel {
    padding: 56px 20px 28px !important;
    max-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    width: 100% !important;
  }
  .case-modal-panel h3 {
    font-size: 28px !important;
    margin-top: 16px !important;
    line-height: 1.1 !important;
  }
  /* Big stat number */
  .case-modal-panel > div:nth-of-type(3) > div:first-child {
    font-size: 56px !important;
  }
  .case-modal-panel > div:nth-of-type(3) > div:first-child > span {
    font-size: 36px !important;
  }
  /* Problem / Approach 2-col → 1-col */
  .case-modal-panel > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-top: 28px !important;
  }
  /* Results 4-col → 2-col, smaller padding */
  .case-modal-panel div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .case-modal-panel div[style*="grid-template-columns: repeat(4, 1fr)"] > div {
    padding: 14px !important;
  }
  .case-modal-panel div[style*="grid-template-columns: repeat(4, 1fr)"] > div > div:first-child {
    font-size: 22px !important;
  }
  /* Quote block */
  .case-modal-panel > div[style*="border-left"][style*="solid var(--accent-2)"] {
    padding: 20px 18px !important;
    margin-top: 24px !important;
  }
  .case-modal-panel > div[style*="border-left"][style*="solid var(--accent-2)"] p {
    font-size: 15.5px !important;
    line-height: 1.5 !important;
  }
  /* Header row: tags wrap nicely */
  .case-modal-panel > div.row:first-of-type {
    padding-right: 40px;
  }
  /* Bottom row stacks */
  .case-modal-panel > div.row:last-of-type {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    text-align: center;
    margin-top: 28px !important;
    padding-top: 20px !important;
  }
  .case-modal-panel > div.row:last-of-type .coord {
    align-self: center;
  }
  .case-modal-panel > div.row:last-of-type a.btn {
    justify-content: center;
    width: 100%;
  }
}

/* Mobile: ≤ 720px */
@media (max-width: 720px) {
  body { font-size: 15px; }

  .section { padding: 64px 20px; }
  [data-chrome="minimal"] .section { padding: 56px 18px; }

  /* HUD strip: stack and shrink */
  .hud-strip {
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px;
    font-size: 9.5px;
    text-align: center;
  }
  .hud-strip span { letter-spacing: 0.12em; }

  /* Nav: collapse to logo + book button + hamburger */
  .nav {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav .logo { font-size: 13px; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding: 12px 0 4px;
    border-top: 1px solid var(--rule);
    margin-top: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav .row {
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
  }
  /* Hide ghost "Hear a Live Agent" in nav on mobile to save space */
  .nav .row > .btn.ghost { display: none; }
  .nav .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(139,92,246,0.06);
    border: 1px solid var(--rule-hi);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle:hover { background: rgba(139,92,246,0.12); }

  /* Hero */
  .hero { padding: 24px 20px 56px; }
  .hero-grid { gap: 36px; }
  h1 { font-size: clamp(40px, 11vw, 60px) !important; line-height: 1; }
  h2 { font-size: clamp(30px, 7vw, 44px); line-height: 1.05; }
  h3 { font-size: 19px; }
  .lead { font-size: 16.5px; line-height: 1.55; }

  /* Hero CTA buttons */
  .hero .row {
    flex-wrap: wrap;
    width: 100%;
  }
  .hero .row > .btn,
  .hero .row > a.btn {
    flex: 1 1 100%;
    justify-content: center;
    padding: 14px 20px !important;
    font-size: 14.5px !important;
  }

  /* Section heads */
  .section-head { padding-bottom: 32px; }

  /* All grids collapse to single column */
  .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr !important; }
  .grid { gap: 16px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-row > * { padding: 18px 20px; }

  /* Voice cards: tighter padding, smaller industry text */
  .voice-card { min-height: 280px !important; padding: 22px !important; }
  .voice-card div[style*="font-size: 44px"] { font-size: 36px !important; }

  /* Panels */
  .panel { padding: 22px; }

  /* Call card in hero */
  .call-card { padding: 20px; }
  .tx-line { font-size: 12.5px; }

  /* FAQ */
  section[id="faq"] > div { gap: 32px !important; }
  .faq-item { padding: 14px 0; }
  .faq-q h4 { font-size: 15px; }
  .faq-a p { padding-left: 0 !important; font-size: 14.5px !important; }

  /* Reviews */
  section[id="reviews"] .row[style*="gap: 40px"] { gap: 24px !important; }

  /* CTA slab */
  .cta-slab { padding: 60px 24px; border-radius: 16px; }
  .cta-slab .calbox { padding: 20px; }

  /* Footer */
  .footer { padding: 56px 20px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bot {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
  }

  /* Mission-control rail labels: hide on mobile (they're decorative) */
  [data-chrome="mission"] .site::before,
  [data-chrome="mission"] .site::after { display: none !important; }

  /* Coord labels around panels: shrink */
  .coord { font-size: 9px !important; letter-spacing: 0.1em; }
  .hud-label { font-size: 10px; letter-spacing: 0.12em; }

  /* Case modal: full screen */
  div[style*="maxWidth: 920px"] {
    padding: 28px 22px !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .section { padding: 56px 16px; }
  .hero { padding: 20px 16px 48px; }
  h1 { font-size: 38px !important; }
  .nav { padding: 14px 16px; }
  .footer { padding: 48px 16px 28px; }
}

