/* ================================================
   SOVEREIGN STACK - sovereignstackgroup.com
   Design: odin-manual depth + Linear confidence
   Palette: Gold/amber brand + navy-dark
   ================================================ */

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

:root {
  /* -- Brand Palette -- */
  --bg: #0a0e1a;
  --bg-deep: #070b14;
  --surface: rgba(17, 24, 39, 0.65);
  --surface-solid: #111827;
  --surface-2: rgba(22, 29, 47, 0.5);
  --border: #1e2a4a;
  --border-glow: rgba(255, 184, 18, 0.12);
  --border-subtle: rgba(30, 42, 74, 0.6);

  /* -- Gold System -- */
  --gold: #ffb812;
  --gold-lt: #ffd666;
  --gold-dim: rgba(255, 184, 18, 0.12);
  --gold-glow: rgba(255, 184, 18, 0.08);
  --gold-border: rgba(255, 184, 18, 0.18);
  --gold-gradient: linear-gradient(135deg, #ffb812, #ffd666);
  --gold-gradient-h: linear-gradient(90deg, transparent, rgba(255, 184, 18, 0.4), transparent);

  /* -- Text -- */
  --text: #f0f2f5;
  --text-2: #8892a8;
  --text-muted: #5a6378;

  /* -- Type -- */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;

  /* -- Spacing -- */
  --max-w: 1100px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius: 12px;
  --tr: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--tr);
}
a:hover { color: var(--gold-lt); }

/* ── Typography ─────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

p { max-width: 65ch; }

.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

/* ── Layout ──────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
  position: relative;
}

/* Alternating section depth */
section:nth-child(even) {
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.5) 0%, var(--bg) 100%);
}

/* Section divider - gold gradient line */
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 800px);
  height: 1px;
  background: var(--gold-gradient-h);
}

/* ── Hexagonal Background Pattern ────────────────── */

.hex-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffb812' fill-opacity='0.03'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Navigation ──────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.nav-brand img { width: 26px; height: 26px; }

.nav-brand span {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a:not(.btn) {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.04em;
  transition: color var(--tr);
}

.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--tr);
}

.nav-toggle:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--bg);
  background: var(--gold);
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--tr);
  cursor: pointer;
}

.btn:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(255, 184, 18, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 0.8rem;
}

/* ── Glass Card Base ─────────────────────────────── */

.glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}

.glass:hover {
  border-color: var(--gold-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-glow);
}

/* Gold accent line on top of glass cards */
.glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 18, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--tr);
}

.glass:hover::after { opacity: 1; }

/* Gradient border variant */
.glass-glow {
  border-color: transparent;
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(135deg, rgba(255, 184, 18, 0.2), rgba(30, 42, 74, 0.4), rgba(255, 184, 18, 0.1)) border-box;
}

.glass-glow:hover {
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(135deg, rgba(255, 184, 18, 0.4), rgba(30, 42, 74, 0.4), rgba(255, 184, 18, 0.3)) border-box;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  padding: var(--space-xl) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Canvas + ambient orbs handle hero background visuals */

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: var(--space-md);
  max-width: 18ch;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: var(--space-md);
  max-width: 50ch;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--gold);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

/* ── Comparison ──────────────────────────────────── */

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.comparison-col {
  padding: var(--space-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.comparison-col h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.comparison-col.negative { border-color: rgba(30, 42, 74, 0.4); }
.comparison-col.negative h3 { color: var(--text-muted); }

.comparison-col.positive {
  border-color: var(--gold-border);
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(135deg, rgba(255, 184, 18, 0.15), rgba(30, 42, 74, 0.3)) border-box;
  border-color: transparent;
}
.comparison-col.positive h3 { color: var(--gold); }

.comparison-col ul {
  list-style: none;
  padding: 0;
}

.comparison-col ul li {
  padding: 0.5rem 0;
  color: var(--text-2);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(30, 42, 74, 0.3);
}

.comparison-col ul li:last-child { border-bottom: none; }

.comparison-col.negative ul li::before {
  content: '\2013\00a0';
  color: var(--text-muted);
  font-family: var(--mono);
}

.comparison-col.positive ul li::before {
  content: '+\00a0';
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 600;
}

/* ── Pillar Cards ────────────────────────────────── */

.pillars {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.pillar {
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 4px);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}

.pillar:hover {
  border-left-color: var(--gold-lt);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), -4px 0 16px rgba(255, 184, 18, 0.06);
  transform: translateX(2px);
}

.pillar h3 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.pillar p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ── Steps ───────────────────────────────────────── */

.steps {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm) calc(var(--space-sm) + 0.5rem);
  align-items: start;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-top: 0.15rem;
  border: 1px solid rgba(255, 184, 18, 0.08);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ── Stats / Proof Grid ──────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.stat {
  padding: var(--space-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color var(--tr), transform var(--tr);
}

/* Gold shimmer line on top */
.stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--tr);
}

.stat:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.stat:hover::after { opacity: 1; }

.stat-value {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.3rem;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.4;
}

.stat-note {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* ── Exclusivity ─────────────────────────────────── */

.exclusivity {
  padding: var(--space-lg) 0;
}

.exclusivity h2 { color: var(--text); }

.exclusivity p {
  color: var(--text-2);
  margin-top: var(--space-sm);
  font-size: 1.05rem;
}

/* ── CTA Section ─────────────────────────────────── */

.cta-section {
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
}

/* Subtle gold radial behind CTA */
.cta-section::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255, 184, 18, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 { margin-bottom: var(--space-sm); }

.cta-section p {
  color: var(--text-2);
  margin: 0 auto var(--space-md);
}

/* ── Case Study Cards ────────────────────────────── */

.case-study {
  padding: var(--space-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: border-color var(--tr);
}

.case-study::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 18, 0.25), transparent);
}

.case-study:hover { border-color: var(--gold-border); }

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-study-header h3 { font-size: 1.1rem; }

.case-study-timeline {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  background: var(--gold-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.case-study-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.case-study-body h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.case-study-body ul {
  list-style: none;
  padding: 0;
}

.case-study-body ul li {
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 0.35rem 0;
}

/* ── Team ────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.team-member {
  padding: var(--space-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color var(--tr);
}

.team-member::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 18, 0.2), transparent);
}

.team-member:hover { border-color: var(--gold-border); }

.team-member h3 { margin-bottom: 0.25rem; }

.team-member .role {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.team-member p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ── Resources ───────────────────────────────────── */

.resource-list {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.resource-link {
  display: block;
  padding: var(--space-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}

.resource-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 18, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--tr);
}

.resource-link:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.resource-link:hover::after { opacity: 1; }

.resource-link h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  transition: color var(--tr);
}

.resource-link:hover h3 { color: var(--gold-lt); }

.resource-link p {
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ── Article ─────────────────────────────────────── */

.article {
  padding: var(--space-xl) 0;
}

.article h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: var(--space-md);
  max-width: 24ch;
}

.article-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-lg);
}

.article-body h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.article-body h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.article-body p {
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.article-body ul, .article-body ol {
  margin-bottom: var(--space-sm);
  padding-left: 1.5rem;
  color: var(--text-2);
}

.article-body li { margin-bottom: 0.4rem; }

.article-body strong { color: var(--text); }

.article-cta {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-cta p { margin-bottom: var(--space-sm); }

/* ── Footer ──────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(60%, 600px);
  height: 1px;
  background: var(--gold-gradient-h);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--tr);
}

.footer-links a:hover { color: var(--text-2); }

/* ── 404 ─────────────────────────────────────────── */

.four-oh-four {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.four-oh-four h1 {
  font-family: var(--mono);
  font-size: 5rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.four-oh-four p {
  color: var(--text-2);
  margin: 0 auto var(--space-md);
}

/* ── Legal Pages ─────────────────────────────────── */

.legal { padding: var(--space-xl) 0; }
.legal h1 { margin-bottom: var(--space-lg); }

.legal h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
}

.legal p {
  margin-bottom: var(--space-sm);
  color: var(--text-2);
}

.legal ul {
  margin-bottom: var(--space-sm);
  padding-left: 1.5rem;
  color: var(--text-2);
}

.legal li { margin-bottom: 0.3rem; }
.legal a { color: var(--gold); }

/* ── Ambient Gradient Mesh ────────────────────────── */

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

.hero-ambient .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.hero-ambient .orb-1 {
  width: 600px;
  height: 600px;
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(255, 184, 18, 0.1) 0%, transparent 70%);
  animation: orbit1 25s ease-in-out infinite;
}

.hero-ambient .orb-2 {
  width: 500px;
  height: 500px;
  top: 30%;
  right: -10%;
  background: radial-gradient(circle, rgba(255, 212, 102, 0.07) 0%, transparent 70%);
  animation: orbit2 30s ease-in-out infinite;
}

.hero-ambient .orb-3 {
  width: 400px;
  height: 400px;
  bottom: -15%;
  left: 30%;
  background: radial-gradient(circle, rgba(255, 160, 20, 0.06) 0%, transparent 70%);
  animation: orbit3 22s ease-in-out infinite;
}

.hero-ambient .orb-4 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 55%;
  background: radial-gradient(circle, rgba(24, 139, 246, 0.04) 0%, transparent 70%);
  animation: orbit4 28s ease-in-out infinite;
}

@keyframes orbit1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, 40px) scale(1.1); }
  50% { transform: translate(30px, 80px) scale(0.95); }
  75% { transform: translate(-40px, 20px) scale(1.05); }
}

@keyframes orbit2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-60px, 50px) scale(1.05); }
  50% { transform: translate(-30px, -40px) scale(1.1); }
  75% { transform: translate(40px, 30px) scale(0.9); }
}

@keyframes orbit3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(60px, -30px); }
  66% { transform: translate(-40px, -60px); }
}

@keyframes orbit4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.15); }
}

/* Film grain noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Subtle body gradient shift */
body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 184, 18, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(24, 139, 246, 0.02) 0%, transparent 50%),
    var(--bg);
}

/* ── Particle Canvas ──────────────────────────────── */

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero .container { position: relative; z-index: 2; }

/* ── Nav Scroll State ────────────────────────────── */

.nav {
  transition: background var(--tr), box-shadow var(--tr), backdrop-filter var(--tr);
}

.nav-scrolled {
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 184, 18, 0.06);
  border-bottom-color: rgba(255, 184, 18, 0.08);
}

/* ── CTA Shimmer ─────────────────────────────────── */

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: shimmer 3.5s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes shimmer {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

/* ── Pillar Expansion ────────────────────────────── */

.pillar {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s, border-left-color 0.3s;
}

.pillar:hover {
  border-left-color: var(--gold-lt);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    -4px 0 20px rgba(255, 184, 18, 0.08),
    -2px 0 40px rgba(255, 184, 18, 0.04);
  transform: translateX(4px);
}

.pillar-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              margin-top 0.4s ease;
}

.pillar:hover .pillar-detail {
  max-height: 80px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* Pillar border glow pulse on hover */
@keyframes border-pulse {
  0%, 100% { border-left-color: var(--gold); }
  50% { border-left-color: var(--gold-lt); }
}

.pillar:hover {
  animation: border-pulse 2s ease-in-out infinite;
}

/* ── Comparison Contrast ─────────────────────────── */

.comparison-col.negative {
  background: rgba(12, 16, 28, 0.85);
  border-color: rgba(30, 38, 60, 0.4);
  position: relative;
}

/* Subtle vignette on negative column */
.comparison-col.negative::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
  border-radius: var(--radius);
}

.comparison-col.negative ul li {
  color: var(--text-2);
  border-bottom-color: rgba(30, 42, 74, 0.3);
}

.comparison-col.positive {
  position: relative;
  box-shadow: 0 0 40px rgba(255, 184, 18, 0.04), 0 0 80px rgba(255, 184, 18, 0.02);
}

/* Inner glow on positive column */
.comparison-col.positive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255, 184, 18, 0.04) 0%, transparent 60%);
  pointer-events: none;
  border-radius: var(--radius);
}

.comparison-col.positive ul li {
  color: var(--text-2);
  border-bottom-color: rgba(255, 184, 18, 0.06);
}

/* ── Team Card Tilt ──────────────────────────────── */

.tilt-card {
  transition: transform 0.15s ease-out, border-color var(--tr), box-shadow var(--tr);
  transform-style: preserve-3d;
  will-change: transform;
}

.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tilt-card:hover .team-photo img {
  transform: scale(1.04);
}

/* Gold gradient overlay that lifts on hover */
.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(255, 184, 18, 0.15) 70%,
    rgba(255, 184, 18, 0.3) 100%
  );
  transition: opacity 0.5s ease;
}

.tilt-card:hover .team-photo::after {
  opacity: 0;
}

/* ── Stat Counter States ─────────────────────────── */

.stat-value {
  min-height: 2rem;
  transition: color 0.3s ease;
}

.stat-value.counter-done {
  text-shadow: 0 0 20px rgba(255, 184, 18, 0.3);
}

/* Percent fill bar */
.stat-fill-track {
  width: 100%;
  height: 3px;
  background: rgba(30, 42, 74, 0.5);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: 0;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: width 0.05s linear;
}

/* ── Book / Contact Layouts ──────────────────────── */

.book-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-md);
  align-items: start;
}

.book-calendar iframe,
.contact-form iframe {
  border-radius: var(--radius);
  background: var(--surface-solid);
  min-height: 600px;
}

.book-sidebar,
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.book-info,
.contact-info {
  padding: var(--space-md);
}

.book-info h3,
.contact-info h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.book-info ul,
.contact-info ul {
  list-style: none;
  padding: 0;
}

.book-info ul li {
  padding: 0.35rem 0;
  color: var(--text-2);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(30, 42, 74, 0.3);
  padding-left: 1rem;
  position: relative;
}

.book-info ul li:last-child { border-bottom: none; }

.book-info ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.book-info p,
.contact-info p {
  color: var(--text-2);
  font-size: 0.9rem;
}

.contact-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(30, 42, 74, 0.3);
}

.contact-item:last-child { border-bottom: none; }

.contact-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-item a {
  font-size: 0.95rem;
  color: var(--text);
  transition: color var(--tr);
}

.contact-item a:hover { color: var(--gold); }

/* ── Parallax Layer ──────────────────────────────── */

[data-parallax] {
  will-change: transform;
}

/* ── Scroll Animations ───────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-stagger.in-view > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.fade-in-stagger.in-view > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.fade-in-stagger.in-view > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.fade-in-stagger.in-view > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.fade-in-stagger.in-view > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.fade-in-stagger.in-view > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-ambient .orb,
  .btn::before {
    animation: none;
  }
  body::after { display: none; }
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --space-md: 1.25rem;
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .comparison { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .case-study-body { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .book-layout,
  .contact-layout { grid-template-columns: 1fr; }

  .step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .step-num {
    justify-self: start;
  }

  .hero {
    min-height: 65vh;
    padding: var(--space-lg) 0;
  }

  .hero-ambient { opacity: 0.4; }
  .hero-canvas { opacity: 0.35; }

  .hero h1 {
    text-shadow: 0 2px 20px rgba(10, 14, 26, 0.8);
  }

  .hero p {
    text-shadow: 0 1px 10px rgba(10, 14, 26, 0.6);
  }
}

@media (min-width: 1025px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Print ───────────────────────────────────────── */

@media print {
  .nav, .cta-section, .btn { display: none; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4 { color: #000; }
  .fade-in { opacity: 1; transform: none; }
}
