/* High Value Capital Group — Elite Design System (dark luxury) */
/* Fonts loaded via <link> in page head (preconnect + display=swap) for better LCP */

:root {
  --bg: #050505;
  --bg-elevated: #0b0c0e;
  --surface: #101218;
  --surface-2: #15171c;
  --primary: #d4af37;
  --primary-bright: #e8c65a;
  --primary-dim: rgba(212, 175, 55, 0.14);
  --secondary: #c9a227;
  --secondary-dim: rgba(201, 162, 39, 0.12);
  --accent: #f5f2ea;
  --text: #f5f2ea;
  --muted: #b8b4a8;
  --muted-2: #8a867a;
  --line: rgba(212, 175, 55, 0.14);
  --success: #3d9a6a;
  --warning: #d4af37;
  --danger: #c45c5c;
  --ink: var(--text);
  --paper: var(--bg);
  --glass: rgba(11, 12, 14, 0.82);
  --glass-border: rgba(212, 175, 55, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 88px;
  --max: 1120px;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-num: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 12% -8%, rgba(212, 175, 55, 0.11), transparent 55%),
    radial-gradient(ellipse 55% 35% at 92% 8%, rgba(201, 162, 39, 0.07), transparent 50%),
    radial-gradient(ellipse 45% 28% at 50% 100%, rgba(212, 175, 55, 0.05), transparent 60%),
    linear-gradient(180deg, #050505 0%, #0a0b0d 50%, #050505 100%);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-bright); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #f0d78c; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
ul, ol { padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; color: var(--muted); }
strong { color: var(--accent); font-weight: 600; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--primary);
  color: #0a0906;
  padding: 0.6rem 1rem;
  z-index: 10000;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(212, 175, 55, 0.22);
  background: rgba(5, 5, 5, 0.92);
}
.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.brand-logo {
  height: 68px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
  background: transparent;
}
.brand-lockup .brand-text {
  display: none;
}
.brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--accent);
  white-space: nowrap;
}
.tag {
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.nav-cluster { display: flex; align-items: center; gap: 0.75rem; }
nav.primary, nav.utility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.86rem;
  font-family: var(--font-body);
}
nav.primary a, nav.utility a, nav.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
nav.primary a:hover, nav.utility a:hover, nav.footer a:hover,
nav.primary a[aria-current="page"], nav.utility a[aria-current="page"] {
  color: var(--primary-bright);
}
nav.utility { gap: 0.5rem; align-items: center; }
a.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem !important;
  border-radius: 999px;
  border: 1px solid rgba(232, 198, 90, 0.4);
  background: linear-gradient(180deg, #e8c65a 0%, #d4af37 55%, #c9a227 100%);
  color: #1a1408 !important;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(155, 107, 24, 0.22);
}
a.nav-cta:hover {
  color: #1a1408 !important;
  background: linear-gradient(180deg, #f0d78c 0%, #e8c65a 50%, #d4af37 100%);
}
.nav-drop { position: relative; }
.nav-drop > summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-body);
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: " ▾"; font-size: 0.7em; opacity: 0.7; }
.nav-drop[open] > summary { color: var(--primary-bright); }
.nav-drop__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 14rem;
  padding: 0.55rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 40;
}
.nav-drop__menu a { display: block; padding: 0.4rem 1rem; }
.ext-link::after { content: " ↗"; font-size: 0.72em; opacity: 0.65; }
.product-card { display: block; border-color: rgba(232, 198, 90, 0.35); }
.product-card__logo {
  width: min(100%, 280px);
  height: auto;
  margin: 0 0 1rem;
  border-radius: 8px;
}
.private-client .lead { max-width: 52ch; }
.private-client { opacity: 0.96; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--accent);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-cluster {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: rgba(5, 5, 5, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  body.nav-open .nav-cluster {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  nav.primary, nav.utility { flex-direction: column; gap: 0.75rem; }
  .nav-drop__menu {
    position: static;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.35rem 0 0 0.75rem;
  }
}

/* —— Layout —— */
.page-wrap, main {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}
main { padding: 2rem 0 5rem; }
.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }
.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
}
.section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}
.muted { color: var(--muted); }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* —— Buttons / CTAs —— */
.cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0;
  padding: 0.9rem 1.4rem;
  background: var(--primary);
  color: #0a0906 !important;
  text-decoration: none !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
}
.cta:hover, .btn:hover {
  background: var(--primary-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(212, 175, 55, 0.22);
  color: #0a0906 !important;
}
.cta.secondary, .btn.secondary {
  background: transparent;
  color: var(--accent) !important;
  border-color: rgba(212, 175, 55, 0.35);
  margin-left: 0.5rem;
}
.cta.secondary:hover, .btn.secondary:hover {
  border-color: var(--primary);
  background: var(--primary-dim);
  color: var(--accent) !important;
  box-shadow: none;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}
.cta-row .cta.secondary { margin-left: 0; }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.hero__atmosphere {
  position: absolute;
  inset: -10% -5% 20%;
  z-index: 0;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 44rem; }
.hero .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, #f5f2ea 0%, #e8d9a8 45%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--accent);
  max-width: 36rem;
  margin-bottom: 1rem;
}
.hero .lead { margin-bottom: 0; }

/* —— Surfaces —— */
.glass, .panel {
  background: linear-gradient(160deg, rgba(21, 23, 28, 0.92), rgba(11, 12, 14, 0.78));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(12px);
}
.feature-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-link:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}
.feature-link h3 { color: var(--accent); margin-bottom: 0.4rem; }
.feature-link p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.stat {
  font-family: var(--font-num);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* —— Process diagram —— */
.diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: step;
}
.diagram__step {
  position: relative;
  padding: 1.25rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.diagram__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-num);
  font-size: 0.8rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}
.diagram__step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.diagram__step p { margin: 0; font-size: 0.88rem; }
@media (max-width: 800px) {
  .diagram { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .diagram { grid-template-columns: 1fr; }
}

/* —— ROI Calculator —— */
.calc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
.calc label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.calc input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  margin-bottom: 1rem;
}
.calc-value {
  font-family: var(--font-num);
  color: var(--accent);
  font-size: 0.9rem;
  float: right;
}
.calc-result {
  padding: 1.5rem;
  background: linear-gradient(145deg, var(--primary-dim), rgba(21, 23, 28, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
}
.calc-result .stat { font-size: 2.6rem; color: var(--primary-bright); }
.calc-note { font-size: 0.8rem; color: var(--muted-2); margin-top: 1rem; }
@media (max-width: 800px) {
  .calc { grid-template-columns: 1fr; }
}

/* —— Forms —— */
.form-stack { display: grid; gap: 1rem; max-width: 32rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.85rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  font: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.field-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-status {
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: none;
}
.form-status.is-ok {
  display: block;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  color: #6ee7b7;
}
.form-status.is-err {
  display: block;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

/* —— FAQ —— */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--primary);
  font-family: var(--font-num);
  font-size: 1.2rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0.25rem; color: var(--muted); max-width: 42rem; }

/* —— Tables —— */
table.pricing {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
table.pricing th, table.pricing td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
table.pricing th {
  font-weight: 600;
  color: var(--muted-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
table.pricing td { color: var(--muted); }
table.pricing td:first-child { color: var(--accent); font-weight: 500; }

/* —— Notes / legal —— */
.note {
  margin-top: 2.5rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--muted-2);
  background: rgba(13, 17, 23, 0.5);
}
.disclaimer-link { font-size: 0.9rem; margin-top: 1rem; color: var(--muted); }
.stage-pill {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* —— Footer —— */
footer.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 0 0 3rem;
  font-size: 0.8rem;
  color: var(--muted-2);
}
footer.site-footer nav.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-bottom: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

/* —— Sticky floating CTA —— */
.sticky-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: none;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--primary);
  color: #0a0906 !important;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.sticky-cta.is-visible { display: inline-flex; }
.sticky-cta:hover { filter: brightness(1.06); color: #0a0906 !important; }

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}
.float-orb--a {
  width: 340px; height: 340px;
  background: rgba(212, 175, 55, 0.35);
  top: 10%; left: 5%;
}
.float-orb--b {
  width: 280px; height: 280px;
  background: rgba(201, 162, 39, 0.28);
  top: 30%; right: 8%;
  animation-delay: -4s;
}
.float-orb--c {
  width: 200px; height: 200px;
  background: rgba(212, 175, 55, 0.2);
  bottom: 10%; left: 40%;
  animation-delay: -7s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, -24px, 0) scale(1.08); }
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-orb { animation: none; }
  .cta, .btn, .feature-link { transition: none; }
}

/* —— Illustration frame —— */
.illo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--surface);
  overflow: hidden;
}
.illo svg { width: 100%; height: auto; }

/* —— Hero canvas —— */
.hero__atmosphere { isolation: isolate; }
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

/* —— Atlas demo —— */
.atlas-demo {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  min-height: 320px;
}
.atlas-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.atlas-tab {
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.atlas-tab:hover { color: var(--accent); border-color: rgba(212, 175, 55, 0.4); }
.atlas-tab.is-active {
  color: var(--accent);
  background: var(--primary-dim);
  border-color: rgba(212, 175, 55, 0.45);
}
.atlas-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.atlas-panel h3 { margin-top: 0; }
.atlas-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.bar-track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
  animation: fillBar 1.2s var(--ease) forwards;
}
@keyframes fillBar {
  from { width: 0; }
  to { width: var(--bar, 70%); }
}
@media (max-width: 800px) {
  .atlas-demo { grid-template-columns: 1fr; }
  .atlas-tabs { flex-direction: row; flex-wrap: wrap; }
  .atlas-kpi-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bar-fill { animation: none; width: var(--bar, 70%); }
  .hero-canvas { display: none; }
}

/* —— Loading shimmer (optional page hint) —— */
.page-loading .site-header { opacity: 0.85; }

/* —— Services list legacy —— */
ul.services { list-style: none; padding: 0; }
ul.services li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
ul.services a { font-weight: 500; text-decoration: none; }
ol.steps { color: var(--muted); }

.prose { max-width: 42rem; }
.prose p { color: var(--muted); }
.list-clean { list-style: none; padding: 0; }
.list-clean li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}


/* —— Brand footer —— */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 28rem;
  margin-bottom: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.footer-brand .brand-logo {
  height: 56px;
  max-width: 160px;
  background: transparent !important;
}
.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-brand + nav.footer {
  border-top: 0;
  padding-top: 0;
}
footer.site-footer nav.footer {
  border-top: 0;
  padding-top: 0.5rem;
}
@media (max-width: 640px) {
  .brand-logo { height: 56px; max-width: 160px; }
  .footer-brand .brand-logo { height: 52px; }
  :root { --header-h: 80px; }
}

/* —— Legal pages —— */
.legal-page {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-top: 1rem;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow: auto;
}
.legal-toc summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
}
.legal-toc nav { display: grid; gap: 0.45rem; margin-top: 0.75rem; }
.legal-toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.35;
}
.legal-toc a:hover { color: var(--primary-bright); }
.legal-doc { max-width: 46rem; }
.legal-doc .meta-dates {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.legal-doc h2 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
}
.legal-doc h3 {
  margin-top: 1.25rem;
  color: var(--primary-bright);
  font-size: 1.05rem;
  font-family: var(--font-body);
}
.legal-doc p, .legal-doc li { color: var(--muted); }
.legal-doc ul { margin: 0 0 1rem; }
.cfg-placeholder {
  display: inline;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: var(--primary-bright);
  background: var(--primary-dim);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
}
.footer-legal {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 48rem;
}
.footer-legal p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}
.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}
.footer-legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.footer-legal-nav a:hover { color: var(--primary-bright); }
.footer-copy {
  margin: 1rem 0 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}
.form-legal-note {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0.25rem 0 0.85rem;
}
.form-legal-note a { font-weight: 600; }
.capital-disclosure,
.eva-result-disclosure {
  margin: 1rem 0;
  padding: 0.95rem 1.05rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(13, 17, 23, 0.55);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 40;
  display: none;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.9);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.back-to-top.is-on { display: inline-flex; }
@media (max-width: 900px) {
  .legal-page { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
}
@media print {
  .site-header, .sticky-cta, .back-to-top, .legal-toc, .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  .legal-doc p, .legal-doc li, .legal-doc h1, .legal-doc h2, .legal-doc h3 { color: #111; }
}
