/* ============================================================
   Agentic SA — Production Styles
   Built for SA compliance teams, not generic SaaS decks
   ============================================================ */

:root {
  --bg-deep: #06090f;
  --bg-primary: #0a0f18;
  --bg-panel: #0e1522;
  --bg-surface: #121a28;
  --bg-elevated: #172033;
  --bg-hover: #1c2940;
  --bg-inset: #0b111c;

  --border-faint: rgba(148, 163, 184, 0.06);
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-standard: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(56, 189, 248, 0.32);
  --border-gold: rgba(212, 168, 45, 0.45);

  --text-primary: #e8eef6;
  --text-secondary: #9aabbc;
  --text-tertiary: #6b7c8f;
  --text-muted: #4a5a6c;
  --text-inverse: #0a0f18;

  --accent: #1a9fd4;
  --accent-bright: #3db8e8;
  --accent-dim: rgba(26, 159, 212, 0.14);
  --accent-glow: rgba(26, 159, 212, 0.22);

  --gold: #d4a82d;
  --gold-dim: rgba(212, 168, 45, 0.12);
  --gold-text: #e8c45a;

  --sa-green: #007a4d;
  --sa-red: #c8102e;

  --success: #2db86a;
  --warning: #d99a1a;
  --danger: #d94a4a;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SF Mono", ui-monospace, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 36px rgba(0,0,0,0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 150ms;
  --med: 260ms;

  --header-h: 64px;
  --max: 1080px;
  --max-wide: 1220px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 15.5px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

::selection {
  background: rgba(26, 159, 212, 0.35);
  color: #fff;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--text-primary);
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.05rem; }
p { color: var(--text-secondary); }

.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-lead {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--text-tertiary);
  font-size: 0.98rem;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem;
}
.container-wide { max-width: var(--max-wide); }
.section { padding: 4rem 0; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus { top: 0.75rem; }

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-standard);
  padding: 0.85rem 1.15rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  z-index: 9000;
  font-size: 0.85rem;
  color: var(--text-secondary);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.45);
}
.cookie-banner.visible { display: flex; }

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 15, 24, 0.88);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border-faint);
  display: flex;
  align-items: center;
  transition: background var(--med), box-shadow var(--med), border-color var(--med);
}
.header.scrolled {
  background: rgba(6, 9, 15, 0.96);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.15rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: url("../assets/agentic_sa_favicon.svg") center/cover no-repeat;
  flex-shrink: 0;
  border: 1px solid var(--border-standard);
}

.nav { display: flex; align-items: center; gap: 0.1rem; }
.nav a {
  padding: 0.4rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  transition: color var(--fast), background var(--fast);
}
.nav a:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav a.active { color: var(--accent-bright); }
.nav a.active::after {
  content: "";
  display: block;
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  margin: 2px auto 0;
}

.nav-cta {
  margin-left: 0.55rem !important;
  padding: 0.45rem 0.95rem !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 1px 4px rgba(26,159,212,0.3);
  transition: background var(--fast), transform var(--fast) !important;
}
.nav-cta:hover {
  background: var(--accent-bright) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.nav-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-standard);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.15rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--med) var(--ease), opacity var(--med);
    box-shadow: var(--shadow-lg);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { width: 100%; padding: 0.75rem 0.9rem; }
  .nav-cta { margin-left: 0 !important; margin-top: 0.35rem; text-align: center; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.35rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  box-shadow: 0 1px 6px rgba(26,159,212,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(26,159,212,0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.35rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-standard);
  transition: background var(--fast), border-color var(--fast), transform var(--fast);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(180deg, #e0b53a 0%, #c9961f 100%);
  color: #1a1400;
  box-shadow: 0 1px 6px rgba(212,168,45,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #ebc04a 0%, #d4a82d 100%);
  box-shadow: 0 3px 12px rgba(212,168,45,0.4);
}

.notice-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 1.15rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.4;
}
.notice-bar strong { color: var(--gold-text); font-weight: 600; }
.notice-bar a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero {
  position: relative;
  padding: 3.75rem 0 3.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 75% 55% at 40% 30%, black 15%, transparent 65%);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem 0.28rem 0.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-standard);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(45,184,106,0.25);
}

.hero h1 { margin-bottom: 0.9rem; }
.hero h1 .mark { color: var(--accent-bright); }

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 32rem;
  margin-bottom: 1.35rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 0.35rem;
  border-top: 1px solid var(--border-faint);
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.hero-meta svg {
  width: 13px; height: 13px;
  color: var(--success);
  flex-shrink: 0;
}

.hero-visual { position: relative; }

.score-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.score-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.score-panel-head .live {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--success);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.score-panel-head .live-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.score-body { padding: 1.15rem 1rem 1rem; }

.score-top {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  margin-bottom: 1rem;
}

.score-ring {
  position: relative;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
}
.score-ring svg {
  transform: rotate(-90deg);
  width: 100%; height: 100%;
}
.score-ring .track {
  fill: none;
  stroke: var(--bg-elevated);
  stroke-width: 7;
}
.score-ring .progress {
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  stroke-dashoffset: 301.6;
  animation: drawRing 1.6s var(--ease) 0.4s forwards;
}
@keyframes drawRing {
  to { stroke-dashoffset: 60.3; }
}
.score-centre {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-centre .num {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}
.score-centre .lvl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

.score-summary { flex: 1; min-width: 0; }
.score-summary h3 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.score-summary p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-tertiary);
  margin-bottom: 0.55rem;
}
.score-level-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  background: var(--gold-dim);
  color: var(--gold-text);
  border: 1px solid var(--border-gold);
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.element-rows {
  border-top: 1px solid var(--border-faint);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.element-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-xs);
  background: var(--bg-inset);
}
.element-row .el-name { color: var(--text-secondary); }
.element-row .el-pts {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.element-row .el-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}
.el-status.pass { background: rgba(45,184,106,0.15); color: var(--success); }
.el-status.warn { background: rgba(217,154,26,0.15); color: var(--warning); }
.el-status.fail { background: rgba(217,74,74,0.15); color: var(--danger); }

.score-footer {
  margin-top: 0.75rem;
  padding: 0.55rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}
.score-footer strong { color: var(--warning); font-weight: 600; }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { max-width: 400px; }
  .hero { padding: 2.75rem 0 2.5rem; }
}

.section-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.25rem;
  opacity: 0.7;
  border-radius: 1px;
}

.how-it-works { background: var(--bg-panel); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2rem;
}

.step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  position: relative;
  transition: border-color var(--med), box-shadow var(--med);
}
.step:hover {
  border-color: var(--border-standard);
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.step-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--accent-bright);
}
.step-icon svg { width: 18px; height: 18px; }

.step h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.step p { font-size: 0.875rem; line-height: 1.55; }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

.terminal-section { padding: 3.5rem 0; }

.terminal-console {
  background: #05080e;
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: #0a1018;
  border-bottom: 1px solid rgba(148,163,184,0.08);
}
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #c44; }
.terminal-dots span:nth-child(2) { background: #c90; }
.terminal-dots span:nth-child(3) { background: #3a8; }

.terminal-title {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.terminal-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: var(--success);
  font-weight: 500;
}
.terminal-status .dot {
  width: 5px; height: 5px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2.2s infinite;
}

.terminal-body {
  padding: 1rem 1.1rem;
  min-height: 260px;
  font-size: 0.78rem;
  line-height: 1.65;
  overflow: hidden;
}

.terminal-line {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.28rem;
  opacity: 0;
  animation: termIn 0.35s var(--ease) forwards;
}
.terminal-line:nth-child(1) { animation-delay: 0.25s; }
.terminal-line:nth-child(2) { animation-delay: 0.8s; }
.terminal-line:nth-child(3) { animation-delay: 1.35s; }
.terminal-line:nth-child(4) { animation-delay: 1.9s; }
.terminal-line:nth-child(5) { animation-delay: 2.45s; }
.terminal-line:nth-child(6) { animation-delay: 3.2s; }
.terminal-line:nth-child(7) { animation-delay: 3.75s; }
.terminal-line:nth-child(8) { animation-delay: 4.3s; }
.terminal-line:nth-child(9) { animation-delay: 4.85s; }
.terminal-line:nth-child(10) { animation-delay: 5.4s; }

@keyframes termIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.term-prompt { color: var(--accent-bright); flex-shrink: 0; }
.term-cmd { color: var(--text-primary); }
.term-out { color: var(--text-secondary); }
.term-pass { color: var(--success); }
.term-warn { color: var(--warning); }
.term-fail { color: var(--danger); }
.term-hint { color: #6ec8e8; }
.term-ok { color: var(--success); }

.cursor-blink {
  display: inline-block;
  width: 6px;
  height: 13px;
  background: var(--accent-bright);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.agent-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  gap: 0.95rem;
  transition: border-color var(--med), box-shadow var(--med);
}
.agent-card:hover {
  border-color: var(--border-standard);
  box-shadow: var(--shadow-sm);
}

.agent-icon {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-bright);
}
.agent-icon svg { width: 20px; height: 20px; }

.agent-body h3 { margin-bottom: 0.3rem; font-size: 1rem; }
.agent-body p {
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.agent-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.agent-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  background: var(--bg-inset);
  border: 1px solid var(--border-faint);
  border-radius: 3px;
  color: var(--text-muted);
}

.agent-io {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-faint);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.agent-io strong { color: var(--text-tertiary); font-weight: 600; }

@media (max-width: 700px) {
  .agents-grid { grid-template-columns: 1fr; }
}

.metrics { background: var(--bg-panel); }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 2rem;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1rem;
  text-align: center;
  transition: border-color var(--med);
}
.metric-card:hover { border-color: var(--border-standard); }

.metric-value {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-bright);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.35;
}

@media (max-width: 800px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .metrics-grid { grid-template-columns: 1fr; }
}

.trust {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}
.trust-title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.65;
  transition: opacity var(--fast);
}
.trust-badge:hover { opacity: 1; }
.trust-badge-icon {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.62rem;
  color: var(--accent-bright);
  letter-spacing: -0.01em;
}
.trust-badge span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.testimonial { padding: 4rem 0; }

.testimonial-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.9rem;
  left: 1.25rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
}
.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 1.35rem;
  position: relative;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-standard);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-bright);
}
.author-name { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.author-role { font-size: 0.75rem; color: var(--text-muted); }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--med), box-shadow var(--med);
}
.price-card:hover {
  border-color: var(--border-standard);
  box-shadow: var(--shadow-sm);
}
.price-card.popular {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(212,168,45,0.05) 0%, var(--bg-surface) 35%);
  box-shadow: 0 0 0 1px var(--border-gold);
}

.price-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #e0b53a, #c9961f);
  color: #1a1400;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.price-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.price-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  margin-bottom: 0.15rem;
}
.price-currency { font-size: 1rem; font-weight: 600; color: var(--text-tertiary); }
.price-num {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-period { font-size: 0.85rem; color: var(--text-muted); margin-left: 0.1rem; }
.price-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.price-features { flex: 1; margin-bottom: 1.35rem; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}
.price-features li svg {
  width: 14px; height: 14px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.price-card .btn-primary,
.price-card .btn-secondary { width: 100%; }

@media (max-width: 860px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
}

.faq { background: var(--bg-panel); }

.faq-list {
  max-width: 38rem;
  margin: 1.75rem auto 0;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: border-color var(--fast);
}
.faq-item[open] { border-color: var(--border-standard); }

.faq-item summary {
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron {
  width: 16px; height: 16px;
  color: var(--text-muted);
  transition: transform var(--med);
  flex-shrink: 0;
}
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-item .faq-answer {
  padding: 0 1.1rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-band {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-faint);
}
.cta-band h2 { margin-bottom: 0.55rem; }
.cta-band p {
  max-width: 30rem;
  margin: 0 auto 1.35rem;
  font-size: 0.98rem;
}

.page-hero {
  padding: 2.75rem 0 2rem;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-faint);
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black, transparent);
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 0.45rem; position: relative; }
.page-hero p {
  max-width: 34rem;
  font-size: 1rem;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 2rem;
  margin-top: 1.75rem;
}
.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--bg-inset);
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-response {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.85rem;
  min-height: 1.4rem;
  color: var(--success);
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}
.info-card h3 {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.info-card h3 svg { width: 16px; height: 16px; color: var(--accent); }
.info-card p { font-size: 0.85rem; line-height: 1.5; }
.info-card a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.info-card a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

.about-content { max-width: 40rem; margin: 0 auto; }
.about-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}
.about-content h2:first-child { margin-top: 0; }
.about-content p {
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
  line-height: 1.65;
}
.about-content ul { margin: 0.75rem 0 1.25rem; }
.about-content li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.about-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}
.value-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.value-card h3 svg { width: 17px; height: 17px; color: var(--accent); }
.value-card p { font-size: 0.85rem; margin: 0; line-height: 1.5; }

@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
}

.industry-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.industry-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-tertiary);
}

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-faint);
  padding: 2.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { margin-bottom: 0.7rem; }
.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 250px;
  color: var(--text-muted);
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  transition: color var(--fast);
}
.footer-col a:hover { color: var(--accent-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-faint);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
  margin-left: 1rem;
}
.footer-bottom a:hover { color: var(--accent-bright); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.34s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   EXPANSION — SA geometry, motion, beauty layer
   ============================================================ */

/* Warmer SA accent tokens */
:root {
  --sa-gold-deep: #b8922a;
  --sa-earth: #8b6914;
  --sa-clay: #c45c26;
  --sa-indigo: #1a3a5c;
  --pattern-gold: rgba(212, 168, 45, 0.07);
  --pattern-cyan: rgba(26, 159, 212, 0.06);
}

/* ----- Ndebele-inspired geometric pattern (subtle) ----- */
.sa-pattern {
  position: relative;
  overflow: hidden;
}
.sa-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    /* horizontal bars */
    linear-gradient(90deg, transparent 0%, transparent 8%, var(--pattern-gold) 8%, var(--pattern-gold) 10%, transparent 10%, transparent 90%, var(--pattern-gold) 90%, var(--pattern-gold) 92%, transparent 92%),
    /* vertical accents */
    linear-gradient(0deg, transparent 0%, transparent 12%, var(--pattern-cyan) 12%, var(--pattern-cyan) 13.5%, transparent 13.5%, transparent 86.5%, var(--pattern-cyan) 86.5%, var(--pattern-cyan) 88%, transparent 88%),
    /* diamond-ish dots */
    radial-gradient(circle at 15% 30%, var(--pattern-gold) 1.5px, transparent 2px),
    radial-gradient(circle at 85% 70%, var(--pattern-cyan) 1.5px, transparent 2px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  z-index: 0;
}
.sa-pattern > * { position: relative; z-index: 1; }

/* Geometric corner marks (Ndebele-like chevrons) */
.geo-corners {
  position: relative;
}
.geo-corners::before,
.geo-corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.35;
  pointer-events: none;
}
.geo-corners::before {
  top: 10px; left: 10px;
  border-width: 2px 0 0 2px;
}
.geo-corners::after {
  bottom: 10px; right: 10px;
  border-width: 0 2px 2px 0;
}

/* Animated SA accent strip — flag-inspired sequence */
.sa-strip {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg,
    #000000 0%, #000000 14%,
    #e03c31 14%, #e03c31 28%,
    #007a4d 28%, #007a4d 42%,
    #001489 42%, #001489 56%,
    #ffb81c 56%, #ffb81c 72%,
    #ffffff 72%, #ffffff 86%,
    #000000 86%, #000000 100%);
  background-size: 200% 100%;
  animation: stripSlide 18s linear infinite;
  opacity: 0.5;
  border-radius: 2px;
}
@keyframes stripSlide {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.sa-strip-static {
  height: 3px;
  max-width: 100px;
  margin: 0 auto 1.35rem;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--sa-green));
  border-radius: 2px;
  opacity: 0.75;
}

/* ----- Enhanced animations ----- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--border-subtle), 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 0 1px var(--border-gold), 0 0 20px rgba(212,168,45,0.08); }
}
@keyframes countUp {
  from { opacity: 0.3; }
  to { opacity: 1; }
}
@keyframes drawLine {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(26,159,212,0.35); }
  70% { box-shadow: 0 0 0 12px rgba(26,159,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,159,212,0); }
}

/* Hero entrance cascade */
.hero-badge { animation: slideInLeft 0.6s var(--ease) both; }
.hero h1 { animation: slideInLeft 0.65s var(--ease) 0.08s both; }
.hero-lead { animation: slideInLeft 0.65s var(--ease) 0.16s both; }
.hero-actions { animation: slideInLeft 0.65s var(--ease) 0.24s both; }
.hero-meta { animation: slideInLeft 0.65s var(--ease) 0.32s both; }
.hero-visual { animation: slideInRight 0.75s var(--ease) 0.15s both; }

/* Score panel living feel */
.score-panel {
  animation: borderGlow 6s ease-in-out infinite;
}
.score-panel:hover {
  animation: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(56,189,248,0.12);
}

/* Metric cards — counter style */
.metric-card {
  position: relative;
  overflow: hidden;
}
.metric-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.8s var(--ease);
}
.metric-card.visible::after,
.metrics-grid.visible .metric-card::after {
  width: 100%;
}
.metric-value {
  transition: transform 0.4s var(--ease);
}
.metric-card:hover .metric-value {
  transform: scale(1.06);
}

/* Agent cards — geometric hover */
.agent-card {
  position: relative;
}
.agent-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--gold-dim) transparent transparent;
  opacity: 0;
  transition: opacity var(--med);
}
.agent-card:hover::after { opacity: 1; }

/* Step cards sequential feel */
.step {
  transition: border-color var(--med), box-shadow var(--med), transform var(--med);
}
.step:hover {
  transform: translateY(-3px);
}

/* Pricing popular pulse */
.price-card.popular {
  animation: borderGlow 5s ease-in-out infinite;
}

/* Button shine sweep */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.55s var(--ease);
}
.btn-primary:hover::after { left: 120%; }

/* ----- Expanded section styles ----- */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 2rem;
}
.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--med), box-shadow var(--med), transform var(--med);
  position: relative;
  overflow: hidden;
}
.case-card:hover {
  border-color: var(--border-standard);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.case-card .case-sector {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
}
.case-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.case-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.case-stats {
  display: flex;
  gap: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-faint);
}
.case-stat .cs-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}
.case-stat .cs-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* Process timeline */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 2rem auto 0;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--gold), var(--sa-green));
  opacity: 0.4;
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  transition: background var(--med), box-shadow var(--med);
}
.timeline-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-dim), 0 0 12px rgba(26,159,212,0.3);
}
.timeline-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.timeline-item p {
  font-size: 0.85rem;
  line-height: 1.5;
}
.timeline-item .tl-week {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--bg-surface);
}
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-faint);
}
.compare-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}
.compare-table td { color: var(--text-secondary); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .highlight-col {
  background: rgba(26,159,212,0.06);
  color: var(--text-primary);
  font-weight: 500;
}
.compare-table .check { color: var(--success); font-weight: 700; }
.compare-table .cross { color: var(--text-muted); }

/* Resource cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.resource-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color var(--med), transform var(--med);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.resource-card:hover {
  border-color: var(--border-standard);
  transform: translateY(-2px);
}
.resource-card .res-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-bright);
}
.resource-card h3 {
  font-size: 0.95rem;
  line-height: 1.35;
}
.resource-card p {
  font-size: 0.82rem;
  flex: 1;
}
.resource-card a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin-top: 0.35rem;
}
.resource-card a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .resource-grid { grid-template-columns: 1fr; }
}

/* Who-for chips expanded */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.persona-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  text-align: center;
  transition: border-color var(--med), transform var(--med);
}
.persona-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}
.persona-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-standard);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-text);
  font-size: 1.2rem;
  font-weight: 800;
}
.persona-card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.persona-card p { font-size: 0.82rem; line-height: 1.45; margin: 0; }

@media (max-width: 700px) {
  .persona-grid { grid-template-columns: 1fr; }
}

/* Floating geometric decorations */
.geo-float {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
  border: 1.5px solid var(--gold);
}
.geo-float-1 {
  width: 60px; height: 60px;
  top: 12%; right: 8%;
  transform: rotate(45deg);
  animation: floatY 9s ease-in-out infinite;
}
.geo-float-2 {
  width: 28px; height: 28px;
  bottom: 18%; left: 6%;
  border-radius: 50%;
  border-color: var(--accent);
  animation: floatY 7s ease-in-out infinite reverse;
}
.geo-float-3 {
  width: 40px; height: 40px;
  top: 40%; left: 3%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: var(--sa-green);
  border: none;
  opacity: 0.08;
  animation: floatY 11s ease-in-out infinite;
}

/* Testimonial dual */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 1.5rem;
}
@media (max-width: 700px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* Security badges row */
.security-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.security-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: border-color var(--fast), color var(--fast);
}
.security-pill:hover {
  border-color: var(--border-standard);
  color: var(--text-secondary);
}
.security-pill svg {
  width: 14px; height: 14px;
  color: var(--success);
}

/* Expanded reveal variants */
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Number counter ready */
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* Page load fade */
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
body { animation: pageIn 0.4s ease both; }

/* Beautiful focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sa-strip { animation: none; }
}

/* ============================================================
   AGENTIC AI + SA MOTION LAYER — pop & presence
   ============================================================ */

/* ----- Living agent network (hero / showcase) ----- */
.agent-network {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  max-width: 420px;
  margin: 0 auto;
}

.agent-network svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.an-node {
  transform-origin: center;
  animation: nodeBreath 3.2s ease-in-out infinite;
}
.an-node:nth-child(2) { animation-delay: 0.4s; }
.an-node:nth-child(3) { animation-delay: 0.8s; }
.an-node:nth-child(4) { animation-delay: 1.2s; }
.an-node:nth-child(5) { animation-delay: 1.6s; }
.an-node:nth-child(6) { animation-delay: 2s; }
.an-node:nth-child(7) { animation-delay: 2.4s; }

@keyframes nodeBreath {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.an-core {
  animation: corePulse 2.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes corePulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(56,189,248,0.45)); }
  50% { filter: drop-shadow(0 0 16px rgba(56,189,248,0.7)); }
}

.an-link {
  stroke-dasharray: 6 8;
  animation: linkFlow 2.5s linear infinite;
}
.an-link.delay-1 { animation-delay: 0.3s; }
.an-link.delay-2 { animation-delay: 0.6s; }
.an-link.delay-3 { animation-delay: 0.9s; }
.an-link.delay-4 { animation-delay: 1.2s; }
.an-link.delay-5 { animation-delay: 1.5s; }
@keyframes linkFlow {
  to { stroke-dashoffset: -28; }
}

.an-particle {
  animation: particleTravel 3s ease-in-out infinite;
}
.an-particle:nth-of-type(odd) { animation-delay: 0.5s; }
.an-particle:nth-of-type(even) { animation-delay: 1.2s; }
@keyframes particleTravel {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

/* Agent status chips floating around network */
.agent-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-standard);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: chipFloat 5s ease-in-out infinite;
  z-index: 2;
}
.agent-chip .chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(45,184,106,0.25);
  animation: pulse 2s ease-in-out infinite;
}
.agent-chip.warn .chip-dot { background: var(--warning); box-shadow: 0 0 0 2px rgba(217,154,26,0.25); }
.agent-chip.gold {
  border-color: var(--border-gold);
  color: var(--gold-text);
}
.agent-chip-1 { top: 6%; left: -4%; animation-delay: 0s; }
.agent-chip-2 { top: 22%; right: -8%; animation-delay: -1.5s; }
.agent-chip-3 { bottom: 28%; left: -10%; animation-delay: -3s; }
.agent-chip-4 { bottom: 8%; right: -2%; animation-delay: -2.2s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 900px) {
  .agent-chip { display: none; }
}

/* ----- SA sunburst / geometric burst behind hero visual ----- */
.sa-burst {
  position: absolute;
  inset: -15%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg 8deg,
      rgba(212,168,45,0.12) 8deg 9deg,
      transparent 9deg 18deg,
      rgba(26,159,212,0.08) 18deg 19deg
    );
  border-radius: 50%;
  animation: burstSpin 60s linear infinite;
  mask-image: radial-gradient(circle, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 20%, transparent 70%);
}
@keyframes burstSpin {
  to { transform: rotate(360deg); }
}

/* ----- Agentic thinking indicator ----- */
.agent-thinking {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-bright);
  font-family: var(--font-mono);
}
.agent-thinking .dots span {
  display: inline-block;
  width: 4px; height: 4px;
  margin: 0 1px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: thinkDot 1.2s ease-in-out infinite;
}
.agent-thinking .dots span:nth-child(2) { animation-delay: 0.15s; }
.agent-thinking .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes thinkDot {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.15); }
}

/* ----- Data stream lines (section dividers) ----- */
.stream-divider {
  position: relative;
  height: 1px;
  margin: 0 auto;
  max-width: var(--max);
  background: var(--border-faint);
  overflow: hidden;
}
.stream-divider::after {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-bright), var(--gold), transparent);
  animation: streamRun 3.5s ease-in-out infinite;
}
@keyframes streamRun {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* ----- Ndebele pattern pulse on sections ----- */
.sa-pattern-live::before {
  animation: patternShift 12s ease-in-out infinite alternate;
}
@keyframes patternShift {
  0% { opacity: 0.3; background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { opacity: 0.55; background-position: 0 0, 0 0, 12px 8px, -8px 12px; }
}

/* ----- Hero visual stack ----- */
.hero-visual-stack {
  position: relative;
  z-index: 1;
}
.hero-visual-stack .sa-burst { z-index: 0; }
.hero-visual-stack .score-panel,
.hero-visual-stack .agent-network-wrap {
  position: relative;
  z-index: 1;
}

.agent-network-wrap {
  position: relative;
  margin-top: 1.25rem;
}

/* Dual hero mode: score + network side by side on wide */
.hero-dual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ----- Ambient particles (CSS only) ----- */
.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ambient span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-bright);
  opacity: 0;
  animation: ambientFloat 8s ease-in-out infinite;
}
.ambient span:nth-child(1) { left: 12%; top: 20%; animation-delay: 0s; background: var(--gold); }
.ambient span:nth-child(2) { left: 78%; top: 15%; animation-delay: 1.2s; }
.ambient span:nth-child(3) { left: 45%; top: 60%; animation-delay: 2.4s; background: var(--gold); }
.ambient span:nth-child(4) { left: 88%; top: 55%; animation-delay: 0.6s; }
.ambient span:nth-child(5) { left: 22%; top: 75%; animation-delay: 3s; }
.ambient span:nth-child(6) { left: 60%; top: 30%; animation-delay: 1.8s; background: var(--gold); }
.ambient span:nth-child(7) { left: 8%; top: 48%; animation-delay: 2.8s; }
.ambient span:nth-child(8) { left: 70%; top: 80%; animation-delay: 0.9s; }

@keyframes ambientFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  20% { opacity: 0.5; }
  50% { opacity: 0.7; transform: translateY(-28px) scale(1); }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-50px) scale(0.5); }
}

/* ----- Magnetic card hover (agentic feel) ----- */
.agent-card,
.case-card,
.persona-card,
.step,
.price-card {
  transition:
    border-color var(--med),
    box-shadow var(--med),
    transform 0.35s var(--ease);
}
.agent-card:hover,
.case-card:hover,
.persona-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(56,189,248,0.1);
}

/* ----- CTA band agentic glow ----- */
.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,159,212,0.12), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ctaGlow 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

/* ----- Logo subtle live indicator ----- */
.logo-icon {
  position: relative;
}
.logo-icon::after {
  content: "";
  position: absolute;
  top: -2px; right: -2px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  border: 1.5px solid var(--bg-primary);
  animation: pulse 2.5s ease-in-out infinite;
}

/* ----- Section title underline draw ----- */
.section-title.reveal.visible + .section-lead,
.sa-strip-static {
  position: relative;
}
.section-title.reveal.visible ~ .sa-strip-static,
.reveal.visible .sa-strip-static {
  animation: drawLine 0.7s var(--ease) 0.15s both;
}

/* ----- Enhanced terminal scanline ----- */
.terminal-body {
  position: relative;
}
.terminal-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

/* ----- Nav CTA live pulse ring ----- */
.nav-cta {
  position: relative;
}
.nav-cta::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-sm) + 3px);
  border: 1px solid rgba(26,159,212,0.4);
  animation: pulseRing 2.8s ease-out infinite;
  pointer-events: none;
}

/* ----- Metric value glow on complete ----- */
.metric-value {
  text-shadow: 0 0 30px rgba(61,184,232,0.15);
}

/* ----- Beautiful selection of SA gold ----- */
::selection {
  background: rgba(212, 168, 45, 0.35);
  color: #fff;
}

/* ----- Scroll progress bar (top) ----- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--sa-green));
  z-index: 10001;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ----- Agent suite section header badge ----- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(45,184,106,0.1);
  border: 1px solid rgba(45,184,106,0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  margin: 0 auto 1rem;
}
.live-badge .lb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

/* ----- Hover lift for comparison table row ----- */
.compare-table tbody tr {
  transition: background var(--fast);
}
.compare-table tbody tr:hover {
  background: rgba(26,159,212,0.04);
}

/* ----- Timeline connector glow ----- */
.timeline::before {
  background: linear-gradient(180deg, var(--accent), var(--gold), var(--sa-green));
  box-shadow: 0 0 12px rgba(26,159,212,0.15);
}

/* ----- Price card most popular crown shimmer ----- */
.price-badge {
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  background-image: linear-gradient(90deg, #e0b53a, #f0d070, #c9961f, #e0b53a);
}

/* ----- Footer brand subtle live ----- */
.footer-brand .logo-icon::after {
  border-color: var(--bg-primary);
}

/* ----- Page transition feel for inner pages ----- */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gold), transparent);
  opacity: 0.4;
}

/* ----- Reduce motion overrides for new anims ----- */
@media (prefers-reduced-motion: reduce) {
  .sa-burst,
  .an-link,
  .an-core,
  .an-node,
  .an-particle,
  .agent-chip,
  .ambient span,
  .stream-divider::after,
  .cta-band::after,
  .nav-cta::before,
  .sa-pattern-live::before,
  .price-badge {
    animation: none !important;
  }
}


/* Agent network under score — compact on smaller screens */
@media (max-width: 900px) {
  .agent-network-wrap { max-width: 320px; margin-left: auto; margin-right: auto; }
  .agent-network { max-width: 300px; }
}
@media (max-width: 600px) {
  .agent-network-wrap { display: none; } /* keep score panel primary on small phones */
}

/* Hero dual stack spacing */
.hero-visual-stack .score-panel { margin-bottom: 0; }
.agent-network-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem 0.5rem;
  box-shadow: var(--shadow-sm);
}

/* Thinking badge in terminal section */
.terminal-section .live-badge {
  font-family: var(--font-mono);
}

/* ============================================================
   NDEBELE × ZULU BEADWORK × DRUM RHYTHM
   Traditional SA geometry, modern execution
   ============================================================ */

:root {
  /* Ndebele / beadwork palette — used as accents only */
  --nd-black: #0a0a0a;
  --nd-white: #f5f5f0;
  --nd-red: #c41e3a;
  --nd-blue: #1a4b8c;
  --nd-yellow: #e8b923;
  --nd-green: #1a7a4c;
  --nd-outline: rgba(10, 10, 10, 0.55);

  /* Drum rhythm (approx. 90 BPM pulse groups) */
  --beat: 0.667s;          /* one beat at ~90 BPM */
  --beat-half: 0.333s;
  --beat-quart: 0.167s;
  --bar: 2.667s;           /* 4 beats */
}

/* ----- Ndebele border frame (thick black outline aesthetic) ----- */
.nd-frame {
  position: relative;
  border: 2px solid rgba(232, 185, 35, 0.35);
}
.nd-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  pointer-events: none;
  z-index: 1;
}

/* Chevron / triangle edge decoration */
.nd-chevrons {
  position: relative;
}
.nd-chevrons::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--nd-yellow) 0 8px,
      transparent 8px 12px,
      var(--accent) 12px 20px,
      transparent 20px 24px,
      var(--nd-green) 24px 32px,
      transparent 32px 36px
    );
  opacity: 0.45;
  clip-path: polygon(
    0 100%, 4px 0, 8px 100%, 12px 0, 16px 100%, 20px 0, 24px 100%,
    28px 0, 32px 100%, 36px 0, 40px 100%, 44px 0, 48px 100%,
    100% 100%, 100% 100%, 0 100%
  );
  pointer-events: none;
}

/* ----- Zulu beadwork grid pattern (subtle surface) ----- */
.bead-surface {
  position: relative;
  overflow: hidden;
}
.bead-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image:
    /* bead dots in grid */
    radial-gradient(circle, var(--nd-yellow) 1px, transparent 1.5px),
    radial-gradient(circle, var(--accent-bright) 1px, transparent 1.5px),
    /* diamond lattice */
    linear-gradient(45deg, transparent 48%, rgba(196,30,58,0.15) 49%, rgba(196,30,58,0.15) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(26,122,76,0.12) 49%, rgba(26,122,76,0.12) 51%, transparent 52%);
  background-size:
    14px 14px,
    14px 14px,
    28px 28px,
    28px 28px;
  background-position:
    0 0,
    7px 7px,
    0 0,
    0 0;
  animation: beadShimmer var(--bar) steps(4) infinite;
}
.bead-surface > * { position: relative; z-index: 1; }

@keyframes beadShimmer {
  0%   { opacity: 0.05; }
  25%  { opacity: 0.09; }
  50%  { opacity: 0.06; }
  75%  { opacity: 0.1; }
  100% { opacity: 0.05; }
}

/* ----- Drum-beat rhythm system ----- */
/* Apply .drum-pulse to elements for heartbeat rhythm */
.drum-pulse {
  animation: drumHit var(--bar) ease-in-out infinite;
}
.drum-pulse-d1 { animation-delay: calc(var(--beat) * 0); }
.drum-pulse-d2 { animation-delay: calc(var(--beat) * 1); }
.drum-pulse-d3 { animation-delay: calc(var(--beat) * 2); }
.drum-pulse-d4 { animation-delay: calc(var(--beat) * 3); }

@keyframes drumHit {
  0%, 100% { transform: scale(1); }
  4% { transform: scale(1.04); }   /* downbeat */
  8% { transform: scale(1); }
  29% { transform: scale(1.02); }  /* off-beat response */
  33% { transform: scale(1); }
}

/* Stagger children on drum grid */
.drum-stagger > *:nth-child(1) { animation: drumEnter 0.6s var(--ease) both; animation-delay: 0s; }
.drum-stagger > *:nth-child(2) { animation: drumEnter 0.6s var(--ease) both; animation-delay: calc(var(--beat-half)); }
.drum-stagger > *:nth-child(3) { animation: drumEnter 0.6s var(--ease) both; animation-delay: calc(var(--beat)); }
.drum-stagger > *:nth-child(4) { animation: drumEnter 0.6s var(--ease) both; animation-delay: calc(var(--beat) * 1.5); }
.drum-stagger > *:nth-child(5) { animation: drumEnter 0.6s var(--ease) both; animation-delay: calc(var(--beat) * 2); }
.drum-stagger > *:nth-child(6) { animation: drumEnter 0.6s var(--ease) both; animation-delay: calc(var(--beat) * 2.5); }

@keyframes drumEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Live badge drum pulse */
.live-badge .lb-dot {
  animation: drumDot var(--beat) ease-in-out infinite;
}
@keyframes drumDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(45,184,106,0.4); }
  15% { transform: scale(1.35); opacity: 0.9; box-shadow: 0 0 0 4px rgba(45,184,106,0); }
  30% { transform: scale(1); opacity: 1; }
}

/* Score status tags — bead-like */
.el-status {
  border: 1px solid transparent;
  letter-spacing: 0.04em;
}
.el-status.pass {
  border-color: rgba(45,184,106,0.35);
  box-shadow: inset 0 0 0 1px rgba(45,184,106,0.1);
}
.el-status.warn {
  border-color: rgba(217,154,26,0.35);
}
.el-status.fail {
  border-color: rgba(217,74,74,0.35);
}

/* ----- Ndebele diamond divider ----- */
.nd-diamond-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1.35rem;
  max-width: 200px;
}
.nd-diamond-rule span {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.7;
}
.nd-diamond-rule span:nth-child(2) {
  width: 6px; height: 6px;
  background: var(--accent);
  opacity: 0.5;
}
.nd-diamond-rule span:nth-child(3) {
  background: var(--nd-green);
  opacity: 0.55;
}
.nd-diamond-rule::before,
.nd-diamond-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-standard));
}
.nd-diamond-rule::after {
  background: linear-gradient(90deg, var(--border-standard), transparent);
}

/* ----- BEE process steps (unique section) ----- */
.bee-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  position: relative;
}
.bee-process::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--nd-yellow),
    var(--accent),
    var(--nd-green),
    var(--nd-blue),
    var(--nd-red)
  );
  opacity: 0.35;
  z-index: 0;
}
.bee-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.25rem;
}
.bee-step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 2px solid var(--border-standard);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--accent-bright);
  font-family: var(--font-mono);
  position: relative;
  transition: border-color var(--med), transform var(--med), box-shadow var(--med);
}
.bee-step:hover .bee-step-icon {
  border-color: var(--gold);
  transform: translateY(-3px) rotate(0deg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 1px var(--border-gold);
}
/* Ndebele corner ticks on process icons */
.bee-step-icon::before,
.bee-step-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.5;
}
.bee-step-icon::before {
  top: 3px; left: 3px;
  border-width: 1.5px 0 0 1.5px;
}
.bee-step-icon::after {
  bottom: 3px; right: 3px;
  border-width: 0 1.5px 1.5px 0;
}
.bee-step h3 {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}
.bee-step p {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .bee-process {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .bee-process::before { display: none; }
}
@media (max-width: 480px) {
  .bee-process { grid-template-columns: 1fr; }
}

/* ----- Priority elements callout ----- */
.priority-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.priority-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.1rem;
  transition: border-color var(--med), transform var(--med);
}
.priority-card:hover {
  transform: translateX(3px);
  border-left-color: var(--accent);
}
.priority-card h3 {
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.priority-card h3 .prio-tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  background: var(--gold-dim);
  color: var(--gold-text);
  border-radius: 3px;
  border: 1px solid var(--border-gold);
}
.priority-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
  color: var(--text-tertiary);
}

@media (max-width: 700px) {
  .priority-strip { grid-template-columns: 1fr; }
}

/* ----- Evidence checklist (verification prep) ----- */
.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
.evidence-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.evidence-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-faint);
  color: var(--accent-bright);
}
.evidence-card ul {
  margin: 0;
}
.evidence-card li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.evidence-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

@media (max-width: 700px) {
  .evidence-grid { grid-template-columns: 1fr; }
}

/* ----- Level badge row ----- */
.level-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.level-pill {
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.level-pill.active {
  border-color: var(--border-gold);
  color: var(--gold-text);
  background: var(--gold-dim);
}

/* ----- Enhance existing sa-pattern with stronger Ndebele ----- */
.sa-pattern-live::before {
  background-image:
    linear-gradient(90deg, transparent 0%, transparent 6%, rgba(232,185,35,0.06) 6%, rgba(232,185,35,0.06) 8%, transparent 8%, transparent 92%, rgba(232,185,35,0.06) 92%, rgba(232,185,35,0.06) 94%, transparent 94%),
    linear-gradient(0deg, transparent 0%, transparent 10%, rgba(26,159,212,0.05) 10%, rgba(26,159,212,0.05) 11.5%, transparent 11.5%, transparent 88.5%, rgba(26,122,76,0.05) 88.5%, rgba(26,122,76,0.05) 90%, transparent 90%),
    radial-gradient(circle at 12% 25%, rgba(232,185,35,0.12) 1.5px, transparent 2px),
    radial-gradient(circle at 88% 75%, rgba(26,159,212,0.1) 1.5px, transparent 2px),
    linear-gradient(45deg, transparent 47%, rgba(196,30,58,0.04) 49%, rgba(196,30,58,0.04) 51%, transparent 53%);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px, 56px 56px;
}

/* Agent network nodes get bead-like outline */
.agent-network-wrap {
  border-width: 2px;
  border-color: rgba(232,185,35,0.2);
}

/* Section titles with diamond accent */
.section-title-wrap {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .drum-pulse,
  .drum-stagger > *,
  .bead-surface::before,
  .live-badge .lb-dot {
    animation: none !important;
  }
}

/* ============================================================
   SA ARTWORK LAYER — geometric fauna, mural bands, motion
   ============================================================ */

/* Ndebele mural band — scrolling */
.ndebele-band {
  width: 100%;
  height: 36px;
  overflow: hidden;
  position: relative;
  opacity: 0.85;
  border-top: 1px solid rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(0,0,0,0.3);
}
.ndebele-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: muralScroll 35s linear infinite;
}
.ndebele-track img {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@keyframes muralScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Art float pieces */
.sa-art {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: opacity 0.4s var(--ease);
}
.sa-art img,
.sa-art svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

.sa-art-bok {
  width: 110px;
  top: 8%;
  right: 2%;
  animation: bokLeap 5s ease-in-out infinite;
}
@keyframes bokLeap {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  40% { transform: translateY(-14px) rotate(2deg); }
  55% { transform: translateY(-8px) rotate(-1deg); }
  70% { transform: translateY(-16px) rotate(1deg); }
}

.sa-art-protea {
  width: 70px;
  bottom: 12%;
  left: 3%;
  animation: proteaSway 7s ease-in-out infinite;
}
@keyframes proteaSway {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.04); }
}

.sa-art-crane {
  width: 85px;
  top: 35%;
  left: 1%;
  animation: craneFloat 8s ease-in-out infinite;
  opacity: 0.4;
}
@keyframes craneFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-10px) translateX(4px); }
  66% { transform: translateY(-4px) translateX(-3px); }
}

.sa-art-san {
  width: 140px;
  bottom: 5%;
  right: 5%;
  opacity: 0.35;
  animation: sanFade 10s ease-in-out infinite;
}
@keyframes sanFade {
  0%, 100% { opacity: 0.25; transform: translateX(0); }
  50% { opacity: 0.45; transform: translateX(-8px); }
}

@media (max-width: 900px) {
  .sa-art-bok { width: 80px; right: 0; }
  .sa-art-crane { display: none; }
  .sa-art-san { width: 100px; opacity: 0.25; }
  .sa-art-protea { width: 55px; }
}

/* Art strip in CTA / footer */
.art-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}
.art-feature .art-piece {
  width: 90px;
  opacity: 0.7;
  transition: opacity var(--med), transform var(--med);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.art-feature .art-piece:hover {
  opacity: 1;
  transform: scale(1.08) translateY(-4px);
}
.art-feature .art-piece.bok { width: 100px; }
.art-feature .art-piece.crane { width: 80px; }
.art-feature .art-piece.protea { width: 70px; }
.art-feature .art-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Vibrant colour accent bars inspired by Ndebele blocks */
.colour-blocks {
  display: flex;
  height: 6px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1.25rem;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.colour-blocks span {
  flex: 1;
  transition: flex 0.4s var(--ease);
}
.colour-blocks span:nth-child(1) { background: #e8b923; }
.colour-blocks span:nth-child(2) { background: #1a4b8c; }
.colour-blocks span:nth-child(3) { background: #1a7a4c; }
.colour-blocks span:nth-child(4) { background: #c41e3a; }
.colour-blocks span:nth-child(5) { background: #3db8e8; }
.colour-blocks:hover span:nth-child(1) { flex: 1.4; }
.colour-blocks:hover span:nth-child(3) { flex: 1.3; }
.colour-blocks:hover span:nth-child(4) { flex: 1.2; }

/* Geometric animal in process icons area */
.bee-step-icon.has-art {
  overflow: hidden;
}
.bee-step-icon.has-art img {
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

/* Footer art row */
.footer-art {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem 0 0.5rem;
  opacity: 0.5;
}
.footer-art img {
  height: 36px;
  width: auto;
  filter: grayscale(0.3);
  transition: filter var(--med), opacity var(--med);
}
.footer-art img:hover {
  filter: none;
  opacity: 1;
}

/* Protea bloom on hover for cards */
.agent-card:hover,
.case-card:hover {
  border-color: rgba(232,185,35,0.35);
}

/* San antelope as section watermark */
.section-watermark {
  position: absolute;
  right: 5%;
  bottom: 10%;
  width: 180px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Make hero hold art */
.hero {
  position: relative;
  overflow: hidden;
}

/* Vibrant notice bar subtle SA colour edge */
.notice-bar {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #e8b923, #1a4b8c, #1a7a4c, #c41e3a, #3db8e8) 1;
}

/* Score level tag more Ndebele */
.score-level-tag {
  border: 1.5px solid var(--border-gold);
  background: linear-gradient(135deg, var(--gold-dim), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ndebele-band img,
  .sa-art-bok,
  .sa-art-protea,
  .sa-art-crane,
  .sa-art-san {
    animation: none !important;
  }
}

/* ============================================================
   HERITAGE DENSITY — murals, photo panels, San art
   ============================================================ */

/* Full-bleed heritage photo section */
.heritage-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0;
}
.heritage-hero img.heritage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45) saturate(1.15) contrast(1.05);
  transform: scale(1.02);
  transition: transform 8s ease;
}
.heritage-hero:hover img.heritage-bg {
  transform: scale(1.06);
}
.heritage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6,9,15,0.2) 0%,
    rgba(6,9,15,0.55) 40%,
    rgba(6,9,15,0.92) 100%
  );
  z-index: 1;
}
.heritage-hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.heritage-hero-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.heritage-hero-content p {
  max-width: 520px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.heritage-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border-gold);
  border-radius: 3px;
  background: rgba(0,0,0,0.35);
}

/* Photo grid — SA landscapes */
.sa-photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 0.65rem;
  margin-top: 1.75rem;
}
.sa-photo-grid .pg-main {
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.sa-photo-grid .pg-side {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.sa-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  filter: saturate(1.1) brightness(0.9);
}
.sa-photo-grid > div:hover img {
  transform: scale(1.05);
}
.sa-photo-grid .pg-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .sa-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 140px 140px;
  }
  .sa-photo-grid .pg-main { grid-row: 1; grid-column: 1 / -1; }
}

/* San rock art showcase */
.san-showcase {
  background: #1a1510;
  border: 1px solid rgba(196,120,58,0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1.5rem;
  position: relative;
}
.san-showcase img,
.san-showcase svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
}
.san-showcase-caption {
  padding: 0.85rem 1.15rem;
  background: rgba(0,0,0,0.45);
  font-size: 0.78rem;
  color: #d4a87a;
  line-height: 1.45;
  border-top: 1px solid rgba(196,120,58,0.15);
}
.san-showcase-caption strong {
  color: #e8c49a;
}

/* Dual mural row */
.mural-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.mural-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 200px;
}
.mural-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.2);
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.mural-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.8) saturate(1.25);
}
.mural-card .mural-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,9,15,0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem;
}
.mural-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.mural-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .mural-row { grid-template-columns: 1fr; }
}

/* Symbol meaning strip */
.symbol-meanings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.symbol-card {
  text-align: center;
  padding: 1.15rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--med), transform var(--med);
}
.symbol-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}
.symbol-card img {
  width: 56px;
  height: auto;
  margin: 0 auto 0.65rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.symbol-card h3 {
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}
.symbol-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}
@media (max-width: 700px) {
  .symbol-meanings { grid-template-columns: 1fr 1fr; }
}

/* Section with subtle photo bg */
.section-with-land {
  position: relative;
  overflow: hidden;
}
.section-with-land::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/sa-landscape.jpg") center/cover no-repeat;
  opacity: 0.06;
  filter: grayscale(0.4) brightness(0.5);
  z-index: 0;
}
.section-with-land > .container {
  position: relative;
  z-index: 1;
}

/* Stronger colour presence in notice */
.notice-bar {
  background: linear-gradient(90deg, rgba(26,75,140,0.15), rgba(26,122,76,0.1), rgba(196,30,58,0.08));
}

/* Eland art float */
.sa-art-eland {
  width: 100px;
  top: 55%;
  right: 8%;
  opacity: 0.4;
  animation: elandWalk 12s ease-in-out infinite;
}
@keyframes elandWalk {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-15px); }
}

/* Dense pattern border for cards */
.heritage-border {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.heritage-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #e8b923, #1a4b8c, #1a7a4c, #c41e3a, #e8b923);
  background-size: 300% 300%;
  z-index: -1;
  animation: borderShift 8s linear infinite;
  opacity: 0.5;
}
@keyframes borderShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .heritage-hero img.heritage-bg,
  .sa-art-eland,
  .heritage-border::before {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   PREMIUM MOTION — Awwwards-informed, theme-fit
   Scroll-driven, image reveals, magnetic, parallax depth
   ============================================================ */

/* ----- CSS scroll-driven reveals (progressive) ----- */
@supports (animation-timeline: view()) {
  .reveal-view {
    animation: viewRise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  .reveal-view-scale {
    animation: viewScale linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  .reveal-view-blur {
    animation: viewBlur linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}
@keyframes viewRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes viewScale {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes viewBlur {
  from { opacity: 0; filter: blur(12px); transform: scale(1.03); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* ----- Image clip reveal (curtain / wipe) ----- */
.img-reveal {
  position: relative;
  overflow: hidden;
}
.img-reveal img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-reveal.visible img,
.img-reveal.in-view img {
  clip-path: inset(0 0 0 0);
}
.img-reveal-up img {
  clip-path: inset(100% 0 0 0);
}
.img-reveal-up.visible img,
.img-reveal-up.in-view img {
  clip-path: inset(0 0 0 0);
}

/* Grayscale → colour on scroll (luxury photo pattern) */
.photo-colorize img {
  filter: grayscale(0.85) brightness(0.75) contrast(1.05);
  transition: filter 1.1s var(--ease), transform 0.7s var(--ease);
}
.photo-colorize.visible img,
.photo-colorize:hover img {
  filter: grayscale(0) brightness(0.9) saturate(1.15);
}

/* ----- Magnetic button / CTA ----- */
.btn-magnetic {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.btn-magnetic .btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Card 3D tilt (subtle) ----- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tilt-card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(56,189,248,0.12);
}

/* ----- Text line mask reveal ----- */
.line-reveal {
  overflow: hidden;
  display: block;
}
.line-reveal > span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.line-reveal.visible > span,
.reveal.visible .line-reveal > span {
  transform: translateY(0);
}
.line-reveal:nth-child(2) > span { transition-delay: 0.08s; }
.line-reveal:nth-child(3) > span { transition-delay: 0.16s; }

/* ----- Parallax layers ----- */
.parallax-wrap {
  position: relative;
  overflow: hidden;
}
.parallax-slow {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Heritage hero parallax boost */
.heritage-hero img.heritage-bg {
  will-change: transform;
}

/* ----- Horizontal marquee (enhanced) ----- */
.marquee-row {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marqueeRun 45s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.marquee-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}

/* ----- Spotlight hover on cards ----- */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.12), transparent 70%);
  top: var(--spot-y, 50%);
  left: var(--spot-x, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}
.spotlight-card:hover::before {
  opacity: 1;
}
.spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* ----- Section pin feel (visual sticky header inside section) ----- */
.section-sticky-label {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 5;
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-standard);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

/* ----- Smooth image scale on scroll container ----- */
.scale-on-scroll {
  transform: scale(1.08);
  transition: transform 0.1s linear;
}

/* ----- Link underline draw ----- */
.link-draw {
  position: relative;
  text-decoration: none;
}
.link-draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.link-draw:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ----- Number tick polish ----- */
.metric-value {
  font-feature-settings: "tnum";
}

/* ----- Hero title kinetic feel ----- */
.hero h1 {
  overflow: hidden;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: wordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .img-reveal img,
  .photo-colorize img,
  .marquee-track,
  .hero h1 .word,
  .line-reveal > span {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
}

/* ============================================================
   SA-CRAFTED BLOCKS — Ndebele / beadwork info cards
   Replace generic SaaS cards with geometric craft
   ============================================================ */

/* Shared crafted card shell */
.sa-block {
  position: relative;
  background: var(--bg-surface);
  border: 2px solid rgba(232, 185, 35, 0.22);
  border-radius: 4px;
  padding: 1.35rem 1.25rem;
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.sa-block::before {
  /* Ndebele top colour bar */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #e8b923 0%, #e8b923 20%,
    #1a4b8c 20%, #1a4b8c 40%,
    #1a7a4c 40%, #1a7a4c 60%,
    #c41e3a 60%, #c41e3a 80%,
    #3db8e8 80%, #3db8e8 100%);
  opacity: 0.85;
}
.sa-block::after {
  /* Corner diamond (bottom-right) */
  content: "";
  position: absolute;
  bottom: 10px; right: 10px;
  width: 10px; height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.25;
  transition: opacity 0.3s, transform 0.3s;
}
.sa-block:hover {
  border-color: rgba(232, 185, 35, 0.45);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.35),
    0 0 0 1px rgba(56,189,248,0.08),
    inset 0 1px 0 rgba(255,255,255,0.03);
  transform: translateY(-4px);
}
.sa-block:hover::after {
  opacity: 0.55;
  transform: rotate(45deg) scale(1.2);
}

/* Inner geometric frame */
.sa-block-inner {
  position: relative;
  padding: 0.15rem;
}
.sa-block-inner::before,
.sa-block-inner::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.4;
  pointer-events: none;
}
.sa-block-inner::before {
  top: 0; left: 0;
  border-width: 2px 0 0 2px;
}
.sa-block-inner::after {
  bottom: 0; right: 0;
  border-width: 0 2px 2px 0;
}

/* Bead dots along left edge */
.sa-block-beads {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.sa-block-beads span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
}
.sa-block-beads span:nth-child(2) { background: var(--accent); }
.sa-block-beads span:nth-child(3) { background: var(--nd-green, #1a7a4c); }
.sa-block-beads span:nth-child(4) { background: var(--nd-red, #c41e3a); }
.sa-block:hover .sa-block-beads span {
  animation: beadPulse 0.6s ease both;
}
.sa-block:hover .sa-block-beads span:nth-child(2) { animation-delay: 0.05s; }
.sa-block:hover .sa-block-beads span:nth-child(3) { animation-delay: 0.1s; }
.sa-block:hover .sa-block-beads span:nth-child(4) { animation-delay: 0.15s; }
@keyframes beadPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.4); opacity: 0.9; }
}

/* Apply SA block treatment to existing card types */
.agent-card.sa-craft,
.step.sa-craft,
.persona-card.sa-craft,
.case-card.sa-craft,
.priority-card.sa-craft,
.evidence-card.sa-craft,
.symbol-card.sa-craft,
.metric-card.sa-craft,
.faq-item.sa-craft {
  border: 2px solid rgba(232, 185, 35, 0.2);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(232,185,35,0.03) 0%, transparent 40%),
    var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.agent-card.sa-craft::before,
.step.sa-craft::before,
.persona-card.sa-craft::before,
.case-card.sa-craft::before,
.metric-card.sa-craft::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e8b923, #1a4b8c, #1a7a4c, #c41e3a);
  opacity: 0.75;
  z-index: 2;
}
.agent-card.sa-craft:hover,
.step.sa-craft:hover,
.persona-card.sa-craft:hover,
.case-card.sa-craft:hover {
  border-color: rgba(232, 185, 35, 0.42);
}

/* Step cards — numbered Ndebele squares */
.step.sa-craft .step-num {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--gold-text);
  border-left: 3px solid var(--gold);
  padding-left: 0.5rem;
}
.step.sa-craft .step-icon {
  border: 2px solid rgba(232,185,35,0.3);
  border-radius: 4px;
  background: var(--bg-elevated);
  position: relative;
}
.step.sa-craft .step-icon::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 6px; height: 6px;
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
  opacity: 0.5;
}

/* Metric cards — bold geometric */
.metric-card.sa-craft {
  text-align: center;
  padding: 1.5rem 1rem;
}
.metric-card.sa-craft .metric-value {
  font-size: 2.1rem;
  background: linear-gradient(135deg, var(--accent-bright), var(--gold-text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric-card.sa-craft::after {
  /* bottom chevron row instead of simple line */
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 6px,
    transparent 6px 10px,
    var(--accent) 10px 16px,
    transparent 16px 20px
  );
  opacity: 0;
  transition: opacity 0.4s;
  clip-path: polygon(0 100%, 5px 0, 10px 100%, 15px 0, 20px 100%, 100% 100%);
}
.metric-card.sa-craft.visible::after,
.metrics-grid.visible .metric-card.sa-craft::after,
.metric-card.sa-craft:hover::after {
  opacity: 0.5;
}

/* Persona — circular icon with bead ring */
.persona-card.sa-craft .persona-icon {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(232,185,35,0.12), 0 0 0 6px rgba(26,159,212,0.06);
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-panel));
}

/* Priority cards — left chevron stack */
.priority-card.sa-craft {
  border-left: none;
  padding-left: 1.5rem;
}
.priority-card.sa-craft::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: repeating-linear-gradient(
    180deg,
    #e8b923 0 8px,
    #1a4b8c 8px 16px,
    #1a7a4c 16px 24px,
    #c41e3a 24px 32px
  );
  border-radius: 0;
  height: auto;
}

/* Evidence cards — diamond bullets already; enhance frame */
.evidence-card.sa-craft {
  border: 2px solid rgba(232,185,35,0.18);
}
.evidence-card.sa-craft h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.evidence-card.sa-craft h3::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* FAQ — geometric open state */
.faq-item.sa-craft {
  border: 1.5px solid rgba(232,185,35,0.15);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: var(--bg-surface);
}
.faq-item.sa-craft[open] {
  border-color: rgba(232,185,35,0.35);
  box-shadow: inset 3px 0 0 var(--gold);
}
.faq-item.sa-craft summary {
  font-weight: 600;
}

/* Price cards SA craft */
.price-card.sa-craft {
  border: 2px solid rgba(232,185,35,0.2);
  border-radius: 4px;
  overflow: hidden;
}
.price-card.sa-craft.popular {
  border-color: rgba(232,185,35,0.5);
  box-shadow: 0 0 0 1px rgba(232,185,35,0.15), var(--shadow-lg);
}
.price-card.sa-craft::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e8b923, #1a4b8c, #1a7a4c);
  z-index: 2;
}

/* ----- More modern animations ----- */

/* Stagger grid wave on enter */
.wave-stagger > * {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.wave-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.wave-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.wave-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.wave-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.wave-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.wave-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.wave-stagger.visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Border draw animation */
.draw-border {
  position: relative;
}
.draw-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    linear-gradient(90deg, var(--gold), var(--accent), var(--nd-green, #1a7a4c)) border-box;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}
.draw-border.visible::before,
.draw-border:hover::before {
  opacity: 1;
}

/* Icon spin-in */
.icon-pop {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sa-craft:hover .icon-pop,
.agent-card:hover .agent-icon,
.step:hover .step-icon {
  transform: scale(1.08) rotate(-3deg);
}

/* Floating label badge */
.float-label {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  background: var(--gold-dim);
  color: var(--gold-text);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  z-index: 3;
}

/* Text shimmer on hover for headings in cards */
.sa-craft h3 {
  transition: color 0.3s;
}
.sa-craft:hover h3 {
  color: var(--gold-text);
}

/* Horizontal rule with diamonds */
.sa-rule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.25rem 0;
}
.sa-rule::before,
.sa-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-standard), transparent);
}
.sa-rule span {
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}

/* Expand content block — "Why SA-built matters" */
.why-sa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.why-sa-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1.5px solid rgba(232,185,35,0.15);
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.3s;
}
.why-sa-item:hover {
  border-color: rgba(232,185,35,0.35);
  transform: translateX(4px);
}
.why-sa-item .why-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border: 2px solid var(--border-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-text);
  background: var(--gold-dim);
}
.why-sa-item h3 {
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}
.why-sa-item p {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .why-sa { grid-template-columns: 1fr; }
}

/* Glitch-free text scramble hover for tags */
.agent-tag {
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.agent-card:hover .agent-tag {
  border-color: var(--border-gold);
  color: var(--gold-text);
}

/* Score panel more Ndebele */
.score-panel.nd-frame {
  border-width: 2px;
  border-color: rgba(232,185,35,0.3);
  border-radius: 4px;
}
.score-panel.nd-frame .score-panel-head {
  border-bottom: 1px solid rgba(232,185,35,0.15);
  background: linear-gradient(90deg, rgba(232,185,35,0.06), transparent);
}

/* Terminal SA accent */
.terminal-console {
  border: 2px solid rgba(232,185,35,0.15);
  border-radius: 4px;
  overflow: hidden;
}
.terminal-header {
  border-bottom: 1px solid rgba(232,185,35,0.12);
}

@media (prefers-reduced-motion: reduce) {
  .wave-stagger > *,
  .sa-block-beads span,
  .icon-pop {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   BACKDROP ARTWORK — textured, not plain
   ============================================================ */

body {
  background-color: var(--bg-deep);
  background-image:
    /* fine geometric tile */
    url("../assets/sa-pattern-bg.svg"),
    /* soft radial washes for depth */
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(26, 159, 212, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(232, 185, 35, 0.05), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(26, 122, 76, 0.03), transparent 60%),
    linear-gradient(180deg, #06090f 0%, #0a0f18 40%, #06090f 100%);
  background-size:
    120px 120px,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  background-attachment: fixed, fixed, fixed, fixed, scroll;
}

/* Fixed floating art watermarks on page sides */
.page-art {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  mix-blend-mode: screen;
}
.page-art-left {
  left: -20px;
  top: 20%;
  width: 160px;
}
.page-art-right {
  right: -10px;
  bottom: 15%;
  width: 140px;
}
.page-art-center {
  left: 50%;
  top: 60%;
  width: 280px;
  transform: translateX(-50%);
  opacity: 0.04;
}
@media (max-width: 900px) {
  .page-art { display: none; }
}

/* Main content above page art */
main, .header, .footer, .notice-bar, .cookie-banner, .scroll-progress {
  position: relative;
  z-index: 1;
}
.header { z-index: 100; }
.scroll-progress { z-index: 10001; }
.cookie-banner { z-index: 10000; }

/* Section surface variation */
.section {
  position: relative;
}
.section.sa-pattern,
.section.bead-surface {
  background-image:
    url("../assets/sa-pattern-bg.svg"),
    linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-primary) 100%);
  background-size: 100px 100px, 100% 100%;
}

/* Alternate sections with mesh */
.section-mesh {
  background-image:
    url("../assets/sa-geo-mesh.svg"),
    linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  background-size: 200px 200px, 100% 100%;
}

/* Soft vignette on hero so art doesn't fight text */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, transparent 0%, rgba(6,9,15,0.5) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

/* Card surfaces slightly lifted from patterned bg */
.sa-craft,
.agent-card,
.step,
.metric-card,
.score-panel,
.terminal-console,
.price-card,
.faq-item.sa-craft {
  box-shadow:
    0 4px 20px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.02);
}

/* Footer with pattern */
.footer {
  background-image:
    url("../assets/sa-pattern-bg.svg"),
    linear-gradient(180deg, var(--bg-panel), #05080e);
  background-size: 100px 100px, 100% 100%;
  border-top: 1px solid rgba(232,185,35,0.12);
}

/* CTA band richer bg */
.cta-band {
  background-image:
    url("../assets/sa-pattern-bg.svg"),
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(26,159,212,0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  background-size: 100px 100px, 100% 100%, 100% 100%;
  border-top: 1px solid rgba(232,185,35,0.15);
  border-bottom: 1px solid rgba(232,185,35,0.1);
}

/* How-it-works and similar panels */
.how-it-works,
.terminal-section {
  background-image:
    url("../assets/sa-geo-mesh.svg"),
    linear-gradient(180deg, var(--bg-panel), var(--bg-primary));
  background-size: 180px 180px, 100% 100%;
}

/* Trust section texture */
.trust {
  background-image:
    url("../assets/sa-pattern-bg.svg"),
    linear-gradient(180deg, var(--bg-deep), var(--bg-panel));
  background-size: 110px 110px, 100% 100%;
}

/* Ensure text remains readable */
.section .container,
.hero-content,
.heritage-hero-content {
  position: relative;
  z-index: 2;
}


/* BACKDROP FINAL — ensure pattern wins over earlier body bg */
body {
  background-color: #06090f !important;
  background-image:
    url("../assets/sa-pattern-bg.svg"),
    radial-gradient(ellipse 90% 60% at 15% 10%, rgba(26, 159, 212, 0.07), transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 90%, rgba(232, 185, 35, 0.055), transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 60%, rgba(26, 122, 76, 0.035), transparent 55%) !important;
  background-size: 120px 120px, 100% 100%, 100% 100%, 100% 100% !important;
  background-attachment: fixed, fixed, fixed, fixed !important;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat !important;
}

/* Inner page polish */
.page-hero {
  padding: 3rem 0 2.25rem;
  background-image:
    url("../assets/sa-pattern-bg.svg"),
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(26,159,212,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  background-size: 120px 120px, 100% 100%, 100% 100%;
  border-bottom: 1px solid rgba(232,185,35,0.12);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.65rem;
}
.page-hero p {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}

/* Contact form grid responsive */
@media (max-width: 800px) {
  main .container[style*="grid-template-columns:1.1fr"] {
    display: block !important;
  }
  main .container[style*="grid-template-columns:1.1fr"] > div + div {
    margin-top: 2rem;
  }
}

/* Form inputs focus */
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Pricing cards grid ensure */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* ============================================================
   ANIMATION EXPANSION — richer motion system
   ============================================================ */

/* Smooth page sections fade when entering */
.section {
  animation: sectionFade 0.01s; /* placeholder for support */
}

/* Stagger children with CSS sibling-index fallback via nth */
.stagger-fast > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.stagger-fast.visible > *:nth-child(1) { transition-delay: 0.03s; }
.stagger-fast.visible > *:nth-child(2) { transition-delay: 0.07s; }
.stagger-fast.visible > *:nth-child(3) { transition-delay: 0.11s; }
.stagger-fast.visible > *:nth-child(4) { transition-delay: 0.15s; }
.stagger-fast.visible > *:nth-child(5) { transition-delay: 0.19s; }
.stagger-fast.visible > *:nth-child(6) { transition-delay: 0.23s; }
.stagger-fast.visible > *:nth-child(7) { transition-delay: 0.27s; }
.stagger-fast.visible > *:nth-child(8) { transition-delay: 0.31s; }
.stagger-fast.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Horizontal slide reveals */
.slide-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.slide-in-left.visible { opacity: 1; transform: translateX(0); }
.slide-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.slide-in-right.visible { opacity: 1; transform: translateX(0); }

/* Scale bounce entrance */
.bounce-in {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.5s var(--ease), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bounce-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Typewriter cursor on terminal already exists — enhance lines */
.terminal-line {
  opacity: 0;
  animation: termLineIn 0.4s var(--ease) forwards;
}
.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.45s; }
.terminal-line:nth-child(3) { animation-delay: 0.7s; }
.terminal-line:nth-child(4) { animation-delay: 0.95s; }
.terminal-line:nth-child(5) { animation-delay: 1.2s; }
.terminal-line:nth-child(6) { animation-delay: 1.5s; }
.terminal-line:nth-child(7) { animation-delay: 1.75s; }
.terminal-line:nth-child(8) { animation-delay: 2s; }
.terminal-line:nth-child(9) { animation-delay: 2.25s; }
.terminal-line:nth-child(10) { animation-delay: 2.5s; }
@keyframes termLineIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Score ring continuous subtle pulse when visible */
.score-ring .progress {
  filter: drop-shadow(0 0 4px rgba(61,184,232,0.35));
  transition: filter 0.5s;
}
.score-panel:hover .score-ring .progress {
  filter: drop-shadow(0 0 10px rgba(61,184,232,0.55));
}

/* Element row highlight cascade */
.element-row {
  transition: background 0.25s, transform 0.25s;
  border-radius: 4px;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
.element-row:hover {
  background: rgba(56,189,248,0.06);
  transform: translateX(3px);
}

/* Nav link underline grow */
.nav a:not(.nav-cta) {
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0.5rem; right: 0.5rem; bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
  border-radius: 1px;
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta).active::after {
  transform: scaleX(1);
}

/* Industry chips pop */
.industry-chip {
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, color 0.25s;
}
.industry-chip:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--border-gold);
  color: var(--gold-text);
  background: var(--gold-dim);
}

/* Trust badge hover lift */
.trust-badge {
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.trust-badge:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

/* FAQ smooth open feel */
.faq-item {
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item summary {
  transition: color 0.2s;
}
.faq-item summary:hover {
  color: var(--gold-text);
}

/* Level pills pulse active */
.level-pill.active {
  animation: levelGlow 2.5s ease-in-out infinite;
}
@keyframes levelGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,185,35,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(232,185,35,0); }
}

/* Button press feedback */
.btn-primary:active,
.btn-secondary:active,
.btn-magnetic:active {
  transform: scale(0.97) !important;
}

/* Logo hover */
.logo {
  transition: opacity 0.2s;
}
.logo:hover {
  opacity: 0.9;
}
.logo:hover .logo-icon {
  transform: scale(1.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scroll progress thicker shimmer */
.scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--sa-green), var(--accent));
  background-size: 200% 100%;
  animation: progressShimmer 3s linear infinite;
}
@keyframes progressShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Notice bar subtle slide-in */
.notice-bar {
  animation: noticeDrop 0.5s var(--ease) both;
}
@keyframes noticeDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Image ken burns slow on heritage */
.heritage-hero img.heritage-bg {
  animation: kenBurns 25s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

/* Agent network core stronger pulse */
.an-core {
  animation: corePulse 2.8s ease-in-out infinite, coreRotate 20s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes coreRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating CTA shadow pulse */
.cta-band .btn-primary {
  box-shadow: 0 4px 20px rgba(26,159,212,0.25);
  animation: ctaBtnPulse 3s ease-in-out infinite;
}
@keyframes ctaBtnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(26,159,212,0.25); }
  50% { box-shadow: 0 6px 28px rgba(26,159,212,0.4), 0 0 0 4px rgba(26,159,212,0.1); }
}

/* Card border gradient animate on hover */
.sa-craft {
  background-image:
    linear-gradient(var(--bg-surface), var(--bg-surface)),
    linear-gradient(135deg, rgba(232,185,35,0.15), rgba(26,159,212,0.1), rgba(26,122,76,0.08));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Skeleton shimmer for future loading states */
.shimmer {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Details/summary chevron smoother */
.faq-item .chevron {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reduce motion master override */
@media (prefers-reduced-motion: reduce) {
  .terminal-line,
  .notice-bar,
  .heritage-hero img.heritage-bg,
  .an-core,
  .cta-band .btn-primary,
  .level-pill.active,
  .scroll-progress,
  .stagger-fast > *,
  .slide-in-left,
  .slide-in-right,
  .bounce-in {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   SA PARTICLE SYSTEM — beads, diamonds, ochre dust
   ============================================================ */

.particles-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sa-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
}

/* Bead (round) */
.sa-particle.bead {
  border-radius: 50%;
}

/* Diamond (Ndebele) */
.sa-particle.diamond {
  border-radius: 1px;
  transform: rotate(45deg);
}

/* Tiny square (beadwork grid) */
.sa-particle.square {
  border-radius: 1px;
}

/* Colour variants */
.sa-particle.gold { background: #e8b923; box-shadow: 0 0 6px rgba(232,185,35,0.4); }
.sa-particle.cyan { background: #3db8e8; box-shadow: 0 0 6px rgba(61,184,232,0.35); }
.sa-particle.green { background: #1a7a4c; box-shadow: 0 0 5px rgba(26,122,76,0.35); }
.sa-particle.red { background: #c41e3a; box-shadow: 0 0 5px rgba(196,30,58,0.3); }
.sa-particle.ochre { background: #c4783a; box-shadow: 0 0 5px rgba(196,120,58,0.35); }
.sa-particle.white { background: #e8eef6; box-shadow: 0 0 4px rgba(232,238,246,0.25); }

@keyframes particleRise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.4) rotate(0deg);
  }
  10% { opacity: 0.7; }
  50% { opacity: 0.9; }
  100% {
    opacity: 0;
    transform: translateY(-120px) translateX(var(--drift, 20px)) scale(1) rotate(var(--spin, 180deg));
  }
}

@keyframes particleDrift {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  15% { opacity: 0.6; }
  50% { opacity: 0.85; }
  100% {
    opacity: 0;
    transform: translate(var(--drift, 40px), var(--rise, -80px)) scale(1.1) rotate(var(--spin, 90deg));
  }
}

@keyframes particleFloat {
  0%, 100% {
    opacity: 0.15;
    transform: translateY(0) rotate(0deg);
  }
  50% {
    opacity: 0.55;
    transform: translateY(-18px) rotate(45deg);
  }
}

/* Diamond particles keep rotate(45deg) base */
.sa-particle.diamond {
  animation-name: particleDiamond;
}
@keyframes particleDiamond {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.4) rotate(45deg);
  }
  12% { opacity: 0.75; }
  100% {
    opacity: 0;
    transform: translateY(-100px) translateX(var(--drift, 15px)) scale(1) rotate(225deg);
  }
}

/* Section-specific particle density cues */
.hero .particles-host,
.cta-band .particles-host,
.heritage-hero .particles-host {
  z-index: 1;
}
.hero-content,
.cta-band .container,
.heritage-hero-content {
  z-index: 2;
}

/* Ambient fixed particles (sparse page-wide) */
.ambient-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-particles .sa-particle {
  animation: particleFloat 8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sa-particle,
  .ambient-particles .sa-particle {
    animation: none !important;
    display: none !important;
  }
}

@media (max-width: 700px) {
  .particles-host .sa-particle:nth-child(n+12) {
    display: none; /* fewer on mobile */
  }
}


/* Refined particle physics — gravity, drag, soft fade */
@keyframes particleDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.35) rotate(0deg);
  }
  8% {
    opacity: 0.55;
  }
  25% {
    opacity: 0.85;
    transform: translate3d(calc(var(--drift) * 0.35), calc(var(--rise) * 0.25), 0) scale(0.85) rotate(calc(var(--spin) * 0.25));
  }
  55% {
    opacity: 0.7;
    transform: translate3d(calc(var(--drift) * 0.75), calc(var(--rise) * 0.65), 0) scale(1) rotate(calc(var(--spin) * 0.6));
  }
  80% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), var(--rise), 0) scale(0.6) rotate(var(--spin));
  }
}

@keyframes particleDiamond {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.3) rotate(45deg);
  }
  10% { opacity: 0.7; }
  40% {
    opacity: 0.9;
    transform: translate3d(calc(var(--drift) * 0.4), calc(var(--rise) * 0.4), 0) scale(1) rotate(100deg);
  }
  70% {
    opacity: 0.45;
    transform: translate3d(calc(var(--drift) * 0.85), calc(var(--rise) * 0.85), 0) scale(0.9) rotate(160deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), var(--rise), 0) scale(0.5) rotate(225deg);
  }
}

@keyframes particleFloat {
  0% {
    opacity: 0.08;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    opacity: 0.4;
    transform: translate3d(calc(var(--drift) * 0.3), -10px, 0) rotate(12deg);
  }
  50% {
    opacity: 0.55;
    transform: translate3d(calc(var(--drift) * 0.5), -22px, 0) rotate(0deg);
  }
  75% {
    opacity: 0.35;
    transform: translate3d(calc(var(--drift) * 0.25), -12px, 0) rotate(-8deg);
  }
  100% {
    opacity: 0.08;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes particleSpark {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.5);
  }
  15% {
    opacity: 0.95;
    transform: translate3d(calc(var(--drift) * 0.2), -8px, 0) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), var(--rise), 0) scale(0.3);
  }
}



/* ============================================================
   PERFORMANCE — containment, content-visibility, GPU hints
   ============================================================ */
.hero, .cta-band, .heritage-hero, .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
.hero, .cta-band {
  contain: layout style;
}
.particles-host, .ambient-particles {
  contain: strict;
  content-visibility: auto;
}
.sa-particle {
  contain: layout style;
  pointer-events: none;
}
.agent-card, .sa-craft, .price-card, .step {
  contain: layout style;
}
.score-panel, .terminal-console {
  contain: layout style;
}
/* Avoid expensive filters on scroll */
.header {
  will-change: transform;
  transform: translateZ(0);
}
.scroll-progress {
  will-change: width;
}
img {
  content-visibility: auto;
}
/* Reduce paint on patterned backgrounds */
body {
  background-attachment: scroll, scroll, scroll, scroll !important;
}
@media (max-width: 700px) {
  .particles-host, .ambient-particles { display: none !important; }
  .page-art { display: none !important; }
  .geo-float { display: none !important; }
}


/* ============================================================
   A11y, print, polish
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 3px;
}
::selection {
  background: rgba(26, 159, 212, 0.35);
  color: var(--text-primary);
}

@media print {
  .header, .notice-bar, .cookie-banner, .scroll-progress,
  .particles-host, .ambient-particles, .page-art, .nav-toggle,
  .ndebele-band, .geo-float, .btn-magnetic {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #111 !important;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #444;
  }
  .sa-craft, .agent-card, .section {
    break-inside: avoid;
  }
}

/* Implementation timeline cards */
.impl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .impl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .impl-grid { grid-template-columns: 1fr; }
}
.impl-card {
  padding: 1.15rem 1rem;
  background: var(--bg-surface);
  border: 2px solid rgba(232,185,35,0.18);
  border-radius: 4px;
  position: relative;
}
.impl-card .impl-week {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--gold-text);
  margin-bottom: 0.4rem;
}
.impl-card h3 {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.impl-card p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.45;
  margin: 0;
}

/* Stat strip */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
  padding: 1rem;
  border-top: 1px solid rgba(232,185,35,0.12);
  border-bottom: 1px solid rgba(232,185,35,0.12);
}
.stat-strip-item {
  text-align: center;
  min-width: 120px;
  padding: 0.5rem 1rem;
}
.stat-strip-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}
.stat-strip-item span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.45;
  max-width: 720px;
  margin: 1.25rem 0 0.75rem;
  opacity: 0.9;
}
.footer-bottom a {
  margin-left: 1rem;
}


/* ============================================================
   WEB PERFORMANCE
   ============================================================ */
img, svg {
  max-width: 100%;
  height: auto;
}
img[loading="lazy"] {
  content-visibility: auto;
}
/* Limit expensive blur/filter layers */
.header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (max-width: 700px) {
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 15, 24, 0.96);
  }
}
/* GPU for continuous anim only when needed */
.ndebele-track {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .ndebele-track { will-change: auto; }
}
/* Font fallback metrics reduce CLS */
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
code, .font-mono, .terminal-console, .step-num, .impl-week, .live-badge {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ============================================================
   SA HERITAGE GEOMETRIC RAIN (canvas matrix alternative)
   ============================================================ */
#sa-heritage-rain {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.55;
  mix-blend-mode: screen;
  /* subtle mask so edges don't compete with content */
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 40%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 85% at 50% 40%, #000 20%, transparent 100%);
}

/* Ensure content sits above the rain */
.header,
.notice-bar,
.cookie-banner,
main,
.footer,
.scroll-progress {
  position: relative;
  z-index: 1;
}
.header { z-index: 100; }
.scroll-progress { z-index: 10001; }
.cookie-banner { z-index: 10000; }

/* Soft vignette so rain doesn't compete with text */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 85% 70% at 50% 30%, transparent 20%, rgba(6, 9, 15, 0.55) 100%),
    linear-gradient(180deg, rgba(6,9,15,0.25) 0%, transparent 20%, transparent 70%, rgba(6,9,15,0.4) 100%);
}

/* Richer depth on hero */
.hero {
  isolation: isolate;
}
.hero-content {
  text-shadow: 0 2px 24px rgba(6, 9, 15, 0.65);
}

/* Elevated glass panels over the rain */
.score-panel,
.terminal-console,
.agent-card.sa-craft,
.price-card,
.case-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(18, 26, 40, 0.82) !important;
}

/* Kinetic underline for section titles */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--sa-green));
  transform: translateX(-50%);
  transition: width 0.7s var(--ease);
  border-radius: 1px;
}
.section-title.reveal.visible::after,
.reveal.visible .section-title::after {
  width: min(120px, 60%);
}

/* Custom cursor spark (desktop) */
@media (pointer: fine) and (min-width: 900px) {
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='3' fill='%23e8b923' opacity='0.9'/%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='%233db8e8' stroke-width='1' opacity='0.5'/%3E%3C/svg%3E") 10 10, auto;
  }
  a, button, .btn-primary, .btn-secondary, .nav a, summary {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L14 10 L22 12 L14 14 L12 22 L10 14 L2 12 L10 10 Z' fill='%23e8b923' opacity='0.95'/%3E%3C/svg%3E") 12 12, pointer;
  }
}

/* Stronger Ndebele corner accents on key cards */
.sa-craft {
  background-image:
    linear-gradient(rgba(18,26,40,0.88), rgba(18,26,40,0.92)),
    linear-gradient(135deg, rgba(232,185,35,0.12), rgba(26,159,212,0.08), rgba(26,122,76,0.06)) !important;
}

/* Ambient glow pulse on live badges */
.live-badge {
  box-shadow: 0 0 0 0 rgba(45, 184, 106, 0.35);
  animation: livePulse 2.8s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 184, 106, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(45, 184, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 184, 106, 0); }
}

/* Smooth image color reveal stronger */
.photo-colorize img {
  filter: grayscale(0.7) brightness(0.72) contrast(1.08) saturate(0.6);
  transition: filter 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s var(--ease);
}
.photo-colorize.visible img,
.photo-colorize:hover img {
  filter: grayscale(0) brightness(0.92) saturate(1.2) contrast(1.05);
}

/* Hero score panel deeper presence */
.score-panel.nd-frame {
  box-shadow:
    0 20px 50px rgba(0,0,0,0.45),
    0 0 0 1px rgba(232,185,35,0.2),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

@media (prefers-reduced-motion: reduce) {
  #sa-heritage-rain { display: none !important; }
  .live-badge { animation: none; }
  .section-title::after { width: 80px; }
}

@media (max-width: 700px) {
  #sa-heritage-rain { opacity: 0.22; display: none; }
}

/* ============================================================
   KHOI & SAN ROCK ART LAYER — tasteful, animated
   ============================================================ */

.khoisan-frieze-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(196, 120, 58, 0.28);
  background: #1a1510;
}
.khoisan-frieze {
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.ks-frieze-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
  filter: saturate(1.05) contrast(1.05);
  transition: filter 0.8s var(--ease), transform 1.2s var(--ease);
}
.khoisan-frieze-wrap:hover .ks-frieze-img {
  filter: saturate(1.15) contrast(1.08) brightness(1.05);
  transform: scale(1.015);
}

/* Path draw-on when frieze enters view */
.ks-frieze-img.draw-on .ks-draw path,
.san-panel-img.draw-on path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: rockDraw 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rockDraw {
  to { stroke-dashoffset: 0; }
}

/* SVG internal draw via CSS when parent has .in-view */
.khoisan-frieze.in-view .ks-draw path,
.khoisan-frieze.in-view .ks-draw line,
.san-showcase.in-view .ks-draw path {
  animation: none; /* handled via JS stroke-dashoffset for reliability */
}

.san-showcase {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(196, 120, 58, 0.25);
  background: #1a1510;
  position: relative;
}
.san-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(196,120,58,0.08), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.san-panel-img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 0;
}

/* Ochre dust particles near heritage */
.heritage-hero .particles-host,
.khoisan-frieze-wrap .particles-host {
  opacity: 0.7;
}

/* Mouse trail — ochre rock-art marks */
.ochre-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

/* Floating rock-art silhouettes (subtle side art) */
.rock-silhouette {
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
  filter: grayscale(0.2);
  transition: opacity 0.6s;
}
.rock-silhouette.eland {
  width: 160px;
  right: 4%;
  top: 20%;
  animation: elandDrift 18s ease-in-out infinite;
}
.rock-silhouette.hand {
  width: 70px;
  left: 3%;
  bottom: 15%;
  animation: handPulse 9s ease-in-out infinite;
}
@keyframes elandDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12px, 8px) scale(1.03); }
}
@keyframes handPulse {
  0%, 100% { opacity: 0.06; transform: scale(1); }
  50% { opacity: 0.12; transform: scale(1.06); }
}

/* Heritage section stronger ochre edge */
.heritage-hero {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #8b4518, #c4783a, #e8c49a, #c4783a, #8b4518) 1;
}

/* Symbol cards — eland gets ochre glow on hover */
.symbol-card:hover img[alt="Eland"] {
  filter: drop-shadow(0 0 12px rgba(196, 120, 58, 0.45));
}

/* ---- Pop animations inspired by 2026 award patterns ---- */

/* Blur-clear reveal (museum / heritage feel) */
.reveal-blur {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.03);
  transition: opacity 0.85s var(--ease), filter 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* Horizontal slide cascade for frieze captions */
.slide-cascade > * {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.slide-cascade.visible > *:nth-child(1) { transition-delay: 0.05s; }
.slide-cascade.visible > *:nth-child(2) { transition-delay: 0.15s; }
.slide-cascade.visible > *:nth-child(3) { transition-delay: 0.25s; }
.slide-cascade.visible > * {
  opacity: 1;
  transform: translateX(0);
}

/* Soft ochre underline draw for heritage titles */
.heritage-hero-content h2 {
  position: relative;
}
.heritage-hero-content h2::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 0.6rem;
  background: linear-gradient(90deg, #c4783a, #e8c49a, transparent);
  transition: width 1s var(--ease) 0.3s;
}
.heritage-hero.in-view h2::after,
.heritage-hero:hover h2::after {
  width: min(180px, 50%);
}

/* Card entrance with slight rotation (Ndebele kinetic) */
.tilt-in {
  opacity: 0;
  transform: perspective(600px) rotateY(-8deg) translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.tilt-in.visible {
  opacity: 1;
  transform: perspective(600px) rotateY(0) translateY(0);
}

/* Magnetic ochre ring on primary CTAs in heritage zone */
.cta-band .btn-primary {
  box-shadow: 0 4px 24px rgba(196, 120, 58, 0.2), 0 4px 20px rgba(26, 159, 212, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .rock-silhouette,
  .ochre-trail,
  .ks-frieze-img,
  .reveal-blur,
  .tilt-in {
    animation: none !important;
    transition: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (max-width: 700px) {
  .rock-silhouette { display: none; }
  .ochre-trail { display: none !important; }
}
