/* ═══════════════════════════════════════════════════════════
   paulo-home-editorial.css
   Hero + Gallery + Dossier for paulovila.org — crema/tinta/bronce
   editorial register + generative ribbon/marbled-painting art.
   Approved by Paulo across 7 mockup iterations (Claude Artifact,
   outside this repo) before this real implementation. Tokens are
   prefixed --ed- and classes are prefixed .ed- so nothing here
   collides with the existing dark-theme variables/rules used by
   the zones/AI-chat sections further down this same page.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ed-cream: #f8fafc;
  --ed-cream-2: #f1f5f9;
  --ed-line: #e2e8f0;
  --ed-line-strong: #cbd5e1;
  --ed-ink: #0f172a;
  --ed-ink-2: #020617;
  --ed-line-dark: rgba(237, 230, 216, .14);
  --ed-line-dark-strong: rgba(237, 230, 216, .26);
  --ed-bronze: #8c6b3f;
  --ed-bronze-light: #c9a24a;
  --ed-gold-champagne: #d4af37;
  --ed-gold-glow: rgba(212, 175, 55, 0.18);
  --ed-obsidian: #07090e;
  --ed-rose: #c9836a;
  --ed-steel: #6b7a8f;
  --ed-taupe: #8a8478;
  --ed-ivory: #f8fafc;
  --ed-ivory-dim: #94a3b8;
  --ed-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ed-label: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ed-caps: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Luxury Family Office & Sovereign Desk Badges ───── */
.ed-gold-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 9999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
  font-family: var(--ed-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: #fef08a; margin: 0;
}

.ed-tag-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--ed-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: #94a3b8; margin: 0;
}

.ed-luxury-card {
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12), 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 24px 0 rgba(212, 175, 55, 0.06);
}
.ed-luxury-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.25), 0 24px 48px -12px rgba(212, 175, 55, 0.2), 0 0 32px 0 rgba(212, 175, 55, 0.15);
  transform: translateY(-6px);
}
.ed-luxury-card::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.08), transparent);
  transition: left 0.75s ease;
}
.ed-luxury-card:hover::after { left: 150%; }

.ed-gold-text {
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 60%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Editorial Font Emphasis within Headlines */
.ed-emphasis {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: #f59e0b;
  padding: 0 4px;
}

html[data-theme="light"] .ed-emphasis {
  color: #b45309 !important;
}

/* Shadcn UI Inspired Components */
.sh-card {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sh-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.15);
}

html[data-theme="light"] .sh-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
html[data-theme="light"] .sh-card:hover {
  border-color: rgba(180, 83, 9, 0.4) !important;
  box-shadow: 0 12px 24px rgba(180, 83, 9, 0.1) !important;
}

/* Scroll Reveal Animation */
.ed-reveal {
  animation: edFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes edFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Full Bleed Dark Contrast Interstitial Band (.ed-dark-band) */
.ed-dark-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #0a0d14 !important;
  color: #f8fafc !important;
  padding: 88px 0;
  border-top: 1px solid rgba(245, 158, 11, 0.25) !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.ed-dark-band .ed-emphasis {
  color: #fef08a !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

.ed-hero-media-break img {
  mix-blend-mode: screen;
  filter: contrast(120%) brightness(90%);
  object-fit: cover;
  object-position: center;
}

html[data-theme="light"] .ed-dark-band {
  background: #0a0d14 !important;
  color: #f8fafc !important;
}

html[data-theme="light"] .ed-dark-band .ed-emphasis {
  color: #fef08a !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

html[data-theme="light"] .ed-dark-band h1,
html[data-theme="light"] .ed-dark-band h2,
html[data-theme="light"] .ed-dark-band h3,
html[data-theme="light"] .ed-dark-band h4,
html[data-theme="light"] .ed-dark-band .ed-section-title {
  color: #ffffff !important;
}

html[data-theme="light"] .ed-dark-band p,
html[data-theme="light"] .ed-dark-band .ed-section-desc {
  color: #cbd5e1 !important;
}

/* ── Light Mode Root Background & Text Contrast Invariants (WCAG AAA) ── */
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] #app,
html[data-theme="light"] main,
html[data-theme="light"] .pv-pillar-section,
html[data-theme="light"] .ed-doc:not(.ed-dark-band) {
  background-color: #f4efe7 !important;
  color: #1a1918 !important;
}

/* Light Mode Bento Hero & Typography Contrast */
html[data-theme="light"] .ed-hero-title,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4 {
  color: #0f172a !important;
}

html[data-theme="light"] .ed-hero-desc,
html[data-theme="light"] p {
  color: #334155 !important;
}

/* Light Mode Card Container & Text Contrast Fixes */
html[data-theme="light"] .zone-card,
html[data-theme="light"] .ed-luxury-card,
html[data-theme="light"] .sh-card,
html[data-theme="light"] .pv-calc-card,
html[data-theme="light"] .pv-sprint-box,
html[data-theme="light"] .ed-bento-hero-main,
html[data-theme="light"] .ed-bento-hero-asset {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05) !important;
  color: #1a1918 !important;
}

html[data-theme="light"] .ed-bento-hero-asset {
  background: #ffffff !important;
}

html[data-theme="light"] .ed-gauge-card {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
}

html[data-theme="light"] .ed-gauge-card div {
  color: #0f172a !important;
  opacity: 1 !important;
}

html[data-theme="light"] .ed-gauge-card [style*="color: #d4af37"],
html[data-theme="light"] .ed-gauge-card [style*="color:#d4af37"] {
  color: #b45309 !important;
}

html[data-theme="light"] .zone-card p,
html[data-theme="light"] .zone-card span,
html[data-theme="light"] .zone-card div,
html[data-theme="light"] .ed-luxury-card p,
html[data-theme="light"] .ed-luxury-card span,
html[data-theme="light"] .pv-calc-card p,
html[data-theme="light"] .pv-calc-card label,
html[data-theme="light"] .pv-sprint-box p {
  color: #334155 !important;
  opacity: 1 !important;
}

html[data-theme="light"] .zone-card button,
html[data-theme="light"] .zone-card .btn,
html[data-theme="light"] .zone-card a.btn,
html[data-theme="light"] .pv-calc-card button {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .zone-card button:hover,
html[data-theme="light"] .zone-card .btn:hover {
  background: rgba(180, 83, 9, 0.12) !important;
  border-color: #b45309 !important;
  color: #b45309 !important;
}

html[data-theme="light"] .zone-card .ed-eyebrow,
html[data-theme="light"] .zone-card .ed-gold-badge,
html[data-theme="light"] .zone-card [class*="tag"],
html[data-theme="light"] .zone-card [class*="badge"],
html[data-theme="light"] .ed-bento-hero-main .ed-gold-badge {
  color: #b45309 !important;
  border-color: rgba(180, 83, 9, 0.4) !important;
  background: rgba(180, 83, 9, 0.1) !important;
}

/* ── Dark Mode Invariants (Default Obsidian Shell) ── */
h1, h2, h3, h4,
.pv-section-title,
.ed-section-title,
.pv-card-title,
.ed-bento-hero-main h1 {
  color: #f8fafc !important;
  font-weight: 700;
}

p,
.pv-section-desc,
.ed-section-desc,
.pv-card-desc,
.ed-bento-hero-main p {
  color: #cbd5e1 !important;
  opacity: 1;
}

.ed-emphasis {
  color: #fef08a !important;
}

.pv-card-category { color: #f59e0b; font-weight: 700; }
.pv-card-badge { color: #f59e0b; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); }

/* ── Light Mode Invariants (html[data-theme="light"]) ── */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] .pv-section-title,
html[data-theme="light"] .ed-section-title,
html[data-theme="light"] .pv-card-title,
html[data-theme="light"] .ed-bento-hero-main h1 {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="light"] p,
html[data-theme="light"] .pv-section-desc,
html[data-theme="light"] .ed-section-desc,
html[data-theme="light"] .pv-card-desc,
html[data-theme="light"] .ed-bento-hero-main p {
  color: #334155 !important;
  opacity: 1 !important;
}

html[data-theme="light"] .ed-emphasis {
  color: #b45309 !important;
}

html[data-theme="light"] .pv-card-category {
  color: #b45309 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .pv-card-badge {
  color: #b45309 !important;
  background: rgba(180, 83, 9, 0.12) !important;
  border: 1px solid rgba(180, 83, 9, 0.35) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .pv-card-category {
  color: #b45309 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .pv-card-badge {
  color: #b45309 !important;
  background: rgba(180, 83, 9, 0.12) !important;
  border: 1px solid rgba(180, 83, 9, 0.35) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .pv-studio-card,
html[data-theme="light"] .pv-gpu-simulator-box,
html[data-theme="light"] .pv-calc-box,
html[data-theme="light"] .pv-studio-card.tilt-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05) !important;
  color: #1a1918 !important;
}

html[data-theme="light"] .pv-btn-sm,
html[data-theme="light"] .pv-sim-preset-btn {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .pv-btn-sm:hover,
html[data-theme="light"] .pv-sim-preset-btn:hover {
  color: #b45309 !important;
  background: rgba(180, 83, 9, 0.12) !important;
  border-color: #b45309 !important;
}

/* ── Terminal Box & Code Stream Theme Invariants ── */
.ed-terminal-box,
.ed-terminal-box *,
html[data-theme="light"] .ed-terminal-box,
html[data-theme="light"] .ed-terminal-box * {
  background: #07090e !important;
  color: #f8fafc !important;
}

html[data-theme="light"] .ed-terminal-box .ed-code-cmnt,
.ed-terminal-box .ed-code-cmnt {
  color: #94a3b8 !important;
  font-style: italic !important;
}

html[data-theme="light"] .ed-terminal-box .ed-code-kw,
.ed-terminal-box .ed-code-kw {
  color: #f472b6 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .ed-terminal-box .ed-code-fn,
.ed-terminal-box .ed-code-fn {
  color: #60a5fa !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .ed-terminal-box .ed-code-var,
.ed-terminal-box .ed-code-var {
  color: #f59e0b !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .ed-terminal-box .ed-code-mod,
.ed-terminal-box .ed-code-mod {
  color: #34d399 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .ed-terminal-box .ed-code-str,
.ed-terminal-box .ed-code-str {
  color: #fef08a !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .ed-terminal-box .ed-code-num,
.ed-terminal-box .ed-code-num {
  color: #34d399 !important;
  font-weight: 600 !important;
}

/* ── Phenomenon Studio Motion & Hover Physics ── */
.ph-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ed-luxury-card, .zone-card, .sh-card, .pv-calc-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease !important;
}

.ed-luxury-card:hover, .zone-card:hover, .sh-card:hover, .pv-calc-card:hover {
  transform: translateY(-8px) scale(1.015) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 0 24px rgba(180, 83, 9, 0.18) !important;
}

/* ── SHIVA VARIANT A: THE EDITORIAL EXECUTIVE (Forbes / Vogue C-Suite Magazine) ── */
.shiva-masthead {
  text-align: center;
  padding: 48px 0 24px;
  border-bottom: 2px solid rgba(180, 83, 9, 0.25);
  margin-bottom: 40px;
}

.shiva-masthead-title {
  font-family: 'Georgia', serif;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin: 0;
  color: #0f172a;
}

html[data-theme="dark"] .shiva-masthead-title {
  color: #f8fafc !important;
}

html[data-theme="light"] .shiva-masthead-title {
  color: #0f172a !important;
}

.shiva-masthead-sub {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #d4af37;
  font-weight: 700;
  margin-top: 12px;
}

.shiva-hero-title {
  font-family: 'Georgia', serif !important;
  font-size: clamp(2.6rem, 4.8vw, 4.2rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em !important;
  color: #f8fafc !important;
}

html[data-theme="light"] .shiva-hero-title {
  color: #0f172a !important;
}

html[data-theme="dark"] .shiva-hero-title {
  color: #f8fafc !important;
}

/* ── DEFINITIVE HIGH-CONTRAST MANIFESTO QUOTE BREAK INVARIANT ── */
.shiva-quote-break,
html[data-theme="light"] .shiva-quote-break,
html[data-theme="dark"] .shiva-quote-break {
  background-color: #07090e !important;
  background: #07090e !important;
  color: #ffffff !important;
  padding: 80px 32px !important;
  text-align: center !important;
  border-radius: 32px !important;
  margin: 64px 0 !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
}

.shiva-quote-break .ed-wrap,
html[data-theme="light"] .shiva-quote-break .ed-wrap,
html[data-theme="dark"] .shiva-quote-break .ed-wrap,
.shiva-quote-break * {
  background-color: transparent !important;
  background: transparent !important;
}

.shiva-quote-text,
html[data-theme="light"] .shiva-quote-text,
html[data-theme="dark"] .shiva-quote-text {
  font-family: 'Georgia', serif !important;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
  font-style: italic !important;
  color: #fef08a !important;
  line-height: 1.35 !important;
  margin-bottom: 20px !important;
}

.shiva-quote-author,
html[data-theme="light"] .shiva-quote-author,
html[data-theme="dark"] .shiva-quote-author {
  color: #cbd5e1 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

/* ── SHIVA 100% UNIFIED EDITORIAL MAGAZINE OVERHAUL ── */
.shiva-section-head {
  text-align: center;
  padding: 48px 0 24px;
  border-bottom: 1px solid rgba(180, 83, 9, 0.25);
  margin-bottom: 40px;
}

.shiva-section-head h2 {
  font-family: 'Georgia', serif !important;
  font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
}

html[data-theme="light"] .shiva-section-head h2 {
  color: #0f172a !important;
}

html[data-theme="dark"] .shiva-section-head h2 {
  color: #f8fafc !important;
}

.shiva-section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: #d4af37;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ed-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

.ed-eyebrow {
  font-family: var(--ed-label); font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: #d4af37; margin: 0 0 16px;
}
.ed-eyebrow.ed-on-dark { color: #fef08a; }

/* Hero Bento Grid Equal Height Card Alignment */
.ed-hero-bento-grid {
  display: grid !important;
  grid-template-columns: 1.35fr 1fr !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.ed-bento-hero-main,
.ed-bento-hero-asset {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  padding: 32px !important;
  box-sizing: border-box !important;
}
.ed-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ed-hero .ed-wrap { position: relative; z-index: 2; text-align: center; }
.ed-hero .ed-eyebrow { color: #d4af37; }
.ed-dual-status {
  position: relative; z-index: 2; display: flex; justify-content: center; gap: 16px;
  font-family: var(--ed-caps); font-size: 13px; letter-spacing: .06em; color: #e2e8f0; font-weight: 500;
  margin: 0 0 28px; flex-wrap: wrap;
}
.ed-dual-status i { color: #d4af37; font-style: normal; }
.ed-hero h1 {
  font-family: var(--ed-display); font-weight: 800; font-style: normal;
  font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.1; margin: 0 auto 24px;
  max-width: 900px; text-wrap: balance; letter-spacing: -.035em; color: #ffffff;
}
.ed-sub {
  max-width: 760px; margin: 0 auto 40px; font-size: 1.12rem; color: #cbd5e1;
  line-height: 1.65; font-weight: 400; position: relative; z-index: 2;
}
.ed-cta-row {
  position: relative; z-index: 2; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.ed-cta {
  font-family: var(--ed-label); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
  padding: 16px 36px; border-radius: 9999px; text-decoration: none;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1); display: inline-flex; align-items: center; justify-content: center;
}
.ed-cta-primary {
  color: #07090e; background: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}
.ed-cta-primary:hover { background: #ffffff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255, 255, 255, 0.35); }
.ed-cta-gold {
  background: rgba(212, 175, 55, 0.2); border: 1px solid rgba(212, 175, 55, 0.6); color: #fef08a;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}
.ed-cta-gold:hover { background: rgba(212, 175, 55, 0.3); border-color: rgba(212, 175, 55, 0.8); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35); }
/* ── DEFINITIVE HIGH-CONTRAST ED-CTA-GHOST INVARIANT ── */
.ed-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

html[data-theme="light"] .ed-cta-ghost {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] .ed-cta-ghost:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25) !important;
}

html[data-theme="dark"] .ed-cta-ghost {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

html[data-theme="dark"] .ed-cta-ghost:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* ── section rhythm ─────────────────────────────────────── */
.ed-doc-head { text-align: center; margin-bottom: 44px; }
.ed-doc-head h2 {
  font-family: var(--ed-display); font-style: normal; font-weight: 800;
  font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 12px; letter-spacing: -.03em; text-wrap: balance;
  color: var(--ed-ivory);
}
.ed-on-dark .ed-doc-head h2, .ed-doc.ed-on-dark .ed-doc-head h2 { color: var(--ed-ivory); }

/* ── gallery: 3 generative marbled paintings ────────────── */
.ed-gallery { padding: 88px 0; background: var(--ed-cream); color: var(--ed-ink); }
.ed-gallery-note {
  max-width: 620px; margin: 0 auto 44px; text-align: center; font-family: var(--ed-label);
  font-weight: 300; font-size: 14.5px; line-height: 1.8; color: var(--ed-taupe);
}
.ed-frames { max-width: 1040px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ed-frame { margin: 0; background: var(--ed-ink); padding: 12px 12px 18px; box-shadow: 0 22px 46px -26px rgba(11, 14, 19, .4); }
.ed-frame canvas { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 1px; }
.ed-frame figcaption { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px 2px; border-top: 1px solid var(--ed-line-dark); }
.ed-frame figcaption b { font-family: var(--ed-display);  font-weight: 400; font-size: 14.5px; color: var(--ed-ivory); }
.ed-frame figcaption span { font-family: var(--ed-caps); font-size: 10px; letter-spacing: .1em; color: var(--ed-ivory-dim); }
@media (max-width: 820px) { .ed-frames { grid-template-columns: 1fr; } }

/* ── dossier: rail + folio over ink ─────────────────────── */
.ed-doc { padding: 96px 0; }
.ed-doc.ed-on-dark { background: var(--ed-ink); position: relative; overflow: hidden; color: var(--ed-ivory); }
.ed-doc.ed-on-dark canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.ed-doc.ed-on-dark .ed-wrap { position: relative; z-index: 2; }

.ed-stat-strip {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 992px) {
  .ed-stat-strip {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.ed-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
  border-radius: 16px;
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ed-stat .v {
  display: block;
  font-family: var(--ed-display);
  font-size: 26px;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1.1;
}

.ed-stat .k {
  display: block;
  font-family: var(--ed-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94a3b8;
  margin-top: 8px;
  line-height: 1.35;
}

.ed-scroll-hint {
  position: relative; z-index: 2; text-align: center; font-family: var(--ed-caps); font-size: 10.5px;
  letter-spacing: .08em; color: var(--ed-taupe); margin: 28px 0 28px;
}
@media (min-width: 801px) { .ed-scroll-hint { display: none; } }

.ed-dossier {
  position: relative; z-index: 2; display: grid; grid-template-columns: 280px 1fr; gap: 0;
  border-top: 1px solid var(--ed-line-dark); border-bottom: 1px solid var(--ed-line-dark);
  background: rgba(11, 14, 19, .55); backdrop-filter: blur(2px);
}
@media (max-width: 800px) { .ed-dossier { grid-template-columns: 1fr; } }

.ed-chapters { border-right: 1px solid var(--ed-line-dark); padding: 8px 0; }
@media (max-width: 800px) {
  .ed-chapters { border-right: none; border-bottom: 1px solid var(--ed-line-dark); display: flex; overflow-x: auto; }
}
.ed-chap {
  display: flex; align-items: baseline; gap: 16px; width: 100%; text-align: left;
  background: none; border: none; color: var(--ed-ivory-dim); font: inherit; cursor: pointer;
  padding: 20px 32px; font-family: var(--ed-label); white-space: nowrap;
}
.ed-chap:hover { color: var(--ed-ivory); }
.ed-chap.active { color: var(--ed-ivory); }
.ed-chap .num { font-family: var(--ed-display);  font-size: 15px; color: var(--ed-bronze-light); min-width: 22px; }
.ed-chap .lbl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ed-chap .lbl b { font-weight: 400; font-size: 13.5px; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-chap .lbl small { font-family: var(--ed-caps); font-size: 10.5px; letter-spacing: .06em; color: var(--ed-taupe); }
.ed-chap.active .lbl b { color: var(--ed-ivory); }

.ed-folio { padding: 56px 60px; min-height: 260px; }
@media (max-width: 640px) { .ed-folio { padding: 40px 26px; } }
.ed-folio .org { font-family: var(--ed-caps); font-size: 12px; letter-spacing: .14em; color: var(--ed-bronze-light); margin-bottom: 10px; }
.ed-folio h3 {
  font-family: var(--ed-display);  font-weight: 400; font-size: clamp(22px, 2.8vw, 30px);
  margin: 0 0 10px; color: var(--ed-ivory); letter-spacing: -.005em; text-wrap: balance;
}
.ed-folio .meta { font-family: var(--ed-caps); font-size: 11px; letter-spacing: .08em; color: var(--ed-taupe); margin: 0 0 24px; }
.ed-folio .narrative {
  font-family: var(--ed-label); font-weight: 300; font-size: 15px; line-height: 1.85;
  color: var(--ed-ivory-dim); max-width: 56ch; margin: 0 0 28px;
}
.ed-chips { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ed-chips span {
  font-family: var(--ed-caps); font-size: 11px; letter-spacing: .06em; color: var(--ed-ivory-dim);
  position: relative; padding-left: 14px;
}
.ed-chips span::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 1px; background: var(--ed-bronze-light);
  transform: translateY(-50%);
}

.ed-doc .ed-cta-row { padding: 44px 0 0; border-top: 1px solid var(--ed-line-dark); margin-top: 44px; }
.ed-skills-index { position: relative; z-index: 2; border-top: 1px solid var(--ed-line-dark); padding: 40px 0 8px; margin-top: 40px; }
.ed-skills-index .ed-chips span { color: var(--ed-ivory-dim); }

/* ═══════════════════════════════════════════════════════════
   3 PILLARS ARCHITECTURE & LOCAL GPU STUDIO PLAYGROUND STYLES
   ═══════════════════════════════════════════════════════════ */

/* Pillar Sticky Header Bar */
.pv-pillars-nav {
  position: sticky;
  top: 5rem;
  z-index: 35;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 10px 0;
}
.pv-pillars-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pv-pillars-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pv-pillar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-family: var(--ed-label);
  font-size: 0.88rem;
  font-weight: 600;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.pv-pillar-btn:hover, .pv-pillar-btn.active {
  color: #fef08a;
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}
.pv-gpu-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--ed-label);
  font-size: 0.76rem;
  color: #10b981;
  font-weight: 600;
}
.pv-gpu-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pvPulseGpu 2s infinite alternate;
}
@keyframes pvPulseGpu { 0% { opacity: 0.4; } 100% { opacity: 1; } }

@media (max-width: 768px) {
  .pv-pillars-nav {
    top: 3.2rem;
    padding: 6px 0;
  }
  .pv-pillars-inner {
    padding: 0 8px;
    width: 100%;
    overflow: hidden;
  }
  .pv-pillars-links {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    gap: 6px !important;
    padding-bottom: 2px;
  }
  .pv-pillars-links::-webkit-scrollbar {
    display: none;
  }
  .pv-pillar-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .pv-gpu-status-pill, .pv-desktop-only-pill {
    display: none !important;
  }
}

/* Section Header Dividers */
.pv-pillar-section {
  padding: 40px 0;
  position: relative;
  scroll-margin-top: 80px;
}
.pv-pillar-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.pv-pillar-tag {
  font-family: var(--ed-caps);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #d4af37;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  text-transform: uppercase;
}

/* Local GPU Studio Gallery Cards */
.pv-studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}
.pv-studio-card {
  background: rgba(13, 17, 26, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pv-studio-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(212, 175, 55, 0.15);
}
.pv-studio-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.pv-studio-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pv-tech-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #d4af37;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pv-studio-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pv-btn-sm {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
}
.pv-btn-sm:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  color: #d4af37;
}

/* Prompt Inspector Box */
.pv-prompt-inspector {
  background: rgba(7, 9, 14, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 8px;
  display: none;
}
.pv-prompt-inspector.active {
  display: block;
}

/* Local GPU Interactive Prompt Simulator */
.pv-gpu-simulator-box {
  background: rgba(13, 17, 26, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 32px;
  margin-top: 40px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.6);
}
.pv-sim-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.pv-sim-preset-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-family: inherit;
  outline: none;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pv-sim-preset-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  color: #d4af37;
}
.pv-sim-input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pv-sim-input {
  flex: 1;
  min-width: 260px;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  color: #f8fafc;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}
.pv-sim-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

/* Latency & Cost Calculator */
.pv-calc-box {
  background: rgba(13, 17, 26, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 36px;
  margin: 48px 0;
}
#calc-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.2);
  outline: none;
  transition: all 0.2s ease;
}
#calc-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fce09b 0%, #d4af37 100%);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.7);
  cursor: pointer;
  border: 2px solid #07090e;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.9);
}
.pv-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.pv-calc-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 9, 14, 0.6);
}
.pv-calc-card.sovereign {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.05);
}

/* Strategy Sprint Simulator */
.pv-sprint-box {
  background: rgba(13, 17, 26, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 36px;
  margin: 48px 0;
}
.pv-sprint-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.pv-sprint-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pv-sprint-tab.active, .pv-sprint-tab:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  color: #d4af37;
}
.pv-sprint-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.pv-sprint-day-card {
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 16px;
}
.pv-sprint-day-card h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d4af37;
  margin: 0 0 6px;
}

/* ═══════════════════════════════════════════════════════════
   EXECUTIVE LIGHT MODE (Apple-inspired Clean Aesthetic)
   High-Contrast, Ultra-Clean Typography & Layout
   ═══════════════════════════════════════════════════════════ */
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] #pillar-story,
html[data-theme="light"] #pillar-cv,
html[data-theme="light"] #pillar-playground,
html[data-theme="light"] .ed-doc {
  background-color: #fbfbfd !important;
  color: #1d1d1f !important;
}

/* Light Mode Navigation */
html[data-theme="light"] .pv-pillars-nav {
  background: rgba(251, 251, 253, 0.8) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .pv-pillar-btn {
  color: #1d1d1f !important;
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid transparent !important;
}
html[data-theme="light"] .pv-pillar-btn:hover,
html[data-theme="light"] .pv-pillar-btn.active {
  color: #000000 !important;
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Light Mode Cards, Simulators & Containers */
html[data-theme="light"] .ed-luxury-card,
html[data-theme="light"] .pillar-card,
html[data-theme="light"] .ed-bento-hero-asset,
html[data-theme="light"] .pv-studio-card,
html[data-theme="light"] .pv-gpu-simulator-box,
html[data-theme="light"] .pv-calc-box,
html[data-theme="light"] .pv-sprint-box,
html[data-theme="light"] .pv-sprint-day-card,
html[data-theme="light"] .pv-calc-card,
html[data-theme="light"] .ed-gauge-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  color: #1d1d1f !important;
}

html[data-theme="light"] .pv-calc-card.sovereign {
  background: rgba(16, 185, 129, 0.04) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

/* Light Mode Sprint Tabs */
html[data-theme="light"] .pv-sprint-tab {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}
html[data-theme="light"] .pv-sprint-tab:hover,
html[data-theme="light"] .pv-sprint-tab.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

/* Light Mode Typography Contrast */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] .pillar-name,
html[data-theme="light"] .ed-h2,
html[data-theme="light"] .pv-sprint-day-card h4 {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="light"] p,
html[data-theme="light"] .pillar-desc,
html[data-theme="light"] .ed-sub,
html[data-theme="light"] .pv-sprint-day-card p,
html[data-theme="light"] .pv-calc-card p,
html[data-theme="light"] .pv-calc-card ul,
html[data-theme="light"] .pv-calc-card li {
  color: #475569 !important;
  font-weight: 400 !important;
}

/* Light Mode Badges & Clean Accents */
html[data-theme="light"] .ed-gold-badge,
html[data-theme="light"] .pv-pillar-tag,
html[data-theme="light"] .ed-eyebrow,
html[data-theme="light"] .ed-tag-secondary {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: none !important;
}

/* Reset Hero Section Background & Principles Dividers in Light Mode (Warm Parchment) */
html[data-theme="light"] .ed-hero,
html[data-theme="light"] #pillar-story {
  background-color: #f4efe7 !important;
}

html[data-theme="light"] .ed-principles-section {
  background-color: #f4efe7 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Light Mode AI Chat Box & Bubbles (Zero Gray-on-Gray) */
html[data-theme="light"] .ai-section {
  background-color: #f4efe7 !important;
}
html[data-theme="light"] .chat-container {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .chat-header-bar {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .chat-header-bar h2 {
  color: #0f172a !important;
}
html[data-theme="light"] .bubble.assistant {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .bubble.assistant *,
html[data-theme="light"] .bubble.assistant p,
html[data-theme="light"] .bubble.assistant strong {
  color: #0f172a !important;
}
html[data-theme="light"] .bubble.user {
  background: #0f172a !important;
  color: #ffffff !important;
}
html[data-theme="light"] .input-group {
  background: #f8fafc !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .prompt-chip {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  color: #334155 !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .prompt-chip:hover {
  background: #0f172a !important;
  color: #ffffff !important;
}
html[data-theme="light"] textarea {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  color: #0f172a !important;
}
html[data-theme="light"] textarea::placeholder {
  color: #64748b !important;
}
html[data-theme="light"] .ai-disclaimer {
  color: #64748b !important;
}

/* Light Mode Zone Navigation Cards (#zones) */
html[data-theme="light"] .zone-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .zone-card h3 {
  color: #0f172a !important;
}
html[data-theme="light"] .zone-card p {
  color: #475569 !important;
}
html[data-theme="light"] .zone-arrow {
  color: #b45309 !important;
}
html[data-theme="light"] .zone-icon {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .zone-icon svg {
  stroke: #0f172a !important;
}

/* Light Mode Dossier & CV Section (#dossier) */
html[data-theme="light"] .ed-doc.ed-on-dark,
html[data-theme="light"] #dossier,
html[data-theme="light"] .ed-dossier {
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .ed-chapters {
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #f8fafc !important;
}

html[data-theme="light"] .ed-chap {
  color: #475569 !important;
}
html[data-theme="light"] .ed-chap:hover,
html[data-theme="light"] .ed-chap.active {
  background: #ffffff !important;
  color: #0f172a !important;
  border-left: 3px solid #b45309 !important;
}
html[data-theme="light"] .ed-chap .lbl b {
  color: #0f172a !important;
}
html[data-theme="light"] .pv-pillar-tag {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .ed-stat {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
html[data-theme="light"] .ed-stat-strip {
  border-bottom: none !important;
}
html[data-theme="light"] .ed-stat .v {
  color: #b45309 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .ed-stat .k {
  color: #1e293b !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .ed-chap .lbl small,
html[data-theme="light"] .ed-chap .num {
  color: #b45309 !important;
}

html[data-theme="light"] .ed-folio {
  background: #ffffff !important;
  color: #0f172a !important;
}
html[data-theme="light"] .ed-folio h3 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .ed-folio .org,
html[data-theme="light"] .ed-folio .meta {
  color: #b45309 !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .ed-folio .narrative,
html[data-theme="light"] .ed-folio p,
html[data-theme="light"] .ed-folio ul,
html[data-theme="light"] .ed-folio li {
  color: #334155 !important;
}
html[data-theme="light"] .ed-chips span {
  color: #475569 !important;
}
html[data-theme="light"] .ed-chips span::before {
  background: #b45309 !important;
}

/* Light Mode OS-v3 Shared Footer Bar */
html[data-theme="light"] .footer,
html[data-theme="light"] footer {
  background: #f8fafc !important;
  color: #334155 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .footer-link,
html[data-theme="light"] .footer-copy,
html[data-theme="light"] .footer-copy-text,
html[data-theme="light"] .footer-meta-row {
  color: #334155 !important;
}
html[data-theme="light"] .footer-btn,
html[data-theme="light"] .footer-metric {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE & IFRAME OVERRIDES (< 768px / 393px IFRAME)
   ═══════════════════════════════════════════════════════════ */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}
*, *:before, *:after {
  box-sizing: border-box;
}
.page-container, .ed-wrap, main, section, iframe, embed, object {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.shiva-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .shiva-3col-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 768px) {
  .shiva-masthead-title {
    font-size: 2.2rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
  }
  .shiva-masthead-sub {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
  .shiva-hero-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }
  .shiva-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .shiva-hero-grid > div:last-child {
    border-left: none !important;
    border-top: 2px solid rgba(180, 83, 9, 0.25);
    padding-left: 0 !important;
    padding-top: 24px;
  }
  .shiva-4col-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .shiva-4col-grid > div {
    border-right: none !important;
    border-bottom: 1px solid rgba(180, 83, 9, 0.15);
    padding-right: 0 !important;
    padding-bottom: 20px;
  }
  .shiva-4col-grid > div:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
  }
  .ed-wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-top: 20px !important;
    margin-bottom: 36px !important;
  }
  .page-container {
    width: 100% !important;
    padding: 12px !important;
  }
  .pv-bento-grid, .pv-studio-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .ed-dark-band {
    padding: 48px 16px !important;
  }
}

