/* ==============================================================================
   MYSTERY COMPASS - LUXURY CELESTIAL DESIGN SYSTEM (app.css)
   Brand: Mystery Compass | Celestial Archetypes
   Strict Rules:
   - NO purple gradients
   - NO pill-shaped buttons (crisp, architectural 4px border-radius)
   - NO fake reviews or fake customer counters
   - NO em dashes in customer-facing text
   - NO cursor animations or over-the-top scroll effects
   - Palette: Midnight Navy (#090D16), Deep Indigo (#0F172A), Slate Surface (#131D31),
             Antique Gold (#C5A059), Champagne (#E5C378), Warm Ivory (#F8FAFC)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ============================================================================
     LAYER 1: PRIMITIVE TOKENS (Raw values)
     ============================================================================ */
  --primitive-obsidian: #050608;
  --primitive-midnight-950: #090D16;
  --primitive-midnight-900: #0B0E17;
  --primitive-midnight-800: #111522;
  --primitive-slate-700: #171D2F;
  --primitive-slate-600: #1F273E;
  --primitive-slate-500: #334155;
  --primitive-slate-400: #64748B;
  --primitive-slate-300: #94A3B8;
  --primitive-slate-200: #CBD5E1;
  --primitive-slate-100: #E2E8F0;
  --primitive-ivory: #F1E7D1;
  --primitive-white: #FFFFFF;

  --primitive-gold-100: #FAF5E8;
  --primitive-gold-200: #F1E7D1;
  --primitive-gold-300: #E5C378; /* Champagne Highlight */
  --primitive-gold-400: #C8A45D; /* Antique Primary Gold */
  --primitive-gold-500: #B38E46; /* Deep Gold */
  --primitive-gold-600: #9A7836; /* Border Bronze */

  --primitive-emerald-400: #34D399;
  --primitive-amber-400: #FBBF24;
  --primitive-rose-400: #FB7185;
  --primitive-sky-400: #38BDF8;

  /* 8dp Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Architectural Radii (Strictly geometric, zero pill buttons) */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* ============================================================================
     LAYER 2: SEMANTIC TOKENS (Role & Purpose Aliases)
     ============================================================================ */
  --color-background: var(--primitive-obsidian);
  --color-surface-base: var(--primitive-midnight-950);
  --color-surface-alt: var(--primitive-midnight-900);
  --color-surface-card: var(--primitive-slate-700);
  --color-surface-elevated: var(--primitive-slate-600);
  --color-surface-glass: rgba(9, 13, 22, 0.94);

  --color-foreground-display: var(--primitive-white);       /* 18.5:1 against #050608 */
  --color-foreground-primary: var(--primitive-ivory);       /* 14.2:1 against #050608 */
  --color-foreground-secondary: var(--primitive-slate-200); /* 10.4:1 against #050608 */
  --color-foreground-muted: var(--primitive-slate-300);     /* 5.2:1 against #050608 - WCAG AA compliant */

  --color-accent-gold: var(--primitive-gold-400);
  --color-accent-champagne: var(--primitive-gold-300);
  --color-accent-bronze: var(--primitive-gold-600);

  --color-border-subtle: rgba(148, 163, 184, 0.14);
  --color-border-card: rgba(148, 163, 184, 0.22);
  --color-border-gold: rgba(200, 164, 93, 0.35);
  --color-border-gold-subtle: rgba(200, 164, 93, 0.18);

  --color-status-success: var(--primitive-emerald-400);
  --color-status-warning: var(--primitive-amber-400);
  --color-status-danger: var(--primitive-rose-400);
  --color-status-info: var(--primitive-sky-400);

  /* Elevation Shadows */
  --shadow-celestial-sm: 0 2px 8px rgba(0, 0, 0, 0.40);
  --shadow-celestial-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-celestial-lg: 0 16px 40px rgba(0, 0, 0, 0.70);
  --shadow-gold-glow: 0 4px 20px rgba(200, 164, 93, 0.25);

  /* ============================================================================
     LAYER 3: COMPONENT TOKENS & BACKWARD COMPATIBILITY
     ============================================================================ */
  --color-obsidian: var(--primitive-obsidian);
  --color-midnight: var(--primitive-midnight-800);
  --color-gold: var(--primitive-gold-400);
  --color-ivory: var(--primitive-ivory);
  --color-muted: var(--primitive-slate-300);

  --bg-midnight: var(--primitive-obsidian);
  --bg-alt: var(--primitive-midnight-900);
  --bg-deep: var(--primitive-midnight-800);
  --bg-surface: var(--primitive-slate-700);
  --bg-surface-elevated: var(--primitive-slate-600);
  
  --gold-primary: var(--primitive-gold-400);
  --gold-light: var(--primitive-gold-300);
  --gold-dark: var(--primitive-gold-600);
  --gold-border: rgba(200, 164, 93, 0.35);
  --gold-border-subtle: rgba(200, 164, 93, 0.18);
  
  --text-primary: var(--primitive-ivory);
  --text-secondary: var(--primitive-slate-200);
  --text-muted: var(--primitive-slate-300); /* Elevated from #6B7A90 to #94A3B8 for WCAG 2.1 AA 4.5:1 compliance */
  --text-light: var(--primitive-slate-100);
  
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-card: rgba(148, 163, 184, 0.22);
  
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --container-max: 1240px;
}

/* ==============================================================================
   RESET & BASE STYLES
   ============================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-midnight);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Subtle Astrometric Background Grid (Observatory Noir) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(200, 164, 93, 0.04) 0%, transparent 60%),
    linear-gradient(rgba(200, 164, 93, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 93, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
  background-position: 0 0, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

main {
  flex: 1 0 auto;
}

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

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

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ==============================================================================
   PUBLIC HEADER & NAVIGATION
   ============================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: background 0.3s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(5, 6, 8, 0.97);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header .brand-logo, .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-emblem-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.brand-lockup-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ivory);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline-text {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .brand-emblem-img {
    width: 38px;
    height: 38px;
  }
  .brand-title-text {
    font-size: 1.02rem;
    letter-spacing: 0.06em;
  }
  .brand-tagline-text {
    font-size: 0.54rem;
    letter-spacing: 0.12em;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 0.015em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  background: rgba(197, 160, 89, 0.08);
}

@media (max-width: 1280px) and (min-width: 1181px) {
  .desktop-nav {
    gap: 4px;
  }
  .nav-link {
    font-size: 13px;
    padding: 5px 8px;
  }
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Mobile Toggle Button (Guaranteed >= 44x44px touch target) */
.mobile-nav-toggle {
  display: none;
  min-width: 46px;
  min-height: 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.mobile-nav-toggle:hover, .mobile-nav-toggle:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold-border);
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  display: block;
}

/* ==============================================================================
   OFF-CANVAS SLIDE-OVER MOBILE DRAWER (Accessible, frosted, animated)
   ============================================================================== */

/* Backdrop Blur Scrim */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slide-Over Sheet */
.mobile-drawer-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: var(--primitive-midnight-950);
  border-left: 1px solid var(--color-border-card);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.65);
}

/* Active State */
.mobile-nav-open .mobile-drawer-backdrop,
.mobile-nav-drawer.open .mobile-drawer-backdrop,
.mobile-nav-drawer.mobile-nav-open .mobile-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-open .mobile-drawer-sheet,
.mobile-nav-drawer.open .mobile-drawer-sheet,
.mobile-nav-drawer.mobile-nav-open .mobile-drawer-sheet {
  transform: translateX(0);
}

body.drawer-locked {
  overflow: hidden !important;
}

/* Drawer Header */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-foreground-secondary);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.mobile-drawer-close:hover,
.mobile-drawer-close:focus-visible {
  color: var(--color-accent-champagne);
  border-color: var(--color-border-gold);
  background: rgba(200, 164, 93, 0.08);
  outline: 2px solid var(--color-accent-champagne);
  outline-offset: 2px;
}

.mobile-drawer-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  display: block;
}

/* Navigation Links */
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.mobile-drawer-link {
  color: var(--color-foreground-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-link:hover,
.mobile-drawer-link:focus-visible {
  color: var(--color-accent-champagne);
  background: rgba(200, 164, 93, 0.08);
  border-left-color: var(--color-accent-gold);
}

/* Highlighted Services Group */
.mobile-drawer-services {
  padding: 14px;
  background: var(--primitive-midnight-900);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.mobile-drawer-services-title {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: 10px;
}

.mobile-drawer-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--color-foreground-primary);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.mobile-drawer-service-item:last-child {
  border-bottom: none;
}

.mobile-drawer-service-item:hover {
  color: var(--color-accent-champagne);
}

.mobile-drawer-service-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-gold);
}

/* Drawer CTA */
.mobile-drawer-cta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
}

.mobile-drawer-cta .btn-gold {
  width: 100%;
  text-align: center;
}

/* Accessible Off-Canvas Drawer Container (Never participates in document flow) */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 997;
  pointer-events: none;
  visibility: hidden;
  contain: paint;
  overflow: hidden;
  transition: visibility 0.32s;
}

.mobile-nav-drawer.open,
.mobile-nav-drawer.mobile-nav-open,
.mobile-nav-open .mobile-nav-drawer {
  visibility: visible;
  pointer-events: auto;
}

/* Responsive Header Behavior */
@media (max-width: 1180px) {
  .desktop-nav {
    display: none !important;
  }
  .header-cta-wrap {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
}

@media (min-width: 1181px) {
  .mobile-drawer-backdrop,
  .mobile-drawer-sheet,
  .mobile-nav-drawer {
    display: none !important;
  }
}

/* ==============================================================================
   BUTTONS (Architectural, crisp, strictly NO pill buttons)
   ============================================================================== */

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C5A059 0%, #B38E46 100%);
  color: #090D16 !important;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid var(--gold-light);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.22);
  white-space: nowrap;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #C5A059 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
  color: #090D16 !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary) !important;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid var(--gold-border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(197, 160, 89, 0.08);
  border-color: var(--gold-light);
  color: var(--gold-light) !important;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .btn-gold,
  .btn-outline,
  .btn-primary {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 12px;
  }
}

/* ==============================================================================
   CELESTIAL EPHEMERIS STATUS STRIP
   ============================================================================== */

.ephemeris-strip {
  background: rgba(8, 11, 18, 0.92);
  border-bottom: 1px solid rgba(200, 164, 93, 0.16);
  padding: 8px 0;
  position: relative;
  z-index: 20;
}

.ephemeris-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-foreground-muted, #94A3B8);
  letter-spacing: 0.06em;
}

.ephemeris-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ephemeris-dot {
  width: 5px;
  height: 5px;
  background: var(--color-accent-gold, #C8A45D);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-accent-gold, #C8A45D);
  flex-shrink: 0;
}

.ephemeris-item strong {
  color: #F1E7D1;
  font-weight: 600;
}

@media (max-width: 820px) {
  .ephemeris-strip {
    overflow: hidden;
  }
  .ephemeris-strip-inner {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .ephemeris-strip-inner::-webkit-scrollbar {
    display: none;
  }
}

.astrolabe-coordinate-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 4px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(200, 164, 93, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-accent-gold);
}

/* ==============================================================================
   HOMEPAGE HERO (Two-Column Composition, Dedicated 3D Astrolabe Aperture)
   ============================================================================== */

.hero-section {
  position: relative;
  background-color: var(--bg-midnight);
  border-bottom: 1px solid var(--border-subtle);
  padding: 76px 0 88px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  margin-bottom: 22px;
  border-radius: 3px;
  border: 1px solid var(--gold-border);
  background: rgba(15, 23, 42, 0.85);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.14;
  color: #F1E7D1;
  margin-bottom: 16px;
  font-weight: 700;
  max-width: 680px;
  text-wrap: balance;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--color-accent-champagne);
  line-height: 1.45;
  margin-bottom: 18px;
  max-width: 580px;
}

.hero-description {
  color: var(--text-secondary);
  font-size: clamp(0.92rem, 1.8vw, 1.02rem);
  line-height: 1.68;
  margin-bottom: clamp(20px, 3vw, 32px);
  max-width: 560px;
  font-weight: 300;
}

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

/* Trust Indicators Row */
.trust-row {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-item .trust-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.trust-item .trust-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Concentric Astrolabe Instrument Housing */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.astrolabe-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.astrolabe-ring-outer {
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(200, 164, 93, 0.24);
  border-radius: 50%;
  pointer-events: none;
  animation: spinReticle 240s linear infinite;
}

@keyframes spinReticle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .astrolabe-ring-outer {
    animation: none;
  }
}

.astrolabe-ring-mid {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200, 164, 93, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero-celestial-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(19, 29, 49, 0.5) 0%, rgba(5, 6, 8, 0.9) 75%);
  box-shadow: 
    0 0 50px rgba(0, 0, 0, 0.8),
    inset 0 0 40px rgba(200, 164, 93, 0.08);
}

#celestial-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-content {
    order: 1;
  }
  .hero-visual-col {
    order: 2;
  }
  .astrolabe-frame-wrapper {
    max-width: 360px;
  }
  .hero-title {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 48px 0 60px 0;
  }
  .hero-title {
    font-size: 27px;
    line-height: 1.22;
  }
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.4;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.55;
  }
  .astrolabe-frame-wrapper {
    max-width: 280px;
  }
  .trust-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* ==============================================================================
   SECTIONS & GRIDS
   ============================================================================== */

.section {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
}

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

.section-header h1 {
  font-size: 38px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

.badge-gold {
  display: inline-block;
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==============================================================================
   LUXURY CELESTIAL CARDS
   ============================================================================== */

.card-celestial {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 32px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card-celestial:hover {
  border-color: var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card-featured {
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--gold-border);
  position: relative;
}

/* Process Timeline Step Cards */
.process-timeline-grid {
  position: relative;
}

.process-step-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.process-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 93, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.process-step-num {
  font-family: var(--font-serif), 'Cinzel', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.process-step-num::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 164, 93, 0.6), transparent);
}

/* Publication-Grade Specimen Report Card */
.specimen-report-card {
  background: linear-gradient(180deg, #0B1120 0%, #060911 100%);
  border: 1px solid rgba(200, 164, 93, 0.35);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(200, 164, 93, 0.08);
  position: relative;
}

.specimen-report-card::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(200, 164, 93, 0.12);
  border-radius: 4px;
  pointer-events: none;
}

/* ==============================================================================
   LUXURY TABLES
   ============================================================================== */

.overflow-x-auto {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-border) var(--bg-surface);
}

.table-luxury {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
}

.table-luxury th {
  background: var(--bg-deep);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gold-border);
}

.table-luxury td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
}

.table-luxury tr:last-child td {
  border-bottom: none;
}

/* ==============================================================================
   FORMS & CONTROLS
   ============================================================================== */

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #090D16;
  border: 1px solid var(--border-card);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 640px) {
  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  }
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* ==============================================================================
   ALERTS
   ============================================================================== */

.alert-box {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 14px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86EFAC;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93C5FD;
}

/* ==============================================================================
   FAQ ACCORDION
   ============================================================================== */

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  margin-bottom: 12px;
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--gold-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--gold-light);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent-champagne);
  outline-offset: -2px;
}

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-primary);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 22px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==============================================================================
   PUBLIC FOOTER
   ============================================================================== */

.site-footer {
  background: #060910;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 40px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.site-footer h4 {
  color: var(--gold-primary);
  font-size: 12px;
  font-family: var(--font-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 10px;
}

/* ==============================================================================
   UTILITY CLASSES (Tailwind Compatibility Layer)
   Ensures all templates render perfectly without requiring a build step
   ============================================================================== */

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-8 > * + * { margin-top: 32px; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 60px; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.12em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.7; }

.text-white { color: #FFFFFF; }
.text-slate-100 { color: #F1F5F9; }
.text-slate-200 { color: #E2E8F0; }
.text-slate-300 { color: #CBD5E1; }
.text-slate-400 { color: #94A3B8; }
.text-slate-500 { color: #64748B; }
.text-gold { color: var(--color-accent-gold) !important; }
.text-\[\#C5A059\] { color: var(--color-accent-gold) !important; }
.text-\[\#C8A45D\] { color: var(--color-accent-gold) !important; }
.text-\[\#E5C378\] { color: var(--color-accent-champagne) !important; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-3 { width: 12px !important; }
.h-3 { height: 12px !important; }
.w-3\.5, .w-3-5 { width: 14px !important; }
.h-3\.5, .h-3-5 { height: 14px !important; }
.w-4 { width: 16px !important; }
.h-4 { height: 16px !important; }
.w-5 { width: 20px !important; }
.h-5 { height: 20px !important; }
.w-6 { width: 24px !important; }
.h-6 { height: 24px !important; }
.w-7 { width: 28px !important; }
.h-7 { height: 28px !important; }
.w-8 { width: 32px !important; }
.h-8 { height: 32px !important; }
.w-9 { width: 36px !important; }
.h-9 { height: 36px !important; }
.w-10 { width: 40px !important; }
.h-10 { height: 40px !important; }
.w-12 { width: 48px !important; }
.h-12 { height: 48px !important; }
.w-16 { width: 64px !important; }
.h-16 { height: 64px !important; }
.max-h-72 { max-height: 288px; }
.min-h-screen { min-height: 100vh; }

/* Global SVG Safety Net: Prevents any unconstrained SVG blowup */
svg {
  display: inline-block;
  vertical-align: middle;
}
svg:not([width]):not([class*="w-"]) {
  max-width: 100%;
  height: auto;
}

/* Structural Component Icons (Guarantee strict pixel dimensions) */
.trust-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  color: var(--color-accent-gold);
  display: inline-block;
}

.feature-check-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  color: var(--color-accent-gold);
  margin-top: 3px;
  display: inline-block;
}

.banner-info-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  color: var(--color-accent-gold);
  margin-top: 2px;
  display: inline-block;
}

.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }
.max-w-5xl { max-width: 1024px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-28 { padding-top: 112px; padding-bottom: 112px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mt-20 { margin-top: 80px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }

.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 12px; }
.pt-6 { padding-top: 24px; }
.pt-8 { padding-top: 32px; }
.pb-2 { padding-bottom: 8px; }
.pb-4 { padding-bottom: 16px; }
.pb-6 { padding-bottom: 24px; }

.border { border: 1px solid var(--border-subtle); }
.border-t { border-top: 1px solid var(--border-subtle); }
.border-b { border-bottom: 1px solid var(--border-subtle); }
.border-slate-800 { border-color: rgba(30, 41, 59, 0.8); }
.border-slate-700 { border-color: rgba(51, 65, 85, 0.8); }

.rounded { border-radius: 4px; }
.rounded-md { border-radius: 6px; }

.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.z-10 { z-index: 10; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }

/* Grid Columns */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive Variants */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:text-4xl { font-size: 36px; }
  .sm\:text-5xl { font-size: 48px; }
}

@media (min-width: 768px) {
  .md\:block { display: block !important; }
  .md\:inline-block { display: inline-block !important; }
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:text-6xl { font-size: 60px; }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==============================================================================
   INTERACTIVE ZODIAC ARCHETYPE EXPLORER
   ============================================================================== */
.zodiac-explorer-container {
  margin: 48px auto;
  max-width: 1180px;
}

.zodiac-educational-banner {
  background: rgba(17, 21, 34, 0.85);
  border: 1px solid rgba(200, 164, 93, 0.35);
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--color-ivory);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.55;
}

.zodiac-educational-banner .badge-icon,
.zodiac-educational-banner .banner-info-icon,
.zodiac-educational-banner svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.zodiac-explorer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  min-width: 0;
  width: 100%;
}

@media (max-width: 992px) {
  .zodiac-explorer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

.zodiac-selector-col,
.zodiac-detail-col {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.zodiac-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .zodiac-buttons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .zodiac-buttons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}

.zodiac-sign-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 12px 10px;
  min-height: 48px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  color: var(--color-ivory);
}

.zodiac-sign-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.zodiac-sign-btn:hover {
  border-color: var(--color-gold);
  background: var(--bg-surface-elevated);
}

.zodiac-sign-btn.active {
  border-color: var(--color-gold);
  background: linear-gradient(180deg, #1F273E 0%, #171D2F 100%);
  box-shadow: 0 0 16px rgba(200, 164, 93, 0.2);
}

@media (max-width: 640px) {
  .zodiac-sign-btn {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 10px;
    gap: 6px;
    min-width: 0;
  }
  .zodiac-sign-btn .zodiac-symbol-glyph {
    font-size: 18px;
    flex-shrink: 0;
  }
  .zodiac-sign-btn .zodiac-name-label {
    font-size: 12px;
    flex-grow: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .zodiac-sign-btn .zodiac-element-pill {
    flex-shrink: 0;
  }
}

@media (max-width: 400px) {
  .zodiac-sign-btn {
    padding: 8px 6px;
    gap: 4px;
  }
  .zodiac-sign-btn .zodiac-symbol-glyph {
    font-size: 16px;
  }
  .zodiac-sign-btn .zodiac-name-label {
    font-size: 11px;
  }
  .zodiac-sign-btn .zodiac-element-pill {
    font-size: 8px;
    padding: 1px 4px;
  }
}

.zodiac-symbol-glyph {
  font-size: 24px;
  color: var(--color-gold);
  line-height: 1;
  font-variant-emoji: text;
  font-family: var(--font-serif), 'Cinzel', Georgia, serif;
}

.zodiac-name-label {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

.zodiac-element-pill {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.zodiac-element-pill.fire { background: rgba(239, 68, 68, 0.12); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.3); }
.zodiac-element-pill.earth { background: rgba(34, 197, 94, 0.12); color: #86EFAC; border: 1px solid rgba(34, 197, 94, 0.3); }
.zodiac-element-pill.air { background: rgba(59, 130, 246, 0.12); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.3); }
.zodiac-element-pill.water { background: rgba(56, 189, 248, 0.12); color: #7DD3FC; border: 1px solid rgba(56, 189, 248, 0.3); }

.zodiac-detail-card {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .zodiac-detail-card {
    padding: 18px 14px;
  }
}

.zodiac-detail-card.active {
  display: block;
  animation: fadeInZodiac 0.25s ease-out forwards;
}

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

.zodiac-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .zodiac-detail-header {
    flex-wrap: wrap;
    gap: 10px;
  }
}

.zodiac-detail-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.zodiac-large-glyph {
  font-size: 40px;
  color: var(--color-gold);
  line-height: 1;
  font-variant-emoji: text;
  font-family: var(--font-serif), 'Cinzel', Georgia, serif;
}

.zodiac-detail-heading {
  font-size: 24px;
  font-family: var(--font-serif);
  color: var(--color-ivory);
  margin: 0 0 4px 0;
}

.zodiac-archetype-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  font-weight: 600;
}

.zodiac-dates-badge {
  font-size: 11px;
  color: var(--color-muted);
  background: rgba(5, 6, 8, 0.6);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.zodiac-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: rgba(5, 6, 8, 0.4);
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 22px;
}

@media (max-width: 640px) {
  .zodiac-triad-grid {
    gap: 6px;
    padding: 10px 8px;
  }
}

.triad-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.triad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.triad-val {
  font-size: 13px;
  color: var(--color-ivory);
}

@media (max-width: 640px) {
  .triad-val {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

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

.zodiac-narrative-block, .zodiac-focus-block {
  margin-bottom: 18px;
}

.narrative-heading {
  font-size: 13px;
  font-family: var(--font-serif);
  color: var(--color-gold);
  margin: 0 0 6px 0;
  letter-spacing: 0.04em;
}

.narrative-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-muted);
  margin: 0;
}

.zodiac-detail-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  .zodiac-detail-footer .btn-gold {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
  }
}

/* ==============================================================================
   THE OBSERVATORY: JOURNAL & EDITORIAL DESIGN SYSTEM
   ============================================================================== */
.journal-hero-section {
  padding: 64px 0 48px 0;
  background: radial-gradient(circle at 50% 0%, rgba(200, 164, 93, 0.08) 0%, rgba(5, 6, 8, 0) 70%), var(--bg-void);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.journal-search-form {
  max-width: 576px;
  margin: 0 auto 32px auto;
}

.journal-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.journal-search-input {
  width: 100%;
  background: #0B0E17 !important;
  border: 1px solid #1E2638 !important;
  color: #F1E7D1 !important;
  border-radius: 4px;
  padding: 12px 100px 12px 42px !important;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.journal-search-input::placeholder {
  color: #64748B;
}

.journal-search-input:focus {
  border-color: var(--color-gold) !important;
  background-color: #0E121E !important;
  outline: none;
  box-shadow: 0 0 0 1px var(--color-gold);
}

.journal-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.journal-search-btn {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  padding: 8px 16px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

/* Category Filter Tabs */
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  background: rgba(17, 21, 34, 0.6);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.category-pill:hover {
  color: var(--color-ivory);
  border-color: rgba(200, 164, 93, 0.4);
  background: rgba(200, 164, 93, 0.08);
}

.category-pill.active {
  color: #050608;
  background: var(--color-gold);
  border-color: var(--color-gold);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(200, 164, 93, 0.3);
}

/* Article Cards */
.article-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 93, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.article-card h3 a {
  text-decoration: none;
  color: inherit;
}

/* Editorial Body Typography (680px - 720px reading container) */
.article-body-wrapper {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #CBD5E1;
  font-size: 1.0625rem;
  line-height: 1.8;
  letter-spacing: -0.01em;
}

.article-body-wrapper .article-h2 {
  font-family: var(--font-serif), 'Cinzel', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #F1E7D1;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.article-body-wrapper .article-h3 {
  font-family: var(--font-serif), 'Cinzel', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #E5C378;
  line-height: 1.4;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-body-wrapper .article-p {
  margin-bottom: 1.4rem;
  color: #CBD5E1;
}

.article-body-wrapper strong {
  color: #FFFFFF;
  font-weight: 600;
}

.article-body-wrapper em {
  color: #E2E8F0;
  font-style: italic;
}

.article-body-wrapper .article-blockquote {
  border-left: 3px solid var(--color-gold);
  background: rgba(17, 21, 34, 0.45);
  padding: 16px 22px;
  margin: 1.8rem 0;
  border-radius: 0 4px 4px 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.125rem;
  font-style: italic;
  color: #F1E7D1;
  line-height: 1.65;
}

.article-body-wrapper .article-blockquote p {
  margin: 0;
}

.article-body-wrapper .article-ul,
.article-body-wrapper .article-ol {
  margin: 1.2rem 0 1.5rem 1.4rem;
  padding: 0;
  color: #CBD5E1;
}

.article-body-wrapper .article-ul li,
.article-body-wrapper .article-ol li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

.article-body-wrapper a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body-wrapper a:hover {
  color: var(--color-gold-hover);
}

/* Line-Clamp Helper */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

