
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;
}

/* LIGHT MODE */
:root, [data-theme="light"] {
  --color-bg:               #f8f8f6;
  --color-surface:          #ffffff;
  --color-surface-2:        #f4f3f0;
  --color-surface-offset:   #eeece8;
  --color-divider:          #e2e0db;
  --color-border:           #d5d2cc;

  --color-text:             #1a1a1f;
  --color-text-muted:       #6b6b74;
  --color-text-faint:       #b0adb8;
  --color-text-inverse:     #f8f8f6;

  /* Navy primary */
  --color-primary:          #1a2744;
  --color-primary-hover:    #0f1a30;
  --color-primary-active:   #0a1020;
  --color-primary-light:    #e8ecf4;

  /* Gold accent */
  --color-gold:             #b8963a;
  --color-gold-hover:       #9a7a28;
  --color-gold-light:       #f5edda;
  --color-gold-text:        #7a5e1a;

  /* Semantic */
  --color-success:          #2e7d32;
  --color-success-bg:       #e8f5e9;
  --color-error:            #c62828;
  --color-error-bg:         #fdecea;
  --color-warning:          #e65100;
  --color-warning-bg:       #fff3e0;

  --shadow-sm: 0 1px 3px rgba(26,39,68,0.08);
  --shadow-md: 0 4px 16px rgba(26,39,68,0.10);
  --shadow-lg: 0 12px 40px rgba(26,39,68,0.14);
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg:               #0d1117;
  --color-surface:          #161b22;
  --color-surface-2:        #1c2230;
  --color-surface-offset:   #1e2535;
  --color-divider:          #21293a;
  --color-border:           #2d3748;

  --color-text:             #e6e8ed;
  --color-text-muted:       #8892a4;
  --color-text-faint:       #4a5568;
  --color-text-inverse:     #0d1117;

  --color-primary:          #4a7fc1;
  --color-primary-hover:    #5a90d1;
  --color-primary-active:   #6aa0e0;
  --color-primary-light:    #1a2744;

  --color-gold:             #d4a847;
  --color-gold-hover:       #e0ba5c;
  --color-gold-light:       #2a2010;
  --color-gold-text:        #d4a847;

  --color-success:          #4caf50;
  --color-success-bg:       #0d2010;
  --color-error:            #ef5350;
  --color-error-bg:         #200d0d;
  --color-warning:          #ff9800;
  --color-warning-bg:       #1e1500;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

/* System dark mode fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #0d1117;
    --color-surface:          #161b22;
    --color-surface-2:        #1c2230;
    --color-surface-offset:   #1e2535;
    --color-divider:          #21293a;
    --color-border:           #2d3748;
    --color-text:             #e6e8ed;
    --color-text-muted:       #8892a4;
    --color-text-faint:       #4a5568;
    --color-text-inverse:     #0d1117;
    --color-primary:          #4a7fc1;
    --color-primary-hover:    #5a90d1;
    --color-primary-active:   #6aa0e0;
    --color-primary-light:    #1a2744;
    --color-gold:             #d4a847;
    --color-gold-hover:       #e0ba5c;
    --color-gold-light:       #2a2010;
    --color-gold-text:        #d4a847;
    --color-success:          #4caf50;
    --color-success-bg:       #0d2010;
    --color-error:            #ef5350;
    --color-error-bg:         #200d0d;
    --color-warning:          #ff9800;
    --color-warning-bg:       #1e1500;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  }
}

/* ─── BASE RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
table { border-collapse: collapse; width: 100%; }
button { cursor: pointer; background: none; border: none; }

::selection {
  background: rgba(184,150,58,0.2);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a, button, [role="button"] {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              opacity var(--transition-interactive);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ─── LAYOUT UTILITIES ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
}
.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212,168,71,0.15);
  transition: box-shadow 0.3s ease;
}
.nav--scrolled { box-shadow: var(--shadow-lg); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.nav__logo-sub {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 1;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
}
.nav__links a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav__links a:hover,
.nav__links a.active {
  color: #ffffff;
  border-bottom-color: var(--color-gold);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}
.theme-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: rgba(26,39,68,0.98);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-4) 0;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.nav__mobile a:hover,
.nav__mobile a.active {
  color: #fff;
  border-left-color: var(--color-gold);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-interactive);
}
.btn--primary {
  background: var(--color-gold);
  color: #1a1200;
  border: 1.5px solid transparent;
}
.btn--primary:hover {
  background: var(--color-gold-hover);
  box-shadow: 0 4px 20px rgba(184,150,58,0.35);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.btn--outline-dark:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-text);
}
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ─── BADGES / TAGS ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--navy { background: var(--color-primary-light); color: var(--color-primary); }
.badge--gold { background: var(--color-gold-light); color: var(--color-gold-text); }
.badge--green { background: var(--color-success-bg); color: var(--color-success); }
.badge--red { background: var(--color-error-bg); color: var(--color-error); }
.badge--gray { background: var(--color-surface-2); color: var(--color-text-muted); }

[data-theme="dark"] .badge--navy { background: rgba(74,127,193,0.15); color: #7aabdf; }
[data-theme="dark"] .badge--gold { background: rgba(212,168,71,0.15); color: #d4a847; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ─── KPI CARDS ──────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}
.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-gold);
  border-radius: 3px 0 0 3px;
}
.kpi-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.kpi-card__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
}
.kpi-card__delta {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-1);
}
.kpi-card__delta--positive { color: var(--color-success); }
.kpi-card__delta--negative { color: var(--color-error); }
.kpi-card__delta--neutral { color: var(--color-text-muted); }
.kpi-card__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

/* ─── TABLES ─────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--color-surface);
}
.data-table thead th {
  background: var(--color-surface-2);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.data-table thead th:hover { color: var(--color-text); }
.data-table thead th.sorted { color: var(--color-gold-text); }
[data-theme="dark"] .data-table thead th.sorted { color: var(--color-gold); }
.data-table thead th .sort-icon {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.3;
  font-size: 10px;
  vertical-align: middle;
}
.data-table thead th.sorted .sort-icon { opacity: 1; }

.data-table tbody tr {
  border-bottom: 1px solid var(--color-divider);
  transition: background var(--transition-interactive);
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--color-surface-2); }
.data-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  white-space: nowrap;
  vertical-align: middle;
}
.data-table td.right { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.data-table td.mono { font-family: var(--font-mono); font-size: 0.8em; }
.data-table .positive { color: var(--color-success); font-weight: 600; }
.data-table .negative { color: var(--color-error); font-weight: 600; }
.data-table .ticker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--color-surface-2);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
}
[data-theme="dark"] .data-table .ticker { color: #7aabdf; }

/* ─── GOOGLE SHEETS EMBED PLACEHOLDER ───────────────────── */
.gsheet-placeholder {
  background: var(--color-surface-2);
  border: 2px dashed var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  color: var(--color-text-muted);
}
.gsheet-placeholder__icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  opacity: 0.5;
}
.gsheet-placeholder__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.gsheet-placeholder__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin: 0 auto var(--space-4);
}
.gsheet-placeholder code {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-gold-text);
  text-align: left;
  margin-top: var(--space-3);
  overflow-x: auto;
  white-space: pre;
}
[data-theme="dark"] .gsheet-placeholder code { color: var(--color-gold); }

/* ─── CHART CONTAINERS ───────────────────────────────────── */
.chart-wrapper {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.chart-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.chart-canvas-wrap {
  position: relative;
  height: 240px;
}

/* ─── SECTION STRUCTURE ──────────────────────────────────── */
.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.section--alt { background: var(--color-surface-2); }
.section--hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f1c38 60%, #0a1020 100%);
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: var(--space-10);
}
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin-bottom: var(--space-3);
}
[data-theme="dark"] .section-label { color: var(--color-gold); }
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  padding: clamp(var(--space-16), 12vw, var(--space-32)) 0 clamp(var(--space-12), 8vw, var(--space-20));
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 50%, rgba(184,150,58,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--color-gold);
  flex-shrink: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}
.hero__tagline {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-8);
  max-width: 55ch;
}
.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}
.hero__divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  margin-bottom: var(--space-8);
}
.hero__desc {
  max-width: 65ch;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-base);
  line-height: 1.75;
}
.hero__paper-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-6);
}
.hero__paper-badge::before {
  content: '⚠';
  font-size: 10px;
}

/* Hero grid layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ─── FUND OVERVIEW GRID ─────────────────────────────────── */
.overview-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
}
.overview-card__header {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(184,150,58,0.2);
}
.overview-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.overview-stat:last-child { border-bottom: none; }
.overview-stat__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.overview-stat__value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.overview-stat__value.positive { color: #81c784; }
.overview-stat__value.negative { color: #e57373; }

/* ─── STRATEGY PILLARS ───────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.pillar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar-card__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-3);
  opacity: 0.6;
}
.pillar-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.pillar-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ─── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f1c38 100%);
  padding: clamp(var(--space-10), 6vw, var(--space-20)) 0;
  border-bottom: 1px solid rgba(184,150,58,0.2);
}
.page-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: #ffffff;
  margin-bottom: var(--space-3);
}
.page-hero__desc {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-base);
  max-width: 60ch;
}

/* ─── DISCLAIMER BANNER ──────────────────────────────────── */
.disclaimer {
  background: var(--color-gold-light);
  border: 1px solid rgba(184,150,58,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-gold-text);
}
[data-theme="dark"] .disclaimer { background: rgba(212,168,71,0.08); color: #d4a847; }
.disclaimer__icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.disclaimer strong { font-weight: 700; }

/* ─── METRIC DEFINITION CARDS ────────────────────────────── */
.metric-defs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}
.metric-def {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border-top: 3px solid var(--color-gold);
  transition: box-shadow var(--transition-interactive);
}
.metric-def:hover { box-shadow: var(--shadow-md); }
.metric-def__name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.metric-def__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-gold-text);
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .metric-def__value { color: var(--color-gold); }
.metric-def__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── BLOG / RESEARCH ────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}
.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card__img {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f1c38 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.article-card__img-label {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.article-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.article-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.35;
}
.article-card:hover .article-card__title { color: var(--color-primary); }
[data-theme="dark"] .article-card:hover .article-card__title { color: #7aabdf; }
.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
  line-height: 1.6;
}
.article-card__meta {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.article-card__read-more {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold-text);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
}
[data-theme="dark"] .article-card__read-more { color: var(--color-gold); }

/* ─── ARTICLE (SINGLE POST) ──────────────────────────────── */
.article-body {
  max-width: 70ch;
  margin-inline: auto;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.article-body h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.article-body p { margin-bottom: var(--space-5); }
.article-body ul, .article-body ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}
.article-body li { margin-bottom: var(--space-2); }
.article-body blockquote {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-6);
  padding-block: var(--space-2);
  margin-block: var(--space-8);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}
.article-body strong { font-weight: 700; color: var(--color-text); }
.article-body a { color: var(--color-gold-text); text-decoration: underline; }
[data-theme="dark"] .article-body a { color: var(--color-gold); }

/* Article header meta */
.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-6);
}
.article-header-meta span { display: flex; align-items: center; gap: var(--space-1); }

/* ─── ABOUT PAGE ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), #0f1c38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border: 3px solid rgba(184,150,58,0.3);
  margin-bottom: var(--space-5);
}
.about-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.about-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition-interactive), color var(--transition-interactive);
}
.about-link:hover { border-color: var(--color-gold); color: var(--color-gold-text); }
[data-theme="dark"] .about-link:hover { color: var(--color-gold); }

/* Skills / Interests Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag {
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ─── CONTACT FORM ───────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-5);
}
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.08);
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: #4a7fc1;
  box-shadow: 0 0 0 3px rgba(74,127,193,0.1);
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}
[data-theme="dark"] .footer { background: #0a0f1a; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
.footer__brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: #fff;
  margin-bottom: var(--space-2);
}
.footer__brand-tagline {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.footer__brand-desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  max-width: 36ch;
}
.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer__links a:hover { color: var(--color-gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__legal {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}
.footer__pplx a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}
.footer__pplx a:hover { color: rgba(255,255,255,0.6); }

/* ─── UTILITIES ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.divider { height: 1px; background: var(--color-divider); margin-block: var(--space-6); }
.note { font-size: var(--text-xs); color: var(--color-text-faint); font-style: italic; }

/* Filter row */
.filter-bar {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-5);
}
.filter-btn {
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  border-color: #4a7fc1;
  color: #7aabdf;
  background: rgba(74,127,193,0.1);
}

/* Chart tabs */
.chart-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); flex-wrap: wrap; }
.chart-tab {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  transition: all var(--transition-interactive);
}
.chart-tab.active, .chart-tab:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
[data-theme="dark"] .chart-tab.active { background: #4a7fc1; border-color: #4a7fc1; }

/* Two-col charts */
.charts-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 768px) {
  .charts-2col { grid-template-columns: 1fr; }
}

/* Impressum */
.impressum-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.impressum-block h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
}
.impressum-block h3:first-child { margin-top: 0; }
.impressum-block p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

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

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; }
  .metric-defs-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}