/* AeterniaCapital — Brand Stylesheet v2 | palette: olive-black v31 */


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

:root {
  color-scheme: dark;
  /* ── Green-Black Palette — Gravitas / Intrigue ── */
  --obsidian:        #0b0c08;   /* near-void green-black */
  --charcoal:        #0c0d09;   /* card surface */
  --surface-soft:    #0f1009;   /* section alternates */

  --warm-ivory:      #E4E0D6;   /* primary text — cool ivory */
  --soft-gray:       #ABA898;   /* secondary text — warm sage */
  --text-muted:      #545C50;   /* muted — deep sage */

  --gold:            #C6A75E;   /* bronze — warm, matches chart palette */
  --gold-soft:       #A89050;   /* softer bronze */

  --border:          rgba(198, 167, 94, 0.22);   /* bronze-tinted border */
  --border-dark:     #1c1d12;   /* green-dark border */
  --section-border:  rgba(243,240,234,0.08); /* section dividers */

  /* Edge / Convexity — semantic forest green, used only for the Edge sleeve */
  --edge-green:        #111809;
  --edge-green-border: rgba(30,48,12,0.55);

  --nav-bg:            #090a06;   /* near-void nav bg */
  --nav-border:        #181910;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

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

body {
  background-color: var(--obsidian);
  color: var(--warm-ivory);
  font-family: var(--font-sans);
  font-weight: 350;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-width: 0;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--warm-ivory);
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: 1.05; text-shadow: 0 0 80px rgba(198, 167, 94, 0.12); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.1; text-shadow: 0 0 60px rgba(198, 167, 94, 0.07); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.2; }

p {
  font-size: 0.92rem;
  color: var(--soft-gray);
  line-height: 1.85;
}

a { color: var(--warm-ivory); text-decoration: none; }

/* Edge / Convexity semantic accent — used only for Edge-related elements */
.edge-text {
  color: var(--edge-green-border);
}
.edge-label {
  color: var(--edge-green-border) !important;
}
.pillar.edge-pillar {
  border-color: var(--edge-green-border);
}

.gold-rule {
  width: 36px;
  height: 1px;
  background: rgba(160, 136, 64, 0.4);
  display: block;
  margin: 1.75rem 0;
}

/* ── NAV ── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1.75rem 4rem;
  background: rgba(9, 10, 6, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  flex-grow: 1;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.nav-logo-text .wordmark {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-logo-text .sub {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft-gray);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--warm-ivory); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── LAYOUT ── */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 4rem;
}

section { padding: 7rem 0; overflow-x: hidden; }

/* ── HERO ── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 7rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 70%;
  background: radial-gradient(ellipse 65% 55% at 42% 48%, rgba(198, 167, 94, 0.04) 0%, rgba(28, 36, 10, 0.50) 25%, rgba(18, 22, 6, 0.22) 55%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-bg-motif {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
  width: 520px;
  height: 520px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero .gold-rule { margin: 2rem 0; }

.hero-sub {
  font-size: 0.92rem;
  color: var(--soft-gray);
  max-width: 46ch;
  line-height: 1.85;
  margin-top: 2rem;
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-ivory);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  padding-bottom: 0;
  transition: color 0.2s, gap 0.2s, text-decoration-color 0.2s;
}

.text-link:hover { color: var(--gold); gap: 0.9rem; }

/* ── PAGE HERO ── */


.page-hero {
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 160%;
  height: 90%;
  background: radial-gradient(ellipse 65% 55% at 42% 48%, rgba(198, 167, 94, 0.04) 0%, rgba(28, 36, 10, 0.50) 25%, rgba(18, 22, 6, 0.22) 55%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero {
  padding-top: 13rem;
  padding-bottom: 4rem;
}

.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }

.label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.25rem;
}

/* ── SECTION GRID ── */

.section-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 5rem;
  align-items: start;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.4rem;
}

.text-block p + p { margin-top: 1.5rem; }

/* ── PHILOSOPHY PILLARS (4-col) ── */

.pillars-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-dark);
  border-left: 1px solid var(--border-dark);
  margin-top: 5rem;
}

.pillar-4 {
  padding: 2.25rem 1.75rem;
  border-right: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.pillar-icon {
  color: var(--gold);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-serif);
}

.pillar-4 h4 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-ivory);
  margin-bottom: 0.65rem;
}

.pillar-4 p { font-size: 0.82rem; }

/* ── STRATEGY PILLARS (3-col) ── */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-dark);
  border-left: 1px solid var(--border-dark);
  margin-top: 5rem;
}

.pillar {
  padding: 2.75rem 2.25rem;
  border-right: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold);
  opacity: 0.55;
  display: block;
  margin-bottom: 1.1rem;
}

.pillar h3 { font-size: 1.05rem; margin-bottom: 0.65rem; }
.pillar p { font-size: 0.84rem; }

/* ── STAT ROW ── */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-dark);
  border-left: 1px solid var(--border-dark);
  margin-top: 6rem;
}

.stat {
  padding: 3rem;
  border-right: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.stat-desc {
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft-gray);
}

/* ── WHAT WE SEEK ── */

.seek-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.seek-item {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-ivory);
  border: 1px solid var(--border);
  padding: 0.55rem 1.1rem;
}

/* ── WRITINGS ── */

.writings-list { list-style: none; }

.writing-item {
  border-top: 1px solid var(--border-dark);
  padding: 2.25rem 0;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 2.5rem;
  align-items: center;
  transition: opacity 0.2s;
}

.writing-item:hover { opacity: 0.6; }
.writing-item:last-child { border-bottom: 1px solid var(--border-dark); }

.writing-date {
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  color: var(--soft-gray);
  text-transform: uppercase;
}

.writing-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--warm-ivory);
}

.writing-tag {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
}

/* ── CONTACT ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}

.contact-item { margin-bottom: 2rem; }
.contact-item .label { margin-bottom: 0.4rem; }

.contact-item a,
.contact-item p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--warm-ivory);
  max-width: none;
}

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

/* ── TAGLINE BAR ── */

.tagline-bar {
  border-top: 1px solid var(--border-dark);
  padding: 2.25rem 0;
  text-align: center;
}

.tagline-bar p {
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  max-width: none;
}

/* ── FOOTER ── */

.footer-nav {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.footer-nav a,
footer .footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(228,224,214,0.48) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.footer-nav a:hover,
footer .footer-nav a:hover { color: rgba(198,167,94,0.88) !important; }

.footer-disclosure {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 300;
  color: rgba(228,224,214,0.28);
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin-top: 1.25rem;
  max-width: 680px;
}

/* ── HAMBURGER ── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--warm-ivory);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY ── */

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 8, 0.98);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--warm-ivory);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--gold); }

body.nav-open .mobile-menu {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

/* ── TABLET (960px) ── */

@media (max-width: 960px) {
  nav { padding: 1.5rem 2.5rem; }
  .hero { padding: 0 2.5rem 5rem; }
  .container { padding: 0 2.5rem; }
  .essay-hero { padding: 4rem 0 3rem; }
  .essay-body-section { padding: 4rem 0 6rem; }
  .nav-links { gap: 1.5rem; }
  section { padding: 5rem 0; }
  .section-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillars-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-meta { flex-direction: column; gap: 1rem; text-align: center; }
  .page-hero { padding-top: 10rem; padding-bottom: 3rem; }
}

/* ── MOBILE (768px) — hamburger trigger ── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; opacity: 0; }
  .nav-right { margin-left: auto; }
}

/* ── MOBILE (600px) ── */

@media (max-width: 600px) {
  nav { padding: 1.25rem 1.5rem; }

  .hero {
    justify-content: flex-start;
    padding: 30vh 1.5rem 4rem;
    min-height: 100svh;
  }

  /* Green base tint — ensures phone screens always see the green, not pure black */
  .hero,
  .page-hero {
    background-color: #0e1209;
  }

  .hero::before {
    top: 46%;
    width: 180%;
    height: 65%;
    background: radial-gradient(ellipse 120% 80% at 50% 50%, rgba(32, 60, 8, 0.88) 0%, rgba(20, 38, 6, 0.55) 40%, rgba(14, 22, 5, 0.20) 65%, transparent 80%);
  }

  .page-hero::before {
    top: 50%;
    width: 180%;
    height: 80%;
    background: radial-gradient(ellipse 120% 80% at 50% 50%, rgba(32, 60, 8, 0.88) 0%, rgba(20, 38, 6, 0.55) 40%, rgba(14, 22, 5, 0.20) 65%, transparent 80%);
  }

  .hero-bg-motif { display: none; }

  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .container { padding: 0 1.5rem; }
  section { padding: 4rem 0; }

  .page-hero {
    padding-top: 8rem;
    padding-bottom: 2rem;
  }

  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }

  .section-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .pillars-4 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }

  .stat { padding: 2rem 1.5rem; }
  .stat-number { font-size: 2.5rem; }

  .pillar { padding: 2rem 1.5rem; }
  .pillar-4 { padding: 1.75rem 1.5rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-meta { flex-direction: column; gap: 0.75rem; text-align: center; }

  .tagline-bar p { letter-spacing: 0.18em; font-size: 0.58rem; }
  .essay-hero { padding: 2.5rem 0 2rem; background-color: #0e1209; }
  .essay-hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .essay-subtitle { font-size: 1.05rem; }
  .essay-body-section { padding: 3rem 0 5rem; }
  .essay-body p { font-size: 1.05rem; line-height: 1.85; }
  .essay-body h2 { margin: 2.25rem 0 1.1rem; font-size: 0.68rem !important; }
  .essay-closing { font-size: 1.05rem; margin-top: 2.5rem !important; padding-top: 1.5rem; }
  .insight-list { grid-template-columns: 1fr; align-items: start; }
  .insight-item { padding: 2.25rem 0; }
  .insight-item.right-col { padding-left: 0; border-left: none; }
  .insight-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .insight-title { font-size: 1.35rem; }
  .insight-read { padding: 0.5rem 0; display: block; }

  .text-link { margin-top: 2rem; }

  .gold-rule { margin: 1.25rem 0; }
}

/* ── BELIEF LIST ── */

.belief-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.belief-list li {
  font-size: 0.9rem;
  color: var(--warm-ivory);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(228,224,214,0.07);
  letter-spacing: 0.02em;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.belief-list li::before {
  content: "—";
  color: var(--gold);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.belief-list li:last-child { border-bottom: none; }

/* ── Supporting thesis ── */
.thesis {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 300;
  color: var(--warm-ivory);
  line-height: 1.55;
  margin: 0.9rem 0 1.1rem;
  font-style: italic;
}

/* ── Belief list — light variant ── */
.belief-list--light li {
  font-size: 0.8rem;
  color: var(--soft-gray);
  font-weight: 300;
  border-bottom: none;
  padding: 0.4rem 0;
}
.belief-list--light li::before {
  color: rgba(160,136,64,0.45);
}

/* ── FOOTER (extended) ── */

footer {
  border-top: 1px solid rgba(198,167,94,0.22);
  padding: 5rem 0 3rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(228,224,214,0.08);
  padding-top: 1.5rem;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(228,224,214,0.32);
  font-weight: 300;
}

.footer-copy a {
  color: rgba(228,224,214,0.32);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copy a:hover { color: rgba(198,167,94,0.80); }

/* Insights */
.insight-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 1100px;
  align-items: stretch;
}

.insight-item {
  padding: 3rem 3rem 3rem 0;
  border-bottom: 1px solid rgba(228,224,214,0.08);
}

/* Right-column items (class set by JS) */
.insight-item.right-col {
  padding-left: 3rem;
  border-left: 1px solid rgba(228,224,214,0.08);
}

/* First-row top padding suppression handled by JS applyGridClasses() */

.insight-meta {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.9rem;
}

.insight-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--warm-ivory);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.insight-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--soft-gray);
  margin: 0;
}

/* Essay pages */
.essay-hero {
  padding: 6rem 0 6rem;
  max-width: 720px;
}

.essay-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.1;
  margin-top: 0.75rem;
}

.essay-back {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--soft-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.essay-back:hover { color: var(--gold); }

.essay-subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--soft-gray);
  margin: 0.75rem 0 2.5rem;
  line-height: 1.5;
}

.essay-byline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(84,92,80,0.65);
  margin-top: 1rem;
}

.essay-body-section {
  border-top: 1px solid rgba(228,224,214,0.08);
  padding: 5rem 0 9rem;
}

.essay-body {
  max-width: 640px;
}

.essay-body p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--soft-gray);
  margin: 0 0 1.9rem;
}

.essay-body .portfolio-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  line-height: 1.4;
  color: var(--soft-gray);
  margin: 0 0 0.5rem;
}

.essay-body .portfolio-note {
  font-size: 0.65rem;
  line-height: 1.5;
  color: rgba(243, 240, 234, 0.2);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.essay-body .portfolio-diagram {
  max-width: 100%;
  margin: 3.5rem 0;
}

.essay-body h2 {
  font-family: var(--font-sans) !important;
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold) !important;
  font-weight: 500;
  margin: 3.5rem 0 1.5rem;
}

.essay-closing {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--warm-ivory) !important;
  line-height: 1.8;
  margin-top: 3.5rem !important;
  padding-top: 2rem;
  border-top: 1px solid rgba(228,224,214,0.08);
}

/* Insights index links */
.insight-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.insight-link:hover { color: var(--gold); }

.insight-read {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.insight-read:hover { opacity: 0.7; }

/* Homepage insights strip */
.home-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
}
.home-insights-grid .insight-title {
  font-size: 1.05rem;
  margin: 0.7rem 0 0.75rem;
}
.home-insights-grid .insight-desc {
  font-size: 0.75rem;
}
@media (max-width: 680px) {
  .home-insights-grid {
    grid-template-columns: 1fr;
  }
}

/* Portfolio diagram */
.portfolio-diagram {
  max-width: 760px;
  margin: 4rem auto 0;
}

.portfolio-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft-gray);
  margin: 0 0 0.5rem;
}

.portfolio-card {
  border: 1px solid #1c1d12;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(228, 224, 214, 0.015);
}

.portfolio-note {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(228, 224, 214, 0.2);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

@media (max-width: 540px) {
  .portfolio-diagram { margin-top: 2.5rem; }
  .portfolio-card svg { min-height: 180px; }
}

.portfolio-band {
  background: rgba(160, 136, 64, 0.07);
  border-bottom: 1px solid rgba(160, 136, 64, 0.18);
  padding: 0.55rem 2rem 0.6rem;
  text-align: left;
}

.portfolio-band-title {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0;
  text-align: left;
}

.portfolio-band-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--soft-gray);
  margin: 0.25rem 0 0;
  line-height: 1.45;
}

.portfolio-core {
  padding: 2rem 2rem 2.5rem;
  text-align: left;
}

.portfolio-core-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
  text-align: left;
}

.portfolio-core-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--warm-ivory);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.portfolio-core-sub {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--warm-ivory);
  line-height: 1.5;
  margin: 0.3rem 0 1.1rem;
}

.portfolio-core-dots {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(154,152,136,0.78);
  margin: 0;
}

.portfolio-summary {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--soft-gray);
}

/* ── Responsive chart show/hide ─────────────────────── */
.chart-desktop { display: block; }
.chart-mobile  { display: none;  }
@media (max-width: 640px) {
  .chart-desktop { display: none !important; }
  .chart-mobile  { display: block !important; }
}


/* ═══════════════════════════════════════════════
   THREE-PANEL PORTFOLIO ARCHITECTURE
   Replaces .portfolio-card / .portfolio-band
═══════════════════════════════════════════════ */

/* ── THREE-PANEL PORTFOLIO ARCHITECTURE ──────────────────────────────────── */

.three-panel-wrap {
  display: flex;
  border: 1px solid #1c1d12;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
}

.three-panel {
  padding: 2.25rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid #1c1d12;
}

.three-panel:last-child { border-right: none; }

.three-panel-compound { flex: 10; background: rgba(228, 224, 214, 0.015); border-right-color: rgba(228,224,214,0.06); }
.three-panel-reserve  { flex: 3;  background: rgba(228, 224, 214, 0.015); }
.three-panel-edge     { flex: 5;  background: #111809; border-left: 1px solid rgba(30,48,12,0.55); }

.tp-rule { width: 20px; height: 1px; background: rgba(160, 136, 64, 0.55); margin-bottom: 1.25rem; flex-shrink: 0; }
.tp-rule-dim  { background: rgba(228, 224, 214, 0.1); }
.tp-rule-edge { background: rgba(30,50,12,0.65); }

.tp-role {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(84, 92, 80, 1.0);
  margin-bottom: 0.4rem;
}
.tp-role-edge { color: rgba(108, 148, 120, 0.82); }

.tp-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 300;
  color: #E4E0D6;
  margin-bottom: 0.85rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.tp-body {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 350;
  color: #9A9888;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.tp-body-edge { color: rgba(108, 148, 120, 0.75); }

.tp-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.75rem; }

.tp-chip {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 0.5px solid rgba(228, 224, 214, 0.18);
  color: rgba(84, 92, 80, 1.0);
  border-radius: 2px;
}
.tp-chip-gold { border-color: rgba(160, 136, 64, 0.5); color: rgba(160, 136, 64, 0.8); }
.three-panel-edge .tp-chip { border-color: rgba(108, 148, 120, 0.38); color: rgba(108, 148, 120, 0.82); }


/* ── ARCH SUBTITLE ───────────────────────────────────────────────────────── */
.arch-sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(228, 224, 214, 0.38);
  line-height: 1.65;
  margin: 0.35rem 0 0;
  max-width: 560px;
}

/* ── BEHAVIOR MATRIX ─────────────────────────────────────────────────────── */
.beh-matrix { margin-top: 3rem; }

.beh-grid {
  border: 1px solid #1c1d12;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1.25rem;
}

.beh-row {
  display: flex;
  border-bottom: 1px solid #1c1d12;
}
.beh-row:last-child { border-bottom: none; }
.beh-row-head { background: rgba(228, 224, 214, 0.01); }

.beh-cell {
  flex: 1;
  padding: 0.85rem 1rem;
  border-right: 1px solid #1c1d12;
  min-width: 0;
}
.beh-cell:last-child { border-right: none; }

.beh-cell-label {
  flex: 0.6;
  background: rgba(228, 224, 214, 0.008);
  display: flex;
  align-items: center;
}

.beh-cell-edge { background: rgba(17, 24, 9, 0.55); }

.beh-head {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(228, 224, 214, 0.50);
}

.beh-regime {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(228, 224, 214, 0.50);
}

.beh-verb {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: rgba(228, 224, 214, 0.90);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.beh-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: rgba(228, 224, 214, 0.55);
  line-height: 1.5;
  margin: 0;
}

.beh-verb-edge { color: rgba(108, 148, 120, 0.85); }
.beh-sub-edge  { color: rgba(108, 148, 120, 0.62); }
.beh-verb-gold { color: rgba(198, 167, 94, 0.82); }

@media (max-width: 640px) {
  .beh-matrix { margin-top: 2rem; }
  .beh-cell         { padding: 0.65rem 0.6rem; }
  .beh-cell-label   { flex: 0.55; }
  .beh-verb         { font-size: 0.82rem; }
  .beh-sub          { font-size: 0.6rem; }
}

@media (max-width: 400px) {
  .beh-cell-label { flex: 0.45; }
  .beh-cell { padding: 0.55rem 0.45rem; }
}

.arch-footnote {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 350;
  color: rgba(228, 224, 214, 0.2);
  letter-spacing: 0.04em;
  margin-top: 1.25rem;
}

.tp-link {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(160, 136, 64, 0.45);
  text-decoration: none;
  display: block;
  margin-top: 1.1rem;
}
.tp-link:hover { color: rgba(160, 136, 64, 0.85); }

@media (max-width: 820px) {
  .three-panel-wrap { flex-wrap: wrap; }
  .three-panel-compound { flex: 1 1 100%; border-right: none; border-bottom: 1px solid #1c1d12; }
  .three-panel-reserve  { flex: 1 1 45%; border-bottom: none; }
  .three-panel-edge     { flex: 1 1 45%; border-right: none; border-left: none; border-top: 1px solid rgba(30,48,12,0.55); }
}

@media (max-width: 540px) {
  .three-panel-wrap { flex-direction: column; }
  .three-panel { flex: unset; border-right: none; border-bottom: 1px solid #1c1d12; padding: 1.75rem 1.25rem; }
  .three-panel:last-child { border-bottom: none; }
  .three-panel-edge { border-left: none; border-top: 1px solid rgba(30,48,12,0.55); }
  .three-panel-compound { padding-top: 2rem; padding-bottom: 2rem; }
  .three-panel-reserve  { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .three-panel-edge     { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .tp-title { font-size: 1.35rem; }
  .tp-body  { font-size: 0.78rem; margin-bottom: 0.85rem; }
}
/* ── Simulator page ── */
.sim-intro { font-size: 0.92rem; color: rgba(228,224,214,0.60); line-height: 1.75; max-width: 560px; margin: 0.75rem 0 2.5rem; }
.sim-card { background: rgba(228,224,214,0.018); border: 1px solid #1c1d12; padding: 2rem 2rem 1.75rem; margin-bottom: 2rem; }
.sim-card-title { font-family: var(--font-sans); font-size: 0.60rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(198,167,94,0.65); margin: 0 0 1.4rem; }
.sim-chart { width: 100%; overflow: hidden; margin-bottom: 1.25rem; }
.sim-chart svg { width: 100%; display: block; }
.sim-ctrls { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.25rem; }
.sim-ctrl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.sim-ctrl-label { font-family: var(--font-sans); font-size: 0.60rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(228,224,214,0.38); }
.sim-ctrl-value { font-family: var(--font-serif); font-size: 0.98rem; color: rgba(228,224,214,0.82); text-align: right; min-width: 46px; }
.sim-ctrl-row { grid-column: 1 / -1; }
input[type=range].sim-slider { width: 100%; accent-color: var(--gold); cursor: pointer; height: 3px; }
.sim-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sim-stat { background: rgba(228,224,214,0.012); border: 1px solid #1c1d12; padding: 1rem 1rem 0.85rem; }
.sim-stat-lbl { font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(228,224,214,0.30); margin-bottom: 5px; }
.sim-stat-val { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1; color: rgba(228,224,214,0.88); }
.sim-stat-val.gold { color: rgba(198,167,94,0.90); }
.sim-stat-val.green { color: rgba(108,148,120,0.88); }
.sim-stat-val.red { color: rgba(190,80,60,0.88); }
.sim-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0.75rem; }
.sim-legend-item { display: flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: 0.60rem; letter-spacing: 0.08em; color: rgba(228,224,214,0.38); }
.sim-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sim-legend-line { width: 20px; height: 2px; flex-shrink: 0; }
.sim-mult-row { display: flex; gap: 6px; margin-bottom: 0.5rem; flex-wrap: wrap; }
.sim-mult-btn { padding: 4px 12px; background: transparent; border: 1px solid #1c1d12; color: rgba(228,224,214,0.35); font-family: var(--font-sans); font-size: 0.60rem; letter-spacing: 0.10em; text-transform: uppercase; cursor: pointer; border-radius: 2px; transition: all 0.18s; }
.sim-mult-btn:hover { border-color: rgba(198,167,94,0.30); color: rgba(198,167,94,0.65); }
.sim-mult-btn.active { border-color: rgba(198,167,94,0.55); color: rgba(198,167,94,0.88); background: rgba(198,167,94,0.04); }
.sim-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sim-coming { background: rgba(228,224,214,0.01); border: 1px solid #1c1d12; padding: 3rem 2rem; text-align: center; }
.sim-coming-label { font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(228,224,214,0.22); margin-bottom: 1.25rem; }
.sim-coming-title { font-family: var(--font-serif); font-size: 1.45rem; color: rgba(228,224,214,0.60); margin: 0 0 1rem; line-height: 1.25; }
.sim-coming-body { font-size: 0.85rem; color: rgba(228,224,214,0.36); line-height: 1.7; max-width: 480px; margin: 0 auto; }
.sim-section-title { font-family: var(--font-sans); font-size: 0.60rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(228,224,214,0.32); margin: 0 0 2rem; border-bottom: 1px solid #1c1d12; padding-bottom: 0.6rem; }
@media (max-width: 720px) {
  .sim-pair { grid-template-columns: 1fr; gap: 0; }
  .sim-stats { grid-template-columns: repeat(2, 1fr); }
  .sim-card { padding: 1.5rem 1.25rem 1.25rem; }
}

/* ── Simulator sections mobile padding ── */
.sim-section { padding: 7rem 0 5rem; border-top: 1px solid rgba(243,240,234,0.08); }
.sim-section-last { padding: 7rem 0 8rem; border-top: 1px solid rgba(243,240,234,0.08); }
@media (max-width: 600px) {
  .sim-section { padding: 3.5rem 0 2.5rem; }
  .sim-section-last { padding: 3.5rem 0 4rem; }
  .sim-card { padding: 1.25rem 1rem 1rem; }
  .pc-model-params { padding: 1rem 0.75rem; }
  .sim-ctrl { grid-template-columns: 1fr; gap: 4px; }
  .sim-ctrl-value { text-align: left; }
}

/* ── Portfolio comparison additions ── */
.pc-stat-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sim-stat-sub { font-size: 0.57rem; font-family: var(--font-sans); letter-spacing: 0.07em; color: rgba(228,224,214,0.22); margin-top: 5px; line-height: 1.5; }
.sim-storm-context { font-family: var(--font-sans); font-size: 0.67rem; letter-spacing: 0.04em; color: rgba(228,224,214,0.38); line-height: 1.55; margin: 0 0 1rem; }
.sim-disclaimer { font-size: 0.58rem; font-family: var(--font-sans); letter-spacing: 0.06em; color: rgba(228,224,214,0.18); margin-top: 1.25rem; line-height: 1.65; }
@media (max-width: 720px) {
  .pc-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Portfolio comparison — model params block ── */
.pc-model-params { margin: 1.5rem 0 1.25rem; padding: 1.25rem 1.5rem; background: rgba(228,224,214,0.02); border: 1px solid rgba(228,224,214,0.06); border-radius: 2px; }
.pc-model-label { font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(198,167,94,0.40); margin: 0 0 1rem; }
.sim-ctrl-val { color: rgba(228,224,214,0.80); font-variant-numeric: tabular-nums; }
.sim-ctrl-hint { display: block; font-size: 0.58rem; font-family: var(--font-sans); letter-spacing: 0.04em; color: rgba(228,224,214,0.22); margin-top: 2px; font-weight: 300; text-transform: none; }


/* ── Wide-gamut (P3) display correction ──────────────────────────────────────
   Android "Vivid" and other P3/wide-gamut screens over-saturate sRGB greens,
   turning olive into "Green Lantern" green. We pre-compensate by reducing the
   green channel saturation so the display boost lands closer to the intended olive.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) and (color-gamut: p3) {
  .hero,
  .page-hero {
    background-color: #0b0e08;
  }

  .hero::before,
  .page-hero::before {
    /* Pull green down, nudge red+blue up → less saturated → looks olive after P3 boost */
    background: radial-gradient(ellipse 120% 80% at 50% 50%,
      rgba(22, 38, 10, 0.82) 0%,
      rgba(14, 26, 7, 0.50) 40%,
      rgba(10, 16, 5, 0.18) 65%,
      transparent 80%);
  }

  .essay-hero { background-color: #0b0e08; }
}


/* ── INTERACTION LAYER v1 ─────────────────────────────────────────────────────

   1. Reading progress bar
   2. Scroll fade-ins
   3. Read time (styling only — values in HTML)
   4. Active nav state
   ─────────────────────────────────────────────────────────────────────────── */

/* 1 — Progress bar */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  z-index: 9999;
  transition: width 0.06s linear;
  box-shadow: 0 0 8px rgba(198,167,94,0.45);
  pointer-events: none;
}

/* 2 — Scroll fade-ins */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3 — Read time */
.read-time {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: rgba(198,167,94,0.40);
  margin-left: 0.5rem;
}
.insight-read-time {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(198,167,94,0.35);
  white-space: nowrap;
  margin-top: 0.5rem;
  display: block;
}

/* 4 — Active nav (underline offset + soften; base ::after supplies the rest) */
.nav-links a.active::after {
  bottom: -4px;
  opacity: 0.65;
}


/* ── Regime Indicator ────────────────────────────────────────────────────────*/

/* Pill (homepage) */
.regime-pill-wrap {
  border-top: 1px solid rgba(243,240,234,0.06);
  padding: 1.1rem 0;
  background: rgba(243,240,234,0.008);
}
.regime-pill-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.regime-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s;
}
.regime-pill-dot.risk-on   { background:#7EB87E; box-shadow:0 0 7px rgba(126,184,126,0.7); }
.regime-pill-dot.cautious  { background:#C6A75E; box-shadow:0 0 7px rgba(198,167,94,0.7);  }
.regime-pill-dot.defensive { background:#C47A5A; box-shadow:0 0 7px rgba(196,122,90,0.7);  }

.regime-pill-label {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(198,167,94,0.4);
}
.regime-pill-name {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(228,224,214,0.65);
}
.regime-pill-divider { color: rgba(198,167,94,0.2); font-size: 0.55rem; }
.regime-pill-meta {
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: rgba(228,224,214,0.25);
}
.regime-pill-link {
  margin-left: auto;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(198,167,94,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.regime-pill-link:hover { color: rgba(198,167,94,0.7); }

/* Strip (opportunity page) */
.regime-strip-wrap {
  border-top: 1px solid rgba(243,240,234,0.08);
  border-bottom: 1px solid rgba(243,240,234,0.08);
  background: rgba(243,240,234,0.012);
}
.regime-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: stretch;
  min-height: 72px;
}
.regime-strip-status {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 2rem 1.25rem 0;
  border-right: 1px solid rgba(198,167,94,0.1);
  min-width: 190px;
  flex-shrink: 0;
}
.regime-strip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s;
}
.regime-strip-dot.risk-on   { background:#7EB87E; box-shadow:0 0 8px rgba(126,184,126,0.7); }
.regime-strip-dot.cautious  { background:#C6A75E; box-shadow:0 0 8px rgba(198,167,94,0.7);  }
.regime-strip-dot.defensive { background:#C47A5A; box-shadow:0 0 8px rgba(196,122,90,0.7);  }

.regime-strip-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.regime-strip-label {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(198,167,94,0.38);
}
.regime-strip-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--warm-ivory);
  line-height: 1;
}
.regime-strip-signals {
  display: flex;
  flex: 1;
  align-items: stretch;
}
.regime-signal {
  flex: 1;
  padding: 1rem 1.25rem;
  border-right: 1px solid rgba(198,167,94,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}
.regime-signal:last-child { border-right: none; }
.regime-signal-label {
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(198,167,94,0.35);
}
.regime-signal-value {
  font-size: 0.88rem;
  color: var(--warm-ivory);
  font-variant-numeric: tabular-nums;
}
.regime-signal-bar {
  height: 1.5px;
  background: rgba(228,224,214,0.07);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.regime-signal-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  border-radius: 1px;
  transition: width 0.8s ease;
}
.regime-signal-fill.calm   { background: rgba(126,184,126,0.6); }
.regime-signal-fill.mid    { background: rgba(198,167,94,0.6);  }
.regime-signal-fill.stress { background: rgba(196,122,90,0.6);  }

.regime-strip-updated {
  padding: 0 0 0 1.25rem;
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(198,167,94,0.2);
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(198,167,94,0.06);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .regime-strip { flex-direction: column; padding: 0 1.5rem; }
  .regime-strip-status { border-right: none; border-bottom: 1px solid rgba(198,167,94,0.1); padding: 1rem 0; min-width: 0; }
  .regime-strip-signals { flex-wrap: wrap; }
  .regime-signal { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(198,167,94,0.06); }
  .regime-strip-updated { padding: 0.75rem 0; border-left: none; }
  .regime-pill-inner { padding: 0 1.5rem; }
  .regime-pill-link { display: none; }
}

/* ── Regime signal tooltips (desktop hover only) ─────────────────────── */
.regime-tooltip { display: none; }

@media (hover: hover) {
  .regime-signal { position: relative; }
  .regime-tooltip {
    display: block;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    background: rgba(14,18,10,0.97);
    border: 1px solid rgba(198,167,94,0.18);
    color: rgba(243,240,234,0.72);
    font-family: var(--font-sans);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    line-height: 1.65;
    padding: 0.75rem 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 200;
    white-space: normal;
  }
  .regime-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(198,167,94,0.18);
  }
  .regime-signal:hover .regime-tooltip { opacity: 1; }
}

/* ── Footer social icon ─────────────────────────────────────────── */
.footer-social {
  display: inline-flex;
  align-items: center;
  color: rgba(228,224,214,0.40);
  text-decoration: none;
  transition: color 0.18s ease;
  margin-left: 0.5rem;
}
.footer-social:hover { color: rgba(198,167,94,0.82); }

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE  (toggled via html.light-mode class)
   Version bumped to v47 — includes all three visual fixes:
     1. Nav logo sphere matches cream background
     2. Hero atmospheric SVGs hidden
     3. Charts: handled via JS in model.html
════════════════════════════════════════════════════════════════ */

/* Final light-mode palette — merged from base + v141 "luxury" pass */
html.light-mode {
  color-scheme: light;
  --obsidian:     #F7F4ED;   /* parchment page bg */
  --charcoal:     #EDE8DA;
  --surface-soft: #E3DCCC;
  --warm-ivory:   #18140C;   /* warm espresso ink */
  --soft-gray:    #484230;
  --text-muted:   #706B52;
  --gold:         #9B7418;   /* burnished gold on cream */
  --gold-soft:    #B89026;
  --border:       rgba(80,64,20,0.18);
  --border-dark:  #D4CDBC;
  --section-border:    rgba(155,116,24,0.28);
  --edge-green:        #DFF0D8;
  --edge-green-border: rgba(50,90,25,0.4);
  --nav-bg:       #090a06;   /* nav stays dark in light mode */
  --nav-border:   #D8D4C0;
}

html.light-mode .regime-tooltip { background: rgba(240,237,229,0.98) !important; border-color: rgba(80,64,20,0.2) !important; color: var(--soft-gray) !important; }
html.light-mode .three-panel-edge { background: #D5EDCB !important; }
html.light-mode .pc-model-params { background: rgba(20,20,10,0.04) !important; }

/* ── Toggle button ────────────────────────────────────────────── */
.nav-theme-toggle { background: none; border: none; cursor: pointer; color: var(--soft-gray); padding: 6px 4px; display: flex; align-items: center; flex-shrink: 0; margin-right: 0.5rem; transition: color 0.2s; }
.theme-icon-moon { display: none; width: 18px; height: 18px; }
.theme-icon-sun  { display: block; width: 18px; height: 18px; }
html.light-mode .theme-icon-moon { display: block; }
html.light-mode .theme-icon-sun  { display: none; }

/* ── Fix 2: Hero atmospheric SVGs — hidden in light mode ─────── */
html.light-mode .hero-mobile-atm,
html.light-mode .hero-desktop-mark { display: none; }
/* ── v119: JS will un-hide these in light mode with the light SVG ── */

/* ── Fix 3 supplement: model page inline-styled disclaimer text ── */
html.light-mode p[style*="rgba(228,224,214"] { color: var(--text-muted) !important; }

/* ── Fix 4: Hero/page-hero hardcoded dark backgrounds — override in light mode ── */
html.light-mode .hero,
html.light-mode .page-hero,
html.light-mode .essay-hero { background-color: var(--obsidian) !important; }
html.light-mode .hero::before,
html.light-mode .page-hero::before { display: none; }

/* ── Contrast fixes (light mode audit) ────────────────────────── */

/* Insights: read-time and filter buttons */
html.light-mode .filter-btn { color: var(--soft-gray) !important; }
html.light-mode .filter-btn:hover { color: var(--warm-ivory) !important; }
html.light-mode .filter-btn.active { color: var(--warm-ivory) !important; border-bottom-color: var(--gold) !important; }

/* Mobile menu links: hardcode readable dark text on cream background */
html.light-mode .mobile-menu a:hover { color: var(--gold) !important; }

/* Essay charts: keep dark-background "island" so light SVG elements remain legible */
html.light-mode .chart-desktop,
html.light-mode .chart-mobile { background: transparent !important; border-radius: 6px; padding: 0.5rem; }

/* ══ v106 LIGHT-MODE FIXES ════════════════════════════════════════════════ */

/* ── Three-panel (CORE / BUFFER / EDGE) contrast ───────────────── */
html.light-mode .tp-title                          { color: var(--warm-ivory) !important; }
html.light-mode .tp-body                           { color: var(--soft-gray) !important; }
html.light-mode .tp-body-edge                      { color: rgba(25, 70, 40, 0.88) !important; }
html.light-mode .tp-role-edge                      { color: rgba(25, 70, 40, 0.88) !important; }
html.light-mode .tp-link                           { color: var(--gold) !important; }
html.light-mode .tp-link:hover                     { color: var(--warm-ivory) !important; }
html.light-mode .tp-rule                           { background: rgba(142, 108, 34, 0.45) !important; }
html.light-mode .three-panel-edge .tp-rule         { background: rgba(25, 70, 40, 0.45) !important; }
html.light-mode .tp-chip                           { border-color: rgba(0,0,0,0.14) !important; color: var(--soft-gray) !important; }
html.light-mode .tp-chip-gold                      { border-color: rgba(142,108,34,0.4) !important; color: var(--gold) !important; }
html.light-mode .three-panel-edge .tp-chip         { border-color: rgba(25,70,40,0.3) !important; color: rgba(22,65,36,0.9) !important; }
html.light-mode .three-panel-wrap                  { border-color: rgba(0,0,0,0.14) !important; }
html.light-mode .three-panel-compound              { border-right-color: rgba(0,0,0,0.1) !important; }

/* ── Nav logo: soften sphere so gold ring reads clearly ─────────── */
html.light-mode .nav-logo svg                      { filter: drop-shadow(0 0 4px rgba(184,134,11,0.22)); }

/* ── About page large eclipse mark ───────────────────────── */
html.light-mode svg[aria-label="Aeternia Capital eclipse mark"]        { filter: drop-shadow(0 0 8px rgba(184,134,11,0.22)); }
/* hero mark is an <img> of the same asset — mirror the about glow and
   cancel the dark-mode atmospheric wash (opacity .53 + brightness) so
   hero and about render identically in light mode (v172) */
html.light-mode .hero-desktop-mark img,
html.light-mode .hero-mobile-atm img          { opacity: 1 !important; filter: drop-shadow(0 0 8px rgba(184,134,11,0.22)) !important; }

/* ── Toggle button: gap between CONTACT and moon icon (desktop) ── */
@media (min-width: 769px) {
  .nav-right { margin-left: 1.5rem; }
}

/* ══ v107 LIGHT-MODE FIXES ════════════════════════════════════════════════ */

/* ── Model page: sim-* class contrast ──────────────────────────── */
html.light-mode .sim-intro           { color: var(--soft-gray) !important; }
html.light-mode .sim-section-title   { color: var(--text-muted) !important; border-bottom-color: rgba(0,0,0,0.1) !important; }
html.light-mode .sim-card-title      { color: var(--gold) !important; }
html.light-mode .sim-stat-lbl        { color: var(--text-muted) !important; }
html.light-mode .sim-stat-val        { color: var(--warm-ivory) !important; }
html.light-mode .sim-stat-val.gold   { color: var(--gold) !important; }
html.light-mode .sim-stat-val.green  { color: #2a6b38 !important; }
html.light-mode .sim-ctrl-label      { color: var(--soft-gray) !important; }
html.light-mode .sim-ctrl-value      { color: var(--warm-ivory) !important; }
html.light-mode .sim-coming-label    { color: var(--text-muted) !important; }
html.light-mode .sim-card            { background: rgba(0,0,0,0.03) !important; border-color: rgba(0,0,0,0.12) !important; }
html.light-mode .sim-stat            { background: rgba(0,0,0,0.02) !important; border-color: rgba(0,0,0,0.1) !important; }
html.light-mode .sim-coming          { background: rgba(0,0,0,0.02) !important; border-color: rgba(0,0,0,0.1) !important; }
html.light-mode .sim-ctrl            { border-color: rgba(0,0,0,0.1) !important; }
html.light-mode .pc-model-params     { border-color: rgba(0,0,0,0.1) !important; }

/* ── Regime playbook: CSS-class contrast ───────────────────────── */
html.light-mode .regime-strip-wrap   { background: rgba(0,0,0,0.03) !important; border-color: rgba(0,0,0,0.1) !important; }
html.light-mode .regime-signal       { border-right-color: rgba(0,0,0,0.08) !important; }
html.light-mode .regime-strip-status { border-color: rgba(0,0,0,0.08) !important; }

/* ── Inline rgba(243,240,234,...) near-white text — both pages ─── */
html.light-mode [style*="rgba(243,240,234"] { color: var(--soft-gray) !important; }

/* ── Inline rgba(228,224,214,...) near-white text — model page ─── */
html.light-mode [style*="rgba(228,224,214"] { color: var(--soft-gray) !important; }

/* ── Inline gold at low opacity — boost to full light-mode gold ── */
html.light-mode [style*="rgba(198,167,94"]  { color: var(--gold) !important; }


/* ══ v110 — nav-right flex row: toggle left of hamburger, reduces nav height ══ */

/* nav-right was missing a base display rule — block layout stacked the
   toggle on top of the hamburger, inflating mobile nav height. */
.nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

/* ══ v109 — Mobile nav spacing + section-label + hero position ══════ */

/* Larger, more legible section label on mobile */
@media (max-width: 600px) {
  .section-label {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
  }
}

/* ══ v108 — Logo ring, footer social, regime-playbook full light-mode ══ */



/* ── Footer LinkedIn icon: visible on cream ──────────────────────── */
html.light-mode .footer-social       { color: rgba(26,27,18,0.50) !important; }
html.light-mode .footer-social:hover { color: var(--gold) !important; }

/* ── Regime playbook: dark backgrounds → light ───────────────────── */
html.light-mode .rp-cell          { background: rgba(0,0,0,0.03) !important; }
html.light-mode .rp-grid          { background: rgba(0,0,0,0.07) !important; }
html.light-mode .rp-trigger       { background: rgba(0,0,0,0.02) !important; border-color: rgba(0,0,0,0.08) !important; }
html.light-mode .rule-card        { background: rgba(0,0,0,0.02) !important; }
html.light-mode .rules-grid       { background: rgba(0,0,0,0.07) !important; }
html.light-mode .trade-check      { background: rgba(0,0,0,0.02) !important; border-color: rgba(0,0,0,0.09) !important; }
html.light-mode .machine-inner    { background: rgba(0,0,0,0.02) !important; border-color: rgba(0,0,0,0.08) !important; }
html.light-mode .regime-live-inner { background: rgba(0,0,0,0.04) !important; border-color: rgba(0,0,0,0.10) !important; }
html.light-mode .tc-field select,
html.light-mode .tc-field input   { background: rgba(255,255,255,0.7) !important; border-color: rgba(0,0,0,0.15) !important; color: var(--warm-ivory) !important; }
html.light-mode .tc-field select option { background: #f7f4ed !important; color: var(--warm-ivory) !important; }

/* ── Regime playbook: borders ────────────────────────────────────── */
html.light-mode .regime-tabs       { border-bottom-color: rgba(0,0,0,0.10) !important; }
html.light-mode .play-row          { border-top-color: rgba(0,0,0,0.07) !important; }
html.light-mode .inst-table td     { border-bottom-color: rgba(0,0,0,0.06) !important; }
html.light-mode .inst-table thead tr { border-bottom-color: rgba(0,0,0,0.12) !important; }
html.light-mode .tc-note           { border-top-color: rgba(0,0,0,0.08) !important; }
html.light-mode .machine-node + .machine-node::before { color: rgba(0,0,0,0.25) !important; }

/* ── Regime playbook: text colors ────────────────────────────────── */
html.light-mode .pb-hero .lede         { color: var(--soft-gray) !important; }
html.light-mode .regime-live-label     { color: var(--text-muted) !important; }
html.light-mode .regime-live-name      { color: var(--warm-ivory) !important; }
html.light-mode .regime-live-sig-label { color: var(--text-muted) !important; }
html.light-mode .regime-live-sig-val   { color: var(--soft-gray) !important; }
html.light-mode .regime-live-updated   { color: var(--text-muted) !important; }
html.light-mode .regime-tab            { color: var(--text-muted) !important; }
html.light-mode .regime-tab:hover      { color: var(--soft-gray) !important; }
html.light-mode .rp-cell-label         { color: var(--gold) !important; }
html.light-mode .rp-cell-val           { color: var(--soft-gray) !important; }
html.light-mode .rp-examples           { color: var(--text-muted) !important; }
html.light-mode .rp-trigger p          { color: var(--soft-gray) !important; }
html.light-mode .vol-read              { color: var(--soft-gray) !important; }
html.light-mode .vol-read strong       { color: var(--warm-ivory) !important; }
html.light-mode .play-content          { color: var(--soft-gray) !important; }
html.light-mode .play-content .inst    { color: var(--warm-ivory) !important; }
html.light-mode .play-content .note    { color: var(--text-muted) !important; }
html.light-mode .play-content .off     { color: var(--text-muted) !important; }
html.light-mode .play-sleeve.dry       { color: var(--text-muted) !important; }
html.light-mode .inst-filter           { color: var(--text-muted) !important; border-color: rgba(0,0,0,0.12) !important; }
html.light-mode .inst-filter:hover     { color: var(--soft-gray) !important; border-color: rgba(0,0,0,0.25) !important; }
html.light-mode .inst-filter.active    { color: var(--warm-ivory) !important; background: rgba(0,0,0,0.05) !important; border-color: rgba(0,0,0,0.3) !important; }
html.light-mode .inst-table td         { color: var(--soft-gray) !important; }
html.light-mode .inst-table td:first-child { color: var(--warm-ivory) !important; }
html.light-mode .inst-table td .dim    { color: var(--text-muted) !important; }
html.light-mode .badge-always          { color: var(--text-muted) !important; }
html.light-mode .trade-check-sub       { color: var(--text-muted) !important; }
html.light-mode .tc-param-label        { color: var(--text-muted) !important; }
html.light-mode .tc-param-val          { color: var(--soft-gray) !important; }
/* ══ v111 — sphere opacity 0.08 + gold split #B8860B/#9B7418 ═══════ */


/* Opportunity page: secondary paragraph inline rgba not caught by previous selectors */
html.light-mode [style*="rgba(183,179,172"] { color: var(--soft-gray) !important; }

/* ══ v112 — sphere invisible via gradient stop-color override ═══════════════
   CSS fill: rgba() does NOT reliably override fill="url(#gradient)" in Chrome/
   Safari. Instead we restyle the gradient stops → cream = sphere blends into bg.
   Also cancel the legacy fill-opacity:0.55 that was leaving the dark gradient
   partially visible.                                                            */

/* Cancel legacy fill-opacity rules (L1812 / L1891) */
html.light-mode .nav-logo svg circle {
  fill-opacity: 1 !important;
}
html.light-mode svg[aria-label="Aeternia Capital eclipse mark"] circle {
  fill-opacity: 1 !important;
}



/* ══ v120 — remaining light-mode contrast + essay SVG chart fixes ══════════ */

/* ── Model page: remaining sim-* contrast ── */
html.light-mode .sim-mult-btn      { border-color: rgba(0,0,0,0.18) !important; color: var(--text-muted) !important; background: transparent !important; }
html.light-mode .sim-mult-btn.active { background: rgba(0,0,0,0.06) !important; border-color: rgba(0,0,0,0.30) !important; color: var(--warm-ivory) !important; }
html.light-mode .sim-legend-item   { color: var(--text-muted) !important; }
html.light-mode .sim-stat-sub      { color: var(--text-muted) !important; }
html.light-mode .sim-ctrl-hint     { color: var(--text-muted) !important; }
html.light-mode .sim-storm-context { color: var(--soft-gray) !important; }
html.light-mode .sim-disclaimer    { color: var(--text-muted) !important; }

/* ── Regime playbook: missing rule/machine/tab/tc text ── */
html.light-mode .rule-num          { color: rgba(155,116,24,0.45) !important; }
html.light-mode .rule-body         { color: var(--soft-gray) !important; }
html.light-mode .rule-why          { color: var(--text-muted) !important; }
html.light-mode .machine-sub       { color: var(--soft-gray) !important; }
html.light-mode .tc-btn            { color: var(--gold) !important; border-color: rgba(0,0,0,0.22) !important; background: rgba(0,0,0,0.03) !important; }
html.light-mode .tc-rules          { color: var(--text-muted) !important; }
html.light-mode .regime-tab.active { color: var(--warm-ivory) !important; border-bottom-color: var(--gold) !important; }
html.light-mode .tc-note           { color: var(--soft-gray) !important; }

/* ── Essay SVG charts: dark backgrounds → warm cream ── */
/* Full-bleed dark background rects */
html.light-mode svg.essay-chart > rect[fill="#0c0e0b"],
html.light-mode svg.essay-chart > rect[fill="#0f0e0c"] { fill: var(--charcoal) !important; }
/* Inner regime card rects (not full-bleed but same dark fill) */
html.light-mode svg.essay-chart rect[fill="#0f0e0c"] { fill: rgba(155,116,24,0.06) !important; }
html.light-mode svg.essay-chart rect[fill="#0c0e0b"] { fill: rgba(155,116,24,0.06) !important; }
/* White/cream text → dark warm charcoal */
html.light-mode svg.essay-chart text[fill*="232,228"],
html.light-mode svg.essay-chart text[fill*="220,215"],
html.light-mode svg.essay-chart text[fill*="183,179"],
html.light-mode svg.essay-chart text[fill*="160,185"] { fill: rgba(26,27,18,0.65) !important; }
/* White axis lines and strokes → subtle dark */
html.light-mode svg.essay-chart line[stroke*="255,255"],
html.light-mode svg.essay-chart line[stroke*="183,179"] { stroke: rgba(26,27,18,0.20) !important; }
/* White polygon arrowheads → dark */
html.light-mode svg.essay-chart polygon[fill*="255,255"],
html.light-mode svg.essay-chart polygon[fill*="183,179"] { fill: rgba(26,27,18,0.20) !important; }
/* Grey column/card backgrounds in weather essay → barely-there on cream */
html.light-mode svg.essay-chart rect[fill*="183,179"] { fill: rgba(26,27,18,0.04) !important; }
/* ══ v129 — essay chart: white/cream strokes + additional fills ════════════ */

/* White/cream arc and path strokes → dark on cream bg */
html.light-mode svg.essay-chart path[stroke*="243,240"] { stroke: rgba(26,27,18,0.72) !important; }
html.light-mode svg.essay-chart path[stroke*="220,215"] { stroke: rgba(26,27,18,0.70) !important; }
html.light-mode svg.essay-chart path[stroke*="241,234"] { stroke: rgba(26,27,18,0.60) !important; }

/* Cream grid lines → near-invisible on cream (subtle, intentional) */
html.light-mode svg.essay-chart line[stroke*="241,234"] { stroke: rgba(26,27,18,0.10) !important; }
html.light-mode svg.essay-chart line[stroke*="243,240"] { stroke: rgba(26,27,18,0.10) !important; }

/* Cream fill areas → barely-there on cream */
html.light-mode svg.essay-chart path[fill*="243,240"] { fill: rgba(26,27,18,0.04) !important; }
html.light-mode svg.essay-chart path[fill*="241,234"] { fill: rgba(26,27,18,0.03) !important; }

/* Cream text fills → dark */
html.light-mode svg.essay-chart text[fill*="243,240"] { fill: rgba(26,27,18,0.65) !important; }
html.light-mode svg.essay-chart text[fill*="241,234"] { fill: rgba(26,27,18,0.55) !important; }
html.light-mode svg.essay-chart text[fill*="184,176"] { fill: rgba(26,27,18,0.55) !important; }

/* Light-gray circles → subtle dark on cream */
html.light-mode svg.essay-chart circle[fill*="183,179"] { fill: rgba(26,27,18,0.30) !important; }
html.light-mode svg.essay-chart circle[fill*="243,240"] { fill: rgba(26,27,18,0.25) !important; }

/* ══ v124 — read-time, portfolio-card, essay sign-off contrast ════════════ */

/* Read time ("X min read") — too faint at 40% gold in light mode */
html.light-mode .read-time          { color: var(--soft-gray) !important; }
html.light-mode .insight-read-time  { color: var(--soft-gray) !important; }

/* Portfolio card border is near-void dark — lighten for cream background */
html.light-mode .portfolio-card     { border-color: rgba(0,0,0,0.14) !important; }
html.light-mode .portfolio-note     { color: var(--text-muted) !important; }
html.light-mode .essay-body .portfolio-note { color: var(--text-muted) !important; }

/* Shape-of-market chart: polylines/circles use green rgba — fine on cream.
   Text rgba(183,179,...) already caught by essay-chart text rule above.
   Axis line overrides also apply. No additional rules needed beyond class 
/* ══ v130 — about mark: ink-wash sphere (7%→0%), gold ring strengthened ══════
   v111 overrode circle fill to rgba solid; v112 overrode #sphere stops to cream.
   Here we restore gradient fills and set the correct light-mode ink-wash.       */

/* Restore gradient fill on each circle (override v111 solid rgba fill) */
html.light-mode svg[aria-label="Aeternia Capital eclipse mark"] circle:nth-child(2) {
  fill: url(#corona) !important;
}
html.light-mode svg[aria-label="Aeternia Capital eclipse mark"] circle:nth-child(6) {
  fill: url(#sphere) !important;
}
html.light-mode svg[aria-label="Aeternia Capital eclipse mark"] circle:nth-child(7) {
  fill: url(#sphereSheen) !important;
}

/* Sphere gradient: 7% ink at centre → 2% mid → 0% transparent at edge */
html.light-mode svg[aria-label="Aeternia Capital eclipse mark"] #sphere stop:nth-child(1) {
  stop-color: #050807 !important;
  stop-opacity: 0.07 !important;
}
html.light-mode svg[aria-label="Aeternia Capital eclipse mark"] #sphere stop:nth-child(2) {
  stop-color: #010302 !important;
  stop-opacity: 0.02 !important;
}
html.light-mode svg[aria-label="Aeternia Capital eclipse mark"] #sphere stop:nth-child(3) {
  stop-color: #000000 !important;
  stop-opacity: 0 !important;
}

/* Sheen: fully invisible in light mode */
html.light-mode svg[aria-label="Aeternia Capital eclipse mark"] #sphereSheen stop {
  stop-color: #000000 !important;
  stop-opacity: 0 !important;
}

/* ══ v131 — adaptive-edge chart: hex #C6A75E / #0f0e0c light-mode contrast ═══
   This chart uses HEX colours rather than rgba(), so the existing rgba-substring
   selectors above don't fire. These rules target the exact hex values used.      */

/* Box borders: stroke="#C6A75E" stroke-opacity="0.45-0.50" → visible amber line */
html.light-mode svg.essay-chart rect[stroke="#C6A75E"] {
  stroke: rgba(130,90,10,0.75) !important;
  stroke-opacity: 1 !important;
}

/* Connector paths (desktop) and lines (mobile): stroke="#C6A75E" → visible */
html.light-mode svg.essay-chart path[stroke="#C6A75E"],
html.light-mode svg.essay-chart line[stroke="#C6A75E"] {
  stroke: rgba(130,90,10,0.60) !important;
  stroke-opacity: 1 !important;
}

/* Arrowhead polygons: fill="#C6A75E" fill-opacity="0.55" → visible */
html.light-mode svg.essay-chart polygon[fill="#C6A75E"] {
  fill: rgba(130,90,10,0.60) !important;
  fill-opacity: 1 !important;
}

/* Regime label text: fill="#C6A75E" fill-opacity="0.85-0.88" → dark amber */
html.light-mode svg.essay-chart text[fill="#C6A75E"][fill-opacity="0.85"],
html.light-mode svg.essay-chart text[fill="#C6A75E"][fill-opacity="0.88"] {
  fill: rgba(100,68,8,0.92) !important;
  fill-opacity: 1 !important;
}

/* Subtitle italic text: fill-opacity="0.48-0.52" → readable soft dark */
html.light-mode svg.essay-chart text[fill="#C6A75E"][fill-opacity="0.48"],
html.light-mode svg.essay-chart text[fill="#C6A75E"][fill-opacity="0.52"] {
  fill: rgba(26,27,18,0.58) !important;
  fill-opacity: 1 !important;
}

/* Centre caption: fill-opacity="0.28-0.30" → legible medium gray */
html.light-mode svg.essay-chart text[fill="#C6A75E"][fill-opacity="0.28"],
html.light-mode svg.essay-chart text[fill="#C6A75E"][fill-opacity="0.30"] {
  fill: rgba(26,27,18,0.45) !important;
  fill-opacity: 1 !important;
}

/* ══ v141 — LUXURY LIGHT-MODE PROTOTYPE ══════════════════════════════════════
   7 targeted tweaks to close the gravitas gap between dark and light mode.
   All rules scoped to html.light-mode — zero impact on dark mode.
   Tweak 1: deeper parchment background
   Tweak 2: richer burnished gold
   Tweak 3: warm ink (espresso near-black body text)
   Tweak 4: letter-spacing lift on footer nav + essay date stamps
   Tweak 5: dark footer (bookend effect)
   Tweak 6: warm card elevation shadows on portfolio + sim cards
   Tweak 7: warm insight-item dividers (currently invisible on cream)
   Bonus:   nav warm shadow instead of cold border
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Deeper parchment background ─────────────────────────────────────────
   #F7F4ED reads as a default website cream.
   Reverted to #F7F4ED (original light cream).
   All vars that feed surface colour update automatically via cascade.       */
html.light-mode nav {
  background: rgba(9,10,6,0.97) !important;
  border-bottom: 1px solid rgba(198,167,94,0.12) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.28) !important;
}
html.light-mode .mobile-menu {
  background: #0c0d09 !important;
}
/* Nav sphere stays dark — matches dark nav bg */
html.light-mode .nav-logo svg #ns stop {
  stop-color: #090a06 !important;
  stop-opacity: 1 !important;
}

/* ── 2. Richer, burnished gold ───────────────────────────────────────────────
   Current #9B7418 fades on warm cream. #7A5C10 reads as stamped foil.
   Still clearly gold — just with full material weight.                      */
html.light-mode .nav-logo svg path {
  fill: url(#ng) !important;
}
html.light-mode svg[aria-label="Aeternia Capital eclipse mark"] path:not([fill="none"]) {
  fill: #C08018 !important;
}

/* ── 3. Warm ink — body and secondary text ───────────────────────────────────
   Neutral #1a1b12 → warm espresso #18140C (legibility unchanged, adds warmth).
   Soft-gray and text-muted shift to warm olive family.                      */

/* ── 4. Letter-spacing lift on select uppercase elements ─────────────────────
   Footer nav (0.14em → 0.20em) and essay date stamps feel compressed.
   Section-label (0.25em) and wordmark (0.30em) are already generous.       */
html.light-mode footer .footer-nav a,
html.light-mode footer footer .footer-nav a {
  letter-spacing: 0.20em !important;
}
html.light-mode .insight-meta {
  letter-spacing: 0.22em !important;
}

/* ── 5. Dark footer — the bookend ───────────────────────────────────────────
   In dark mode footer inherits the dark --obsidian body.
   In light mode --obsidian becomes cream, washing out the footer.
   Force it back to a consistent dark anchor.                                */
html.light-mode footer {
  background-color: #0E0D0B !important;
  border-top-color: rgba(198,167,94,0.22) !important;
}
html.light-mode footer .footer-nav a,
html.light-mode footer footer .footer-nav a {
  color: rgba(228,224,214,0.48) !important;
}
html.light-mode footer .footer-nav a:hover,
html.light-mode footer footer .footer-nav a:hover {
  color: rgba(198,167,94,0.88) !important;
}
html.light-mode footer .footer-copy,
html.light-mode footer .footer-copy a {
  color: rgba(228,224,214,0.32) !important;
}
html.light-mode footer .footer-copy a:hover { color: rgba(198,167,94,0.80) !important; }
html.light-mode footer .footer-disclosure  { color: rgba(228,224,214,0.28) !important; }
html.light-mode footer .footer-social      { color: rgba(228,224,214,0.38) !important; }
html.light-mode footer .footer-social:hover { color: rgba(198,167,94,0.82) !important; }
html.light-mode footer .footer-meta        { border-top-color: rgba(228,224,214,0.07) !important; }

/* ── 6. Card elevation — warm depth ─────────────────────────────────────────
   Near-invisible warm shadow gives portfolio and simulator cards material
   presence. Not a decorative drop shadow — barely there, but felt.          */
html.light-mode .portfolio-card {
  box-shadow: 0 2px 22px rgba(72,52,10,0.10), 0 1px 5px rgba(72,52,10,0.06) !important;
  border-color: rgba(0,0,0,0.09) !important;
}
html.light-mode .sim-card {
  background: rgba(255,255,255,0.42) !important;
  box-shadow: 0 1px 14px rgba(72,52,10,0.08) !important;
}



/* ── 8. Dark nav text colours ───────────────────────────────────────────────
   Nav stays dark; its text/icons must use original dark-mode palette.       */
html.light-mode .wordmark { color: #C6A75E !important; }
html.light-mode nav .sub  { color: #C6A75E !important; }
html.light-mode .nav-links a { color: rgba(171,168,152,0.80) !important; }
html.light-mode .nav-links a:hover { color: #E4E0D6 !important; }
html.light-mode .mobile-menu a { color: rgba(228,224,214,0.75) !important; }
html.light-mode .nav-theme-toggle { color: rgba(171,168,152,0.70) !important; }
html.light-mode .nav-hamburger span { background: rgba(228,224,214,0.80) !important; }

/* ── 9. Rich amber hero glow ────────────────────────────────────────────────
   Light-mode equivalent of the dark vignette: warm amber bloom at hero centre.
   Replaces the dark radial gradient that creates the green-black atmosphere. */
html.light-mode .hero::before {
  display: block !important;
  background: radial-gradient(ellipse 58% 50% at 42% 48%,
    rgba(170,115,20,0.12) 0%,
    rgba(190,145,45,0.039) 38%,
    transparent 65%) !important;
}
html.light-mode .page-hero::before {
  display: block !important;
  background: radial-gradient(ellipse 58% 50% at 42% 48%,
    rgba(170,115,20,0.08) 0%,
    rgba(190,145,45,0.027) 38%,
    transparent 65%) !important;
}
html.light-mode h1 {
  text-shadow: 0 0 80px rgba(140,100,15,0.075) !important;
}

/* ══ v151 — comprehensive light-mode chart contrast ═══════════════════════

   1. beh-matrix: all text invisible on cream (zero prior overrides)
   2. arch-sub / arch-footnote: ivory colours → readable ink
   3. essay-chart polylines: cream strokes → dark
   4. essay-chart gray conventional lines: darken
   5. Low-opacity gold annotation text: boost to readable dark-gold

   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Behaviour matrix ─────────────────────────────────────────────────── */
html.light-mode .beh-grid       { border-color: rgba(0,0,0,0.10) !important; }
html.light-mode .beh-row        { border-bottom-color: rgba(0,0,0,0.08) !important; }
html.light-mode .beh-cell       { border-right-color: rgba(0,0,0,0.08) !important; }
html.light-mode .beh-row-head   { background: rgba(0,0,0,0.025) !important; }
html.light-mode .beh-cell-label { background: rgba(0,0,0,0.018) !important; }
html.light-mode .beh-head       { color: rgba(26,27,18,0.48) !important; }
html.light-mode .beh-regime     { color: rgba(26,27,18,0.44) !important; }
html.light-mode .beh-verb       { color: rgba(26,27,18,0.85) !important; }
html.light-mode .beh-sub        { color: rgba(26,27,18,0.55) !important; }
/* Edge column: keep dark bg, slightly strengthened */
html.light-mode .beh-cell-edge  { background: rgba(17,24,9,0.72) !important; }

/* ── 2. arch-sub / arch-footnote ─────────────────────────────────────────── */
html.light-mode .arch-sub       { color: rgba(26,27,18,0.42) !important; }
html.light-mode .arch-footnote  { color: rgba(26,27,18,0.28) !important; }

/* ── 3. essay-chart polylines: cream/ivory strokes ───────────────────────── */
html.light-mode svg.essay-chart polyline[stroke*="241,234"] { stroke: rgba(26,27,18,0.62) !important; }
html.light-mode svg.essay-chart polyline[stroke*="243,240"] { stroke: rgba(26,27,18,0.55) !important; }

/* ── 4. essay-chart gray conventional lines and paths ────────────────────── */
html.light-mode svg.essay-chart path[stroke*="183,179"]     { stroke: rgba(26,27,18,0.42) !important; }
html.light-mode svg.essay-chart line[stroke*="183,179"]     { stroke: rgba(26,27,18,0.22) !important; }

/* ── 5. Low-opacity gold annotation text ─────────────────────────────────── */
/* Catches rgba(198,167,94,0.38) "2008 exposed this gap" etc. */
html.light-mode svg.essay-chart text[fill*="198,167"]       { fill: rgba(155,116,24,0.78) !important; }
/* But preserve high-opacity gold (CRISIS, EDGE labels etc.) */
html.light-mode svg.essay-chart text[fill="rgba(198,167,94,0.88)"],
html.light-mode svg.essay-chart text[fill="rgba(198,167,94,0.72)"] {
  fill: rgba(155,116,24,0.88) !important;
}

/* ── 6. Moat chart rect outlines + dash dividers (cream stroke on cream bg) ── */
html.light-mode svg.essay-chart rect[stroke*="232,228"] { stroke: rgba(26,27,18,0.18) !important; }
html.light-mode svg.essay-chart rect[stroke*="255,255"] { stroke: rgba(26,27,18,0.15) !important; }
html.light-mode svg.essay-chart line[stroke*="232,228"] { stroke: rgba(26,27,18,0.14) !important; }

/* ── 7. Adaptive-edge: low-opacity gold text inside dark boxes ──────────────
   Box bg becomes cream → boost low-opacity gold fills so subtitles stay readable */
html.light-mode svg.essay-chart text[fill="#C6A75E"][fill-opacity="0.28"],
html.light-mode svg.essay-chart text[fill="#C6A75E"][fill-opacity="0.30"] {
  fill-opacity: 0.62 !important;
}
html.light-mode svg.essay-chart text[fill="#C6A75E"][fill-opacity="0.48"],
html.light-mode svg.essay-chart text[fill="#C6A75E"][fill-opacity="0.52"] {
  fill-opacity: 0.72 !important;
}

/* ══ v152 — footer uniformity + chart arrow visibility ══════════════════════

   1. Dark mode footer: match light mode ivory text treatment.
      Base CSS uses muted olive-gray (rgba 84,92,80) — too subdued on dark bg.
      Apply the same illuminated values the light-mode block uses.

   2. Essay chart: boost oval arrow stroke-opacity in light mode.
      The-adaptive-edge arrows use stroke="#C6A75E" stroke-opacity="0.35" which
      fades to near-invisible against the cream page background.

   ══════════════════════════════════════════════════════════════════════════ */


/* ── 2. Adaptive-edge oval arrows: boost in light mode ───────────────────── */
/* Hex gold strokes at low opacity are nearly invisible against cream bg */
html.light-mode svg.essay-chart path[stroke="#C6A75E"] {
  stroke-opacity: 0.65 !important;
}
/* Also boost box outlines so borders read clearly against cream */
html.light-mode svg.essay-chart rect[stroke="#C6A75E"] {
  stroke-opacity: 0.72 !important;
}

/* ══ v154 — three separator / contrast fixes ════════════════════════════════

   1. Section separator: remove v116 box-shadow (double-line banding) and
      replace v114 solid border with a much subtler rule.

   2. EDGE column text: my light-mode .beh-verb override is dark ink —
      correct against cream cells but invisible on the dark beh-cell-edge bg.
      Re-assert cream text only inside that column.

   3. Dividers in general: tone down insight-item borders and section borders.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Section separators: single faint line, no box-shadow ────────────── */
html.light-mode section:not([class]) {
  border-top: 1px solid rgba(0,0,0,0.07) !important;
  box-shadow: none !important;
}

/* ── 2. beh-cell-edge text stays light against dark olive background ─────── */
html.light-mode .beh-cell-edge .beh-head { color: rgba(198,167,94,0.65) !important; }
html.light-mode .beh-cell-edge .beh-verb,
html.light-mode .beh-verb-edge           { color: rgba(232,228,218,0.88) !important; }
html.light-mode .beh-cell-edge .beh-sub,
html.light-mode .beh-sub-edge            { color: rgba(232,228,218,0.58) !important; }

/* ── 3. Insight-item dividers: faint, not gold-bold ─────────────────────── */
html.light-mode .insight-item           { border-bottom-color: rgba(0,0,0,0.06) !important; }
html.light-mode .insight-item.right-col { border-left-color:   rgba(0,0,0,0.06) !important; }



/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  #progress-bar, #ic-track, .nav-links a::after { transition: none !important; }
}
