/* MANARA — MOI Wall Display
   Ultra-wide command-center surface */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  /* Backgrounds — three-tone depth */
  --bg-primary: #050A12;
  --bg-secondary: #0A1120;
  --bg-tertiary: #12192B;

  /* Text ladder */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-faint: #475569;

  /* Accent system */
  --accent-teal: #00E5CC;
  --accent-teal-soft: #0097A7;
  --accent-gold: #D4AF37;
  --accent-gold-light: #E8C761;
  --accent-gold-dark: #A6831A;
  --accent-blue: #3B82F6;

  /* Status */
  --status-healthy: #00E5CC;
  --status-caution: #FFB800;
  --status-critical: #FF4757;
  --status-info: #38BDF8;

  /* Phases */
  --phase-detect: #8B5CF6;
  --phase-respond: #F97316;
  --phase-deliver: #22C55E;

  /* Glass */
  --bg-glass: rgba(8, 14, 26, 0.82);
  --bg-glass-dense: rgba(5, 10, 18, 0.92);
  --blur-glass: 28px;
  --blur-glass-dense: 36px;

  /* Borders */
  --border-subtle: rgba(0, 229, 204, 0.06);
  --border-medium: rgba(0, 229, 204, 0.14);
  --border-strong: rgba(0, 229, 204, 0.28);

  /* Glows */
  --glow-teal: 0 0 24px rgba(0, 229, 204, 0.25);
  --glow-gold: 0 0 24px rgba(212, 175, 55, 0.25);
  --glow-critical: 0 0 32px rgba(255, 71, 87, 0.4);

  --font-en-display: 'Outfit', system-ui, sans-serif;
  --font-en-body: 'DM Sans', system-ui, sans-serif;
  --font-ar-display: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
  --font-ar-body: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-en-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
  font-family: var(--font-ar-body);
}

#root { width: 100vw; height: 100vh; }

/* ---------- The wall shell ---------- */
.panorama-bg {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0, 229, 204, 0.08), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(212, 175, 55, 0.05), transparent 55%),
    linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  background-size: 200% 200%;
  animation: ambientShift 60s ease-in-out infinite;
  overflow: hidden;
}

.panorama-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 204, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.panorama-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 229, 204, 0.012) 3px,
    rgba(0, 229, 204, 0.012) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.panorama-bg > * { position: relative; z-index: 1; }

@keyframes ambientShift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ---------- Wall spacing utilities ---------- */
.wall-px    { padding-left: clamp(16px, 1.4vw, 48px); padding-right: clamp(16px, 1.4vw, 48px); }
.wall-py    { padding-top: clamp(10px, 0.8vw, 28px); padding-bottom: clamp(10px, 0.8vw, 28px); }
.wall-gap   { gap: clamp(10px, 1vw, 32px); }
.wall-p     { padding: clamp(14px, 1.2vw, 36px); }

/* ---------- Card system ---------- */
.panorama-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border-medium);
  box-shadow:
    inset 0 1px 0 rgba(0, 229, 204, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.panorama-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
  opacity: 0.5;
}

.panorama-card--floating {
  background: var(--bg-glass-dense);
  backdrop-filter: blur(var(--blur-glass-dense));
  -webkit-backdrop-filter: blur(var(--blur-glass-dense));
  box-shadow:
    inset 0 1px 0 rgba(0, 229, 204, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 229, 204, 0.08);
}

/* Tech-corner brackets */
.tech-corners {
  position: relative;
}
.tech-corners::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* top-left */
    linear-gradient(to right, var(--accent-teal) 0, var(--accent-teal) 14px, transparent 14px) top left / 100% 1.5px no-repeat,
    linear-gradient(to bottom, var(--accent-teal) 0, var(--accent-teal) 14px, transparent 14px) top left / 1.5px 100% no-repeat,
    /* top-right */
    linear-gradient(to left, var(--accent-teal) 0, var(--accent-teal) 14px, transparent 14px) top right / 100% 1.5px no-repeat,
    linear-gradient(to bottom, var(--accent-teal) 0, var(--accent-teal) 14px, transparent 14px) top right / 1.5px 100% no-repeat,
    /* bottom-left */
    linear-gradient(to right, var(--accent-teal) 0, var(--accent-teal) 14px, transparent 14px) bottom left / 100% 1.5px no-repeat,
    linear-gradient(to top, var(--accent-teal) 0, var(--accent-teal) 14px, transparent 14px) bottom left / 1.5px 100% no-repeat,
    /* bottom-right */
    linear-gradient(to left, var(--accent-teal) 0, var(--accent-teal) 14px, transparent 14px) bottom right / 100% 1.5px no-repeat,
    linear-gradient(to top, var(--accent-teal) 0, var(--accent-teal) 14px, transparent 14px) bottom right / 1.5px 100% no-repeat;
  opacity: 0.85;
}

.card-glow {
  animation: cardGlow 2.8s ease-in-out infinite;
}
@keyframes cardGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(0, 229, 204, 0.1), 0 16px 48px rgba(0,0,0,0.6), 0 0 18px rgba(0, 229, 204, 0.18); }
  50%      { box-shadow: inset 0 1px 0 rgba(0, 229, 204, 0.18), 0 16px 48px rgba(0,0,0,0.6), 0 0 36px rgba(0, 229, 204, 0.42); }
}

.card-pulse {
  animation: cardPulse 1.8s ease-in-out infinite;
}
@keyframes cardPulse {
  0%, 100% { transform: scale(1); box-shadow: inset 0 1px 0 rgba(255, 71, 87, 0.2), 0 16px 48px rgba(0,0,0,0.6), 0 0 24px rgba(255, 71, 87, 0.35); border-color: rgba(255, 71, 87, 0.5); }
  50%      { transform: scale(1.012); box-shadow: inset 0 1px 0 rgba(255, 71, 87, 0.25), 0 16px 48px rgba(0,0,0,0.6), 0 0 48px rgba(255, 71, 87, 0.6); border-color: rgba(255, 71, 87, 0.8); }
}

/* Conic-gradient border sweep */
.conic-sweep {
  position: relative;
  isolation: isolate;
}
.conic-sweep::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 4px;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0deg, transparent 270deg, var(--accent-teal) 320deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: conicSweep 6s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes conicSweep { to { --angle: 360deg; } }

/* ---------- Typography utilities ---------- */
.neom-title {
  background: linear-gradient(135deg, #E8C761, #D4AF37 50%, #A6831A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.neom-value {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1, 'ss01' 1;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.neom-accent { color: var(--accent-teal); font-weight: 600; }

.neom-source {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.62vw, 13px);
  color: var(--text-faint);
  letter-spacing: 0.4px;
  font-weight: 500;
  text-transform: none;
}

.label-caps {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--text-muted);
  font-size: clamp(11px, 0.7vw, 14px);
}

/* ---------- Radar pulse rings ---------- */
.radar-pulse {
  position: relative;
}
.radar-pulse::before,
.radar-pulse::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--accent-teal);
  transform: translate(-50%, -50%) scale(1);
  animation: radarRing 2.8s ease-out infinite;
  pointer-events: none;
}
.radar-pulse::after { animation-delay: 1.4s; }
@keyframes radarRing {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

.radar-pulse--critical::before,
.radar-pulse--critical::after {
  border-color: var(--status-critical);
}

/* ---------- Top strip scan line ---------- */
.scan-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1.5px;
  width: 12%;
  background: linear-gradient(90deg, transparent, var(--accent-teal) 50%, transparent);
  filter: blur(0.5px);
  animation: scanDrift 8s ease-in-out infinite;
}
@keyframes scanDrift {
  0%   { left: -12%; opacity: 0.3; }
  50%  { opacity: 1; }
  100% { left: 100%; opacity: 0.3; }
}

/* ---------- Map vignette ---------- */
.map-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(8,14,26,0.85) 0%, rgba(8,14,26,0) 14%, rgba(8,14,26,0) 86%, rgba(8,14,26,0.85) 100%),
    linear-gradient(to bottom, rgba(8,14,26,0.7) 0%, rgba(8,14,26,0) 18%, rgba(8,14,26,0) 72%, rgba(8,14,26,0.9) 100%);
  z-index: 2;
}

/* ---------- Pipeline particle flow ---------- */
.pipeline-flow {
  position: absolute;
  height: 100%;
  width: 4px;
  background: var(--accent-teal);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
  animation: pipelineFlow 4s linear infinite;
}
@keyframes pipelineFlow {
  0%   { left: 0%; opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { left: 100%; opacity: 0; }
}

/* Typewriter cursor */
.tw-cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.95em;
  background: var(--accent-teal);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* RTL adjustments */
[dir="rtl"] .tw-cursor { margin-left: 0; margin-right: 4px; }

/* Department compact rows */
.dept-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 3px;
  border-left: 2px solid transparent;
  transition: all 400ms ease;
}

[dir="rtl"] .dept-row {
  border-left: none;
  border-right: 2px solid transparent;
}

.dept-row .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--status-healthy);
  box-shadow: 0 0 8px currentColor;
}

.dept-row .status-dot.caution { background: var(--status-caution); color: var(--status-caution); }
.dept-row .status-dot.critical { background: var(--status-critical); color: var(--status-critical); animation: dotPulse 1.4s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Briefing mode caption */
.briefing-banner {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 6px 16px;
  background: var(--bg-glass-dense);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-teal);
  white-space: nowrap;
  animation: bannerIn 600ms ease forwards;
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(0); }
  to   { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* Phase chip */
.phase-chip {
  font-family: var(--font-mono);
  font-size: clamp(13px, 0.85vw, 18px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.phase-detect { color: var(--phase-detect); }
.phase-respond { color: var(--phase-respond); }
.phase-deliver { color: var(--phase-deliver); }

.phase-bg-detect { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.4); }
.phase-bg-respond { background: rgba(249, 115, 22, 0.12); border-color: rgba(249, 115, 22, 0.4); }
.phase-bg-deliver { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.4); }

/* Severity badges */
.severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.severity-critical { color: var(--status-critical); background: rgba(255, 71, 87, 0.08); }
.severity-warning { color: var(--status-caution); background: rgba(255, 184, 0, 0.08); }
.severity-info { color: var(--status-info); background: rgba(56, 189, 248, 0.08); }
.severity-positive { color: var(--status-healthy); background: rgba(0, 229, 204, 0.08); }

/* Hide scrollbars */
::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }

/* Mapbox overrides */
.mapboxgl-popup-content {
  background: var(--bg-glass-dense);
  backdrop-filter: blur(36px);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: var(--font-en-body);
  border-radius: 4px;
  padding: 10px 14px;
}
.mapboxgl-popup-tip { display: none; }
.mapboxgl-ctrl-logo { opacity: 0.25; }
.mapboxgl-ctrl-attrib { opacity: 0.3; font-size: 9px; }

/* utility flex helpers */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }

/* Map markers (DOM) */
.map-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid #0A1120;
  pointer-events: none;
}
.marker-critical {
  background: var(--status-critical);
  box-shadow: 0 0 0 4px rgba(255,71,87,0.25), 0 0 18px rgba(255,71,87,0.6);
}
.marker-warning {
  background: var(--status-caution);
  box-shadow: 0 0 0 3px rgba(255,184,0,0.2);
}
.marker-info {
  background: var(--status-info);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.18);
}
.marker-patrol {
  background: var(--status-healthy);
  width: 10px; height: 10px;
  box-shadow: 0 0 0 2px rgba(0,229,204,0.2), 0 0 10px rgba(0,229,204,0.6);
}
.marker-pulse::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--status-critical);
  animation: markerPulse 2s ease-out infinite;
}
@keyframes markerPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ======== FULL-BLEED MAP LAYOUT ======== */
.wall-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
}

.wall-stage__map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Panorama-style map frame — edges blend into wall UI; center stays readable (MANARA brief) */
.map-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(to right, rgba(8, 14, 26, 0.85) 0%, rgba(8, 14, 26, 0) 12%, rgba(8, 14, 26, 0) 88%, rgba(8, 14, 26, 0.85) 100%),
    linear-gradient(to bottom, rgba(8, 14, 26, 0.6) 0%, rgba(8, 14, 26, 0) 15%, rgba(8, 14, 26, 0) 75%, rgba(8, 14, 26, 0.85) 100%);
}

/* Heavy vignette so map recedes */
.wall-stage__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(5,10,18,0.28) 68%, rgba(5,10,18,0.72) 100%),
    linear-gradient(to bottom, rgba(5,10,18,0.75) 0%, rgba(5,10,18,0.0) 12%, rgba(5,10,18,0.0) 60%, rgba(5,10,18,0.88) 100%),
    linear-gradient(to right, rgba(5,10,18,0.45) 0%, rgba(5,10,18,0.0) 22%, rgba(5,10,18,0.0) 78%, rgba(5,10,18,0.45) 100%);
}

/* Subtle grid overlay over the map for "command center" feel */
.wall-stage__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(0, 229, 204, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 204, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mix-blend-mode: screen;
}

.wall-stage__floats {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  grid-template-columns: 1fr;
  gap: 0;
}

.wall-stage__floats > * { pointer-events: auto; }

/* Three-column floating columns layer */
.wall-columns {
  display: grid;
  grid-template-columns: clamp(260px, 20vw, 400px) 1fr clamp(260px, 20vw, 400px);
  gap: clamp(14px, 1.4vw, 32px);
  padding: 0 clamp(16px, 1.4vw, 36px);
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.wall-columns__center {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(10px, 1vw, 24px);
  pointer-events: none;
}

.wall-columns__center > * { pointer-events: auto; }

/* Card override — slightly less opaque since map is underneath */
.float-card {
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
  border: 1px solid rgba(0, 229, 204, 0.18);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(0, 229, 204, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 229, 204, 0.06);
  position: relative;
}
.float-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,204,0.7), transparent);
}

/* ======== VOICE COMMAND BAR ======== */
.voice-bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1vw, 22px);
  padding: clamp(10px, 0.9vw, 18px) clamp(14px, 1.1vw, 22px);
  background: rgba(5, 10, 18, 0.86);
  backdrop-filter: blur(36px) saturate(140%);
  border: 1px solid rgba(0, 229, 204, 0.32);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(0, 229, 204, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(0, 229, 204, 0.18);
  position: relative;
  overflow: hidden;
}
.voice-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(0,229,204,0.06) 50%, transparent 70%);
  animation: voiceShimmer 4s linear infinite;
  pointer-events: none;
}
@keyframes voiceShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.voice-mic {
  position: relative;
  width: clamp(40px, 3vw, 52px);
  height: clamp(40px, 3vw, 52px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0,229,204,0.3), rgba(0,229,204,0.08));
  border: 1.5px solid rgba(0,229,204,0.6);
  flex-shrink: 0;
}
.voice-mic::before, .voice-mic::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-teal);
  animation: voicePulse 2.4s ease-out infinite;
}
.voice-mic::after { animation-delay: 1.2s; }
@keyframes voicePulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Audio waveform bars */
.voice-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.voice-wave span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent-teal);
  animation: waveBar 1.1s ease-in-out infinite;
}
.voice-wave span:nth-child(1) { height: 30%; animation-delay: -0.4s; }
.voice-wave span:nth-child(2) { height: 65%; animation-delay: -0.2s; }
.voice-wave span:nth-child(3) { height: 100%; animation-delay: 0s; }
.voice-wave span:nth-child(4) { height: 80%; animation-delay: -0.3s; }
.voice-wave span:nth-child(5) { height: 50%; animation-delay: -0.1s; }
.voice-wave span:nth-child(6) { height: 75%; animation-delay: -0.5s; }
.voice-wave span:nth-child(7) { height: 40%; animation-delay: -0.2s; }
@keyframes waveBar {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1); opacity: 1; }
}

.voice-suggestion {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 204, 0.2);
  background: rgba(0, 229, 204, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.72vw, 13px);
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 200ms;
}
.voice-suggestion:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(0, 229, 204, 0.1);
}

/* ======== PIPELINE — grid-aligned phase labels ======== */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: stretch;
  gap: 0;
  position: relative;
}
.pipeline-phase-row {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr; /* 2 detect + 3 respond + 2 deliver = 7 */
  gap: 0;
  margin-bottom: 8px;
}
.pipeline-phase-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.pipeline-phase-cell::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 14px; height: 2px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

/* Map marker priority halos */
.priority-halo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.priority-halo--p1 { animation: haloPulse 1.6s ease-out infinite; border: 2px solid var(--status-critical); }
.priority-halo--p2 { animation: haloPulse 2.4s ease-out infinite; border: 2px solid var(--status-caution); }
.priority-halo--p3 { animation: haloPulse 3s ease-out infinite; border: 1.5px solid var(--status-info); }
@keyframes haloPulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* ======== HELP BUTTON & OVERLAY ======== */
.help-btn {
  position: fixed;
  top: clamp(94px, 7vh, 130px);
  inset-inline-end: clamp(14px, 1vw, 22px);
  z-index: 50;
  width: clamp(34px, 2.4vw, 42px);
  height: clamp(34px, 2.4vw, 42px);
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 204, 0.32);
  background: rgba(5, 10, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(15px, 1vw, 19px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.help-btn:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 0 16px rgba(0, 229, 204, 0.45), inset 0 0 0 1px rgba(0,229,204,0.15);
  transform: scale(1.04);
}

.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 10, 18, 0.96);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: helpFade 320ms ease forwards;
}
@keyframes helpFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.help-overlay__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(0, 229, 204, 0.08), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.05), transparent 55%),
    linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  background-size: 200% 200%;
  animation: ambientShift 60s ease-in-out infinite;
}
.help-overlay__grid {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 204, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 204, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
}
.help-overlay__close {
  position: absolute;
  top: clamp(16px, 1.2vw, 24px);
  inset-inline-end: clamp(16px, 1.2vw, 24px);
  z-index: 12;
  width: clamp(36px, 2.4vw, 44px);
  height: clamp(36px, 2.4vw, 44px);
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 204, 0.32);
  background: rgba(5, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: clamp(16px, 1vw, 20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms;
}
.help-overlay__close:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 0 18px rgba(0,229,204,0.45);
}

.help-scroll {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.help-doc {
  width: min(1500px, 94vw);
  margin: 0 auto;
  padding: clamp(56px, 6vw, 110px) 0 clamp(72px, 6vw, 130px);
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 7vw, 150px);
}

.help-section {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.6vw, 36px);
}

.help-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1vw, 18px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-teal);
  font-weight: 600;
}

.help-title {
  font-family: var(--font-en-display);
  font-size: clamp(48px, 5vw, 96px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
  text-wrap: balance;
}

.help-title--gold {
  background: linear-gradient(135deg, #E8C761, #D4AF37 50%, #A6831A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.help-arabic {
  font-family: var(--font-ar-display);
  font-size: clamp(28px, 2.4vw, 44px);
  color: var(--accent-gold);
  font-weight: 500;
}

.help-lede {
  font-family: var(--font-en-body);
  font-size: clamp(22px, 1.6vw, 32px);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 78ch;
  text-wrap: pretty;
}

.help-divider {
  width: 60px;
  height: 2px;
  background: var(--accent-teal);
  box-shadow: 0 0 16px rgba(0, 229, 204, 0.6);
  margin-top: clamp(8px, 0.8vw, 16px);
}

.help-card {
  background: rgba(8, 14, 26, 0.82);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 229, 204, 0.18);
  border-radius: 6px;
  padding: clamp(20px, 1.6vw, 36px);
  position: relative;
}

.help-callout {
  position: relative;
  padding: clamp(18px, 1.4vw, 28px) clamp(20px, 1.6vw, 32px);
  background: linear-gradient(90deg, rgba(0, 229, 204, 0.08), rgba(0, 229, 204, 0.02));
  border-inline-start: 3px solid var(--accent-teal);
  border-radius: 0 4px 4px 0;
}
.help-callout__label {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.78vw, 13px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-teal);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.help-callout__body {
  font-family: var(--font-en-body);
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.55;
  color: var(--text-primary);
  text-wrap: pretty;
}

/* Phase color helpers in body copy */
.kw-detect  { color: var(--phase-detect); font-weight: 600; }
.kw-respond { color: var(--phase-respond); font-weight: 600; }
.kw-deliver { color: var(--phase-deliver); font-weight: 600; }

/* Architecture diagram */
.arch-phase-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(14px, 1.1vw, 22px);
  border-radius: 4px;
  background: rgba(5, 10, 18, 0.6);
  border: 1px solid currentColor;
  border-top: 3px solid currentColor;
}
.arch-phase-title {
  font-family: var(--font-mono);
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.arch-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.78vw, 13px);
  color: var(--text-secondary);
  white-space: nowrap;
}
.arch-stage-chip__num {
  color: currentColor;
  font-weight: 800;
}

.arch-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.arch-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,204,0.3), transparent);
}
.arch-divider__label {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.74vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.arch-dept-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 900px) {
  .arch-dept-grid { grid-template-columns: repeat(2, 1fr); }
}
.arch-dept-cell {
  padding: 10px 12px;
  background: rgba(0, 229, 204, 0.04);
  border: 1px solid rgba(0, 229, 204, 0.1);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.arch-dept-cell__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-teal);
  letter-spacing: 0.18em;
  font-weight: 700;
}
.arch-dept-cell__en {
  font-family: var(--font-en-display);
  font-size: clamp(11px, 0.78vw, 13px);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
}
.arch-dept-cell__ar {
  font-family: var(--font-ar-body);
  font-size: clamp(10px, 0.7vw, 12px);
  color: var(--text-muted);
  line-height: 1.2;
}

.arch-emirate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.arch-emirate-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.28);
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.78vw, 13px);
  color: var(--accent-gold);
  letter-spacing: 0.1em;
}

/* Pipeline stage cards (Section 3) */
.pipeline-stage-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
@media (max-width: 1100px) {
  .pipeline-stage-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .pipeline-stage-grid { grid-template-columns: 1fr; }
}
.pipeline-stage-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  background: rgba(8, 14, 26, 0.82);
  border: 1px solid var(--border-medium);
  border-top: 3px solid currentColor;
  border-radius: 0 0 4px 4px;
  position: relative;
  min-height: 180px;
}
.pipeline-stage-card__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: currentColor;
  text-transform: uppercase;
}
.pipeline-stage-card__name {
  font-family: var(--font-en-display);
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}
.pipeline-stage-card__desc {
  font-family: var(--font-en-body);
  font-size: clamp(11px, 0.78vw, 13px);
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Department flow cards (Section 4) */
.dept-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1vw, 22px);
}
@media (max-width: 900px) {
  .dept-card-grid { grid-template-columns: 1fr; }
}
.dept-card {
  background: rgba(8, 14, 26, 0.82);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: clamp(16px, 1.2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.dept-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.dept-card__num {
  font-family: var(--font-mono);
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 800;
  color: var(--accent-teal);
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: clamp(36px, 2.6vw, 48px);
}
.dept-card__en {
  font-family: var(--font-en-display);
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.dept-card__ar {
  font-family: var(--font-ar-body);
  font-size: clamp(12px, 0.85vw, 15px);
  color: var(--text-muted);
  line-height: 1.3;
}
.dept-card__flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dept-flow-block {
  padding: 10px 12px;
  border-inline-start: 2px solid currentColor;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 0 3px 3px 0;
}
.dept-flow-block__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: currentColor;
  font-weight: 800;
}
.dept-flow-block__text {
  font-family: var(--font-en-body);
  font-size: clamp(10.5px, 0.74vw, 12.5px);
  line-height: 1.35;
  color: var(--text-secondary);
}

/* Agent cards (Section 5) */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .agent-grid { grid-template-columns: 1fr; }
}
.agent-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(8, 14, 26, 0.82);
  border: 1px solid var(--border-medium);
  border-inline-start: 3px solid var(--accent-teal);
  border-radius: 0 4px 4px 0;
}
.agent-card__name {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 800;
  color: var(--accent-teal);
  letter-spacing: 0.02em;
}
.agent-card__domain {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.agent-card__desc {
  font-family: var(--font-en-body);
  font-size: clamp(12px, 0.85vw, 14px);
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Score cards */
.score-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: rgba(8, 14, 26, 0.82);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
}
.score-card__num {
  font-family: var(--font-mono);
  font-size: clamp(40px, 3.4vw, 60px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-gold);
  letter-spacing: -0.02em;
}
.score-card__label {
  font-family: var(--font-en-display);
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 700;
  color: var(--text-primary);
}
.score-card__desc {
  font-family: var(--font-en-body);
  font-size: clamp(12px, 0.85vw, 14px);
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Voice example pairs (Section 6) */
.voice-example-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .voice-example-grid { grid-template-columns: 1fr; }
}
.voice-example {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: rgba(8, 14, 26, 0.82);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
}
.voice-query {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0, 229, 204, 0.06);
  border: 1px solid rgba(0, 229, 204, 0.2);
  border-radius: 4px;
}
.voice-query__icon {
  font-family: var(--font-mono);
  color: var(--accent-teal);
  font-weight: 800;
  flex-shrink: 0;
}
.voice-query__text {
  font-family: var(--font-en-body);
  font-style: italic;
  color: var(--accent-teal);
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.5;
}
.voice-query__text--ar {
  font-family: var(--font-ar-body);
  font-style: normal;
  font-size: clamp(15px, 1.1vw, 19px);
  direction: rtl;
}
.voice-response__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.voice-response__body {
  font-family: var(--font-en-body);
  font-size: clamp(12.5px, 0.88vw, 14.5px);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Living-map mock (Section 7) */
.map-mock {
  position: relative;
  width: 100%;
  aspect-ratio: 1.4 / 1;
  background:
    radial-gradient(ellipse at center, #0d1830, #050A12 70%),
    linear-gradient(135deg, #050A12, #0A1120);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  overflow: hidden;
}
.map-mock__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 10px;
  text-align: center;
}

/* Timeline (Section 8) */
.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(140px, 14vw, 200px) 1fr;
  gap: clamp(16px, 1.4vw, 32px);
  padding: clamp(18px, 1.4vw, 28px);
  background: rgba(8, 14, 26, 0.82);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
}
@media (max-width: 700px) {
  .timeline-card { grid-template-columns: 1fr; }
}
.timeline-card__time {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.1vw, 20px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.timeline-card__phase {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: currentColor;
  margin-top: 6px;
  display: inline-block;
}
.timeline-card__title {
  font-family: var(--font-en-display);
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
}
.timeline-card__body {
  font-family: var(--font-en-body);
  font-size: clamp(13.5px, 0.95vw, 16px);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Architecture diagram phase row */
.arch-phase-row {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  gap: 14px;
}
@media (max-width: 800px) {
  .arch-phase-row { grid-template-columns: 1fr; }
}

/* Score row */
.score-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .score-row { grid-template-columns: repeat(2, 1fr); }
}

/* Architecture department contribution map row */
.section7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 40px);
  align-items: start;
}
@media (max-width: 900px) {
  .section7-grid { grid-template-columns: 1fr; }
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: rgba(8, 14, 26, 0.82);
  border: 1px solid var(--border-medium);
  border-inline-start: 3px solid var(--accent-teal);
  border-radius: 0 4px 4px 0;
}
.feature-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--accent-teal);
  text-transform: uppercase;
}
.feature-card__title {
  font-family: var(--font-en-display);
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.feature-card__body {
  font-family: var(--font-en-body);
  font-size: clamp(12.5px, 0.88vw, 14.5px);
  line-height: 1.55;
  color: var(--text-secondary);
}


/* ============================================================
   ANATOMY — wall schematic + zone cards
   ============================================================ */
.anatomy-schematic {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.5;
  margin: clamp(20px, 1.8vw, 36px) 0 clamp(28px, 2.4vw, 48px);
  background:
    radial-gradient(ellipse at center, rgba(0,229,204,0.05), rgba(5,10,18,0.85) 70%),
    rgba(8, 14, 26, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.2fr) minmax(0, 1.2fr);
  grid-template-rows: clamp(34px, 3.2vh, 50px) minmax(0, 1fr) clamp(60px, 6vh, 92px) clamp(20px, 2vh, 32px) clamp(28px, 2.6vh, 42px);
  grid-template-areas:
    "top    top    top"
    "left   center right"
    "band   band   band"
    "pipe   pipe   pipe"
    "foot   foot   foot";
  gap: 6px;
  padding: 6px;
  overflow: hidden;
}
.ana-zone {
  position: relative;
  border: 1px solid color-mix(in oklab, var(--zc) 40%, transparent);
  background: color-mix(in oklab, var(--zc) 8%, rgba(8, 14, 26, 0.6));
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ana-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in oklab, var(--zc) 16%, transparent), transparent 60%);
  pointer-events: none;
}
.ana-zone__label {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.85vw, 15px);
  font-weight: 700;
  color: var(--zc);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 12px color-mix(in oklab, var(--zc) 50%, transparent);
  position: relative;
}
.ana-zone--top    { grid-area: top; }
.ana-zone--left   { grid-area: left; }
.ana-zone--center { grid-area: center; background: radial-gradient(ellipse at center, color-mix(in oklab, var(--zc) 14%, rgba(8,14,26,0.7)), rgba(8,14,26,0.7) 70%); }
.ana-zone--right  { grid-area: right; }
.ana-zone--band   { grid-area: band; }
.ana-zone--pipe   { grid-area: pipe; }
.ana-zone--foot   { grid-area: foot; }

/* Zone breakdown grid */
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: clamp(16px, 1.4vw, 26px);
}
.anatomy-zone {
  --zc: #00E5CC;
  position: relative;
  padding: clamp(18px, 1.4vw, 26px);
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid var(--border-subtle);
  border-inline-start: 3px solid var(--zc);
  border-radius: 0 4px 4px 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.9vw, 16px);
}
.anatomy-zone::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--zc) 80%, transparent), transparent);
}
.anatomy-zone__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: clamp(8px, 0.7vw, 14px);
  border-bottom: 1px solid var(--border-subtle);
}
.anatomy-zone__num {
  font-family: var(--font-mono);
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 800;
  color: var(--zc);
  letter-spacing: 0.15em;
}
.anatomy-zone__title {
  font-family: var(--font-en-display);
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin: 0;
}
.anatomy-zone__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.85vw, 16px);
}
.anatomy-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: flex-start;
}
.anatomy-item__bullet {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--zc);
  margin-top: 7px;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--zc) 25%, transparent);
}
.anatomy-item__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.anatomy-item__name {
  font-family: var(--font-en-display);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.anatomy-item__tells {
  font-family: var(--font-en-body);
  font-size: clamp(13px, 0.9vw, 15.5px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   PRACTICES — numbered card grid with glyph
   ============================================================ */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 1.4vw, 26px);
}
.practice-card {
  --pc: #00E5CC;
  position: relative;
  padding: clamp(20px, 1.6vw, 30px);
  background: linear-gradient(180deg, color-mix(in oklab, var(--pc) 6%, rgba(8, 14, 26, 0.55)), rgba(8, 14, 26, 0.55) 65%);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--pc);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.8vw, 14px);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.practice-card::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, color-mix(in oklab, var(--pc) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.practice-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--pc) 60%, var(--border-subtle));
  box-shadow: 0 12px 28px rgba(0,0,0,0.4), 0 0 22px color-mix(in oklab, var(--pc) 18%, transparent);
}
.practice-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.practice-card__num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 2.4vw, 44px);
  font-weight: 800;
  color: var(--pc);
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 18px color-mix(in oklab, var(--pc) 40%, transparent);
}
.practice-card__icon {
  width: clamp(32px, 2.4vw, 42px);
  height: clamp(32px, 2.4vw, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in oklab, var(--pc) 50%, transparent);
  border-radius: 50%;
  background: color-mix(in oklab, var(--pc) 10%, transparent);
}
.practice-card__icon svg {
  width: 55%;
  height: 55%;
}
.practice-card__title {
  font-family: var(--font-en-display);
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
}
.practice-card__body {
  font-family: var(--font-en-body);
  font-size: clamp(14px, 0.95vw, 16.5px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 720px) {
  .anatomy-schematic { aspect-ratio: 4 / 5; grid-template-rows: auto auto auto auto auto; grid-template-areas: "top top top" "left center right" "band band band" "pipe pipe pipe" "foot foot foot"; }
}
