/* ==========================================================================
   GLOBAL RATIONAL OBSERVER — CORE RESEARCH INSTITUTE DESIGN SYSTEM
   Author: Rational Observer
   Aesthetic: Deep Slate / Gold Editorial Observatory
   ========================================================================== */

:root {
  /* Color Palette */
  --bg: #0a0d12;
  --surface: #12171f;
  --card: #161e2a;
  --card-hover: #1c2636;
  --border: #232d3d;
  --border-light: #2e3b4f;
  --gold: #D4AF37;
  --gold-light: #e5c158;
  --gold-dim: rgba(212, 175, 55, 0.08);
  --gold-glow: rgba(212, 175, 55, 0.2);
  --accent-cyan: #38bdf8;
  --accent-red: #f43f5e;
  --text-bright: #f1f5f9;
  --text: #cbd5e1;
  --text-muted: #8092a8;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --header-height: 96px;
  --max-content-width: 1240px;
  --reading-width: 780px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg: #f8fafc;
  --surface: #ffffff;
  --card: #f1f5f9;
  --card-hover: #e2e8f0;
  --border: #cbd5e1;
  --border-light: #94a3b8;
  --gold: #b45309;
  --gold-light: #d97706;
  --gold-dim: rgba(180, 83, 9, 0.08);
  --text-bright: #0f172a;
  --text: #334155;
  --text-muted: #64748b;
}

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

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-cyan));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

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

/* Layout Utilities */
.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.reading-container {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   GLOBAL NAVIGATION
   ========================================================================== */
.site-header {
  position: relative;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 13, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  display: flex;
  align-items: center;
}

body.light-theme .site-header {
  background: rgba(248, 250, 252, 0.92);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--gold), #9a781c);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0d12;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 0 16px var(--gold-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-bright);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector Dropdown */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-bright);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: var(--gold);
  background: var(--card);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 170px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 950;
}

.lang-dropdown.show {
  display: flex;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.lang-option:hover {
  background: var(--card);
  color: var(--text-bright);
}

.lang-option.active {
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 700;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.07), transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 980px;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #f0f4f8, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.6;
  max-width: 840px;
  margin-bottom: 36px;
  font-style: italic;
}

.hero-credentials {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  max-width: 780px;
  margin-bottom: 40px;
}

.credentials-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #0a0d12;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
  color: #0a0d12;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--border-light);
  background: var(--card);
  color: var(--text-bright);
}

/* ==========================================================================
   THE 10-SLIDE HYDRAULIC RESERVOIR INTERACTIVE EXPLORER
   ========================================================================== */
.reservoir-section {
  padding: 90px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Reservoir Carousel Controls */
.reservoir-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.reservoir-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  scrollbar-width: thin;
}

.res-tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.res-tab-btn:hover {
  color: var(--text-bright);
  border-color: var(--border-light);
}

.res-tab-btn.active {
  background: var(--gold);
  color: #0a0d12;
  border-color: var(--gold);
  font-weight: 700;
}

.reservoir-slide {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.reservoir-slide.active {
  display: grid;
  animation: slideFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-content h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text-bright);
}

.slide-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}

.slide-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.metric-box .label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.metric-box .val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.slide-diagram-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.slide-diagram-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.slider-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.slider-arrows {
  display: flex;
  gap: 10px;
}

.arrow-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-bright);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.arrow-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================================
   THE 11-CHAPTER ROADMAP DIRECTORY
   ========================================================================== */
.series-directory {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.chapter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.chapter-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.chapter-card.featured-card {
  border-left: 4px solid var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04), var(--surface) 60%);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.ep-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.status-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.status-badge.published {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-badge.production {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.chapter-title {
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.chapter-title a {
  color: var(--text-bright);
}

.chapter-title a:hover {
  color: var(--gold);
}

.chapter-excerpt {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 18px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.btn-card-read {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-card-read:hover {
  background: var(--gold);
  color: #0a0d12;
  border-color: var(--gold);
}

.btn-card-media {
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-card-media:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

/* ==========================================================================
   MULTI-MODAL MEDIA DOCK (POST & CHAPTER VIEW)
   ========================================================================== */
.media-dock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.media-dock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.media-dock-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-tabs {
  display: flex;
  gap: 8px;
}

.media-tab-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.media-tab-btn.active, .media-tab-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.custom-audio-player {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-pause-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0d12;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--gold-glow);
}

.play-pause-btn:hover {
  transform: scale(1.05);
  background: var(--gold-light);
}

.scrubber-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scrubber-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.scrubber-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  width: 0%;
}

.time-stamps {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.speed-selector {
  display: flex;
  gap: 4px;
}

.speed-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.speed-btn.active {
  background: var(--gold);
  color: #0a0d12;
  font-weight: 700;
}

/* ==========================================================================
   RESEARCH FIGURE CARDS
   ========================================================================== */
.research-figure-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 40px 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.figure-card-header {
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.figure-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.figure-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
}

.figure-actions {
  display: flex;
  gap: 8px;
}

.fig-action-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.fig-action-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.figure-image-wrapper {
  padding: 20px;
  background: #090c10;
  text-align: center;
}

.figure-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto;
}

.figure-card-footer {
  padding: 12px 20px;
  background: var(--card);
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.figure-provenance {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 16px 0;
  max-width: 360px;
}

.footer-col h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .reservoir-slide { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subhead { font-size: 1.15rem; }
  .nav-menu { display: none; }
  .chapters-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}


/* ==========================================================================
   FINAL GOLD TRANSPARENT LOGO SYSTEM (SPEC 2026-09-15)
   ========================================================================== */
.site-brand-lockup {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-brand-mark {
  height: 52px !important;
  max-height: 52px !important;
  max-width: 120px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-brand-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.site-brand-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.15 !important;
  background: linear-gradient(
    180deg,
    #F5E3A0 0%,
    #E5C66D 32%,
    #D7AF52 62%,
    #A97827 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #D4AF37 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.site-brand-tagline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.78rem !important;
  color: #8b949e !important;
  display: block !important;
  margin-top: 2px !important;
}

@media (max-width: 768px) {
  .site-brand-mark {
    height: 38px !important;
  }
  .site-brand-name {
    font-size: 1.05rem !important;
  }
  .site-brand-tagline {
    font-size: 0.72rem !important;
  }
}

@media (max-width: 480px) {
  .site-brand-mark {
    height: 38px !important;
  }
  .site-brand-name {
    font-size: 0.95rem !important;
  }
}
