/* ==========================================================================
   THE GUARDIAN GROUP — CONCEPT B: SWISS EDITORIAL CANVAS
   STYLESHEET (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & ROOT VARIABLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px; /* Essential: Prevents sticky navbar from covering content */
}

:root, [data-theme="light"] {
  --bg-page: #fdfdfe;
  --text-hero: #090d16;
  --text-body: #334155;
  --text-muted: #64748b;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(15, 23, 42, 0.09);
  --nav-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  --btn-primary-bg: #090d16;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: rgba(15, 23, 42, 0.14);
  --btn-secondary-text: #090d16;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(15, 23, 42, 0.1);
  --card-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.08);
  --card-spotlight: rgba(255, 255, 255, 0.7);
  --badge-bg: rgba(255, 255, 255, 0.96);
  --badge-border: rgba(15, 23, 42, 0.1);
  --badge-text: #0f172a;

  /* Luminous Ambient Aura Gradients */
  --aura-left: rgba(30, 58, 138, 0.16);
  --aura-center: rgba(180, 83, 9, 0.14);
  --aura-right: rgba(71, 85, 105, 0.18);
  --cursor-glow: rgba(30, 58, 138, 0.12);

  --accent-merlin: #2563eb;
  --accent-advisory: #b45309;
  --accent-civil: #475569;
}

[data-theme="dark"] {
  --bg-page: #080a0f;
  --text-hero: #ffffff;
  --text-body: #94a3b8;
  --text-muted: #64748b;
  --nav-bg: rgba(15, 20, 30, 0.92);
  --nav-border: rgba(255, 255, 255, 0.14);
  --nav-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.75);
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #090d16;
  --btn-secondary-bg: rgba(255, 255, 255, 0.07);
  --btn-secondary-border: rgba(255, 255, 255, 0.18);
  --btn-secondary-text: #f1f5f9;
  --card-bg: rgba(15, 21, 33, 0.85);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 24px 52px -12px rgba(0, 0, 0, 0.6);
  --card-spotlight: rgba(96, 165, 250, 0.18);
  --badge-bg: rgba(255, 255, 255, 0.07);
  --badge-border: rgba(255, 255, 255, 0.16);
  --badge-text: #e2e8f0;

  --aura-left: rgba(30, 58, 138, 0.28);
  --aura-center: rgba(180, 83, 9, 0.22);
  --aura-right: rgba(51, 65, 85, 0.26);
  --cursor-glow: rgba(96, 165, 250, 0.18);

  --accent-merlin: #60a5fa;
  --accent-advisory: #f59e0b;
  --accent-civil: #cbd5e1;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   2. DUAL-THEME LOGO VISIBILITY CONTROLLER
   -------------------------------------------------------------------------- */
.logo-mode-dark {
  display: none !important;
}
.logo-mode-light {
  display: block !important;
}

[data-theme="dark"] .logo-mode-light {
  display: none !important;
}
[data-theme="dark"] .logo-mode-dark {
  display: block !important;
}

/* --------------------------------------------------------------------------
   3. AMBIENT AURA & CURSOR GLOW
   -------------------------------------------------------------------------- */
.ambient-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 10% 25%, var(--aura-left) 0%, transparent 48%),
    radial-gradient(circle at 50% 20%, var(--aura-center) 0%, transparent 52%),
    radial-gradient(circle at 92% 30%, var(--aura-right) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, var(--aura-center) 0%, transparent 60%);
  filter: blur(48px);
  opacity: 0.95;
  transition: all 0.5s ease;
}

.cursor-aura {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--cursor-glow) 0%, rgba(180, 83, 9, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.5rem 1.5rem 3.5rem 1.5rem;
  max-width: 1340px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. FLOATING PILL NAVBAR
   -------------------------------------------------------------------------- */
.nav-pill-wrapper {
  position: sticky;
  top: 1rem;
  z-index: 50;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto 1.5rem auto;
  transition: transform 0.3s ease;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 1.6rem;
  border-radius: 9999px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill:hover {
  box-shadow: 0 20px 44px -8px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Zone 1: Brand Group & Framed Logo Plinth */
.brand-group {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

.brand-badge-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .brand-badge-frame {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.brand-badge-frame:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.brand-logo {
  height: 30px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.06));
}

/* Zone 2: Center Navigation Links */
.nav-links {
  flex: 2 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  list-style: none;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-body);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--text-hero);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--text-hero);
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 60%;
}

/* Zone 3: Right Actions */
.nav-actions {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--btn-secondary-border);
  background: var(--btn-secondary-bg);
  color: var(--text-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--text-hero);
}

.btn-nav-qme {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-qme:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.nav-arrow {
  display: inline-block;
  font-size: 0.95em;
  line-height: 1;
  margin-left: 0.25rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-qme:hover .nav-arrow {
  transform: translate(3px, -3px);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--btn-secondary-border);
  background: var(--btn-secondary-bg);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: all 0.25s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.08);
  border-color: var(--text-hero);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background-color: var(--text-hero);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* --------------------------------------------------------------------------
   5. MOBILE NAVIGATION DRAWER
   -------------------------------------------------------------------------- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 15, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  z-index: 100;
  padding: 1.5rem 1.75rem 2.25rem 1.75rem;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-menu.is-open {
  transform: translateY(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.mobile-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-hero);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-hero);
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  display: block;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-merlin);
}

.mobile-nav-highlight {
  color: var(--accent-merlin);
}

/* --------------------------------------------------------------------------
   6. HERO EDITORIAL SECTION
   -------------------------------------------------------------------------- */
.hero-center {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 145px);
  padding: 0.5rem 0 2rem 0;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.35rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.hero-badge-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hero-badge-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.hero-headline {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--text-hero);
  margin-bottom: 1.15rem;
  max-width: 900px;
}

.hero-headline .gradient-accent {
  background: linear-gradient(135deg, #1e3a8a 0%, #b45309 60%, #0f172a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: filter 0.3s ease;
}
[data-theme="dark"] .hero-headline .gradient-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #fbbf24 60%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--text-body);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 1.85rem;
  font-weight: 450;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-pill-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 1.05rem 2.5rem;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-pill-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -6px rgba(0, 0, 0, 0.32);
}

.btn-pill-primary .btn-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-pill-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-pill-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  padding: 1.05rem 2.3rem;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-pill-secondary:hover {
  background: var(--card-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border-color: var(--text-hero);
}

/* --------------------------------------------------------------------------
   7. THE HORIZONTAL SPECTRUM CONTINUUM
   -------------------------------------------------------------------------- */
.spectrum-container {
  width: 100%;
  max-width: 1220px;
  margin: 4.5rem auto 5rem auto;
  padding-top: 1.5rem;
  scroll-margin-top: 160px;
}

.spectrum-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.spectrum-title-label {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.spectrum-flow-hint {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.spectrum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem;
  perspective: 1200px;
}

/* Spectrum Card: 3D Tilt + Center-Aligned Hierarchy */
.spectrum-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.35rem 2.15rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
  scroll-margin-top: 160px;
}

.spectrum-card:hover {
  box-shadow: 0 28px 56px -12px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

@keyframes cardFocusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.2);
  }
  100% {
    box-shadow: var(--card-shadow);
  }
}
.card-focus-pulse {
  animation: cardFocusPulse 1.4s ease-out;
}

/* Top Accent Stripe */
.spectrum-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.card-merlin::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.card-advisory::before { background: linear-gradient(90deg, #b45309, #f59e0b); }
.card-civil::before { background: linear-gradient(90deg, #334155, #94a3b8); }

/* Interactive Mouse Spotlight Sheen */
.spectrum-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 280px at var(--mouse-x, -200px) var(--mouse-y, -200px), var(--card-spotlight), transparent 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.spectrum-card:hover::after {
  opacity: 1;
}

.card-top {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badges Row - Centered */
.card-axis-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.axis-step {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.axis-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: var(--badge-bg);
  transition: transform 0.25s ease;
}
.card-merlin .axis-badge { color: var(--accent-merlin); }
.card-advisory .axis-badge { color: var(--accent-advisory); }
.card-civil .axis-badge { color: var(--accent-civil); }

/* Centered Subsidiary Logo Plinth Frame */
.card-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  width: 100%;
  margin: 0.5rem 0 1.6rem 0;
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .card-brand-row {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.spectrum-card:hover .card-brand-row {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .spectrum-card:hover .card-brand-row {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.subsidiary-logo {
  height: 44px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spectrum-card:hover .subsidiary-logo {
  transform: scale(1.06);
}

/* Card Content: Perfectly Center-Aligned */
.card-title {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-hero);
  margin-bottom: 0.4rem;
  text-align: center;
}

.card-subline {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
  text-align: center;
}
.card-merlin .card-subline { color: var(--accent-merlin); }
.card-advisory .card-subline { color: var(--accent-advisory); }
.card-civil .card-subline { color: var(--text-muted); }

.card-desc {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.68;
  text-align: center;
  max-width: 95%;
  margin: 0 auto;
}

.card-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--card-border);
  padding-top: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.card-link-arrow {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-hero);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.card-link-arrow:hover {
  transform: translateX(4px);
}
.card-merlin:hover .card-link-arrow { color: var(--accent-merlin); }
.card-advisory:hover .card-link-arrow { color: var(--accent-advisory); }

.portal-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.36rem 0.85rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.portal-pill:hover {
  color: var(--text-hero);
  border-color: var(--text-hero);
  transform: translateY(-2px) scale(1.03);
}

/* --------------------------------------------------------------------------
   8. SLIDE-OUT INTAKE DRAWER / TRAY
   -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 15, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.intake-tray {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(560px, 100vw);
  height: 100vh;
  background: var(--bg-page);
  border-left: 1px solid var(--card-border);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.35);
  z-index: 101;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.intake-tray.is-active {
  right: 0;
}

.tray-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-border);
}

.tray-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-hero);
}

.tray-close-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-hero);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tray-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-hero);
  display: block;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-hero);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-merlin);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.floating-tray-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 1rem 1.15rem;
  border-radius: 16px 0 0 16px;
  font-size: 0.88rem;
  font-weight: 800;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.2);
  z-index: 40;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-tray-tab:hover {
  transform: translateY(-50%) translateX(-8px);
  box-shadow: -10px 0 32px rgba(37, 99, 235, 0.35);
  background: var(--accent-merlin);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. CENTERED EDITORIAL FOOTER
   -------------------------------------------------------------------------- */
.footer-minimal {
  margin-top: auto;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--nav-border);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  max-width: 860px;
  margin: 0 auto;
}

.footer-brand-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  margin-bottom: 0.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

[data-theme="dark"] .footer-brand-frame {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.footer-brand-frame:hover {
  transform: translateY(-1px);
}

.footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

.footer-ethos {
  font-size: 0.84rem;
  color: var(--text-muted);
  opacity: 0.85;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-links {
    gap: 1.5rem;
  }
  .spectrum-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .btn-nav-qme {
    display: none !important;
  }
  .nav-pill {
    padding: 0.55rem 1.25rem;
  }
  .spectrum-grid {
    grid-template-columns: 1fr;
  }
  .hero-headline {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--text-hero);
  margin-bottom: 1.15rem;
  max-width: 900px;
}
}

/* --------------------------------------------------------------------------
   ENHANCED EDITORIAL HERO BADGE & THESIS
   -------------------------------------------------------------------------- */
.hero-badge-quote {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-hero);
  letter-spacing: -0.01em;
}

.hero-badge-author {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-advisory);
  text-transform: uppercase;
}

.spectrum-heading-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spectrum-main-heading {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-hero);
  margin: 0;
}

.spectrum-footer-thesis {
  margin-top: 2.5rem;
  text-align: center;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.spectrum-footer-thesis:hover {
  border-color: rgba(180, 83, 9, 0.35);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
}

.thesis-text {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: var(--text-hero);
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}
