/* ═══════════════════════ VOICE KUSTIK ═══════════════════════ */
.voice {
  background: var(--ink); color: var(--cream-100);
  position: relative; overflow: hidden;
}
.voice::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(207,227,198,.08), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(124,58,237,.06), transparent 50%);
  pointer-events: none;
}
.voice .wrap { position: relative; }
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px; align-items: center;
}
@media (max-width: 980px) { .voice-grid { grid-template-columns: 1fr; gap: 40px; } }
.voice .eyebrow { color: var(--cream-400); }
.voice .eyebrow::before { background: var(--violet-600); }
.voice .lede { color: var(--cream-400); }

.voice-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.voice-list li {
  display: grid; grid-template-columns: 14px 1fr; gap: 12px;
  font-size: 15px; line-height: 1.5; color: var(--cream-400);
}
.voice-list li::before {
  content: ''; margin-top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage); border: 1.5px solid var(--sage-deep);
}
.voice-list li strong { color: #fff; display: inline-block; margin-right: 4px; font-weight: 600; }

.voice .btn-outline {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.voice .btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.voice .btn-primary {
  background: #fff; color: var(--ink);
}
.voice .btn-primary:hover { background: var(--cream-100); }

/* ─── voice stage ─── */
.voice-stage {
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  align-items: stretch;
}

.voice-mic {
  position: relative;
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
  align-items: center;
  padding: 18px 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  backdrop-filter: blur(8px);
}
.voice-mic-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  display: grid; place-items: center;
  color: #fff;
  box-shadow:
    0 0 0 6px rgba(139, 92, 246, .18),
    0 12px 32px rgba(124, 58, 237, .35);
  position: relative; z-index: 2;
}
.voice-mic-ring {
  position: absolute;
  left: 22px; top: 50%; transform: translateY(-50%);
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid var(--violet-600);
  z-index: 1;
  animation: vmic-pulse 2.4s ease-out infinite;
}
@keyframes vmic-pulse {
  0%   { opacity: .9; transform: translateY(-50%) scale(1); }
  100% { opacity: 0;  transform: translateY(-50%) scale(2.2); }
}
.voice-wave {
  display: flex; gap: 3px; align-items: center; height: 36px;
}
.voice-wave span {
  display: block; width: 3px; min-height: 4px;
  background: linear-gradient(to top, var(--sage-deep), var(--sage));
  border-radius: 99px;
  animation: vw 1.6s ease-in-out infinite;
}
.voice-wave span:nth-child(1)  { height: 22%; animation-delay:.00s }
.voice-wave span:nth-child(2)  { height: 56%; animation-delay:.08s }
.voice-wave span:nth-child(3)  { height: 86%; animation-delay:.16s }
.voice-wave span:nth-child(4)  { height: 62%; animation-delay:.24s }
.voice-wave span:nth-child(5)  { height: 96%; animation-delay:.32s }
.voice-wave span:nth-child(6)  { height: 38%; animation-delay:.40s }
.voice-wave span:nth-child(7)  { height: 72%; animation-delay:.48s }
.voice-wave span:nth-child(8)  { height: 28%; animation-delay:.56s }
.voice-wave span:nth-child(9)  { height: 80%; animation-delay:.64s }
.voice-wave span:nth-child(10) { height: 50%; animation-delay:.72s }
.voice-wave span:nth-child(11) { height: 90%; animation-delay:.80s }
.voice-wave span:nth-child(12) { height: 36%; animation-delay:.88s }
@keyframes vw { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1.3); } }

.voice-transcript {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 8px;
}
.voice-line {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: flex-start;
  animation: vfade .5s ease;
}
.voice-line.v-kust { grid-template-columns: 36px 1fr; }
@keyframes vfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.voice-av {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}
.voice-av.you { background: rgba(255,255,255,.1); color: #fff; }
.voice-av.kust { background: var(--sage-soft); }

.voice-bubble {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  font-size: 14px; line-height: 1.5;
  color: var(--cream-100);
}
.voice-bubble.dark {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.3);
}
.voice-action {
  display: inline-block; margin-top: 8px;
  padding: 4px 10px;
  background: rgba(207,227,198,0.15);
  border: 1px solid rgba(207,227,198,0.3);
  border-radius: var(--r-full);
  font-size: 12px; font-family: var(--font-mono);
  color: var(--sage);
  letter-spacing: 0.02em;
}

/* ═══════════════════════ SCIENCE / ENGINE ═══════════════════════ */
.science {
  background: var(--cream-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.engine-stack {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 56px;
}
.es-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 20px;
  align-items: center;
}
@media (max-width: 760px) {
  .es-row { grid-template-columns: 1fr; gap: 8px; }
}
.es-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.05em;
  font-weight: 500;
}
.es-label span { display: inline-block; color: var(--fg); font-weight: 600; margin-left: 2px; }
.es-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.es-cell {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  background: var(--cream-100);
  border: 1px solid var(--border);
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  min-height: 56px;
}
.es-cell.agent { background: #fff; border-color: var(--ink); }
.es-cell.model { background: var(--sage-soft); border-color: var(--sage-deep); }
.es-cell.calib { background: var(--clay-100); border-color: var(--clay-500); color: var(--clay-700); }
.es-meta { font-size: 10px; color: var(--fg-3); font-weight: 400; font-family: var(--font-mono); }

/* ─── science cards ─── */
.sci-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .sci-grid { grid-template-columns: 1fr; } }
.sci-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
  transition: all .2s ease;
  position: relative;
}
.sci-card:hover { box-shadow: var(--shadow-md); border-color: var(--fg-4); }
.sci-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; font-weight: 500;
  color: var(--fg-3);
}
.sci-card h4 { font-size: 22px; letter-spacing: -0.02em; }
.sci-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.sci-card code {
  background: var(--cream-100);
  padding: 2px 6px; border-radius: 4px;
  font-size: 12px; font-family: var(--font-mono);
  color: var(--cream-900);
}
.sci-link {
  margin-top: auto; padding-top: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-3);
  display: inline-flex; gap: 4px; align-items: center;
  border-top: 1px solid var(--border-soft);
}
.sci-link .arrow { transition: transform .15s ease; }
.sci-link:hover { color: var(--fg); }
.sci-link:hover .arrow { transform: translate(2px, -2px); }

.sop-bar {
  margin-top: auto;
  position: relative;
  height: 28px;
  background: var(--cream-100);
  border-radius: var(--r-full);
  overflow: hidden;
  display: flex; align-items: center;
}
.sop-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(to right, var(--sage), var(--sage-deep));
}
.sop-num {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--cream-900);
  padding-left: 14px;
}

/* ─── validation strip ─── */
.sci-strip {
  background: var(--ink);
  border-radius: var(--r-2xl);
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  color: var(--cream-100);
}
@media (max-width: 760px) {
  .sci-strip { grid-template-columns: repeat(2, 1fr); padding: 24px; gap: 24px; }
}
.sci-strip-item {
  display: flex; flex-direction: column; gap: 4px;
}
.sci-strip-item .big {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-sans);
}
.sci-strip-item .lbl {
  font-size: 13px;
  color: var(--cream-400);
  line-height: 1.4;
}

/* ═══════════════════════ TWEAKS PANEL ═══════════════════════ */
.tweaks {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: none;
  flex-direction: column;
  font-family: var(--font-sans);
}
.tweaks.open { display: flex; animation: tw-in .25s ease; }
@keyframes tw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.tw-head .ttl { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tw-head .ttl::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--clay-500); }
.tw-head button.tw-close {
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--cream-100); color: var(--fg-3);
}
.tw-head button.tw-close:hover { background: var(--cream-200); color: var(--fg); }
.tw-body {
  padding: 4px 0;
  overflow-y: auto;
  flex: 1;
}
.tw-group {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.tw-group:last-child { border-bottom: 0; }
.tw-group .grp-name {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  color: var(--fg-3); margin-bottom: 10px;
}
.tw-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.tw-row:last-child { margin-bottom: 0; }
.tw-label { font-size: 13px; color: var(--fg); }
.tw-seg {
  display: inline-flex; gap: 2px;
  background: var(--cream-100); border-radius: var(--r-full);
  padding: 3px;
}
.tw-seg button {
  padding: 5px 10px; font-size: 12px; font-weight: 500;
  border-radius: var(--r-full); color: var(--fg-3);
}
.tw-seg button.on {
  background: var(--fg); color: #fff;
}

/* Toggle launcher (always visible when panel closed) */
.tw-launch {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 99;
  background: var(--fg); color: #fff;
  border-radius: var(--r-full);
  padding: 12px 16px 12px 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all .2s ease;
}
.tw-launch:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.tw-launch .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage); box-shadow: 0 0 0 3px rgba(207,227,198,.4);
  animation: livepulse 1.8s ease-in-out infinite;
}
.tw-launch.hidden { display: none; }

/* ═══════════════════════ SWARM CANVAS (philosophy) ═══════════════════════ */
.swarm-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
.swarm-canvas {
  width: 100%; height: 100%;
  display: block;
  cursor: pointer;
  touch-action: manipulation;
}
.swarm-label {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-400);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  padding: 6px 14px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.swarm-controls {
  display: flex; gap: 6px;
  flex-wrap: wrap;
  margin-top: 36px;
  justify-content: center;
}
.swarm-controls button {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--cream-400);
  transition: all .18s ease;
}
.swarm-controls button:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateY(-1px);
}
.swarm-controls button.on {
  background: var(--sage);
  color: var(--cream-900);
  border-color: var(--sage-deep);
}

/* ═══════════════════════ WALL OF MASCOTS ═══════════════════════ */
.wall {
  background: var(--cream-50);
  padding: clamp(96px, 11vw, 160px) 0;
  position: relative;
  overflow: hidden;
  min-height: 720px;
}
.wall-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px);
  align-items: center;
}
.wall-copy {
  background: color-mix(in oklab, var(--cream-50) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 36px 32px;
  box-shadow: 0 30px 60px -30px rgba(31, 22, 12, 0.18);
}
@media (max-width: 880px) { .wall-grid { grid-template-columns: 1fr; } .wall-copy { padding: 26px 22px 22px; } }
.wall-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 22% 50%, color-mix(in oklab, var(--cream-50) 70%, transparent) 0%, transparent 70%),
    linear-gradient(to bottom, color-mix(in oklab, var(--cream-50) 45%, transparent) 0%, transparent 18%, transparent 82%, color-mix(in oklab, var(--cream-50) 45%, transparent) 100%);
}
.wall-copy h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -0.025em; }
.wall-copy h2 .em { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.wall-copy p { font-size: 16px; line-height: 1.6; color: var(--fg-2); margin-top: 18px; max-width: 50ch; }
.wall-stat { display: flex; gap: 28px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.wall-stat div { font-size: 12px; color: var(--fg-3); max-width: 14ch; line-height: 1.4; }
.wall-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--fg); margin-bottom: 4px;
}
.wall-board {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 14px;
  padding: 40px clamp(24px, 4vw, 64px);
  background: transparent;
  border: 0;
  border-radius: 0;
  align-content: center;
  opacity: 0.85;
}
@media (max-width: 1100px) {
  .wall-board { grid-template-columns: repeat(14, 1fr); }
}
@media (max-width: 600px) {
  .wall-board { grid-template-columns: repeat(10, 1fr); gap: 10px; padding: 24px 16px; }
}
.wall-board .mascot {
  --size: 100%;
  --cell-scale: 1;
  aspect-ratio: 1 / 1;
  position: relative;
  display: block;
  transform: scale(var(--cell-scale));
  transform-origin: center;
  opacity: var(--cell-opacity, 1);
  transition: transform .5s ease, opacity .5s ease;
  will-change: transform, opacity;
}
.wall-board .mascot .m-shadow { display: none; }
.wall-board .mascot .m-body { inset: 8% 14% 6% 14%; }
.wall-board .mascot:hover { --cell-scale: 1.15; --cell-opacity: 1 !important; }
.wall-board .mascot:hover .m-anchor { animation-duration: 1.6s; }

/* ═══════════════════════ HERO SWARM (replaces mascot) ═══════════════════════ */
.hero-swarm-stage {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  min-height: 540px;
  position: relative;
  overflow: visible;
}
.hero-swarm-stage::before {
  /* keep sage glow but bigger and softer */
  content: '';
  position: absolute; inset: -10% -10% -10% -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--sage) 0%, var(--sage-soft) 32%, transparent 68%);
  filter: blur(28px);
  opacity: .55;
  z-index: 0;
  animation: hero-glow 9s ease-in-out infinite;
}
.hero-swarm-stage::after { display: none; }
@keyframes hero-glow {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .55; }
  50%      { transform: scale(1.08) rotate(8deg); opacity: .75; }
}
.hero-swarm {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 1;
  cursor: pointer;
  touch-action: manipulation;
}

/* Push hero grid to give the swarm a touch more room */
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; }
  .hero-swarm-stage { transform: scale(1.05); transform-origin: center; }
}
@media (min-width: 1280px) {
  .hero-swarm-stage { transform: scale(1.15); }
}

/* Orbits sit above the swarm */
.hero-swarm-stage .orbit { z-index: 3; }

/* On dark hero (Tweaks toggle) — invert swarm dots to cream */
body.hero-dark .hero-swarm-stage::before { opacity: .25; }

/* ═══════════════════════ APPLICATIONS / USE CASES ═══════════════════════ */
.uses {
  background: var(--cream-50);
  border-top: 1px solid var(--border);
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 14px;
}
@media (max-width: 960px) {
  .uses-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .uses-grid { grid-template-columns: repeat(2, 1fr); }
}

.use-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: all .25s ease;
  grid-column: span 2;
}
.use-tile:hover {
  border-color: var(--fg-4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.use-tile.feature {
  grid-column: span 3;
  grid-row: span 1;
}

@media (max-width: 960px) {
  .use-tile, .use-tile.feature { grid-column: span 3; }
}
@media (max-width: 640px) {
  .use-tile, .use-tile.feature { grid-column: span 2; }
}

.use-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.use-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.use-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-3);
  margin: 0;
}
.use-viz {
  margin-top: auto;
  padding-top: 12px;
  min-height: 88px;
  position: relative;
}

/* ─── (1) Creative testing ─── */
.viz-creative {
  display: flex; flex-direction: column; gap: 6px;
}
.creo-row {
  display: grid;
  grid-template-columns: 16px 1fr 32px;
  gap: 8px; align-items: center;
}
.creo-row.best { font-weight: 600; }
.creo-tag {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--fg-3);
  text-align: center;
}
.creo-bar {
  height: 6px; background: var(--cream-100); border-radius: 99px; overflow: hidden;
}
.creo-bar i {
  display: block; height: 100%;
  background: var(--fg-4);
  border-radius: 99px;
  animation: creo-pulse 4s ease-in-out infinite;
}
.creo-row.best .creo-bar i { background: var(--sage-deep); animation-duration: 2.4s; }
@keyframes creo-pulse {
  0%, 100% { opacity: .85; }
  50%      { opacity: 1; }
}
.creo-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.creo-row.best .creo-pct { color: var(--success-700); }
.creo-badge {
  position: absolute; right: -2px; top: 50%;
  transform: translateY(-50%);
  color: var(--sage-deep);
  font-size: 14px;
}

/* ─── (2) Product launches ─── */
.viz-launch { display: flex; flex-direction: column; gap: 8px; }
.launch-chart { width: 100%; height: 70px; display: block; }
.launch-chart circle { animation: launch-pulse 2s ease-in-out infinite; }
@keyframes launch-pulse {
  0%, 100% { r: 4; }
  50%      { r: 6; }
}
.launch-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3);
}
.launch-meta .growth { color: var(--success-700); font-weight: 600; }

/* ─── (3) Price optimization ─── */
.tile-price { background: var(--cream-100); }
.viz-price {
  position: relative;
  margin-top: 14px;
}
.price-axis {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.price-curve { width: 100%; height: 140px; display: block; }
.price-curve circle { animation: launch-pulse 2s ease-in-out infinite; }

/* ─── (4) Market segmentation ─── */
.tile-segment { background: var(--ink); color: var(--cream-100); }
.tile-segment .use-num { color: var(--cream-400); }
.tile-segment .use-desc { color: var(--cream-400); }
.tile-segment:hover { border-color: var(--ink); }
.viz-segment { min-height: 200px; }
.seg-scatter {
  position: relative;
  height: 100%;
  min-height: 200px;
  background:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 100% 25%;
  border-radius: var(--r-md);
}
.seg-scatter .dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  transform: translate(-50%, -50%);
  animation: seg-pulse 2.4s ease-in-out infinite;
}
.seg-scatter .dot.c2 { background: var(--clay-500); }
.seg-scatter .dot.c3 { background: #FAF9F5; }
.seg-scatter .dot:nth-child(2)  { animation-delay: .2s; }
.seg-scatter .dot:nth-child(3)  { animation-delay: .4s; }
.seg-scatter .dot:nth-child(4)  { animation-delay: .6s; }
.seg-scatter .dot:nth-child(5)  { animation-delay: .8s; }
.seg-scatter .dot:nth-child(6)  { animation-delay: 1s; }
.seg-scatter .dot:nth-child(7)  { animation-delay: 1.2s; }
.seg-scatter .dot:nth-child(8)  { animation-delay: 1.4s; }
@keyframes seg-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .85; }
  50%      { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}
.seg-scatter .cluster {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--r-full);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ─── (5) Value proposition ─── */
.viz-value { display: flex; flex-direction: column; gap: 8px; }
.val-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px; align-items: center;
  font-size: 12px;
}
.val-line span { color: var(--fg-2); }
.val-line.winner span { color: var(--fg); font-weight: 600; }
.val-bar {
  height: 22px; background: var(--cream-100); border-radius: 99px;
  position: relative; overflow: hidden;
}
.val-bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--fg-4);
  border-radius: 99px;
  animation: val-fill 3s ease-out infinite;
}
.val-line.winner .val-bar i { background: linear-gradient(to right, var(--sage), var(--sage-deep)); }
@keyframes val-fill {
  0%, 100% { width: var(--w, 50%); opacity: .9; }
  50%      { opacity: 1; }
}

/* ─── (6) Churn ─── */
.viz-churn { display: flex; flex-direction: column; gap: 6px; }
.viz-churn svg { width: 100%; height: 60px; display: block; }
.churn-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; font-family: var(--font-mono); color: var(--fg-3);
}
.churn-meta .bad { color: var(--danger-700); font-weight: 600; }

/* ─── (7) Campaign ─── */
.viz-campaign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.camp-cell {
  background: var(--cream-100);
  border-radius: var(--r-md);
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.camp-cell.best { background: var(--ink); color: var(--cream-100); }
.camp-cell span {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.camp-cell.best span { color: var(--cream-400); }
.camp-cell strong {
  font-size: 18px; letter-spacing: -0.02em; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ─── (8) Positioning ─── */
.viz-position { min-height: 140px; }
.pos-map {
  position: relative;
  height: 140px;
  background:
    linear-gradient(to right, var(--border) 1px, transparent 1px) 50% 0 / 50% 100%,
    linear-gradient(to bottom, var(--border) 1px, transparent 1px) 0 50% / 100% 50%;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.pos-map .ax-lbl {
  position: absolute;
  font-family: var(--font-mono); font-size: 9px; color: var(--fg-4);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pos-map .ax-lbl.x { right: 6px; bottom: 4px; }
.pos-map .ax-lbl.x-left { left: 6px; bottom: 4px; }
.pos-map .ax-lbl.y { top: 4px; left: 6px; }
.pos-map .ax-lbl.y-bot { bottom: 4px; left: 50%; transform: translateX(-50%); }
.pos-map .comp {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 10px; font-weight: 500;
  padding: 4px 8px;
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--fg-3);
  white-space: nowrap;
}
.pos-map .comp.you {
  background: var(--fg); color: #fff;
  border-color: var(--fg);
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(207,227,198,0.4);
  animation: pos-pulse 2s ease-in-out infinite;
}
@keyframes pos-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(207,227,198,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(207,227,198,0.6); }
}

/* ─── (9) Brand perception gauge ─── */
.viz-brand {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 110px;
}
.gauge {
  position: relative;
  width: 130px; height: 80px;
  display: flex; align-items: flex-end; justify-content: center;
}
.gauge-arc {
  position: absolute;
  width: 130px; height: 65px;
  border-radius: 130px 130px 0 0;
  background: conic-gradient(
    from 270deg,
    var(--danger-700) 0deg 30deg,
    #FB923C 30deg 60deg,
    #FCD34D 60deg 90deg,
    var(--sage-deep) 90deg 120deg,
    var(--success-700) 120deg 180deg
  );
  overflow: hidden;
  bottom: 0;
}
.gauge-arc::before {
  content: '';
  position: absolute;
  inset: 10px 10px 0 10px;
  background: #fff;
  border-radius: 120px 120px 0 0;
}
.gauge-needle {
  position: absolute;
  width: 2px; height: 56px;
  background: var(--fg);
  bottom: 0;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(28deg);
  border-radius: 2px;
  z-index: 2;
  animation: gauge-tick 4s ease-in-out infinite;
}
.gauge-needle::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  bottom: -5px; left: -4px;
  background: var(--fg);
  border-radius: 50%;
}
@keyframes gauge-tick {
  0%, 100% { transform: translateX(-50%) rotate(28deg); }
  50%      { transform: translateX(-50%) rotate(36deg); }
}
.gauge-num {
  position: absolute;
  bottom: 22px; left: 0; right: 0; text-align: center;
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  z-index: 3;
  font-variant-numeric: tabular-nums;
}
.gauge-lbl {
  position: absolute;
  bottom: 8px; left: 0; right: 0; text-align: center;
  font-size: 9px; color: var(--fg-3);
  font-family: var(--font-mono); letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 3;
}

.brand-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.bt {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-weight: 500;
}
.bt.good { background: #DCFCE7; color: var(--success-700); }
.bt.neutral { background: var(--cream-100); color: var(--fg-3); }
.bt.bad { background: #FEF2F2; color: var(--danger-700); }

/* ─── Uses CTA strip ─── */
.uses-cta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  background: var(--ink);
  color: var(--cream-100);
  border-radius: var(--r-xl);
}
@media (max-width: 720px) {
  .uses-cta { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .uses-cta .btn { width: 100%; justify-content: center; }
}
.uses-cta h4 { font-size: 18px; letter-spacing: -0.015em; }
.uses-cta p { margin: 4px 0 0; font-size: 13px; color: var(--cream-400); line-height: 1.5; max-width: 56ch; }
.uses-cta .btn-primary { background: #fff; color: var(--ink); }
.uses-cta .btn-primary:hover { background: var(--cream-100); }
.uses-cta .mascot .m-body { background: var(--cream-100); }
.uses-cta .mascot .m-eye-inner { background: var(--ink); }

/* Theme: chaotic mascots (Tweaks override) */
body.mascots-calm .mascot:not(.tiny) .m-body { animation-duration: 16s !important; }
body.mascots-calm .mascot:not(.tiny) .m-anchor { animation-duration: 9s !important; }
body.mascots-chaotic .mascot:not(.tiny) .m-anchor { animation-duration: 2.4s !important; }
body.mascots-chaotic .mascot:not(.tiny) .m-body { animation-duration: 3.5s !important; }
body.mascots-off .mascot .m-anchor,
body.mascots-off .mascot .m-body,
body.mascots-off .mascot .m-eye-inner,
body.mascots-off .mascot .m-shadow { animation: none !important; }

/* Hide sections via Tweaks */
body.hide-blog #blog,
body.hide-voice #voice,
body.hide-science #engine { display: none; }

/* Dark hero variant */
body.hero-dark .hero { background: var(--ink); color: var(--cream-100); }
body.hero-dark .hero .lede { color: var(--cream-400); }
body.hero-dark .hero .hero-meta { border-top-color: rgba(255,255,255,.12); }
body.hero-dark .hero .hero-meta span { color: var(--cream-400); }
body.hero-dark .hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.25); }
body.hero-dark .hero .btn-primary { background: #fff; color: var(--ink); }
body.hero-dark .hero .eyebrow { color: var(--cream-400); }
body.hero-dark .hero .orbit { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(6px); }
body.hero-dark .hero .hero-bg .blob { display: none; }
body.hero-dark .nav { background: rgba(14,14,15,0.82); }
body.hero-dark .nav.scrolled { background: rgba(14,14,15,.94); border-bottom-color: rgba(255,255,255,.08); }
body.hero-dark .nav-links a { color: var(--cream-400); }
body.hero-dark .nav-links a:hover { color: #fff; }
body.hero-dark .nav-cta .btn-ghost { color: var(--cream-100); }
body.hero-dark .nav-cta .btn-ghost:hover { background: rgba(255,255,255,.08); }
body.hero-dark .nav-cta .btn-primary { background: #fff; color: var(--ink); }
body.hero-dark .brand-dot { color: var(--sage-deep); }
