/* ============================================================
   visuals.css — bespoke illustrative blocks (no real client UI)
   - Hero globe / world-reach visualization (home)
   - Case study mockups (representative, NDA-safe)
   - About-page brand statement block
   ============================================================ */

/* ---------- Shared visual frame ---------- */
.viz {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  isolation: isolate;
}
.viz .viz-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.viz .viz-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(200,154,60,0.18);
}
.viz .viz-corner {
  position: absolute;
  bottom: 16px; right: 16px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(20,40,74,0.92);
  color: #E2E8F0;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}
.viz .viz-corner .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-lite);
  box-shadow: 0 0 0 0 rgba(224,186,110,0.6);
  animation: viz-pulse 1.8s ease-out infinite;
}
@keyframes viz-pulse {
  0% { box-shadow: 0 0 0 0 rgba(224,186,110,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(224,186,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,186,110,0); }
}

/* ============================================================
   1. HERO — Global reach satellite/world map visual
   ============================================================ */
.viz-globe {
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(ellipse at 28% 22%, rgba(200,154,60,0.18), transparent 55%),
    radial-gradient(ellipse at 78% 78%, rgba(143,184,255,0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.viz-globe::before {
  /* faint hex/grid background */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  pointer-events: none;
}
.viz-globe svg.world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.viz-globe .world .land {
  fill: rgba(173,200,255,0.10);
  stroke: rgba(173,200,255,0.18);
  stroke-width: 0.4;
}
.viz-globe .world .grid {
  stroke: rgba(255,255,255,0.06);
  stroke-width: 0.4;
  fill: none;
}
.viz-globe .world .arc {
  fill: none;
  stroke: rgba(200,154,60,0.85);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  animation: viz-arc-flow 2.2s linear infinite;
}
.viz-globe .world .arc.alt {
  stroke: rgba(224,186,110,0.85);
 
}
.viz-globe .world .arc.teal {
  stroke: rgba(143,184,255,0.85);
  filter: drop-shadow(0 0 4px rgba(143,184,255,0.6));
 
}
@keyframes viz-arc-flow {
  to { stroke-dashoffset: -20; }
}
.viz-globe .world .node {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 2;
}
.viz-globe .world .node-glow {
  fill: rgba(200,154,60,0.35);
  animation: viz-node-glow 2.4s ease-in-out infinite;
}
.viz-globe .world .node-glow.alt { animation-delay: 0.4s; fill: rgba(224,186,110,0.32); }
.viz-globe .world .node-glow.teal { animation-delay: 0.9s; fill: rgba(143,184,255,0.32); }
.viz-globe .world .node-glow.amber { animation-delay: 1.3s; fill: rgba(245,158,11,0.32); }
@keyframes viz-node-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(2.2); opacity: 0; }
}
.viz-globe .world .node-label {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  fill: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
}
.viz-globe .world .node-label-bg {
  fill: rgba(10,22,40,0.85);
  stroke: rgba(255,255,255,0.1);
  stroke-width: 0.5;
}

/* HUD overlays */
.viz-globe .hud {
  position: absolute;
  z-index: 3;
  background: rgba(10,22,40,0.78);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  color: #C7D2E0;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.viz-globe .hud .hud-eyebrow {
  font-size: 0.625rem;
  color: #94A3B8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.viz-globe .hud strong {
  color: #fff;
  font-weight: 600;
}
.viz-globe .hud .row {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 0;
}
.viz-globe .hud .row .swatch {
  width: 8px; height: 8px; border-radius: 50%;
  flex: none;
}
.viz-globe .hud-tl { top: 60px; left: 16px; max-width: 200px; }
.viz-globe .hud-br { bottom: 60px; right: 16px; max-width: 220px; }

.viz-globe .hud-bar {
  display: grid;
  grid-template-columns: 70px 1fr 38px;
  gap: 8px;
  align-items: center;
  font-size: 0.625rem;
  margin-top: 4px;
}
.viz-globe .hud-bar .track {
  height: 4px;
  border-radius: 2px;
  background: var(--paper-3);
  overflow: hidden;
}
.viz-globe .hud-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--accent-lite));
  border-radius: 2px;
}
.viz-globe .hud-bar .val {
  text-align: right;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 760px) {
  .viz-globe .hud-tl, .viz-globe .hud-br { display: none; }
}

/* ============================================================
   2. CASE STUDY MOCKUPS — representative, NDA-safe
   Each is a stylized "browser frame" containing an SVG/CSS scene.
   ============================================================ */
.viz-mock {
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  padding: 0;
  display: block;
}
.viz-mock .mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.viz-mock .mock-bar .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
}
.viz-mock .mock-bar .url {
  flex: 1;
  margin-left: 10px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}
.viz-mock .mock-body {
  position: relative;
  height: calc(100% - 42px);
  overflow: hidden;
}

/* --- Mock A: Multilingual chatbot (NAQEL) --- */
.mock-chat { background: linear-gradient(180deg, #0F2240, #16315A); padding: 18px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.mock-chat .panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 0;
}
.mock-chat .panel-eyebrow {
  font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: 0.14em;
  color: #94A3B8; text-transform: uppercase;
}
.mock-chat .stat-row {
  display: flex; gap: 8px;
}
.mock-chat .stat-pill {
  flex: 1;
  background: rgba(200,154,60,0.18);
  border: 1px solid rgba(200,154,60,0.3);
  border-radius: 8px;
  padding: 8px;
  color: #fff;
}
.mock-chat .stat-pill .v { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; line-height: 1; }
.mock-chat .stat-pill .l { font-size: 0.5625rem; color: #B7C5DD; margin-top: 4px; letter-spacing: 0.04em; }
.mock-chat .lang-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.mock-chat .lang-row { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 0.625rem; color: #C7D2E0; }
.mock-chat .lang-row .bar { width: 60%; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; align-self: center; overflow: hidden; }
.mock-chat .lang-row .bar i { display: block; height: 100%; background: var(--blue); border-radius: 2px; }

.mock-chat .chat {
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.mock-chat .bubble {
  max-width: 85%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #fff;
}
.mock-chat .bubble.in { align-self: flex-start; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.07); border-bottom-left-radius: 3px; }
.mock-chat .bubble.out { align-self: flex-end; background: var(--blue); border-bottom-right-radius: 3px; }
.mock-chat .bubble .meta { display: block; font-family: var(--f-mono); font-size: 0.5rem; letter-spacing: 0.1em; opacity: 0.6; margin-bottom: 3px; text-transform: uppercase; }
.mock-chat .typing { align-self: flex-start; display: inline-flex; gap: 3px; padding: 8px 11px; background: rgba(255,255,255,0.07); border-radius: 12px; }
.mock-chat .typing i { width: 5px; height: 5px; border-radius: 50%; background: #94A3B8; animation: typing 1.4s ease-in-out infinite; }
.mock-chat .typing i:nth-child(2) { animation-delay: 0.2s; }
.mock-chat .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

/* --- Mock B: AI visibility analytics (Radarly) --- */
.mock-radar { background: linear-gradient(180deg, #0F2240, #16315A); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: stretch; }
.mock-radar .col { display: flex; flex-direction: column; gap: 10px; }
.mock-radar .panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 0;
}
.mock-radar .panel-eyebrow {
  font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: 0.14em;
  color: #94A3B8; text-transform: uppercase;
}
.mock-radar .panel-title { font-family: var(--f-display); font-weight: 600; color: #fff; font-size: 0.8125rem; }
.mock-radar .provider-row { display: grid; grid-template-columns: 70px 1fr 32px; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 0.625rem; color: #C7D2E0; }
.mock-radar .provider-row .bar { height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.mock-radar .provider-row .bar i { display: block; height: 100%; border-radius: 3px; }
.mock-radar .provider-row .v { color: #fff; font-weight: 600; text-align: right; }
.mock-radar .stat-block { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-radar .stat-block .stat { background: rgba(200,154,60,0.16); border: 1px solid rgba(200,154,60,0.28); border-radius: 8px; padding: 8px; }
.mock-radar .stat-block .stat .v { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; color: #fff; line-height: 1; }
.mock-radar .stat-block .stat .l { font-size: 0.5625rem; color: #B7C5DD; margin-top: 4px; letter-spacing: 0.04em; }

/* --- Mock C: Fleet predictive ML (CBU) --- */
.mock-fleet { background: linear-gradient(180deg, #0F2240, #16315A); padding: 16px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.mock-fleet .map-pane {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(200,154,60,0.15), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(224,186,110,0.10), transparent 60%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}
.mock-fleet .map-pane::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.mock-fleet .map-pane svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-fleet .right { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.mock-fleet .panel {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px; flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.mock-fleet .panel-eyebrow { font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: 0.14em; color: #94A3B8; text-transform: uppercase; }
.mock-fleet .panel-title { font-family: var(--f-display); font-weight: 600; color: #fff; font-size: 0.8125rem; }
.mock-fleet .delta { font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; color: #fff; line-height: 1; }
.mock-fleet .delta .sign { color: var(--accent-lite); }
.mock-fleet .delta-label { font-size: 0.625rem; color: #B7C5DD; margin-top: 2px; letter-spacing: 0.04em; }
.mock-fleet .alert-row { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.625rem; color: #C7D2E0; }
.mock-fleet .alert-row .swatch { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mock-fleet .alert-row .swatch.ok { background: var(--accent-lite); }
.mock-fleet .alert-row .swatch.warn { background: #f5b441; }
.mock-fleet .alert-row .swatch.risk { background: #ef6464; }
.mock-fleet .alert-row .grow { flex: 1; height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.mock-fleet .alert-row .grow i { display: block; height: 100%; }

/* --- Mock D: CRS / geospatial (Schlumberger) --- */
.mock-crs { background: linear-gradient(180deg, #0F2240, #16315A); padding: 16px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; }
.mock-crs .search-pane {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0;
}
.mock-crs .search-input {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,154,60,0.4);
  border-radius: 7px;
  padding: 7px 10px;
  font-family: var(--f-mono); font-size: 0.625rem; color: #fff;
  box-shadow: 0 0 0 3px rgba(200,154,60,0.15);
}
.mock-crs .search-input::before {
  content: "⌕"; color: var(--blue); font-size: 0.8125rem;
}
.mock-crs .crs-row {
  display: grid; grid-template-columns: 48px 1fr 32px; gap: 8px;
  font-family: var(--f-mono); font-size: 0.625rem;
  padding: 6px 8px;
  border-radius: 6px;
  color: #C7D2E0;
  border: 1px solid transparent;
}
.mock-crs .crs-row.active { background: rgba(200,154,60,0.16); border-color: rgba(200,154,60,0.32); color: #fff; }
.mock-crs .crs-row .epsg { color: var(--blue); font-weight: 500; }
.mock-crs .crs-row.active .epsg { color: var(--accent-lite); }
.mock-crs .crs-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-crs .crs-row .conf { text-align: right; opacity: 0.8; }
.mock-crs .map-pane {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(200,154,60,0.18), transparent 60%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}
.mock-crs .map-pane::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.mock-crs .map-pane svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-crs .crosshair {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border: 1.5px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(200,154,60,0.18), inset 0 0 12px rgba(200,154,60,0.3);
}
.mock-crs .crosshair::before, .mock-crs .crosshair::after {
  content: ""; position: absolute; background: var(--blue);
}
.mock-crs .crosshair::before { left: -10px; right: -10px; top: 50%; height: 1px; transform: translateY(-50%); }
.mock-crs .crosshair::after { top: -10px; bottom: -10px; left: 50%; width: 1px; transform: translateX(-50%); }
.mock-crs .coords {
  position: absolute; bottom: 8px; left: 8px;
  font-family: var(--f-mono); font-size: 0.5625rem;
  color: #94A3B8; letter-spacing: 0.06em;
  background: rgba(10,22,40,0.7);
  padding: 4px 7px; border-radius: 4px;
}

/* --- Mock E: RPA pipeline (Email RPA) --- */
.mock-rpa { background: linear-gradient(180deg, #0F2240, #16315A); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mock-rpa .flow {
  flex: 1;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: center;
  position: relative;
}
.mock-rpa .step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 10px 8px;
  text-align: center;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  position: relative;
}
.mock-rpa .step .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(200,154,60,0.18);
  border: 1px solid rgba(200,154,60,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-lite);
}
.mock-rpa .step .icon svg { width: 16px; height: 16px; }
.mock-rpa .step .name { font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: 0.06em; color: #C7D2E0; text-transform: uppercase; }
.mock-rpa .step .v { font-family: var(--f-display); font-weight: 700; color: #fff; font-size: 0.8125rem; }
.mock-rpa .step.active { border-color: rgba(200,154,60,0.55); box-shadow: 0 0 0 3px rgba(200,154,60,0.18); }
.mock-rpa .arrow {
  position: absolute; top: 50%; right: -8px; transform: translateY(-50%);
  width: 14px; height: 1px; background: rgba(255,255,255,0.18);
  z-index: 1;
}
.mock-rpa .arrow::after {
  content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 5px; height: 5px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
}
.mock-rpa .meter-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.mock-rpa .meter {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px;
}
.mock-rpa .meter .l { font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: 0.14em; color: #94A3B8; text-transform: uppercase; }
.mock-rpa .meter .v { font-family: var(--f-display); font-weight: 700; color: #fff; font-size: 1.125rem; line-height: 1; margin-top: 4px; }
.mock-rpa .meter .v .accent { color: var(--accent-lite); font-size: 0.75rem; margin-left: 4px; }

/* --- Mock F: EdTech adaptive learning (ShikshaML) --- */
.mock-edu { background: linear-gradient(180deg, #0F2240, #16315A); padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-edu .card-pane {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.mock-edu .panel-eyebrow { font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: 0.14em; color: #94A3B8; text-transform: uppercase; }
.mock-edu .question {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; padding: 10px;
  font-size: 0.6875rem; color: #fff; line-height: 1.4;
}
.mock-edu .opt-row { display: flex; flex-direction: column; gap: 6px; }
.mock-edu .opt {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: var(--f-mono); font-size: 0.625rem; color: #C7D2E0;
}
.mock-edu .opt .marker {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5625rem; color: #94A3B8; flex: none;
}
.mock-edu .opt.right { background: rgba(224,186,110,0.10); border-color: rgba(224,186,110,0.32); color: #fff; }
.mock-edu .opt.right .marker { background: var(--accent-lite); border-color: var(--accent-lite); color: #0F2240; }
.mock-edu .opt.wrong { background: rgba(239,100,100,0.08); border-color: rgba(239,100,100,0.28); color: #FFC9C9; }
.mock-edu .skill-row { display: grid; grid-template-columns: 90px 1fr 30px; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 0.625rem; color: #C7D2E0; }
.mock-edu .skill-row .bar { height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.mock-edu .skill-row .bar i { display: block; height: 100%; border-radius: 3px; }
.mock-edu .skill-row .v { color: #fff; font-weight: 600; text-align: right; }
.mock-edu .recommend {
  margin-top: auto;
  background: rgba(200,154,60,0.18);
  border: 1px solid rgba(200,154,60,0.32);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.6875rem;
  color: #fff;
}
.mock-edu .recommend strong { color: var(--accent-lite); font-weight: 600; }

/* ============================================================
   3. Hero meta — replace "★ 14+ products in production" etc.
   (left as-is in HTML; just here for reference)
   ============================================================ */

/* ============================================================
   4. ABOUT — Bold visual statement block (replaces empty left col)
   ============================================================ */
.brand-statement {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: #fff;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 28px;
  min-height: 100%;
  isolation: isolate;
}
.brand-statement::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.brand-statement > * { position: relative; z-index: 1; }

.brand-statement .logo-block {
  display: flex; align-items: center; gap: 14px;
}
.brand-statement .logo-block img {
  width: 56px; height: 56px;
  display: block;
}
.brand-statement .logo-block .name {
  display: flex; flex-direction: column;
}
.brand-statement .logo-block .name .lg {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand-statement .logo-block .name .sub {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lite);
  margin-top: 4px;
}

.brand-statement .quote {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.brand-statement .quote em {
  color: var(--accent-lite);
  font-style: normal;
}
.brand-statement .quote-attr {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94A3B8;
}

.brand-statement .process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
}
.brand-statement .process .step {
  position: relative;
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.brand-statement .process .step:first-child { padding-left: 0; }
.brand-statement .process .step:last-child { border-right: 0; padding-right: 0; }
.brand-statement .process .num {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--blue);
}
.brand-statement .process .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 6px;
  color: #fff;
}
.brand-statement .process .desc {
  font-size: 0.6875rem;
  color: #94A3B8;
  margin-top: 4px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .brand-statement { padding: 28px 22px; }
  .brand-statement .process { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .brand-statement .process .step:nth-child(2) { border-right: 0; padding-right: 0; }
}

/* about-narrative needs to align top so brand-statement spans full height */
.about-narrative { align-items: stretch; }
.about-narrative > div:first-child { /* the eyebrow column becomes the visual */ }

/* ---------- Replace placeholder-on-About left col ---------- */


/* ============================================================
   Result tiles — small mockups for case-study .screens grid
   ============================================================ */
.viz-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #0F2240, #14315A);
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 180px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #E2E8F0;
}
.viz-tile .tile-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94A3B8;
}
.viz-tile .tile-headline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}
.viz-tile .tile-headline .unit {
  font-size: 0.875rem;
  color: #94A3B8;
  font-weight: 500;
  margin-left: 4px;
  letter-spacing: 0;
}
.viz-tile .tile-sub {
  font-size: 0.6875rem;
  color: #B7C5DD;
  line-height: 1.4;
}
.viz-tile .tile-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.viz-tile .tile-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  color: #C7D2E0;
  text-transform: uppercase;
}
.viz-tile .tile-bar-row .lbl { width: 64px; flex-shrink: 0; }
.viz-tile .tile-bar-row .bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.viz-tile .tile-bar-row .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--accent-lite));
  border-radius: 3px;
}
.viz-tile .tile-bar-row .bar i.green { background: linear-gradient(90deg, var(--accent-lite), #E4C078); }
.viz-tile .tile-bar-row .bar i.amber { background: linear-gradient(90deg, #f5b441, #FFD089); }
.viz-tile .tile-bar-row .v { width: 32px; text-align: right; color: #fff; }
.viz-tile .tile-spark {
  height: 60px;
  width: 100%;
  display: block;
  margin-top: auto;
}
.viz-tile .tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: auto;
}
.viz-tile .tile-grid .cell {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 8px 10px;
}
.viz-tile .tile-grid .cell .v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  line-height: 1;
}
.viz-tile .tile-grid .cell .l {
  font-family: var(--f-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-top: 4px;
}
.viz-tile .tile-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--f-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lite);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.viz-tile .tile-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-lite);
  box-shadow: 0 0 0 0 rgba(224,186,110,0.6);
  animation: viz-pulse 1.8s ease-out infinite;
}
.viz-tile .tile-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.viz-tile .tile-list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  color: #C7D2E0;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.viz-tile .tile-list .row:last-child { border-bottom: 0; }
.viz-tile .tile-list .row .check {
  color: var(--accent-lite);
  font-weight: 700;
}
.cs-body .screens .viz-tile { min-height: 200px; }

/* ============================================================
   Services page diagrams
   ============================================================ */
.svc-diagram {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #0F2240, #14315A);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px 24px;
  min-height: 320px;
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
}
.svc-diagram .diag-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 18px;
}
.svc-diagram .diag-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.svc-diagram .diag-layer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.svc-diagram .diag-layer .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* the layer key moved off the left edge and onto the site's own diamond motif */
.svc-diagram .diag-layer .name::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--layer-key, var(--blue));
  flex: none;
}
.svc-diagram .diag-layer .stack {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  color: #94A3B8;
  letter-spacing: 0.04em;
  text-align: right;
}
.svc-diagram .diag-layer.app { --layer-key: var(--accent-lite); }
.svc-diagram .diag-layer.api { --layer-key: var(--blue); }
.svc-diagram .diag-layer.svc { --layer-key: var(--accent-lite); }
.svc-diagram .diag-layer.data { --layer-key: #f5b441; }
.svc-diagram .diag-layer.infra { --layer-key: #C084FC; }

/* analytics dashboard diagram */
.svc-dash {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #0F2240, #14315A);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  min-height: 320px;
  color: #E2E8F0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 14px;
}
.svc-dash .dash-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
}
.svc-dash .dash-tile .l {
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  color: #94A3B8;
  text-transform: uppercase;
}
.svc-dash .dash-tile .v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: #fff;
  line-height: 1;
  margin-top: 6px;
}
.svc-dash .dash-tile .delta {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  color: var(--accent-lite);
  margin-top: 4px;
}
.svc-dash .dash-tile.span2 { grid-column: span 2; }
.svc-dash .dash-tile svg { width: 100%; height: 80px; display: block; margin-top: 8px; }


/* Keep mock content clear of the bottom-right viz-corner badge */
.mock-chat,
.mock-radar,
.mock-fleet,
.mock-crs,
.mock-rpa,
.mock-edu {
  padding-bottom: 52px !important;
}


/* ============================================================
   Hero — full-bleed translucent world map
   ============================================================ */
.hero-world {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  min-height: 640px;
  padding-top: clamp(46px, 5vw, 74px);
  padding-bottom: clamp(40px, 4.2vw, 62px);
}
.hero-world-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* V-04 accent bloom. Two soft washes instead of ruling: prussian behind the
     map, brass low and right so the accent reaches the white ground too. The
     left third stays clean paper so nothing sits behind the headline. */
  background-image:
    radial-gradient(62% 74% at 78% 24%, rgba(13,61,107,0.10) 0%, rgba(13,61,107,0) 68%),
    radial-gradient(42% 54% at 90% 66%, rgba(200,154,60,0.10) 0%, rgba(200,154,60,0) 64%);
}
.hero-world-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 61%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: translateY(-18px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 9%, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 9%, #000 22%, #000 100%);
}
.hero-world-bg .world-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.95;
}

/* arcs — constantly flowing traffic along each great-circle route */
/* Marching dashes travel outward from the Mumbai hub forever (was: draw-in-once
   then hold). Per-route speed varies by --i so the lines don't pulse in lockstep. */
.hero-world-bg .arcs .arc {
  stroke-width: 2.4;
  stroke-dasharray: 4 9;
  stroke-dashoffset: 0;
  animation-name: hero-flow;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: calc(2.8s + var(--i, 0) * 0.12s);
}
@keyframes hero-flow { to { stroke-dashoffset: -39; } }

/* moving arrowheads gliding outward along the primary routes */
.hero-world-bg .flyers polygon { fill: rgba(45,90,140,0.9); }
.hero-world-bg .flyers .brass { fill: rgba(200,154,60,0.95); }

/* Follow-the-sun: one night band crossing the plate, each hub lighting as its
   own working day opens. The delay per hub is its longitude. */
.hero-world-bg .night {
  animation: hero-night 18s linear infinite;
  /* the band spans the whole viewBox, so without a vertical falloff it reads as a
     grey rectangle sitting on the white hero rather than as dusk crossing the map */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}
@keyframes hero-night { to { transform: translateX(-3480px); } }
.hero-world-bg .dayglow {
  fill: rgba(13,61,107,0.30);
  opacity: 0;
  animation: hero-day 18s linear infinite;
}
.hero-world-bg .dayglow.hq { fill: rgba(200,154,60,0.40); }
@keyframes hero-day { 0%,100% { opacity: 0; } 46% { opacity: 0.95; } }

@media (prefers-reduced-motion: reduce) {
  .hero-world-bg .arcs .arc { stroke-dashoffset: 0; animation: none; }
  .hero-world-bg .night, .hero-world-bg .dayglow { animation: none; }
  .hero-world-bg .night { display: none; }
  .hero-world-bg .flyers { display: none; }
}
.hero-world-bg .arcs .a1 { stroke: rgba(13,61,107,0.62); stroke-width: 2.0; }
.hero-world-bg .arcs .a2 { stroke: rgba(13,61,107,0.85); stroke-width: 2.4; }
.hero-world-bg .arcs .a3 { stroke: rgba(13,61,107,0.55); stroke-width: 1.9; }
.hero-world-bg .arcs .a4 { stroke: rgba(13,61,107,0.82); stroke-width: 2.4; }
.hero-world-bg .arcs .a5 { stroke: rgba(200,154,60,0.95); stroke-width: 3.0; }
.hero-world-bg .arcs .a6 { stroke: rgba(45,90,140,0.6); stroke-width: 1.9; }
.hero-world-bg .arcs .a8 { stroke: rgba(45,90,140,0.40); stroke-width: 1.5; }
}

/* layout */
.hero-world-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.hero-world-copy {
  grid-column: 1;
  max-width: 600px;
  padding-bottom: 200px;
}
.hero-stats {
  grid-column: 1;
  display: flex;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
}
@media (max-width: 680px) {
  .hero-stats { flex-wrap: wrap; row-gap: 24px; }
}
.hero-stat-card {
  text-align: center;
}
.hero-world-copy .eyebrow { color: var(--blue); }
.hero-world-copy h1 { color: var(--ink); margin-top: 18px; font-size: clamp(2.5rem, 5.4vw, 4.75rem); }
.hero-world-copy h1 .hl { color: var(--blue); }
.hero-world-copy .lead { color: var(--ink-2); margin-top: 22px; max-width: 56ch; }
.hero-world-copy .ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-world-copy .ctas .btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
}
.hero-world-copy .ctas .btn-ghost:hover {
  background: var(--paper-3);
  border-color: var(--ink);
}
.hero-world-copy .hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 40px;
  font-family: var(--f-mono); font-size: 0.6875rem; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Production telemetry HUD — bottom right */
.hero-telemetry {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(24px, 4vw, 48px);
  width: 320px;
  background: rgba(10,22,40,0.78);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3;
  box-shadow: 0 8px 8px -2px rgba(0,0,0,0.4);
}
.hero-telemetry .telem-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-telemetry .telem-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: #94A3B8;
  text-transform: uppercase;
}
.hero-telemetry .telem-status {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--accent-lite);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-telemetry .telem-status .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-lite);
  box-shadow: 0 0 0 0 rgba(224,186,110,0.6);
  animation: viz-pulse 1.8s ease-out infinite;
}
.hero-telemetry .telem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.hero-telemetry .telem-stat .telem-v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.625rem;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-telemetry .telem-stat .telem-v .unit {
  font-size: 0.875rem;
  color: var(--accent-lite);
  margin-left: 1px;
  font-weight: 500;
}
.hero-telemetry .telem-stat .telem-l {
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-top: 5px;
}
.hero-telemetry .telem-bars {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-telemetry .telem-bar {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}
.hero-telemetry .telem-bar .lbl {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  color: #C7D2E0;
  letter-spacing: 0.06em;
}
.hero-telemetry .telem-bar .track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.hero-telemetry .telem-bar .track i {
  display: block;
  height: 100%;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .hero-world { min-height: auto; }
  .hero-world-copy { padding-bottom: 0; max-width: 100%; }
  .hero-telemetry {
    position: static;
    width: 100%;
    margin-top: 32px;
  }
  .hero-world-bg .world-map { opacity: 0.5; }
}

/* ============================================================
   Work-card dashboard mockups (.wviz.dboard) — bespoke per topic
   ============================================================ */
.wviz {
  position: relative; border-radius: 14px; overflow: hidden;
  background:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px) 0 0/34px 34px,
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px) 0 0/34px 34px,
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.wviz .chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 6; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-lite);
  background: rgba(10,22,40,0.72); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 7px 13px;
  backdrop-filter: blur(4px); white-space: nowrap;
}
.wviz .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-lite); box-shadow: 0 0 0 3px rgba(224,186,110,0.2); }

.wviz.dboard { aspect-ratio: 16/10; padding: 13px 13px 46px; display: flex; flex-direction: column; gap: 10px; }
.dboard .db-chrome { display: flex; align-items: center; gap: 7px; flex: none; }
.dboard .db-chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.dboard .db-url {
  flex: 1; margin-left: 6px; font-family: var(--f-mono); font-size: 0.6875rem; color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09); border-radius: 7px; padding: 6px 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dboard .db-body { flex: 1; display: grid; gap: 9px; min-height: 0; }
.dboard .db-body.c-6040 { grid-template-columns: 1.35fr 1fr; }
.dboard .db-body.c-5050 { grid-template-columns: 1fr 1fr; }
.dboard .db-panel {
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  padding: 11px; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden;
}
.dboard .db-eyebrow { font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8CA0BD; }
.dboard .db-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dboard .db-tile { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 9px 10px; }
.dboard .db-tile .v { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; line-height: 1; color: #fff; letter-spacing: -0.02em; }
.dboard .db-tile .v .u { font-size: 0.75rem; color: #8CA0BD; font-weight: 600; }
.dboard .db-tile .l { font-family: var(--f-mono); font-size: 0.5rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8CA0BD; margin-top: 5px; }
.dboard .db-tile.hi { background: rgba(224,186,110,0.14); border-color: rgba(224,186,110,0.3); }
.dboard .db-tile.hi .v { color: #E4C078; }
.dboard .db-big { font-family: var(--f-display); font-weight: 800; font-size: 1.875rem; line-height: 1; color: #fff; letter-spacing: -0.03em; }
.dboard .db-big .u { font-size: 0.8125rem; color: #8CA0BD; font-weight: 600; letter-spacing: 0; }
.dboard .db-big.g { color: #E4C078; }
.dboard .db-note { font-size: 0.625rem; color: #8CA0BD; line-height: 1.4; }

/* rows / bars */
.dboard .db-rows { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.dboard .db-brow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 0.5938rem; color: #C7D2E0; }
.dboard .db-brow .track { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; margin-top: -3px; }
.dboard .db-brow .track i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #0D3D6B, var(--accent-lite)); }
.dboard .db-brow .pct { color: #fff; font-weight: 500; }

/* chat bubble */
.dboard .db-bubble { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px 10px 10px 3px; padding: 9px 11px; font-size: 0.6875rem; color: #E2E8F0; line-height: 1.45; }
.dboard .db-bubble.rtl { direction: rtl; text-align: right; }
.dboard .db-bubble.me { background: rgba(224,186,110,0.16); border-color: rgba(224,186,110,0.3); border-radius: 10px 10px 3px 10px; align-self: flex-end; color: #E9FBF2; }

/* chart svg */
.dboard .db-chart { flex: 1; min-height: 0; }
.dboard .db-chart svg { width: 100%; height: 100%; display: block; }
.db-c-grid { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.db-c-line { fill: none; stroke-width: 2; }
.db-c-line.g { stroke: var(--accent-lite); }
.db-c-line.t { stroke: #5FC9E8; stroke-dasharray: 3 3; opacity: 0.8; }
.db-c-line.a { stroke: #F5B441; stroke-dasharray: 4 3; opacity: 0.85; }
.db-c-dot { fill: #fff; }
.db-c-dot.g { fill: var(--accent-lite); }
.db-c-dot.a { fill: #F5B441; }

/* map pane */
.dboard .db-map { position: relative; flex: 1; min-height: 0; border-radius: 8px; overflow: hidden;
  background:
    linear-gradient(to right, rgba(224,186,110,0.1) 1px, transparent 1px) 0 0/16px 16px,
    linear-gradient(to bottom, rgba(224,186,110,0.1) 1px, transparent 1px) 0 0/16px 16px,
    #0B1D33;
}
.dboard .db-map .cross { position: absolute; left: 52%; top: 46%; width: 24px; height: 24px; transform: translate(-50%,-50%); border: 1.5px solid var(--accent-lite); border-radius: 50%; box-shadow: 0 0 0 3px rgba(224,186,110,0.2), inset 0 0 10px rgba(224,186,110,0.35); }
.dboard .db-map .coords { position: absolute; right: 7px; bottom: 6px; font-family: var(--f-mono); font-size: 0.5313rem; color: var(--accent-lite); }

/* ---- Looping "reel" animation (opt-in via .reel; base state stays fully shown) ---- */
.dboard.reel { position: relative; }

/* Perf: 17 selectors below loop forever by default, and every case-study preview
   card on the site carries a set — audit measured 14-42 of them running
   simultaneously off-screen per page, the single largest perf-budget offender.
   Fix is NOT animation-play-state:paused — pausing freezes the timeline at
   frame 0, and half these keyframes start at opacity:0 (a real regression:
   caught it stuck invisible under no-JS while verifying this). Instead: each
   selector's settled/visible frame is declared as its plain, unconditional
   style below, and the actual `animation` only applies once .in-view is
   added — so with no JS (or before the observer's first tick), every element
   shows its fully-visible resting state, not a hidden or paused-mid-fade one.
   motion.js toggles .in-view via IntersectionObserver; reduced-motion's global
   animation-duration override (styles.css) still wins regardless. */
.dboard.reel .db-brow .track i { transform-origin: left; transform: scaleX(1); }
.dboard.reel.in-view .db-brow .track i { animation: reel-bar 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
.dboard.reel.in-view .db-brow:nth-of-type(2) .track i { animation-delay: calc(0.18s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-brow:nth-of-type(3) .track i { animation-delay: calc(0.36s + var(--reel-phase, 0s)); }
@keyframes reel-bar { 0% { transform: scaleX(0.02); } 16%, 90% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0.02); } }

.dboard.reel .db-tile.hi { transform: none; opacity: 1; }
.dboard.reel.in-view .db-tile.hi { animation: reel-pop 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
@keyframes reel-pop { 0%, 6% { transform: scale(0.94); opacity: 0.4; } 14%, 90% { transform: none; opacity: 1; } 99%, 100% { transform: scale(0.94); opacity: 0.4; } }

.dboard.reel .reel-s1 { opacity: 1; transform: none; }
.dboard.reel.in-view .reel-s1 { animation: reel-in1 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
/* s1 alone 8-40%, s2 joins 46-90% (full exchange visible together), both
   fade out 90-96% — reset gap is now one short pause (96%-2%, ~0.36s) instead
   of the ~1.44s blank stretch this used to leave with nothing on screen. */
@keyframes reel-in1 { 0%, 2% { opacity: 0; transform: translateY(8px); } 8%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(8px); } }
.dboard.reel .reel-s2 { opacity: 1; transform: none; }
.dboard.reel.in-view .reel-s2 { animation: reel-in2 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
@keyframes reel-in2 { 0%, 40% { opacity: 0; transform: translateY(8px); } 46%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(8px); } }

.dboard.reel .db-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 8px 11px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px 10px 10px 3px; opacity: 1; }
.dboard.reel.in-view .db-typing { animation: reel-type 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
@keyframes reel-type { 0%, 24% { opacity: 0; } 30%, 46% { opacity: 1; } 52%, 100% { opacity: 0; } }
.dboard.reel .db-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-lite); transform: translateY(0); opacity: 0.5; }
.dboard.reel.in-view .db-typing span { animation: reel-dot 1s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
.dboard.reel.in-view .db-typing span:nth-child(2) { animation-delay: calc(0.16s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-typing span:nth-child(3) { animation-delay: calc(0.32s + var(--reel-phase, 0s)); }
@keyframes reel-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }

/* chart line draw-on for reel */
.dboard.reel .db-c-line.g { stroke-dasharray: 320; stroke-dashoffset: 0; }
.dboard.reel.in-view .db-c-line.g { animation: reel-draw 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
@keyframes reel-draw { 0%, 4% { stroke-dashoffset: 320; } 34%, 90% { stroke-dashoffset: 0; } 99%, 100% { stroke-dashoffset: 320; } }

/* extra reel motions for non-conversation topics */
.dboard.reel.in-view .db-brow:nth-of-type(4) .track i { animation-delay: calc(0.54s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-brow:nth-of-type(5) .track i { animation-delay: calc(0.72s + var(--reel-phase, 0s)); }
.dboard.reel .db-big { opacity: 1; transform: none; }
.dboard.reel.in-view .db-big { animation: reel-bigin 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
@keyframes reel-bigin { 0%, 6% { opacity: 0; transform: translateY(6px); } 16%, 90% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
.dboard.reel .db-rows .db-brow { opacity: 1; transform: none; }
.dboard.reel.in-view .db-rows .db-brow { animation: reel-rowin 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
.dboard.reel.in-view .db-rows .db-brow:nth-of-type(2) { animation-delay: calc(0.14s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-rows .db-brow:nth-of-type(3) { animation-delay: calc(0.28s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-rows .db-brow:nth-of-type(4) { animation-delay: calc(0.42s + var(--reel-phase, 0s)); }
@keyframes reel-rowin { 0%, 4% { opacity: 0; transform: translateX(-6px); } 13%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
.dboard.reel .db-map .cross { box-shadow: 0 0 0 11px rgba(224,186,110,0), inset 0 0 10px rgba(224,186,110,0.35); }
.dboard.reel.in-view .db-map .cross { animation: reel-cross 2.6s ease-out infinite; animation-delay: var(--reel-phase, 0s); }
@keyframes reel-cross { 0% { box-shadow: 0 0 0 0 rgba(224,186,110,0.55), inset 0 0 10px rgba(224,186,110,0.35); } 70%, 100% { box-shadow: 0 0 0 11px rgba(224,186,110,0), inset 0 0 10px rgba(224,186,110,0.35); } }
.dboard.reel .db-steps .db-step { opacity: 1; transform: none; }
.dboard.reel.in-view .db-steps .db-step { animation: reel-stepin 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
.dboard.reel.in-view .db-steps .db-step:nth-child(1) { animation-delay: calc(0.1s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-steps .db-step:nth-child(2) { animation-delay: calc(0.9s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-steps .db-step:nth-child(3) { animation-delay: calc(1.7s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-steps .db-step:nth-child(4) { animation-delay: calc(2.5s + var(--reel-phase, 0s)); }
@keyframes reel-stepin { 0%, 3% { opacity: 0; transform: translateX(-6px); } 10%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* ---- Panel types ported from legacy case-study mockups (exact colors/layout) ---- */

/* quiz question + multiple-choice options (ShikshaML) */
.dboard .db-question { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 9px 10px; font-size: 0.6563rem; color: #fff; line-height: 1.4; }
.dboard .db-opt-row { display: flex; flex-direction: column; gap: 5px; }
.dboard .db-opt { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 6px 9px; font-family: var(--f-mono); font-size: 0.5938rem; color: #C7D2E0; }
.dboard .db-opt .marker { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 0.5rem; color: #8CA0BD; flex: none; }
.dboard .db-opt.right { background: rgba(224,186,110,0.12); border-color: rgba(224,186,110,0.35); color: #fff; }
.dboard .db-opt.right .marker { background: var(--accent-lite); border-color: var(--accent-lite); color: #0F2240; }
.dboard .db-recommend { margin-top: auto; background: rgba(200,154,60,0.16); border: 1px solid rgba(200,154,60,0.3); border-radius: 8px; padding: 8px 9px; font-size: 0.5938rem; color: #fff; line-height: 1.4; }
.dboard .db-recommend strong { color: #8FB8FF; font-weight: 600; }

/* highlighted blue stat block (Radarly citations) */
.dboard .db-stat-block { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dboard .db-stat-block .stat { background: rgba(200,154,60,0.16); border: 1px solid rgba(200,154,60,0.3); border-radius: 8px; padding: 8px; }
.dboard .db-stat-block .stat .v { font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; color: #fff; line-height: 1; }
.dboard .db-stat-block .stat .l { font-family: var(--f-mono); font-size: 0.5rem; color: #8FB8FF; margin-top: 4px; letter-spacing: 0.06em; }

/* delta figure + risk-forecast rows (CBU) */
.dboard .db-delta { font-family: var(--f-display); font-weight: 800; font-size: 1.625rem; color: #fff; line-height: 1; }
.dboard .db-delta .sign { color: var(--accent-lite); }
.dboard .db-delta-label { font-family: var(--f-mono); font-size: 0.5625rem; color: #8CA0BD; margin-top: 3px; letter-spacing: 0.05em; }
/* qualitative stand-in where CONTENT-LOCK §7.3 forbids a measured figure */
.dboard .db-delta-text { font-family: var(--f-display); font-weight: 600; font-size: 0.9375rem; color: #fff; line-height: 1.2; }
.dboard .db-alert-row { display: flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 0.5938rem; color: #C7D2E0; }
.dboard .db-alert-row .swatch { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dboard .db-alert-row .swatch.ok { background: var(--accent-lite); }
.dboard .db-alert-row .swatch.warn { background: #F5B441; }
.dboard .db-alert-row .swatch.risk { background: #EF6464; }
.dboard .db-alert-row .grow { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.dboard .db-alert-row .grow i { display: block; height: 100%; }

/* coordinate-reference match rows (Schlumberger) — 3-col, richer than db-brow */
.dboard .db-crs-row { display: grid; grid-template-columns: 46px 1fr 30px; gap: 6px; align-items: center; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 6px 8px; font-family: var(--f-mono); font-size: 0.5625rem; color: #94A3B8; }
.dboard .db-crs-row .epsg { color: #5B93F5; font-weight: 500; }
.dboard .db-crs-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #C7D2E0; }
.dboard .db-crs-row .conf { text-align: right; opacity: 0.85; }
.dboard .db-crs-row.active { background: rgba(200,154,60,0.14); border-color: rgba(200,154,60,0.32); }
.dboard .db-crs-row.active .epsg { color: #8FB8FF; }
.dboard .db-crs-row.active .name { color: #fff; }

/* reel: sequential reveal for opts / crs rows / alert rows — settled state is
   plain/unconditional (see the big comment above), animation is .in-view-only */
.dboard.reel .db-opt { opacity: 1; transform: none; }
.dboard.reel.in-view .db-opt { animation: reel-rowin 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
.dboard.reel.in-view .db-opt:nth-child(2) { animation-delay: calc(0.12s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-opt:nth-child(3) { animation-delay: calc(0.24s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-opt:nth-child(4) { animation-delay: calc(0.36s + var(--reel-phase, 0s)); }
.dboard.reel .db-crs-row { opacity: 1; }
.dboard.reel.in-view .db-crs-row { animation: reel-fade 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
.dboard.reel.in-view .db-crs-row:nth-of-type(2) { animation-delay: calc(0.1s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-crs-row:nth-of-type(3) { animation-delay: calc(0.2s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-crs-row:nth-of-type(4) { animation-delay: calc(0.3s + var(--reel-phase, 0s)); }
@keyframes reel-fade { 0%, 8% { opacity: 0.35; } 16%, 90% { opacity: 1; } 98%, 100% { opacity: 0.35; } }
.dboard.reel .db-alert-row { opacity: 1; transform: none; }
.dboard.reel.in-view .db-alert-row { animation: reel-rowin 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
.dboard.reel.in-view .db-alert-row:nth-child(2) { animation-delay: calc(0.12s + var(--reel-phase, 0s)); }
.dboard.reel.in-view .db-alert-row:nth-child(3) { animation-delay: calc(0.24s + var(--reel-phase, 0s)); }
.dboard.reel .db-stat-block .stat { transform: none; opacity: 1; }
.dboard.reel.in-view .db-stat-block .stat { animation: reel-pop 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
.dboard.reel.in-view .db-stat-block .stat:nth-child(2) { animation-delay: calc(0.15s + var(--reel-phase, 0s)); }
.dboard.reel .db-delta { opacity: 1; transform: none; }
.dboard.reel.in-view .db-delta { animation: reel-bigin 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
.dboard.reel .db-route { stroke-dasharray: 240; stroke-dashoffset: 0; }
.dboard.reel.in-view .db-route { animation: reel-draw-route 6s ease-in-out infinite; animation-delay: var(--reel-phase, 0s); }
@keyframes reel-draw-route { 0%, 4% { stroke-dashoffset: 240; } 40%, 90% { stroke-dashoffset: 0; } 99%, 100% { stroke-dashoffset: 240; } }

/* fit CaseViz flush inside cards / hero */
.card.flush .wviz.dboard { border-radius: 0; }
.cs-card .wviz.dboard { border-radius: 0; height: 326px; aspect-ratio: auto; }
.cs-detail-hero .wviz.dboard { border-radius: 14px; }

/* status lifecycle list */
.dboard .db-steps { display: flex; flex-direction: column; gap: 6px; }
.dboard .db-step { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.5938rem; color: #8CA0BD; }
.dboard .db-step .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25); flex: none; }
.dboard .db-step.done { color: #C7D2E0; }
.dboard .db-step.done .dot { background: var(--accent-lite); border-color: var(--accent-lite); }
.dboard .db-step.active { color: #fff; }
.dboard .db-step.active .dot { background: var(--accent-lite); border-color: var(--accent-lite); box-shadow: 0 0 0 3px rgba(224,186,110,0.25); }

@media (max-width: 480px) {
  /* stack, never hide: the second panel is the proof on several cards
     (NAQEL's Arabic thread, ABC Bank's grounding sources) */
  .dboard .db-body.c-6040, .dboard .db-body.c-5050 { grid-template-columns: 1fr; }
}

/* the "+ more" row stands for the providers beyond the five named in CONTENT-LOCK
   — quieter than a named engine, so it reads as a count and not another entry */
.dboard .db-brow-more span { opacity: 0.55; }
