/* ============================================================
   BrentAI.ca — Master Stylesheet v2.0
   Christine Visual Package v2.0 — Three-View Toggle
   EGAN PRICE Standard
   ============================================================ */

/* 127 — Mersenne */

/* === Three-View Color System === */

:root {
  /* Global material tokens (Gemini v3.0.0 pack) */
  --color-slate: #2F3341;
  --color-navy-deep: #1A1D29;
  --color-limestone: #E8E9EB;
  --color-brushed-bronze: #C7A66A;
  --color-muted-teal: #2E6F7E;
  --color-deep-indigo: #2F3B67;
  --color-active-gold: #FFD700;
}

:root,
.view-general {
  --bg-primary: #0A0F1A;
  --bg-alt: #1B2A4A;
  --bg-deep: #050810;
  --gold: #C9A227;
  --gold-hover: #D4B84A;
  --text-cream: #FAF8F5;
  --heading-cream: #FAF8F5;
  --stat-color: #C9A227;
  --text-muted: #8B8D94;
  --border: #2A2F3E;
  --success: #2E7D4F;
  --warning: #B8860B;
  --error: #8B2500;
  --overlay-opacity: 0.6;
  --card-border-opacity: 0.2;
  --font-body-override: 'Source Serif 4', Georgia, serif;
}

.view-family {
  /* Family View — Warm, Inclusive, Community */
  --bg-primary: #FFF8F0;      /* Warm cream */
  --bg-alt: #FDF0E0;          /* Sandy warmth */
  --bg-deep: #2C1810;         /* Deep brown */
  --gold: #D4A843;            /* Amber gold */
  --gold-hover: #E0BA5A;
  --text-cream: #3D2B1F;      /* Dark brown text */
  --heading-cream: #3D2B1F;
  --stat-color: #D4A843;
  --text-muted: #9B7F63;
  --border: #E8D5C0;
  --overlay-opacity: 0.5;
  --card-border-opacity: 0.25;
  --font-body-override: 'Source Serif 4', Georgia, serif;
}

.view-technocrat {
  --bg-primary: #050810;
  --bg-alt: #0A1020;
  --bg-deep: #030508;
  --gold: #C9A227;
  --gold-hover: #D4B84A;
  --text-cream: #C0C0C0;
  --heading-cream: #E0E0E0;
  --stat-color: #10B981;
  --text-muted: #707070;
  --border: #1A1F2E;
  --overlay-opacity: 0.75;
  --card-border-opacity: 0.15;
  --font-body-override: 'JetBrains Mono', monospace;
}

/* === Fonts === */

:root {
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Barlow Condensed', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --font-stat: 'Cinzel', Georgia, serif;
}

/* View-specific font stacks per spec */
body.view-general {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body-override: 'Inter', sans-serif;
}

body.view-family {
  --font-display: 'Nunito', sans-serif;
  --font-body-override: 'Nunito Sans', sans-serif;
}

body.view-technocrat {
  --font-display: 'JetBrains Mono', monospace;
  --font-body-override: 'IBM Plex Mono', monospace;
}

/* === Reset === */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body-override);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-cream);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus { color: var(--gold-hover); }

/* === Lab view-content visibility (Lab v1.3) === */
body.view-general .view-content.view-family,
body.view-general .view-content.view-technocrat { display: none; }
body.view-family .view-content.view-general,
body.view-family .view-content.view-technocrat { display: none; }
body.view-technocrat .view-content.view-general,
body.view-technocrat .view-content.view-family { display: none; }
/* Acid Test has no view-family — fallback to general */
body.view-family #acid-test .view-content.view-general { display: block; }

/* === Lab Acid Test (Lab v1.3) === */
.acid-test-container {
  margin: 2rem 0;
  padding: 2rem;
  border: 1px solid var(--accent, #C9A84C);
  border-radius: 12px;
}
body.view-technocrat .acid-test-container {
  background: #1a1a2e;
  border-color: #00FF41;
  font-family: 'JetBrains Mono', monospace;
}
body.view-technocrat #acid-test-output pre {
  color: #00FF41;
  background: #0a0a0a;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  overflow-x: auto;
}
.btn-acid-test {
  background: var(--accent, #C9A84C);
  color: #0a0a0a;
  border: none;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
}
.btn-acid-test:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
body.view-technocrat .btn-acid-test {
  background: #00FF41;
  color: #0a0a0a;
  font-family: 'JetBrains Mono', monospace;
}
.acid-test-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* === Typography === */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
}

h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }

h3 {
  font-family: var(--font-body-override);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--heading-cream);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

h4, h5, h6 {
  font-family: var(--font-body-override);
  color: var(--heading-cream);
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1.25rem; }

.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.caption {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.stat-number {
  font-family: var(--font-stat);
  font-size: 4rem;
  font-weight: 700;
  color: var(--stat-color);
  line-height: 1;
}

code, pre {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--gold);
}

pre {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
}

/* === Layout === */

.brentai-theme { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow { max-width: 800px; }

/* MAEGM v1.6 white paper — tables and content */
.maegm-wp { margin: 0; }
.maegm-wp-meta { color: var(--text-muted, #8B8D94); font-size: 0.95rem; margin-bottom: 1.5rem; }
.maegm-wp-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
.maegm-wp-table th, .maegm-wp-table td { border: 1px solid var(--border-color, #2A2F3E); padding: 0.5rem 0.75rem; text-align: left; }
.maegm-wp-table th { background: var(--bg-alt); font-weight: 600; }
.maegm-wp-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.maegm-wp h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.maegm-wp h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.maegm-wp hr { margin: 2rem 0; border-color: var(--border-color, #2A2F3E); }

/* Lab-7 (and generic content pages): hero must not cover content — surgical fix for blue overlay */
.hero.hero-page.hero-page-content {
  min-height: 35vh !important;
  max-height: 50vh !important;
  position: relative;
  z-index: 0;
}
body.page-id-26748 .hero.hero-page.hero-page-content,
body.page-id-26758 .hero.hero-page.hero-page-content {
  min-height: 35vh !important;
  max-height: 45vh !important;
}
body.page-id-26748 .site-main > .section,
body.page-id-26758 .site-main > .section,
.site-main .page-content-section {
  position: relative;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.site-main .page-content-section .container {
  opacity: 1 !important;
  transform: none !important;
}

.section { padding: 2.5rem 0; }
.section-alt { background-color: var(--bg-alt); }
.section-deep { background-color: var(--bg-deep); }
.section-header { margin-bottom: 3rem; }
.section-header-center { text-align: center; }

/* === Full-viewport sections (HQ) === */

.section-full {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.section-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* === Scroll Reveal === */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Grid === */

.grid { display: grid; gap: 1.5rem; }

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

/* === Cards === */

.card {
  background-color: var(--bg-alt);
  border: 1px solid rgba(201, 162, 39, var(--card-border-opacity));
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.1);
}

.card-title {
  font-family: var(--font-body-override);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading-cream);
  margin-bottom: 0.5rem;
}

.card-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-body {
  color: var(--text-cream);
  font-size: 1rem;
  line-height: 1.65;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.6);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.badge-available {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  border-color: var(--gold);
}

.badge-coming {
  background: rgba(139, 141, 148, 0.15);
  color: var(--text-muted);
  border-color: var(--text-muted);
}

/* === Series Cards (Netflix 2:3 portrait) === */

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.series-sort-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.series-sort-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  padding: 0.2rem;
}

.series-sort-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.series-sort-button {
  border: none;
  background: transparent;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.series-sort-button.is-active {
  background: var(--color-active-gold);
  color: #000;
}

.series-card {
  background: var(--bg-alt);
  border: 1px solid rgba(201, 162, 39, var(--card-border-opacity));
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.series-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.2);
  transform: translateY(-3px);
}

.series-card-poster {
  aspect-ratio: 2/3;
  background: var(--bg-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.series-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.series-card-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.series-card .card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.series-card .card-body {
  font-size: 0.95rem;
  line-height: 1.6;
}

.series-tier-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  color: #000;
}

.series-tier-familiarity {
  background-color: var(--color-brushed-bronze);
}

.series-tier-identity {
  background-color: var(--color-muted-teal);
  color: #E8F5F8;
}

.series-tier-vulnerability {
  background-color: var(--color-deep-indigo);
  color: #E5E7FF;
}

.series-continue {
  margin-top: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brushed-bronze);
}

.reader-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-active-gold), var(--gold));
  z-index: 120;
}

.thesis-reader .reader-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.reader-header-main {
  flex: 1;
}

.reader-header-progress-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.reader-release-smallcaps {
  font-variant-caps: small-caps;
}

.reader-nav {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-brushed-bronze);
}

.reader-nav a {
  color: inherit;
}

.reader-nav a:hover {
  color: var(--gold);
}

/* === Exhibit Gallery (horizontal cards) === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--bg-alt);
  border: 1px solid rgba(201, 162, 39, var(--card-border-opacity));
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.gallery-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.18);
  transform: translateY(-2px);
}

.gallery-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-deep);
  overflow: hidden;
}

.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.gallery-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

/* === Canon Layer Bands === */

.canon-layer-stack { display: flex; flex-direction: column; gap: 0; }

.canon-layer {
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: background 0.3s ease;
}

.canon-layer-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 3rem;
  text-align: center;
}

.canon-layer-content { flex: 1; }

.canon-layer-l7 { background: rgba(10, 15, 26, 0.9); }
.canon-layer-l6 { background: rgba(15, 25, 50, 0.9); }
.canon-layer-l5 { background: rgba(30, 50, 80, 0.9); }
.canon-layer-l4 {
  background: rgba(40, 45, 30, 0.9);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 3rem 1.5rem;
}
.canon-layer-l3 { background: rgba(50, 40, 20, 0.9); }
.canon-layer-l2 { background: rgba(45, 35, 18, 0.9); }
.canon-layer-l1 { background: rgba(40, 30, 15, 0.9); }

.canon-layer-l7 .canon-layer-number { color: #8BA0C0; }
.canon-layer-l6 .canon-layer-number { color: #7090B0; }
.canon-layer-l5 .canon-layer-number { color: #6080A0; }
.canon-layer-l4 .canon-layer-number { color: var(--gold); }
.canon-layer-l3 .canon-layer-number { color: #C09030; }
.canon-layer-l2 .canon-layer-number { color: #A07828; }
.canon-layer-l1 .canon-layer-number { color: #906820; }

/* === Vault Fade-in === */

.vault-reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.vault-reveal.is-visible {
  opacity: 1;
}

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--bg-primary);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-cream);
}

.btn-ghost:hover, .btn-ghost:focus {
  border-color: var(--gold);
  color: var(--gold);
}

/* === Header === */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-cream);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover, .header-nav a:focus, .header-nav a.current {
  color: var(--gold);
}

/* === View Toggle (Header) === */

.view-toggle {
  display: flex;
  gap: 0.25rem;
  margin-left: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px;
}

.view-toggle button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.view-toggle button:hover { color: var(--text-cream); }

.view-toggle button.active {
  background: var(--gold);
  color: var(--bg-primary);
}

/* === Mobile Nav === */

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 1024px) {
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    transition: right 0.3s ease;
    z-index: 200;
  }

  .header-nav.is-open { right: 0; }
  .mobile-toggle { display: block; z-index: 300; }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.is-visible { opacity: 1; pointer-events: auto; }

  .view-toggle { margin-left: 0; margin-top: 1rem; }
}

/* === Footer === */

.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
}

.footer-gold-lines {
  display: none;
}

.footer-gold-line {
  height: 1px;
  background: var(--gold);
  opacity: 0.1;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.8;
}

.footer-nav a:hover { color: var(--gold); opacity: 1; }

.footer-legal {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2rem;
  text-align: center;
}

.footer-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 1.25rem;
  text-align: center;
}

/* Footer refinements — small-print legal, hide stray <hr> */
.site-legal-footer p {
  font-size: 0.7rem;
  line-height: 1.3;
  opacity: 0.7;
  font-weight: 400;
  margin: 0.25rem 0;
}

.site-footer .footer-nav a {
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-social-wrapper {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.footer-social {
  display: inline-flex;
  gap: 0.75rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-social-icon {
  display: inline-block;
  line-height: 1;
}

.site-footer hr,
footer hr {
  display: none;
}

/* === Accessibility === */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  padding: 1rem 1.5rem;
  background: var(--gold);
  color: var(--bg-primary);
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
}

*:focus-visible {
  outline: 2px solid var(--color-brushed-bronze);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

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

/* === Utilities === */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }

/* === Gold accent border === */

.gold-border-left {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}

/* === Family View — Light Theme Enforcement (#FFFBF0, NEVER dark) === */

body.view-family {
  background-color: #FFFBF0 !important;
  color: #3D2B1F;
}

body.view-family .section,
body.view-family .section-full,
body.view-family .section-alt,
body.view-family .section-deep {
  background-color: #FFFBF0;
  color: #3D2B1F;
}

body.view-family .section-alt {
  background-color: #FDF0E0;
}

body.view-family .hero-page .hero-overlay {
  background: linear-gradient(180deg, rgba(255,251,240,0) 0%, rgba(255,251,240,0.85) 100%);
}

body.view-family .site-footer {
  background-color: #F5EDE0;
  color: #3D2B1F;
}

body.view-family .card {
  background: #fff;
  border-color: #E8D5C0;
  color: #3D2B1F;
}

body.view-family .btn-primary {
  background: #D4A843;
  color: #3D2B1F;
  border-color: #D4A843;
}

body.view-family .btn-primary:hover {
  background: #E0BA5A;
  border-color: #E0BA5A;
}

body.view-family h1,
body.view-family h2,
body.view-family h3,
body.view-family h4 {
  color: #3D2B1F;
}

body.view-family .text-muted {
  color: #9B7F63;
}

body.view-family .footer-legal,
body.view-family .footer-meta,
body.view-family .site-legal-footer {
  color: #6B5A4A;
}

body.view-family a {
  color: #B8860B;
}

body.view-family a:hover {
  color: #D4A843;
}

/* Family view layout tightening */
body.view-family .section,
body.view-family .section-full,
body.view-family .section-alt,
body.view-family .section-deep {
  padding: 2.5rem 0;
}

/* Hero stat labels (FRT / MAEGM / EGAN) */
.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.view-family .hero-stat-label {
  font-size: 1.2rem;
}

/* === Technocrat Circuit Board Overlay === */

body.view-technocrat .hero::before,
body.view-technocrat .section-full::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16,185,129,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.3) 1px, transparent 1px),
    radial-gradient(circle 2px at 50% 50%, rgba(16,185,129,0.4) 1px, transparent 2px);
  background-size: 60px 60px, 60px 60px, 120px 120px;
}

body.view-technocrat .section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16,185,129,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.2) 1px, transparent 1px);
  background-size: 80px 80px;
}

body.view-technocrat .section,
body.view-technocrat .section-full {
  position: relative;
}

/* === Floating Math Symbols (Technocrat) === */

@keyframes floatMath {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
  50% { transform: translateY(-20px) rotate(5deg); opacity: 0.1; }
}

body.view-technocrat .hero::after {
  content: '\u03A3  \u03C0  \u222B  \u221A  G(n)  P(7)  2\u207F-1';
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  z-index: 0;
  text-align: center;
  font-family: var(--font-code);
  font-size: 1.2rem;
  letter-spacing: 2rem;
  color: var(--stat-color);
  opacity: 0.06;
  pointer-events: none;
  animation: floatMath 8s ease-in-out infinite;
}

/* === Economy Ticker === */

.economy-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--stat-color);
  overflow: hidden;
}

.economy-ticker .tick-item {
  white-space: nowrap;
}

.economy-ticker .tick-arrow {
  color: var(--gold);
  font-size: 0.7rem;
}

body.view-family .economy-ticker {
  font-family: var(--font-body-override);
  color: #B8860B;
}

/* === Credibility Badges === */

.cred-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s;
}

.cred-badge:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cred-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.cred-badge .badge-dot.prep {
  background: var(--warning);
}

/* === Terminal Typing Effect === */

.terminal-block {
  background: #0a0a0a;
  border: 1px solid #1a2a1a;
  border-radius: 8px;
  padding: 2rem;
  font-family: var(--font-code);
  font-size: 0.9rem;
  line-height: 1.8;
  color: #00FF41;
  position: relative;
  overflow: hidden;
}

.terminal-block::before {
  content: '> brentai --origin';
  display: block;
  color: #555;
  margin-bottom: 1rem;
}

.terminal-line {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.terminal-line.typed {
  opacity: 1;
  transform: translateX(0);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: #00FF41;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

body.view-general .terminal-block {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text-cream);
}

body.view-general .terminal-block::before {
  color: var(--text-muted);
}

body.view-family .terminal-block {
  background: #FDF0E0;
  border-color: #E8D5C0;
  color: #3D2B1F;
}

body.view-family .terminal-block::before {
  color: #9B7F63;
  content: 'The Story';
}

/* === Frosted Glass === */

.frosted-glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10,15,26,0.7);
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: 12px;
  padding: 2rem;
}

body.view-family .frosted-glass {
  background: rgba(255,251,240,0.85);
  border-color: #E8D5C0;
}

/* === Netflix Horizontal Scroll === */

.hscroll-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.hscroll-row::-webkit-scrollbar { height: 4px; }
.hscroll-row::-webkit-scrollbar-track { background: transparent; }
.hscroll-row::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

.hscroll-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-alt);
  border: 1px solid rgba(201,162,39,var(--card-border-opacity));
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.2s;
}

.hscroll-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.lab-card-media {
  width: 100%;
  height: 180px;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
}

.lab-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Lab SLIP section — no forced viewport height */
.lab-product#slip {
  min-height: auto;
  padding: 3rem 2rem;
}

/* CTA grid (HQ footer CTA buttons) */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 600px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

/* === Tier Buttons (Vault) === */

.tier-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-cream);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.tier-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 15px rgba(201,162,39,0.15);
}

.tier-btn.tier-platinum { border-color: #E5E4E2; color: #E5E4E2; }
.tier-btn.tier-gold { border-color: #C9A227; color: #C9A227; }
.tier-btn.tier-silver { border-color: #C0C0C0; color: #C0C0C0; }

/* Lab licensing / status block — small print */
.lab-disclaimer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Email Cards (Signal) === */

.email-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 2px solid transparent;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
}

.email-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.email-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

.email-card.ec-brent { border-color: #C9A227; }
.email-card.ec-brent .email-card-icon { background: #C9A227; }
.email-card.ec-info { border-color: #3B82F6; }
.email-card.ec-info .email-card-icon { background: #3B82F6; }
.email-card.ec-gov { border-color: #10B981; }
.email-card.ec-gov .email-card-icon { background: #10B981; }
.email-card.ec-press { border-color: #8B5CF6; }
.email-card.ec-press .email-card-icon { background: #8B5CF6; }
.email-card.ec-comms { border-color: #F59E0B; }
.email-card.ec-comms .email-card-icon { background: #F59E0B; }
.email-card.ec-sdk { border-color: #EF4444; }
.email-card.ec-sdk .email-card-icon { background: #EF4444; }

/* Hide QR placeholder until real asset exists */
.whatsapp-qr-placeholder {
  display: none;
}

/* === Audience Toggle (Division) === */

.audience-toggle {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  width: fit-content;
}

.audience-toggle button {
  background: none;
  border: none;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.audience-toggle button.active {
  background: var(--gold);
  color: var(--bg-primary);
}

/* === Condorcet Timeline === */

.condorcet-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.ct-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  position: relative;
}

.ct-node-value {
  font-family: var(--font-stat);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.ct-node-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
}

.ct-node.active .ct-node-value {
  color: var(--stat-color);
  text-shadow: 0 0 20px rgba(16,185,129,0.4);
}

.ct-arrow {
  font-family: var(--font-code);
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

/* === Spatial Methodology (Architect) === */

.spatial-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 600px;
  margin: 2rem auto;
}

.spatial-layer {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  transform: translateX(0);
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.spatial-layer.assembled {
  opacity: 1;
}

.spatial-layer:nth-child(1) { background: #1a2a4a; }
.spatial-layer:nth-child(2) { background: #1f3050; }
.spatial-layer:nth-child(3) { background: #243660; }
.spatial-layer:nth-child(4) { background: #3a3a20; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); height: 50px; }
.spatial-layer:nth-child(5) { background: #4a3a18; }
.spatial-layer:nth-child(6) { background: #3a3015; }
.spatial-layer:nth-child(7) { background: #302812; }

/* === Artifact Grid (Canon) === */

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.artifact-item {
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: default;
  position: relative;
  transition: all 0.3s;
}

.artifact-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,162,39,0.15);
}

.artifact-item .artifact-title {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--heading-cream);
  letter-spacing: 0.05em;
}

.artifact-item .artifact-meta {
  font-family: var(--font-code);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.artifact-item:hover .artifact-meta {
  opacity: 1;
  max-height: 4rem;
  margin-top: 0.5rem;
}

/* === Canon Category Cards (replacement for public-facing grid) === */
.canon-categories .card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.canon-categories .card ul li {
  margin-bottom: 0.25rem;
}

/* === Scroll Tower (Canon) === */

.scroll-tower {
  position: sticky;
  top: 5rem;
  width: 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scroll-tower-block {
  height: 30px;
  border-radius: 3px;
  opacity: 0.3;
  transition: opacity 0.4s, transform 0.4s;
}

.scroll-tower-block.lit {
  opacity: 1;
  transform: scaleX(1.2);
}

/* === Government Terminal (Briefcase) === */

.gov-terminal {
  background: #0a0a0a;
  color: #00FF41;
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
}

.gov-terminal input,
.gov-terminal select,
.gov-terminal textarea {
  background: #111;
  border: 1px solid #1a3a1a;
  color: #00FF41;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.75rem;
  border-radius: 0;
}

.gov-terminal input:focus,
.gov-terminal textarea:focus {
  border-color: #00FF41;
  outline: none;
  box-shadow: 0 0 8px rgba(0,255,65,0.2);
}

.gov-terminal .btn-primary {
  background: #00FF41;
  color: #0a0a0a;
  border-color: #00FF41;
  font-family: 'JetBrains Mono', monospace;
}

/* === Legal Page Formatting === */

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-left: 0.5rem;
  line-height: 1.8;
}

/* === Partner Logo Grid (Alliance) === */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  text-align: center;
  min-height: 160px;
}

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

.partner-card.featured {
  border-color: var(--gold);
  background: rgba(201,162,39,0.05);
}

.partner-card.placeholder {
  opacity: 0.4;
  filter: grayscale(100%);
}

/* === Pioneer Credits === */

.pioneer-credits h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
  color: var(--gold);
}

.pioneer-credits p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* === Map Pin (Briefing) === */

.map-pin-container {
  text-align: center;
  padding: 2rem 0;
}

.map-pin {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.map-pin-icon {
  font-size: 2rem;
  color: var(--gold);
}

.map-pin-label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading-cream);
}

.map-pin-sub {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === Responsive Tablet (768–1024px) === */

@media (min-width: 768px) and (max-width: 1024px) {
  .series-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .series-card-body {
    padding: 0.75rem 1rem 1rem;
  }
  .series-card .card-title {
    font-size: 0.95rem;
  }
  .series-card .card-body {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section-deep { padding: 2.5rem 0; }
}

/* === Responsive Mobile === */

@media (max-width: 767px) {
  .economy-ticker {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
  }
  .condorcet-timeline {
    flex-direction: column;
    gap: 0.5rem;
  }
  .ct-arrow {
    transform: rotate(90deg);
  }
  .cred-badges {
    gap: 0.5rem;
  }
  .cred-badge {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
  }
  .hscroll-card {
    flex: 0 0 240px;
  }
  .email-card {
    padding: 1.5rem 1rem;
  }
  .artifact-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .spatial-layers {
    max-width: 100%;
  }

  .series-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .series-card-poster {
    aspect-ratio: 2/3;
  }
  .series-card-poster img {
    object-position: center top;
  }
  .series-card-body {
    padding: 0.6rem 0.75rem 0.75rem;
  }
  .series-card .card-title {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  .series-card .card-body {
    font-size: 0.78rem;
    line-height: 1.45;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .series-tier-chip {
    font-size: 0.55rem;
    padding: 0.1rem 0.4rem;
  }
  .series-sort-bar {
    justify-content: center;
    margin-bottom: 0.75rem;
  }
  .series-sort-label {
    font-size: 0.65rem;
  }
  .series-sort-button {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .section-deep { padding: 2rem 0; }
  .container { padding-left: 0.75rem; padding-right: 0.75rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .series-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .series-card .card-title {
    font-size: 0.78rem;
  }
  .series-card .card-body {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
  }
  .series-card-body {
    padding: 0.5rem 0.6rem 0.6rem;
  }
}

/* === Ghost Theme Defensive Overrides === */

html, body {
  background-color: var(--bg-primary) !important;
}

.site-footer {
  position: relative;
  z-index: 50;
}

.site-footer ~ *:not(script):not(link):not(style):not(noscript):not(#bwr-modal-overlay) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  opacity: 0 !important;
}

#wp-footer,
.widget-area,
.sidebar,
[class*="widget"],
[id*="widget"],
[class*="footer-widget"],
[id*="footer-widget"] {
  display: none !important;
}

/* === BWR Series Grid (Zen 2.1.0) — Netflix-style R1–R15 === */

.bwr-series-page { min-height: 50vh; }
.bwr-series-hero {
  padding: 2.5rem 1.5rem 1rem;
  text-align: center;
}
.bwr-series-hero h1 {
  color: var(--heading-cream);
  font-family: var(--font-display);
  margin: 0 0 0.25rem 0;
}
.bwr-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.bwr-series-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 20px;
}
@media (max-width: 1024px) {
  .bwr-series-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .bwr-series-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bwr-series-grid { grid-template-columns: 1fr; }
}

.bwr-series-card {
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.bwr-series-card:hover {
  transform: translateY(-4px);
}
.bwr-poster-link { display: block; text-decoration: none; }
.bwr-poster-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.bwr-poster-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2rem;
}
.bwr-card-info { padding: 15px; }
.bwr-card-title {
  color: var(--text-cream);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 8px 0;
}
.bwr-release-num {
  color: var(--gold);
  margin-right: 6px;
}
.bwr-card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.bwr-tag {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 4px;
  margin-top: 6px;
}
.bwr-card-status {
  margin-top: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bwr-status-available { color: #2AAA5A; }
.bwr-status-coming_soon { color: var(--gold); }
.bwr-status-new { color: #FF6B35; }
.bwr-status-expired { color: #666; }

/* === BWR Lab Grid (Zen 2.1.0) — 8 modules === */

.bwr-lab-page { min-height: 50vh; }
.bwr-lab-hero {
  padding: 1rem 1.5rem 0.5rem;
  text-align: center;
}
.bwr-lab-hero h1 { color: var(--heading-cream); font-family: var(--font-display); margin: 0 0 0.25rem 0; }
.bwr-lab-hero .bwr-subtitle { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.bwr-lab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}
@media (max-width: 1024px) { .bwr-lab-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .bwr-lab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bwr-lab-grid { grid-template-columns: 1fr; } }

.bwr-lab-module {
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem;
  transition: transform 0.3s ease;
}
.bwr-lab-module:hover { transform: translateY(-2px); }
.bwr-lab-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
}
.bwr-lab-module h3 {
  color: var(--heading-cream);
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0.75rem 0 0.5rem 0;
}
.bwr-lab-module p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   NETFLIX HOVER EFFECT — Series + Lab cards
   Added: 2026-03-15 | Radisha dispatch
   ═══════════════════════════════════════════════════ */

/* Card base transition */
.bwr-series-card,
.bwr-lab-module {
    transition: transform 300ms cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 300ms ease,
                opacity 300ms ease,
                filter 300ms ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

/* Hovered card: scale up, gold shadow, rise above siblings */
.bwr-series-card:hover,
.bwr-lab-module:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4),
                0 4px 16px rgba(0, 0, 0, 0.6);
}

/* All OTHER cards dim when ANY card in the grid is hovered */
.bwr-series-grid:hover .bwr-series-card:not(:hover),
.bwr-lab-grid:hover .bwr-lab-module:not(:hover) {
    opacity: 0.65;
    filter: brightness(0.65);
}

/* Restore full brightness when grid is not hovered at all */
.bwr-series-card:not(:hover),
.bwr-lab-module:not(:hover) {
    opacity: 1;
    filter: brightness(1);
}

/* On mobile (touch devices), disable the dim effect — tap only */
@media (max-width: 767px) {
    .bwr-series-grid:hover .bwr-series-card:not(:hover),
    .bwr-lab-grid:hover .bwr-lab-module:not(:hover) {
        opacity: 1;
        filter: brightness(1);
    }
    .bwr-series-card:hover,
    .bwr-lab-module:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
    }
}

/* iPad / tablet touch — disable hover-stick and dim effect */
@media (hover: none) and (pointer: coarse) {
    .bwr-series-grid:hover .bwr-series-card:not(:hover),
    .bwr-lab-grid:hover .bwr-lab-module:not(:hover) {
        opacity: 1 !important;
        filter: brightness(1) !important;
    }
    .bwr-series-card:hover,
    .bwr-lab-module:hover {
        transform: none !important;
        box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
    }
}

/* Card image zoom on hover (subtle, inside the card boundary) */
.bwr-series-card:hover .bwr-poster-image,
.bwr-lab-module:hover .bwr-lab-image {
    transform: scale(1.05);
    transition: transform 500ms ease;
}

.bwr-poster-image,
.bwr-lab-image {
    transition: transform 500ms ease;
}

/* Card info text reveal enhancement on hover */
.bwr-series-card:hover .bwr-card-desc,
.bwr-lab-module:hover p {
    color: var(--bwr-cream, #F5ECD7);
}

.bwr-card-desc {
    transition: color 300ms ease;
}

/* === BWR Thesis Reader (single-series) === */

.bwr-thesis-reader { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }
.bwr-thesis-hero {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 2rem;
  position: relative;
}
.bwr-thesis-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border-radius: 8px;
}
.bwr-thesis-hero-overlay h1,
.bwr-thesis-hero-text h1 {
  color: var(--gold, #C9A84C);
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0 0 0.25rem 0;
}
.bwr-release-label { color: var(--text-cream, #F5ECD7); font-size: 0.9rem; opacity: 0.9; letter-spacing: 0.05em; margin: 0; }
.bwr-thesis-hero-text { margin-bottom: 2rem; }
.bwr-thesis-body { color: var(--text-cream); line-height: 1.7; max-width: 800px; margin: 0 auto; }
.bwr-thesis-body h2 { font-family: var(--font-display, 'Cinzel', serif); color: var(--gold, #C9A84C); font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.bwr-thesis-body strong { color: var(--gold, #C9A84C); }
.bwr-thesis-tags { margin-bottom: 1rem; }
.bwr-thesis-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.bwr-thesis-nav a { color: var(--gold); }
.bwr-thesis-nav a:hover { text-decoration: underline; }

/* ─── Thesis share buttons ─── */
.bwr-thesis-share { text-align: center; }
.bwr-share-label {
    font-family: var(--font-display, 'Cinzel', serif);
    color: var(--gold, #C9A84C);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}
.bwr-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bwr-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--text-cream, #F5F0E8);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.bwr-share-btn:hover,
.bwr-share-btn:focus-visible {
    background: rgba(201,168,76,0.15);
    border-color: var(--gold, #C9A84C);
    transform: scale(1.1);
    outline: none;
}
.bwr-share-linkedin:hover { color: #0A66C2; }
.bwr-share-x:hover { color: #fff; }
.bwr-share-facebook:hover { color: #1877F2; }
.bwr-share-whatsapp:hover { color: #25D366; }
.bwr-share-copy { font-size: 0; }
.bwr-share-copy.copied {
    background: rgba(201,168,76,0.3);
    border-color: var(--gold, #C9A84C);
}
.bwr-share-copy.copied::after {
    content: 'Copied!';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--gold, #C9A84C);
    white-space: nowrap;
}
.bwr-share-copy { position: relative; }

/* ─── Lab product pages (same heritage gold as thesis) ─── */
body.bwr-lab-product .hero.hero-page-content .hero-inner h1,
body.bwr-lab-product .page-content-section .container h1 {
    color: var(--gold, #C9A84C);
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}
body.bwr-lab-product .page-content-section .container h2 {
    font-family: var(--font-display, 'Cinzel', serif);
    color: var(--gold, #C9A84C);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
body.bwr-lab-product .page-content-section .container strong {
    color: var(--gold, #C9A84C);
}
body.bwr-lab-product .page-content-section .container {
    color: var(--text-cream);
    line-height: 1.7;
}
.bwr-product-share {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 0 20px;
    text-align: center;
}
.bwr-product-share .bwr-share-label { margin-bottom: 0.75rem; }
.bwr-product-nav {
    max-width: 800px;
    margin: 1.5rem auto 2rem;
    padding: 0 20px;
    text-align: center;
}
.bwr-product-nav .bwr-nav-back {
    display: inline-block;
    color: var(--gold, #C9A84C);
    text-decoration: none;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.95rem;
    padding: 12px 32px;
    border: 1px solid var(--gold, #C9A84C);
    border-radius: 6px;
    transition: background 0.2s ease;
}
.bwr-product-nav .bwr-nav-back:hover {
    background: rgba(201, 168, 76, 0.15);
}

/* ═══════════════════════════════════════════════════
   EXHIBIT GALLERY — centered flex grid, Netflix hover
   ═══════════════════════════════════════════════════ */
.bwr-exhibit-gallery {
    padding: 20px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bwr-exhibit-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bwr-exhibit-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 4px;
    text-align: center;
    width: 100%;
}
.bwr-exhibit-section-header h2 {
    font-family: var(--font-display, 'Cinzel', serif);
    color: var(--gold, #C9A84C);
    font-size: 1.2rem;
    white-space: nowrap;
    margin: 0;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    text-align: center;
}
.bwr-exhibit-section-line {
    flex: 1;
    min-width: 24px;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.bwr-exhibit-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
}
.bwr-exhibit-grid .bwr-exhibit-card {
    width: 240px;
    flex-shrink: 0;
}
.bwr-exhibit-card {
    background: var(--bg-alt, #0D1321);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 300ms cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 300ms ease,
                opacity 300ms ease,
                filter 300ms ease;
}
.bwr-exhibit-card:hover,
.bwr-exhibit-card:focus-visible {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 8px 32px rgba(201,168,76,0.4),
                0 0 0 1px rgba(201,168,76,0.2);
    outline: none;
}
.bwr-exhibit-grid:hover .bwr-exhibit-card:not(:hover) {
    opacity: 0.6;
    filter: brightness(0.6);
}
.bwr-exhibit-card:not(:hover) {
    opacity: 1;
    filter: brightness(1);
}
.bwr-exhibit-img-wrap {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(110deg, #0a0e1a 8%, #141b2d 18%, #0a0e1a 33%);
    background-size: 200% 100%;
    animation: exhibit-shimmer 1.5s linear infinite;
}
.bwr-exhibit-img-wrap.loaded {
    animation: none;
    background: #050810;
}
.bwr-exhibit-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, transform 500ms ease;
}
.bwr-exhibit-img-wrap.loaded img { opacity: 1; }
.bwr-exhibit-card:hover .bwr-exhibit-img-wrap img { transform: scale(1.06); }
@keyframes exhibit-shimmer { to { background-position: -200% 0; } }
.bwr-exhibit-meta { padding: 12px 14px 14px; }
.bwr-exhibit-caption {
    display: block;
    color: var(--text-cream, #F5F0E8);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.85rem;
    line-height: 1.4;
}
.bwr-exhibit-credit {
    display: block;
    color: var(--gold, #C9A84C);
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.8;
}
.exhibit-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(245,240,232,0.5);
    font-size: 1.1rem;
}

/* Lightbox */
.bwr-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bwr-lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bwr-lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
}
.bwr-lightbox-caption {
    color: var(--text-cream, #F5F0E8);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 12px;
    max-width: 600px;
    line-height: 1.5;
    opacity: 0.85;
}
.bwr-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.bwr-lightbox-close:hover { background: rgba(201,168,76,0.2); }
.bwr-lightbox-prev,
.bwr-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold, #C9A84C);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.bwr-lightbox-prev { left: 16px; }
.bwr-lightbox-next { right: 16px; }
.bwr-lightbox-prev:hover,
.bwr-lightbox-next:hover { background: rgba(201,168,76,0.3); }
.bwr-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(245,240,232,0.6);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* Responsive exhibit */
@media (max-width: 600px) {
    .bwr-exhibit-grid { gap: 10px; }
    .bwr-exhibit-grid .bwr-exhibit-card {
        width: calc(50% - 8px);
        min-width: 140px;
    }
    .bwr-exhibit-section-header h2 {
        font-size: 1rem;
        white-space: normal;
        text-align: center;
    }
    .bwr-exhibit-gallery { padding: 16px 12px 60px; }
    .bwr-lightbox-prev,
    .bwr-lightbox-next { width: 40px; height: 40px; font-size: 1.5rem; }
}
@media (max-width: 380px) {
    .bwr-exhibit-grid .bwr-exhibit-card {
        width: 100%;
        max-width: 280px;
    }
}
@media (hover: none) and (pointer: coarse) {
    .bwr-exhibit-grid:hover .bwr-exhibit-card:not(:hover) {
        opacity: 1 !important;
        filter: brightness(1) !important;
    }
    .bwr-exhibit-card:hover {
        transform: none !important;
        box-shadow: 0 4px 16px rgba(201,168,76,0.3);
    }
}

/* ─── Standing on Shoulders — Pioneer Credits ─── */
.pioneer-credits { padding-top: 4rem; padding-bottom: 4rem; }
.bwr-shoulders-category p,
.bwr-shoulders-closing p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-cream, #F5F0E8);
    margin-bottom: 0.75rem;
}
.bwr-shoulders-category p strong,
.bwr-shoulders-closing p strong { color: #fff; }
@media (max-width: 600px) {
    .pioneer-credits { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .bwr-shoulders-intro p { font-size: 1rem !important; }
    .bwr-shoulders-category h3,
    .bwr-shoulders-closing h3 { font-size: 1.1rem !important; }
}

/* ─── WhatsApp QR (Signal page) ─── */
.bwr-whatsapp-qr-box {
    margin: 2rem auto;
    width: 220px;
    height: 220px;
    border: 2px solid var(--gold, #C9A84C);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.bwr-whatsapp-qr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ─── Architect headshot — square passport style ─── */
.bwr-architect-intro {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}
.bwr-architect-headshot-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(201,168,76,0.5);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25),
                inset 0 0 0 1px rgba(255,255,255,0.06);
    background: var(--bg-alt, #0D1321);
}
.bwr-architect-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}
.bwr-architect-bio {
    flex: 1;
    min-width: 0;
}
@media (max-width: 600px) {
    .bwr-architect-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bwr-architect-bio { text-align: left; }
    .bwr-architect-headshot-wrap { width: 160px; height: 160px; }
}
