/* ============================================
   Talon Communications
   Design system + global styles
   ============================================ */

:root {
  /* Color palette — techy infra, Celestia-inspired */
  --color-bg: #FDFCFF;
  --color-bg-card: #FFFFFF;
  --color-surface: #F4EFFD;
  --color-surface-2: #EAE4F3;
  --color-border: #E5DFF0;
  --color-border-strong: #C9BEE0;
  --color-text: #0F0D14;
  --color-text-muted: #4A4358;
  --color-text-subtle: #8A85A0;

  /* Kept the token name --color-navy for backwards-compat; now dark charcoal */
  --color-navy: #17141A;
  --color-navy-deep: #040207;
  --color-navy-soft: #28222F;

  /* Violet — illustration / accent-primary */
  --color-violet: #5640D1;
  --color-violet-hover: #4432B8;
  --color-violet-soft: #EEE9FF;
  --color-violet-deep: #1D013D;

  /* Cyan — highlight / status pop */
  --color-accent: #00CFE5;
  --color-accent-hover: #00A8BF;
  --color-accent-soft: #CFF9FE;
  --color-accent-bright: #00FFFF;

  --color-grid: rgba(86, 64, 209, 0.045);

  --color-success: #0a8754;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.04), 0 1px 1px rgba(10, 14, 26, 0.03);
  --shadow: 0 4px 12px rgba(10, 14, 26, 0.06), 0 2px 4px rgba(10, 14, 26, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 14, 26, 0.08), 0 4px 12px rgba(10, 14, 26, 0.05);
  --shadow-xl: 0 24px 60px rgba(10, 14, 26, 0.12), 0 8px 20px rgba(10, 14, 26, 0.06);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 180ms var(--ease);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
}

/* ============================================ Reset ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============================================ Typography ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--color-text);
}
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem); letter-spacing: -0.02em; font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(2rem, 3vw + 1rem, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.375rem, 1vw + 1rem, 1.625rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-violet);
  margin-bottom: var(--space-3);
  padding: 0.28rem 0.55rem;
  background: rgba(86, 64, 209, 0.07);
  border: 1px solid rgba(86, 64, 209, 0.2);
  border-radius: 4px;
}
.eyebrow::before {
  content: '//';
  opacity: 0.55;
  font-weight: 600;
}

/* Tech status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: var(--space-5);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(10, 135, 84, 0.5);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(10, 135, 84, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(10, 135, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 135, 84, 0); }
}
.status-pill .sep {
  opacity: 0.3;
  font-weight: 400;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ============================================ Layout primitives ============================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section { padding-block: var(--space-8); }
section.tight { padding-block: var(--space-6); }

/* ============================================ Buttons ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-text);
  color: var(--color-bg-card);
}
.btn-primary:hover {
  background: var(--color-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}
.btn-ghost {
  color: var(--color-text);
  padding-inline: 0;
}
.btn-ghost:hover { color: var(--color-accent); }
.btn-ghost .arrow { transition: var(--transition); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ============================================ Nav ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.nav-brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.nav-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a[aria-current="page"] {
  color: var(--color-text);
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -28px;
  height: 2px;
  background: var(--color-accent);
}
.nav-cta { display: flex; gap: var(--space-3); align-items: center; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.nav-toggle:hover { background: var(--color-surface); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--color-bg-card);
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-4);
  }
}

/* ============================================ Hero ============================================ */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-7);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(86, 64, 209, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(0, 207, 229, 0.04), transparent 70%),
    var(--color-bg);
}
.hero .container { position: relative; z-index: 2; }

/* Cosmic backdrop — nebula clouds + drifting streams + orbital rings */
.hero-cosmos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Braid weighted right — fades toward the left where text lives */
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.7) 50%, #000 65%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.7) 50%, #000 65%, #000 92%, transparent 100%);
}

/* Cloud drift + breathe */
.hero-cosmos .cloud {
  transform-origin: center;
  transform-box: fill-box;
  animation: cloudDrift 30s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.hero-cosmos .cloud-a { animation-duration: 24s; animation-delay: 0s;   }
.hero-cosmos .cloud-b { animation-duration: 34s; animation-delay: -8s;  }
.hero-cosmos .cloud-c { animation-duration: 28s; animation-delay: -14s; }
.hero-cosmos .cloud-d { animation-duration: 32s; animation-delay: -4s;  }
.hero-cosmos .cloud-e { animation-duration: 26s; animation-delay: -18s; }
.hero-cosmos .cloud-f { animation-duration: 30s; animation-delay: -6s;  }
.hero-cosmos .cloud-g { animation-duration: 36s; animation-delay: -20s; }
.hero-cosmos .cloud-h { animation-duration: 22s; animation-delay: -11s; }
@keyframes cloudDrift {
  0%   { transform: translate(-14px, 8px)  scale(1);    opacity: 0.8; }
  50%  { transform: translate(16px, -10px) scale(1.08); opacity: 1;   }
  100% { transform: translate(-6px, 12px)  scale(0.96); opacity: 0.85;}
}

/* Flowing string braid — vertical curves that sway like fabric in wind */
.hero-cosmos .cosmos-braid .wave {
  transform-origin: center;
  transform-box: fill-box;
  animation: waveSway var(--dur, 20s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  will-change: transform;
}
.hero-cosmos .cosmos-braid .wave-pulse {
  stroke-dasharray: 6 14;
  animation:
    waveSway var(--dur, 20s) ease-in-out infinite alternate,
    wavePulse 5s linear infinite;
  animation-delay: var(--d, 0s), var(--d, 0s);
}
.hero-cosmos .cosmos-braid .wave-pulse:nth-of-type(odd)  { animation-duration: var(--dur, 20s), 6s; }
.hero-cosmos .cosmos-braid .wave-pulse:nth-of-type(even) { animation-duration: var(--dur, 20s), 4s; animation-direction: alternate, reverse; }
@keyframes waveSway {
  0%   { transform: translateY(-6px) rotate(-0.3deg); }
  50%  { transform: translateY(5px)  rotate(0.4deg); }
  100% { transform: translateY(-2px) rotate(-0.15deg); }
}
@keyframes wavePulse {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -60; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cosmos .cloud,
  .hero-cosmos .cosmos-braid .wave { animation: none; }
}

/* ============================================ Page transitions — glide ============================================ */
/* NO filter:blur (compositor-off, jitters). NO rotation, NO hue-rotate, NO
   brightness. Pure opacity + tiny scale + translate — all GPU-composited,
   guaranteed to stay smooth on every device. */
.hero-cosmos {
  animation: cosmosWarpIn 1100ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.hero-text-block {
  animation: textFadeIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
@keyframes cosmosWarpIn {
  0%   { transform: scale(0.94) translateZ(0); opacity: 0; }
  100% { transform: scale(1)    translateZ(0); opacity: 1; }
}
@keyframes textFadeIn {
  0%   { opacity: 0; transform: translate3d(0, 18px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0,    0); }
}

/* Bridge overlay — soft violet-tinted crossfade between the two pages.
   Auto-plays on load via fill-mode: both — no JS gap, no strobe. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 110% at 50% 45%,
    rgba(253, 252, 255, 0.65) 0%,
    rgba(140, 100, 255, 0.15) 45%,
    rgba(253, 252, 255, 0.35) 85%);
  animation: bridgeFadeOut 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: opacity;
}
body.page-transitioning-out::after {
  animation: bridgeFadeIn 620ms cubic-bezier(0.4, 0, 0.4, 1) forwards;
}
@keyframes bridgeFadeOut {
  0%   { opacity: 0.6; }
  100% { opacity: 0;   }
}
@keyframes bridgeFadeIn {
  0%   { opacity: 0;   }
  100% { opacity: 0.75; }
}

/* Exit — softer, longer, no blur. Just gentle recede. */
body.page-transitioning-out .hero-cosmos {
  animation: cosmosWarpOut 620ms cubic-bezier(0.4, 0, 0.4, 1) forwards;
}
body.page-transitioning-out .hero-text-block {
  animation: textFadeOut 560ms cubic-bezier(0.4, 0, 0.4, 1) forwards;
}
body.page-transitioning-out main,
body.page-transitioning-out .hero .container,
body.page-transitioning-out section:not(.hero),
body.page-transitioning-out .footer,
body.page-transitioning-out .nav {
  animation: pageDim 620ms cubic-bezier(0.4, 0, 0.4, 1) forwards;
}
@keyframes cosmosWarpOut {
  0%   { transform: scale(1)    translateZ(0); opacity: 1; }
  100% { transform: scale(1.08) translateZ(0); opacity: 0; }
}
@keyframes textFadeOut {
  0%   { opacity: 1; transform: translate3d(0, 0,     0); }
  100% { opacity: 0; transform: translate3d(0, -14px, 0); }
}
@keyframes pageDim {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cosmos, .hero-text-block { animation: none; }
  body::after { display: none; }
  body.page-transitioning-out .hero-cosmos,
  body.page-transitioning-out .hero-text-block,
  body.page-transitioning-out main,
  body.page-transitioning-out .hero .container,
  body.page-transitioning-out section:not(.hero),
  body.page-transitioning-out .footer,
  body.page-transitioning-out .nav { animation: none; opacity: 0; }
}
.hero-grid {
  display: block;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-text-block {
  max-width: 620px;
  position: relative;
}
/* Subtle radial white lift behind H1/lede so braid strands don't compete with text */
.hero-text-block::before {
  content: '';
  position: absolute;
  inset: -40px -80px -40px -60px;
  background: radial-gradient(ellipse 70% 60% at 35% 50%, rgba(253, 252, 255, 0.85), rgba(253, 252, 255, 0.5) 55%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 880px) {
  .hero-grid { min-height: 0; }
  .hero-text-block { max-width: 100%; }
}
.hero h1 { margin-bottom: var(--space-5); }
.hero .lede { margin-bottom: var(--space-6); }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  box-shadow: var(--shadow-xl), 0 0 80px -20px rgba(86, 64, 209, 0.35);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  pointer-events: none;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(86, 64, 209, 0.25), transparent 70%);
  pointer-events: none;
}

/* ============================================ Flowing hero SVG ============================================ */
.hero-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-flow .flow-lines path {
  animation: flowSway var(--dur, 18s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  transform-origin: center;
  transform-box: fill-box;
  will-change: transform;
}
.hero-flow .flow-particles circle {
  animation: particleBlink 4s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes flowSway {
  0%   { transform: translateX(-6px) rotate(-1deg); }
  50%  { transform: translateX(4px) rotate(0.5deg); }
  100% { transform: translateX(-2px) rotate(-0.4deg); }
}
@keyframes particleBlink {
  0%   { transform: scale(0.7); opacity: 0.2; }
  50%  { transform: scale(1.2); opacity: 0.9; }
  100% { transform: scale(0.9); opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flow .flow-lines path,
  .hero-flow .flow-particles circle { animation: none; }
}

.hero-flow-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  padding: var(--space-4);
}
.flow-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}
.flow-label-tl { top: var(--space-4); left: var(--space-4); }
.flow-label-tr { top: var(--space-4); right: var(--space-4); }
.flow-label-bl { bottom: var(--space-4); left: var(--space-4); }
.flow-label-br { bottom: var(--space-4); right: var(--space-4); }
.flow-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.7rem;
  background: rgba(253, 252, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(86, 64, 209, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-violet);
}
.flow-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
  animation: pulse-dot 2s infinite;
}

.console {
  position: relative;
  z-index: 2;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.92);
}
.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.console-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.console-status {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.console-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s infinite;
}

.console-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  line-height: 1.4;
  overflow: hidden;
  position: relative;
}
.console-stream::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60px;
  background: linear-gradient(0deg, var(--color-navy-deep), transparent);
  pointer-events: none;
}
.console-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #4ade80;
  margin-left: 4px;
  vertical-align: middle;
  animation: cursor-blink 1s steps(2) infinite;
}
@keyframes cursor-blink {
  to { opacity: 0; }
}
.console-line {
  display: flex;
  gap: var(--space-3);
  animation: fade-in 600ms var(--ease) backwards;
}
.console-line .ts {
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.console-line .ok { color: #4ade80; }
.console-line .info { color: #60a5fa; }
.console-line .msg { color: rgba(255,255,255,0.85); }
@keyframes fade-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.console-metric {
  display: flex;
  flex-direction: column;
}
.console-metric .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.console-metric .label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* ============================================ Stat strip ============================================ */
.stats {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-7);
  background: var(--color-surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.stat .label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ============================================ Section header ============================================ */
.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-6);
  text-align: center;
}
.section-head.left { text-align: left; margin-inline: 0; }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head .lede { margin-inline: auto; }
.section-head.left .lede { margin-inline: 0; }

/* ============================================ Service cards ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(37, 99, 235, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.service-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg), 0 0 40px -10px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card-tag {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle);
  font-weight: 500;
}
.card-specs {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.card-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  color: var(--color-text-subtle);
}
.card-spec .key {
  text-transform: uppercase;
  opacity: 0.65;
  font-weight: 400;
}
.card-spec .val {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
}

/* Full-service "done for you" grid */
.full-service {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.full-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 880px) {
  .full-service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .full-service-grid { grid-template-columns: 1fr; }
}
.fs-tile {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.fs-tile:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow);
}
.fs-tile-num {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle);
}
.fs-tile-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid; place-items: center;
}
.fs-tile h3 { font-size: 1rem; }
.fs-tile p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.service-card .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid; place-items: center;
}
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--color-text-muted); font-size: 0.9375rem; flex: 1; }
.service-card .link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: var(--transition);
}
.service-card:hover .link { color: var(--color-accent); }
.service-card:hover .link .arrow { transform: translateX(3px); }
.link .arrow { transition: var(--transition); }

/* ============================================ Feature split ============================================ */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 880px) {
  .feature-split { grid-template-columns: 1fr; gap: var(--space-5); }
  .feature-split.reverse > div:first-child { order: 2; }
}
.feature-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.feature-visual.dark {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  border: none;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.feature-list li {
  display: flex;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.feature-list li::before {
  content: '';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================ CTA banner ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 3vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 {
  color: white;
  margin-bottom: var(--space-4);
  position: relative;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.125rem;
  max-width: 50ch;
  margin: 0 auto var(--space-6);
  position: relative;
}
.cta-banner .btn-primary {
  background: white;
  color: var(--color-text);
  position: relative;
}
.cta-banner .btn-primary:hover {
  background: var(--color-surface);
}

/* ============================================ Footer ============================================ */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-8) var(--space-6);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-tagline {
  font-size: 0.9375rem;
  max-width: 36ch;
}
.footer h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--space-4);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.875rem;
}
.footer-legal { display: flex; gap: var(--space-5); }
.footer-legal a { color: rgba(255, 255, 255, 0.6); }
.footer-legal a:hover { color: white; }

/* ============================================ Page banner (inner pages) ============================================ */
.page-banner {
  padding-block: var(--space-9) var(--space-7);
  background: linear-gradient(180deg, var(--color-surface) 0%, transparent 100%);
  border-bottom: 1px solid var(--color-border);
}
.page-banner h1 { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); margin-bottom: var(--space-4); }
.page-banner .lede { font-size: 1.125rem; }

/* ============================================ Prose (long-form text) ============================================ */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-block: var(--space-7) var(--space-4); }
.prose h3 { font-size: 1.125rem; margin-block: var(--space-6) var(--space-3); }
.prose p { margin-bottom: var(--space-4); color: var(--color-text); }
.prose p, .prose li { font-size: 1rem; line-height: 1.65; }
.prose ul { margin: var(--space-3) 0 var(--space-5) var(--space-5); }
.prose ul li { list-style: disc; margin-bottom: var(--space-2); color: var(--color-text); }
.prose strong { color: var(--color-text); font-weight: 600; }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================ Capability strip ============================================ */
.capability-strip {
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 880px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}
@media (max-width: 480px) {
  .capability-grid { grid-template-columns: 1fr; }
}
.capability {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.capability-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  display: grid; place-items: center;
  margin-bottom: var(--space-2);
}
.capability-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.capability-sub {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ============================================ Custom-build line ============================================ */
.custom-line {
  text-align: center;
  margin-top: var(--space-7);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.custom-line a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: 1px;
  transition: var(--transition);
}
.custom-line a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================ Audience grid ============================================ */
.audience {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 880px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .audience-grid { grid-template-columns: 1fr; }
}
.audience-tile {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: var(--transition);
}
.audience-tile:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.audience-icon {
  font-size: 1.5rem;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ============================================ Personas — engagement models ============================================ */
.personas {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (max-width: 880px) {
  .persona-grid { grid-template-columns: 1fr; }
}
.persona-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: var(--transition);
}
.persona-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.persona-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  align-self: flex-start;
}
.persona-num {
  color: var(--color-navy-deep);
  font-weight: 700;
}
.persona-tag {
  padding: 3px 8px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}
.persona-card h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  letter-spacing: -0.01em;
}
.persona-lede {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.persona-section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border);
}
.persona-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  font-size: 0.875rem;
  color: var(--color-text);
}
@media (max-width: 520px) {
  .persona-list { grid-template-columns: 1fr; }
}
.persona-list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.5;
}
.persona-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 4px; height: 4px;
  background: var(--color-navy-deep);
  border-radius: 50%;
}
.persona-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.persona-mode-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-navy-deep);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ============================================ Client logo strip ============================================ */
.logos {
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-card);
}
.logos-head {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-6);
}
.logos-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logos-track {
  display: flex;
  gap: var(--space-9);
  width: max-content;
  animation: scroll-x 38s linear infinite;
  align-items: center;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - var(--space-9) / 2)); }
}
.logo-item {
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--color-text-subtle);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.65;
  transition: var(--transition);
  filter: grayscale(100%);
}
.logo-item:hover { opacity: 1; color: var(--color-text); }
.logo-item svg { height: 100%; width: auto; }

/* ============================================ Testimonials carousel ============================================ */
.testimonials {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--space-7);
  gap: var(--space-5);
  flex-wrap: wrap;
}
.testimonials-header .section-head { margin: 0; text-align: left; max-width: 560px; }
.testimonials-header .section-head .lede { margin: 0; }
.carousel-controls { display: flex; gap: var(--space-2); }
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  display: grid; place-items: center;
  transition: var(--transition);
}
.carousel-btn:hover {
  background: var(--color-text);
  color: var(--color-bg-card);
  border-color: var(--color-text);
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.carousel-btn:disabled:hover {
  background: var(--color-bg-card);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  margin-inline: calc(-1 * var(--space-5));
  padding-inline: var(--space-5);
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 28vw, 380px);
  gap: var(--space-5);
}
.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-height: 100%;
}
.testimonial-card .quote-mark {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  height: 24px;
}
.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-accent));
  color: white;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.testimonial-meta { line-height: 1.35; }
.testimonial-name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-title { color: var(--color-text-muted); font-size: 0.8125rem; }

/* ============================================ Product mock-browser frame ============================================ */
.browser-mock {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  width: 100%;
}
.browser-mock-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.browser-mock-dots { display: flex; gap: 6px; }
.browser-mock-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border-strong);
}
.browser-mock-url {
  flex: 1;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-left: var(--space-3);
}
.browser-mock-screen {
  position: relative;
  background: var(--color-surface);
}
.browser-mock-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Replace .feature-visual dark when it wraps a browser mock */
.feature-visual.product {
  background: transparent;
  border: none;
  padding: 0;
  aspect-ratio: auto;
}
.feature-visual.a2p {
  background: transparent;
  border: none;
  padding: 0;
  aspect-ratio: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.feature-visual.a2p img {
  display: block;
  width: 100%;
  height: auto;
}

/* Embedded mini console (in feature splits) */
.feature-visual.console-host {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px -20px rgba(37, 99, 235, 0.4);
  aspect-ratio: 5 / 4;
  padding: 0;
  position: relative;
  isolation: isolate;
}
.feature-visual.console-host::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  pointer-events: none;
}
.feature-visual.console-host::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(37, 99, 235, 0.2), transparent 70%);
  pointer-events: none;
}
.feature-visual.console-host .console {
  position: relative;
  z-index: 2;
  padding: var(--space-5);
  height: 100%;
}

/* ============================================ Custom service viz cards ============================================ */
.viz-host {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px -20px rgba(37, 99, 235, 0.4);
  aspect-ratio: 5 / 4;
  padding: var(--space-5);
  position: relative;
  isolation: isolate;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.viz-host::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 0;
}
.viz-host::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(37, 99, 235, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.viz-host > * { position: relative; z-index: 1; }
.viz-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.viz-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.viz-status {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.viz-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s infinite;
}
.viz-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}
.viz-stats > div {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.viz-stats > div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2px;
}
.viz-stats .mono.small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
}

/* DATA viz — before/after table */
.viz-data-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: stretch;
  flex: 1;
  padding-block: var(--space-3);
}
.viz-col-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  padding-left: 4px;
}
.viz-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.viz-row {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.88);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.viz-row.dim {
  background: rgba(248,113,113,0.06);
  border-color: rgba(248,113,113,0.15);
  color: rgba(252,165,165,0.95);
  text-decoration: line-through;
  text-decoration-color: rgba(248,113,113,0.5);
}
.viz-row.ok {
  background: rgba(74,222,128,0.06);
  border-color: rgba(74,222,128,0.18);
  color: #bbf7d0;
}
.viz-arrow {
  color: rgba(96,165,250,0.85);
  font-size: 1.75rem;
  display: grid; place-items: center;
  font-weight: 300;
  padding-bottom: 4px;
}

/* OUTREACH viz — channel hub */
.viz-channel-hub {
  position: relative;
  flex: 1;
  min-height: 260px;
}
.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(96,165,250,0.45);
  display: grid; place-items: center;
  z-index: 4;
  box-shadow: 0 0 32px rgba(37,99,235,0.55);
}
.hub-center img { width: 38px; height: 38px; }
.hub-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  width: 220px; height: 220px;
}
.hub-rings::before, .hub-rings::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(96,165,250,0.22);
}
.hub-rings::before {
  width: 220px; height: 220px;
  transform: translate(-50%, -50%);
}
.hub-rings::after {
  width: 140px; height: 140px;
  border-style: solid;
  border-color: rgba(96,165,250,0.30);
  transform: translate(-50%, -50%);
}
.hub-channel {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 7px 14px;
  background: rgba(10,31,68,0.85);
  border: 1px solid rgba(96,165,250,0.35);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  font-weight: 600;
  z-index: 3;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* Fan around center — radius ~100px horizontal, 90px vertical for top/bottom */
.hub-channel[data-pos="n"]  { transform: translate(-50%, calc(-50% - 100px)); }
.hub-channel[data-pos="ne"] { transform: translate(calc(-50% + 90px), calc(-50% - 55px)); }
.hub-channel[data-pos="se"] { transform: translate(calc(-50% + 90px), calc(-50% + 55px)); }
.hub-channel[data-pos="sw"] { transform: translate(calc(-50% - 90px), calc(-50% + 55px)); }
.hub-channel[data-pos="nw"] { transform: translate(calc(-50% - 90px), calc(-50% - 55px)); }

/* VOTING viz — tally bars */
.viz-tally {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex: 1;
  justify-content: center;
  padding-block: var(--space-3);
}
.tally-row { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: var(--space-3); }
.tally-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.tally-bar {
  height: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.tally-fill {
  height: 100%;
  border-radius: 100px;
  animation: tally-grow 1.6s var(--ease) forwards;
  transform-origin: left;
}
.tally-fill.for {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  box-shadow: 0 0 12px rgba(37,99,235,0.5);
}
.tally-fill.against {
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.32));
}
@keyframes tally-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.tally-pct {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
  letter-spacing: -0.01em;
}
.viz-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ch-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: rgba(255,255,255,0.75);
}

/* SHAREHOLDER viz — proxy timeline */
.viz-timeline {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
}
.tl-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  position: relative;
}
.tl-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255,255,255,0.12);
  transform: translateY(-50%);
  z-index: 0;
}
.tl-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  text-align: center;
}
.tl-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
  position: relative;
  z-index: 2;
  justify-self: center;
}
.tl-dot.done,
.tl-phase.done .tl-dot {
  background: #4ade80;
  border-color: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.5);
}
.tl-dot.active,
.tl-phase.active .tl-dot {
  background: #60a5fa;
  border-color: #60a5fa;
  box-shadow: 0 0 0 6px rgba(96,165,250,0.18), 0 0 14px rgba(96,165,250,0.6);
  animation: pulse-dot 2s infinite;
}
.tl-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  line-height: 1.3;
}
.tl-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.3;
}
.tl-phase.active .tl-label { color: #fff; }
.tl-phase.active .tl-sub { color: #93c5fd; }

/* Inline "Learn more" link in feature splits */
.feature-learn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: var(--transition);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
}
.feature-learn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.feature-learn .arrow {
  transition: var(--transition);
}
.feature-learn:hover .arrow {
  transform: translateX(4px);
}

/* ============================================ Dark pipeline section ============================================ */
.section-dark {
  position: relative;
  background: var(--color-navy-deep);
  color: rgba(255,255,255,0.85);
  overflow: hidden;
  isolation: isolate;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  z-index: -1;
}
.section-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 0%, rgba(37, 99, 235, 0.2), transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 100%, rgba(37, 99, 235, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.section-dark .eyebrow { color: #60a5fa; background: rgba(96, 165, 250, 0.1); border-color: rgba(96, 165, 250, 0.25); }
.section-dark .eyebrow::before { color: #60a5fa; }
.section-dark h2 { color: #fff; }
.section-dark .lede { color: rgba(255,255,255,0.65); }
.section-dark .section-index { color: rgba(255,255,255,0.55); }
.section-dark .section-index::before,
.section-dark .section-index::after { background: rgba(255,255,255,0.18); }
.section-dark .section-index .idx-num { color: #60a5fa; }

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--space-4);
  align-items: stretch;
  margin-top: var(--space-7);
}
@media (max-width: 880px) {
  .pipeline {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .pipeline-arrow { display: none; }
}
.pipeline-node {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.pipeline-node:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 60px -20px rgba(37, 99, 235, 0.5);
}
.pipeline-node::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.6), transparent);
  opacity: 0;
  transition: var(--transition);
}
.pipeline-node:hover::before { opacity: 1; }
.pipeline-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.pipeline-node-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(96, 165, 250, 0.8);
  font-weight: 500;
}
.pipeline-node-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pipeline-node h3 {
  color: #fff;
  font-size: 1.125rem;
  margin: 0;
}
.pipeline-node p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}
.pipeline-node-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
}
.pipeline-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
}
.pipeline-arrow {
  display: grid;
  place-items: center;
  color: rgba(96, 165, 250, 0.4);
  position: relative;
}
.pipeline-arrow svg {
  width: 28px; height: 28px;
}
.pipeline-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
  z-index: -1;
}

/* ============================================ Live status bar ============================================ */
.status-bar {
  background: var(--color-navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.status-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.status-bar-group {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.status-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.status-bar-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}
.status-bar-item.idle::before { background: rgba(255,255,255,0.4); box-shadow: none; }
.status-bar-item .val {
  color: rgba(255,255,255,0.95);
  margin-left: 6px;
  font-weight: 500;
}

/* ============================================ Contact form ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-7); }
}
.contact-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-field { margin-bottom: var(--space-4); }
.form-field label,
.form-row .form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: var(--font-sans);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.form-field .hint {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  margin-top: var(--space-2);
  font-family: var(--font-mono);
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-captcha {
  width: fit-content;
  margin: var(--space-5) 0;
  padding: var(--space-2);
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  line-height: 0; /* iframe is inline; kill the descender gap below it */
}
.form-submit {
  width: 100%;
  margin-top: var(--space-3);
  padding: 0.95rem 1.5rem;
  justify-content: center;
  font-size: 1rem;
}
.form-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  text-align: center;
  line-height: 1.5;
}
.form-note a { color: var(--color-text); border-bottom: 1px solid var(--color-border-strong); }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.aside-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.aside-card h3 {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.aside-card h3::before {
  content: '//';
  opacity: 0.5;
}
.aside-card p {
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.aside-card p + p { margin-top: var(--space-3); }
.aside-card .mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.form-status {
  display: none;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  margin-top: var(--space-4);
}
.form-status.success {
  display: block;
  background: rgba(10, 135, 84, 0.08);
  border: 1px solid rgba(10, 135, 84, 0.25);
  color: var(--color-success);
}
.form-status.error {
  display: block;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

/* ============================================ Product mock dashboards (per-page) ============================================ */
.browser-mock-screen .dash { border-radius: 0; }
.dash {
  background: var(--color-navy-deep);
  color: #e6ebf5;
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dash-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.dash-title-sub {
  color: #7f8fb0;
  font-weight: 400;
  margin-left: 6px;
  font-size: 12px;
}
.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ade80;
  padding: 4px 10px;
  background: rgba(74, 222, 128, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  white-space: nowrap;
}
.dash-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: dash-pulse 1.8s infinite;
}
@keyframes dash-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.dash-section-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f8fb0;
  margin-bottom: 8px;
}
.dash-bars { display: flex; flex-direction: column; gap: 10px; }
.dash-bar { display: flex; flex-direction: column; gap: 5px; }
.dash-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
}
.dash-bar-label { color: #b6c3e0; letter-spacing: 0.04em; }
.dash-bar-value { color: #ffffff; font-weight: 600; }
.dash-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
}
.dash-bar-fill.pos { background: linear-gradient(90deg, #059669, #34d399); }
.dash-bar-fill.neg { background: linear-gradient(90deg, #dc2626, #f87171); }
.dash-bar-fill.warn { background: linear-gradient(90deg, #d97706, #fbbf24); }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dash-stats.four { grid-template-columns: repeat(4, 1fr); }
.dash-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-stat-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7f8fb0;
}
.dash-stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.1;
}
.dash-stat-value.sm { font-size: 14px; }
.dash-stat-delta { font-size: 10px; color: #4ade80; }
.dash-stat-delta.neg { color: #f87171; }

.dash-list { display: flex; flex-direction: column; gap: 5px; }
.dash-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.dash-row-primary { color: #e6ebf5; }
.dash-row-meta { color: #7f8fb0; font-size: 10px; }

.dash-pill {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.dash-pill.pos { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.dash-pill.neg { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }
.dash-pill.warn { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.dash-pill.info { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }

.dash-match {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 8px;
  align-items: stretch;
}
.dash-record {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dash-record-head {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2px;
}
.dash-field {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.dash-field-key { color: #7f8fb0; }
.dash-field-val { color: #e6ebf5; text-align: right; }
.dash-match-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 16px;
  font-weight: 700;
}
.dash-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dash-signal {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.dash-actions { display: flex; gap: 8px; }
.dash-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 600;
  border: 1px solid;
}
.dash-btn.primary {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}
.dash-btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.12);
  color: #7f8fb0;
}

.dash-funnel { display: flex; flex-direction: column; gap: 5px; }
.dash-funnel-row {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}
.dash-funnel-label { color: #b6c3e0; letter-spacing: 0.04em; text-transform: uppercase; font-size: 10px; }
.dash-funnel-track {
  height: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.dash-funnel-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 10px;
  font-weight: 600;
}
.dash-funnel-value { color: #ffffff; font-weight: 600; text-align: right; font-size: 11px; }

.dash-tally-h2h {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
}
.dash-tally-side {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-tally-side.for { background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.02)); }
.dash-tally-side.against { background: linear-gradient(225deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.02)); text-align: right; align-items: flex-end; }
.dash-tally-lbl {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.dash-tally-side.for .dash-tally-lbl { color: #34d399; }
.dash-tally-side.against .dash-tally-lbl { color: #f87171; }
.dash-tally-num {
  font-family: var(--font-mono);
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.1;
}
.dash-tally-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #b6c3e0;
}

.dash-quorum { padding: 10px 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; }

.dash-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.dash-countdown-unit {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-countdown-unit strong { font-size: 16px; color: #ffffff; font-weight: 700; }
.dash-countdown-unit span { font-size: 9px; color: #7f8fb0; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================ Techy chrome — v2 refresh ============================================ */

/* Section-index label — sits above section heads, e.g. "[ 02 · SERVICES ]" */
.section-index {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-3);
}
.section-index::before,
.section-index::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--color-border-strong);
}
.section-index .idx-num { color: var(--color-violet); font-weight: 600; }
.section-head.left .section-index { justify-content: flex-start; }

/* Corner-bracket accents on service cards & feature-visuals — techy chrome */
.service-card::after,
.fs-tile::after,
.persona-card::after {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 12px; height: 12px;
  border-top: 1.5px solid var(--color-border-strong);
  border-right: 1.5px solid var(--color-border-strong);
  opacity: 0.6;
  transition: var(--transition);
  pointer-events: none;
}
.service-card:hover::after,
.fs-tile:hover::after,
.persona-card:hover::after {
  border-color: var(--color-accent);
  opacity: 1;
}

/* Slightly denser card padding to match tighter feel */
.service-card { padding: var(--space-5); }
.fs-tile { padding: var(--space-4); }

/* Section-divider — thin mono-labeled hairline between sections */
.section-divider {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.section-divider span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  white-space: nowrap;
}

/* Slightly denser body-copy sizing on lede */
.lede { font-size: 1.15rem; }
.hero .lede { font-size: 1.2rem; }

/* ============================================ Theme toggle button ============================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition), background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease);
  padding: 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: var(--color-surface);
  border-color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.theme-toggle:active { transform: translateY(0); }
.theme-toggle svg { display: block; transition: transform 320ms var(--ease), opacity 220ms var(--ease); }
.theme-toggle .theme-toggle-sun { display: none; }
.theme-toggle .theme-toggle-moon { display: block; }
body.mode-dark .theme-toggle .theme-toggle-sun { display: block; }
body.mode-dark .theme-toggle .theme-toggle-moon { display: none; }
.theme-toggle:hover svg { transform: rotate(-18deg) scale(1.05); }

/* ============================================ Dark mode ============================================ */
/* Black background, light text, colored nebula preserved. Just overrides the
   color palette tokens — layout, typography, motion, and the animated SVG
   stay identical. */
html.mode-dark,
body.mode-dark {
  --color-bg: #050507;
  --color-bg-card: #101018;
  --color-surface: #0d0d15;
  --color-surface-2: #1a1a24;
  --color-border: #26262f;
  --color-border-strong: #3d3d4a;
  --color-text: #f5f5f8;
  --color-text-muted: #a2a2ae;
  --color-text-subtle: #6a6a76;

  /* NAVY TOKENS STAY DARK in dark mode too. They drive .section-dark's
     background — flipping them to white breaks that section (which is
     supposed to always be dark, per user request: "whatever was inside the
     image box can stay that same original color"). Buttons get their own
     explicit override below instead. */
  --color-navy: #17141A;
  --color-navy-deep: #040207;
  --color-navy-soft: #28222F;

  /* Nebula accents kept vivid — slightly brighter for dark bg readability */
  --color-violet: #9B85F5;
  --color-violet-hover: #B3A0FF;
  --color-violet-soft: rgba(155, 133, 245, 0.14);
  --color-violet-deep: #1e0a4d;

  --color-accent: #00E5FF;
  --color-accent-hover: #4dffff;
  --color-accent-soft: rgba(0, 229, 255, 0.14);
  --color-accent-bright: #00FFFF;

  --color-grid: rgba(255, 255, 255, 0.05);
}

/* Nav — flip glass from light-tinted to dark-tinted */
body.mode-dark .nav {
  background: rgba(5, 5, 7, 0.78);
  border-bottom-color: var(--color-border);
}
/* Status pill — dark glass instead of white glass */
body.mode-dark .status-pill {
  background: rgba(20, 20, 30, 0.55);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
/* Hero radial glows — boost intensity to stay visible on black */
body.mode-dark .hero {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(155, 133, 245, 0.15), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(0, 229, 255, 0.10), transparent 70%),
    var(--color-bg);
}
/* Kill the white radial lift behind H1 text — white text on nebula reads fine
   without a soft light halo behind it. */
body.mode-dark .hero-text-block::before { display: none; }
/* Btn-secondary — border becomes light, bg dark */
body.mode-dark .btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
body.mode-dark .btn-secondary:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}
/* Btn-primary — flip to a light pill on dark bg with dark text.
   Uses explicit values (not var(--color-navy-*)) because those tokens now
   stay near-black in dark mode so .section-dark keeps working. */
body.mode-dark .btn-primary {
  background: #f5f5f8;
  color: #0a0a0d;
}
body.mode-dark .btn-primary:hover {
  background: #ffffff;
  color: #0a0a0d;
}

/* Eyebrow chips — brighter violet on dark bg */
body.mode-dark .eyebrow {
  color: var(--color-violet);
  background: rgba(155, 133, 245, 0.13);
  border-color: rgba(155, 133, 245, 0.32);
}

/* Cards need a visible-on-black surface. --color-bg-card is dark now. */
body.mode-dark .service-card,
body.mode-dark .fs-tile,
body.mode-dark .persona-card {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

/* Bridge overlay for page transitions — flip to dark radial with violet hint */
body.mode-dark::after {
  background: radial-gradient(ellipse 100% 110% at 50% 45%,
    rgba(5, 5, 7, 0.75) 0%,
    rgba(155, 133, 245, 0.14) 45%,
    rgba(5, 5, 7, 0.45) 85%);
}

/* Footer — stays dark in both modes. In light mode it uses --color-text
   (near-black) as bg naturally; in dark mode we need to override with an
   explicit dark surface since --color-text flipped to light. */
body.mode-dark .footer {
  background: #0a0a0d;
  border-top: 1px solid var(--color-border);
}

/* Utility ============================================ */
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }

/* ============================================================================
   v3 — Enterprise refresh (frozen spec, July 2026)
   Corporate-executive layer: softened eyebrows, stacked hero, serif accent,
   before-delivery chain, industries grid, Talon Method diagram, scroll reveal.
   ============================================================================ */

/* Eyebrow — softened from mono chip to executive overline */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}
.eyebrow::before { content: none; }
.section-dark .eyebrow { background: none; border: none; }
body.mode-dark .eyebrow { background: none; border: none; }

/* Nav — six links need room before collapsing */
.nav-links a { white-space: nowrap; }
.nav-brand { white-space: nowrap; }
.nav-inner { gap: var(--space-5); }
.nav-links { gap: var(--space-4); }
.nav-cta .btn { padding: 0.75rem 1.15rem; font-size: 0.9rem; }
/* Small phones: the CTA button doesn't fit beside the brand — the hamburger
   menu still carries Contact. Guard the page against any stray overflow. */
@media (max-width: 620px) {
  .nav-cta .btn-primary { display: none; }
}
/* NOTE: no overflow-x on html/body — it turns body into the scroll container
   on iOS Safari and detaches the fixed/sticky nav (gap above the bar). */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--color-bg-card);
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-4);
  }
}

/* ---------------- Hero — stacked triptych headline ---------------- */
.hero-v3 .hero-text-block { max-width: 880px; }
.hero-v3 h1 { line-height: 1.04; }
.hero-v3 h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(26px);
  animation: heroLineUp 850ms var(--ease) forwards;
}
.hero-v3 h1 .line:nth-child(1) { animation-delay: 80ms; }
.hero-v3 h1 .line:nth-child(2) { animation-delay: 240ms; }
.hero-v3 h1 .line:nth-child(3) { animation-delay: 400ms; }
.hero-v3 h1 .line-accent {
  background: linear-gradient(92deg, var(--color-violet) 0%, var(--color-accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@keyframes heroLineUp {
  to { opacity: 1; transform: none; }
}
.hero-tagline {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.75rem);
  line-height: 1.35;
  color: var(--color-text-muted);
  margin: var(--space-5) 0 var(--space-4);
  opacity: 0;
  animation: heroLineUp 850ms var(--ease) 580ms forwards;
}
.hero-v3 .lede,
.hero-v3 .hero-ctas {
  opacity: 0;
  animation: heroLineUp 850ms var(--ease) 720ms forwards;
}
.hero-v3 .hero-ctas { animation-delay: 860ms; margin-top: var(--space-6); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-7);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .hero-support { grid-template-columns: 1fr; }
}
.hero-support p {
  font-size: 0.9875rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 56ch;
}

@media (prefers-reduced-motion: reduce) {
  .hero-v3 h1 .line, .hero-tagline, .hero-v3 .lede, .hero-v3 .hero-ctas {
    animation: none; opacity: 1; transform: none;
  }
}

/* ---------------- Inner-page hero: text + visual columns ---------------- */
.hero-grid.duo {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-grid.duo h1 {
  font-size: clamp(2.2rem, 2.6vw + 1rem, 3.4rem);
  white-space: nowrap;
}
@media (max-width: 880px) {
  .hero-grid.duo h1 { white-space: normal; }
}
@media (max-width: 880px) {
  .hero-grid.duo { grid-template-columns: 1fr; }
}
.hero-neural {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.hero-neural canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}
/* AICE engine plate — dark marquee panel for the product name */
.aice-panel {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 4rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #17141A 0%, #040207 100%);
  border: 1px solid rgba(155, 133, 245, 0.22);
  overflow: hidden;
}
.aice-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(123, 90, 232, 0.28), transparent 65%),
    radial-gradient(ellipse 45% 45% at 85% 100%, rgba(0, 207, 229, 0.12), transparent 60%);
  pointer-events: none;
}
.aice-panel > * { position: relative; }
.aice-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9B85F5;
  margin-bottom: var(--space-5);
}
.aice-word {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-4);
  background: linear-gradient(95deg, #9B85F5 0%, #7B5AE8 35%, #00E5FF 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: aiceShimmer 7s ease-in-out infinite alternate;
}
.aice-word .ch {
  display: inline-block;
  width: 1.06em;
  text-align: center;
}
@keyframes aiceShimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
.aice-expand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.aice-expand b { color: #00E5FF; font-weight: 700; }
.aice-divider {
  width: 72px;
  height: 1px;
  margin: var(--space-6) auto;
  background: linear-gradient(90deg, transparent, #7B5AE8, transparent);
}
.aice-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.125rem;
  max-width: 52ch;
  margin: 0 auto;
}
.aice-mission {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.35rem, 1.4vw + 1rem, 1.8rem);
  line-height: 1.4;
  color: #fff;
  max-width: 40ch;
  margin: var(--space-5) auto 0;
}
@media (prefers-reduced-motion: reduce) {
  .aice-word { animation: none; }
}

/* Trusted Communications Lifecycle — scroll-lit vertical stage diagram
   (designed for .section-dark) */
.lifecycle {
  position: relative;
  max-width: 520px;
  margin: var(--space-7) auto 0;
}
.lc-rail,
.lc-fill {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 2px;
  border-radius: 2px;
}
.lc-rail { bottom: 10px; background: rgba(255, 255, 255, 0.12); }
.lc-fill {
  height: 0%;
  max-height: calc(100% - 20px);
  background: linear-gradient(180deg, #5640D1, #7B5AE8, #00E5FF);
  transition: height 180ms linear;
  box-shadow: 0 0 10px rgba(123, 90, 232, 0.5);
}
.lc-step {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 52px;
}
.lc-dot {
  position: absolute;
  left: 4px;
  top: 50%;
  margin-top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0b0b12;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: border-color 400ms var(--ease), background 400ms var(--ease), box-shadow 400ms var(--ease);
}
.lc-step h3 {
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(1.125rem, 1vw + 0.8rem, 1.375rem);
  transition: color 400ms var(--ease);
}
.lc-step.on .lc-dot {
  border-color: #00E5FF;
  background: #00E5FF;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}
.lc-step.on h3 { color: #fff; }
.lc-step:last-child.on h3 {
  background: linear-gradient(92deg, #9B85F5 0%, #00E5FF 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lc-note {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.6rem);
  color: #fff;
  text-align: center;
  max-width: 44ch;
  margin: var(--space-7) auto 0;
}

/* Six-step chain variant (3×2) */
.chain.six { grid-template-columns: repeat(3, 1fr); }
.chain.six .chain-step:nth-child(3n)::after { display: none; }
@media (max-width: 960px) {
  .chain.six { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .chain.six { grid-template-columns: 1fr; }
}

/* Fourth hero headline line (long titles) */
.hero-v3 h1 .line:nth-child(4) { animation-delay: 560ms; }

/* Form field groups + checkboxes (contact inquiry form) */
.form-group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-violet);
  margin: var(--space-6) 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.form-group-title:first-child { margin-top: 0; }
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.form-check input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--color-violet);
  flex-shrink: 0;
}
.checks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 560px) {
  .checks-grid { grid-template-columns: 1fr; }
}

/* Story dive — scroll-pinned journey into the talon network (About page) */
.story-dive { position: relative; }
.sd-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 60% at 50% 42%, #0d0b18 0%, #050507 72%);
}
.sd-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sd-chapter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-5);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.sd-chapter-inner { max-width: 820px; }
.sd-eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9B85F5;
  margin-bottom: var(--space-5);
}
.sd-chapter h2 {
  color: #fff;
  font-size: clamp(2.5rem, 4vw + 0.5rem, 4rem);
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 30px rgba(5, 5, 7, 0.9);
}
.sd-chapter p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.25rem, 1.1vw + 0.9rem, 1.55rem);
  line-height: 1.7;
  text-shadow: 0 1px 20px rgba(5, 5, 7, 0.9);
}
.sd-serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
  line-height: 1.35;
  color: #fff;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 30px rgba(5, 5, 7, 0.9);
}
.sd-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.sd-lines li {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.6rem);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
  text-shadow: 0 1px 20px rgba(5, 5, 7, 0.9);
}
.sd-lines li.on { opacity: 1; transform: none; }
/* Static fallback (reduced motion) */
.story-dive.sd-static { height: auto !important; }
.story-dive.sd-static .sd-sticky { position: static; height: auto; }
.story-dive.sd-static .sd-canvas { display: none; }
.story-dive.sd-static .sd-chapter {
  position: static;
  opacity: 1;
  padding: var(--space-7) var(--space-5);
}

/* Philosophy lines (About page plate) */
.philosophy-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.philosophy-lines li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Coming Soon badge for roadmap channels */
.soon {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px dashed var(--color-border-strong);
  color: var(--color-text-subtle);
  white-space: nowrap;
  align-self: center;
}
/* Badge sits flush right of its row, vertically centered */
.feature-list li .soon { margin-left: auto; }

/* Two-line statement inside a dark plate (e.g. "Delivered Under Your Brand.") */
.plate-tri .line { display: block; }
.plate-tri .line-accent {
  background: linear-gradient(92deg, #9B85F5 0%, #00E5FF 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.aice-panel .plate-tri {
  color: #fff;
  font-size: clamp(1.75rem, 2.6vw + 0.5rem, 2.5rem);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.mission-line {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.35rem, 1.4vw + 1rem, 1.9rem);
  line-height: 1.4;
  text-align: center;
  color: var(--color-text);
  max-width: 58ch;
  margin: var(--space-6) auto 0;
}
.pillar-note {
  text-align: center;
  max-width: 62ch;
  margin: var(--space-6) auto 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.enhance-note {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-subtle);
}
.card-copy {
  color: var(--color-text-muted);
  line-height: 1.65;
}
/* Pillar cards — numbered reasons row ("Why Organizations Choose AICE") */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.pillar-grid.with-arrows {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}
@media (max-width: 960px) {
  .pillar-grid,
  .pillar-grid.with-arrows { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid .method-arrow { display: none; }
}
@media (max-width: 540px) {
  .pillar-grid,
  .pillar-grid.with-arrows { grid-template-columns: 1fr; }
}
.pillar-grid.with-arrows.three {
  grid-template-columns: 1fr auto 1fr auto 1fr;
}
@media (max-width: 960px) {
  .pillar-grid.with-arrows.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pillar-grid.with-arrows.three { grid-template-columns: 1fr; }
}
/* Relay pulse timing across the pillar row (mirrors the Talon Method) */
.pillar-grid > div:nth-child(2).method-arrow::after { animation-delay: 0s; }
.pillar-grid > div:nth-child(4).method-arrow::after { animation-delay: 1.2s; }
.pillar-grid > div:nth-child(6).method-arrow::after { animation-delay: 2.4s; }
.pillar {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
  transition: var(--transition);
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123, 90, 232, 0.7), transparent);
  opacity: 0;
  transition: var(--transition);
}
.pillar:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg), 0 0 40px -12px rgba(123, 90, 232, 0.35);
  transform: translateY(-2px);
}
.pillar:hover::before { opacity: 1; }
.pillar-num {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-violet);
  opacity: 0.75;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border: 1px solid rgba(0, 207, 229, 0.25);
}
.pillar h3 { font-size: 1.0625rem; }
.pillar p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Centered variant of the capability strip (e.g. "Why Organizations Choose AICE") */
.capability-grid.centered .capability {
  align-items: center;
  text-align: center;
}
.capability-grid.centered .capability-icon {
  width: 52px;
  height: 52px;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}

/* ---------------- Before-delivery chain ---------------- */
.chain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
  counter-reset: chain;
}
@media (max-width: 960px) {
  .chain { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .chain { grid-template-columns: 1fr; }
}
.chain-step {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: var(--transition);
}
.chain-step:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.chain-step::before {
  counter-increment: chain;
  content: counter(chain, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-violet);
}
.chain-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--space-4) + 2px);
  width: calc(var(--space-4) - 4px);
  height: 1px;
  background: var(--color-border-strong);
}
@media (max-width: 960px) {
  .chain-step:not(:last-child)::after { display: none; }
}
.chain-step h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
}
.chain-note {
  max-width: 62ch;
  margin: var(--space-7) auto 0;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ---------------- Audience flow: AICE → data streams → audiences ---------------- */
.aud-flow {
  display: grid;
  grid-template-columns: auto 1fr 1.15fr;
  gap: var(--space-6);
  align-items: center;
  max-width: 940px;
  margin: 0 auto;
}
.aud-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #17141A 0%, #040207 100%);
  border: 1px solid rgba(155, 133, 245, 0.28);
  text-align: center;
}
.aud-source-word {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(95deg, #9B85F5 0%, #00E5FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.aud-source-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.aud-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 80px;
}
.aud-stream span {
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg,
    var(--color-violet) 0 10px, transparent 10px 20px);
  background-size: 20px 2px;
  opacity: 0.45;
  animation: streamFlow 1.1s linear infinite;
}
.aud-stream span:nth-child(2) { animation-delay: -0.35s; opacity: 0.6; }
.aud-stream span:nth-child(3) { animation-delay: -0.7s; }
@keyframes streamFlow {
  to { background-position: 20px 0; }
}
/* Reverse flow: sources on the left feed INTO the hub (collection) */
.aud-flow.reverse { grid-template-columns: 1.15fr 1fr auto; }
.aud-targets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-3);
}
/* Standalone icon-chip grid (no flow) */
.aud-targets.solo {
  max-width: 680px;
  margin-inline: auto;
}
.aud-targets li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  background: var(--color-bg-card);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
}
.aud-targets li:hover {
  border-color: var(--color-violet);
  transform: translateY(-1px);
}
.aud-targets li svg { color: var(--color-violet); flex-shrink: 0; }
.aud-targets li.span-two {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 50%;
  justify-content: center;
}
@media (max-width: 820px) {
  .aud-flow,
  .aud-flow.reverse { grid-template-columns: 1fr; justify-items: center; gap: var(--space-5); }
  .aud-stream { flex-direction: row; min-width: 0; height: 56px; align-items: stretch; }
  .aud-stream span {
    width: 2px; height: auto;
    background: repeating-linear-gradient(180deg,
      var(--color-violet) 0 10px, transparent 10px 20px);
    background-size: 2px 20px;
    animation-name: streamFlowV;
  }
  .aud-targets { width: 100%; }
}
@keyframes streamFlowV {
  to { background-position: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .aud-stream span { animation: none; }
}

/* ---------------- Industries & audiences ---------------- */
.industries {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.aud-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  justify-content: center;
  margin: 0 auto var(--space-7);
  max-width: 760px;
}
.aud-pill {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-card);
  transition: var(--transition);
}
.aud-pill:hover {
  border-color: var(--color-violet);
  color: var(--color-violet);
  transform: translateY(-1px);
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.industry-card.wide { grid-column: 1 / -1; }
.industry-card.wide .industry-list { grid-template-columns: repeat(3, 1fr); }
.industry-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin-inline: auto;
}
@media (max-width: 800px) {
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card.wide .industry-list { grid-template-columns: 1fr 1fr; }
}
.industry-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition);
}
.industry-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.industry-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.industry-card-head .icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-violet-soft);
  color: var(--color-violet);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.industry-card h3 { font-size: 1.1875rem; }
.industry-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
}
@media (max-width: 480px) {
  .industry-list { grid-template-columns: 1fr; }
}
.industry-list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 1.05rem;
  position: relative;
  line-height: 1.4;
}
.industry-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-violet);
  opacity: 0.65;
}

/* ---------------- The Talon Method (dark diagram) ---------------- */
.method-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: var(--space-4);
  align-items: stretch;
  margin-top: var(--space-7);
}
@media (max-width: 960px) {
  .method-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .method-arrow { display: none; }
}
.method-node {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.method-node:hover {
  border-color: rgba(155, 133, 245, 0.45);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 60px -20px rgba(123, 90, 232, 0.5);
}
.method-node::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(155, 133, 245, 0.65), transparent);
  opacity: 0;
  transition: var(--transition);
}
.method-node:hover::before { opacity: 1; }
.method-step {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(155, 133, 245, 0.9);
}
.method-node h3 { color: #fff; font-size: 1.375rem; margin: 0; }
.method-node p {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.method-arrow {
  display: grid;
  place-items: center;
  color: rgba(155, 133, 245, 0.5);
  position: relative;
}
.method-arrow svg { width: 24px; height: 24px; }

/* ---------------- Closing banner — triptych ---------------- */
.cta-banner .cta-tri {
  display: block;
}
.cta-banner .cta-tri .line { display: block; }
.cta-banner .cta-tri .line-accent {
  background: linear-gradient(92deg, #9B85F5 0%, #00E5FF 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------------- Signal thread (scroll-drawn guide line) ---------------- */
.flow-thread {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
}
/* Surfacing checkpoint — an HTML node beside the eyebrow of sections the
   thread passes beneath (.section-dark); lights + ripples on the thread's cue */
.section-head { position: relative; }
.ft-mark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-navy);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: background 500ms var(--ease), border-color 500ms var(--ease);
  pointer-events: none;
}
.ft-mark::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  opacity: 0;
}
.ft-mark.lit {
  background: var(--color-accent);
  border-color: #9B85F5;
}
.ft-mark.lit::after {
  animation: ftRipple 900ms var(--ease);
}
/* Content sits above the thread; the thread sits above plain section
   backgrounds (positioned sections — hero, .section-dark — still cover it). */
section > .container { position: relative; z-index: 2; }
.ft-spine {
  fill: none;
  stroke: url(#ftGrad);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.45;
}
.ft-halo {
  fill: none;
  stroke: url(#ftGrad);
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.1;
}
.ft-node {
  fill: var(--color-bg);
  stroke: var(--color-border-strong);
  stroke-width: 1.5;
  r: 5;
  transition: fill 500ms var(--ease), stroke 500ms var(--ease), r 500ms var(--ease);
}
.ft-node.lit {
  fill: var(--color-accent);
  stroke: var(--color-violet);
  r: 6;
}
.ft-comet {
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.ft-comet-core { fill: #00E5FF; }
.ft-comet-glow { fill: #00CFE5; opacity: 0.16; }
.ft-trail {
  fill: none;
  stroke: #00E5FF;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.ft-packet { fill: #7B5AE8; }
.ft-ripple {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ftRipple 900ms var(--ease) forwards;
  pointer-events: none;
}
@keyframes ftRipple {
  from { transform: scale(1); opacity: 0.55; }
  to   { transform: scale(4.5); opacity: 0; }
}
@media (max-width: 880px) {
  .flow-thread { display: none; }
}
body.mode-dark .flow-thread { filter: brightness(1.4); }
body.mode-dark .ft-node { fill: var(--color-bg); }
body.mode-dark .ft-packet { fill: #9B85F5; }

/* Method relay — a pulse of light travels each arrow in sequence,
   carrying the signal through the dark section */
.method-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 12px 2px rgba(0, 229, 255, 0.55);
  opacity: 0;
  animation: methodPulse 3.6s linear infinite;
}
.method-grid > div:nth-child(2).method-arrow::after { animation-delay: 0s; }
.method-grid > div:nth-child(4).method-arrow::after { animation-delay: 1.2s; }
.method-grid > div:nth-child(6).method-arrow::after { animation-delay: 2.4s; }
@keyframes methodPulse {
  0%   { left: 8%;  opacity: 0; }
  6%   { opacity: 0.9; }
  26%  { opacity: 0.9; }
  33%  { left: 78%; opacity: 0; }
  100% { left: 78%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .method-arrow::after { animation: none; opacity: 0; }
}

/* Arrival wave — fired by the signal thread when it reaches the closing
   banner: an expanding shockwave ring sweeps the section while the banner
   itself does one gentle breathing pulse */
.cta-banner::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.85);
  opacity: 0;
  pointer-events: none;
}
.cta-banner.ft-wave {
  animation: ctaPulse 950ms var(--ease);
}
.cta-banner.ft-wave::after {
  animation: ctaRing 1200ms cubic-bezier(0.2, 0.6, 0.3, 1) 60ms;
}
@keyframes ctaPulse {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.012); }
  62%  { transform: scale(0.998); }
  100% { transform: scale(1); }
}
@keyframes ctaRing {
  0%   { opacity: 0.9; transform: scale(1); border-width: 2px; }
  100% { opacity: 0; transform: scale(34); border-width: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-banner.ft-wave,
  .cta-banner.ft-wave::after { animation: none; }
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }
.reveal-d4 { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- v3 dark-mode surfaces ---------------- */
body.mode-dark .chain-step,
body.mode-dark .industry-card,
body.mode-dark .aud-pill {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}
body.mode-dark .aud-pill:hover { border-color: var(--color-violet); }
body.mode-dark .hero-support { border-top-color: var(--color-border); }

/* ============================================================================
   v4 — Mobile experience refinements
   Fixed nav on phones, swipeable card carousels, form wizard.
   ============================================================================ */

/* Anchor jumps land below the bar */
section, [id] { scroll-margin-top: 88px; }

/* Expose safe-area values so JS (?debug) can read them */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

/* The root element's background is what iOS Safari paints behind the
   status bar — keep it themed */
html { background: var(--color-bg); }
html.mode-dark { background: #050507; }

/* Phones: iOS Safari decoratively extends the ROOT scroll canvas up behind
   the status bar and excludes fixed layers from it — so scrolling content
   appears above any fixed/sticky bar and no positioning can prevent it.
   The fix is architectural: lock the root (its static background now owns
   the status-bar zone) and scroll the BODY instead; the nav is sticky
   inside that scroller. */
@media (max-width: 880px) {
  html {
    height: 100%;
    overflow: hidden;
  }
  body {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .nav { position: sticky; top: 0; }
}

/* Card groups become horizontal swipe carousels on phones — swipe through
   the cards, then continue scrolling down */
@media (max-width: 700px) {
  .services-grid,
  .pillar-grid,
  .pillar-grid.with-arrows,
  .pillar-grid.with-arrows.three,
  .industry-grid,
  .industry-grid.two,
  .full-service-grid,
  .chain,
  .chain.six {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--space-5);
    padding-block: var(--space-2) var(--space-4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar,
  .pillar-grid::-webkit-scrollbar,
  .industry-grid::-webkit-scrollbar,
  .full-service-grid::-webkit-scrollbar,
  .chain::-webkit-scrollbar { display: none; }
  .services-grid > *,
  .pillar-grid > *,
  .industry-grid > *,
  .full-service-grid > *,
  .chain > * {
    scroll-snap-align: center;
  }
  .industry-grid .industry-card.wide { grid-column: auto; }
  .industry-card.wide .industry-list { grid-template-columns: 1fr; }
  /* Cards start visible in a carousel — the reveal observer can't see
     horizontally offscreen items */
  .services-grid > .reveal,
  .pillar-grid > .reveal,
  .industry-grid > .reveal,
  .full-service-grid > .reveal,
  .chain > .reveal { opacity: 1; transform: none; }
  /* The centered card "pops" as the carousel advances */
  .services-grid > *,
  .pillar-grid > *,
  .industry-grid > *,
  .full-service-grid > *,
  .chain > * {
    transition: transform 350ms var(--ease), border-color 350ms var(--ease), box-shadow 350ms var(--ease);
  }
  .services-grid > .pop,
  .pillar-grid > .pop,
  .industry-grid > .pop,
  .full-service-grid > .pop,
  .chain > .pop {
    transform: scale(1.025);
    border-color: rgba(123, 90, 232, 0.55);
    box-shadow: 0 8px 40px -10px rgba(123, 90, 232, 0.45);
  }
}

/* Dark mode: cards carry a violet wash + tinted border so they pop off black */
body.mode-dark .service-card,
body.mode-dark .industry-card,
body.mode-dark .pillar,
body.mode-dark .chain-step,
body.mode-dark .fs-tile {
  background:
    linear-gradient(180deg, rgba(155, 133, 245, 0.07) 0%, rgba(155, 133, 245, 0) 45%),
    var(--color-bg-card);
  border-color: rgba(155, 133, 245, 0.18);
}

/* Contact form wizard — steps + progress */
.form-progress { margin-bottom: var(--space-6); }
.fp-bar {
  height: 4px;
  border-radius: 100px;
  background: var(--color-surface-2);
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.fp-fill {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--color-violet), var(--color-accent));
  transition: width 400ms var(--ease);
}
.fp-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-violet);
}
.form-step { display: none; border: none; padding: 0; margin: 0; min-width: 0; }
.form-step.active { display: block; animation: stepIn 350ms var(--ease); }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .form-step.active { animation: none; }
}
.form-nav {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.form-nav .btn { justify-content: center; }
.form-nav .btn-next,
.form-nav .form-submit { flex: 1; margin-top: 0; width: auto; }


/* ============================================ Legal pages (Privacy / Terms) ============================================ */
.legal-banner {
  padding-block: var(--space-9) var(--space-7);
  background: linear-gradient(180deg, var(--color-surface) 0%, transparent 100%);
  border-bottom: 1px solid var(--color-border);
}
.legal-banner h1 { font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem); margin-block: var(--space-3) var(--space-3); }
.legal-banner .hero-tagline { margin-bottom: var(--space-4); }
.legal-meta-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.legal-meta-pills .pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-card);
  border-radius: 999px; padding: 0.35rem 0.85rem;
}
.legal-meta-pills .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

.legal-toc {
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-7);
  box-shadow: var(--shadow-sm);
}
.legal-toc h2 {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-subtle);
  margin-bottom: var(--space-4);
}
.legal-toc ol {
  columns: 2; column-gap: var(--space-6);
  margin: 0; padding-left: 1.4em;
}
.legal-toc ol li { font-size: 0.9rem; margin-bottom: var(--space-2); break-inside: avoid; color: var(--color-text-muted); }
.legal-toc ol li::marker { color: var(--color-text-subtle); font-family: var(--font-mono); font-size: 0.8rem; }
.legal-toc a { color: var(--color-text-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--color-violet); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }

.prose h2[id] { scroll-margin-top: 96px; }
.prose .policy-label {
  display: block;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-violet);
  margin-block: var(--space-5) var(--space-2);
}
.prose ul.cols { columns: 2; column-gap: var(--space-6); }
.prose ul.cols li { break-inside: avoid; }
@media (max-width: 620px) { .prose ul.cols { columns: 1; } }

.doc-meta {
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-block: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.doc-meta table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.doc-meta th, .doc-meta td { text-align: left; padding: 0.6rem var(--space-5); border-bottom: 1px solid var(--color-border); }
.doc-meta tr:last-child th, .doc-meta tr:last-child td { border-bottom: none; }
.doc-meta th {
  width: 38%;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-subtle);
  background: var(--color-surface);
}
.doc-meta td { color: var(--color-text); }

.legal-contact-card {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-violet);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-block: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.legal-contact-card p { margin-bottom: var(--space-3); }
.legal-contact-card p:last-child { margin-bottom: 0; }
.legal-closing {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
  padding-top: var(--space-7);
}
.legal-closing .hero-tagline { margin-top: var(--space-5); }

.mode-dark .legal-meta-pills .pill { background: rgba(255, 255, 255, 0.03); }