/* ==========================================================================
   BHARATINTEL — WORLD-CLASS DIGITAL MILITARY ARSENAL MUSEUM OF INDIA
   Visual System, Spatial Architecture, Wing Worlds, and Interaction Design
   ========================================================================== */

@import "tailwindcss";

:root {
  /* Core Museum Dark Architecture */
  --bg-space: #05070c;
  --bg-surface: #0a0e17;
  --bg-surface-elevated: #111827;
  --bg-glass: rgba(16, 24, 39, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-highlight: rgba(255, 255, 255, 0.35);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #030712;

  /* Universal Brand Accents */
  --accent-gold: #f59e0b;
  --accent-saffron: #ff9933;
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;

  /* 01. ARMY ARSENAL WING THEME (Land, Armor, Dust, Bronze, Steel) */
  --wing-army-primary: #a3e635;
  --wing-army-secondary: #65a30d;
  --wing-army-bronze: #d97706;
  --wing-army-bg: #0d140b;
  --wing-army-glow: rgba(163, 230, 53, 0.15);
  --wing-army-border: rgba(163, 230, 53, 0.25);

  /* 02. NAVAL ARSENAL WING THEME (Oceanic Cobalt, Deep Abyss, Sonar Cyan) */
  --wing-navy-primary: #00e5ff;
  --wing-navy-secondary: #0284c7;
  --wing-navy-deep: #0369a1;
  --wing-navy-bg: #04101e;
  --wing-navy-glow: rgba(0, 229, 255, 0.16);
  --wing-navy-border: rgba(0, 229, 255, 0.28);

  /* 03. AIR ARSENAL WING THEME (Sky Steel, Supersonic Silver, Mach Blue) */
  --wing-air-primary: #38bdf8;
  --wing-air-secondary: #818cf8;
  --wing-air-silver: #cbd5e1;
  --wing-air-bg: #071324;
  --wing-air-glow: rgba(56, 189, 248, 0.18);
  --wing-air-border: rgba(56, 189, 248, 0.28);

  /* 04. DEFENCE INDUSTRY WING THEME (Industrial Titanium, Forge Amber, Carbon) */
  --wing-industry-primary: #fbbf24;
  --wing-industry-secondary: #f97316;
  --wing-industry-forge: #ea580c;
  --wing-industry-bg: #161005;
  --wing-industry-glow: rgba(251, 191, 36, 0.16);
  --wing-industry-border: rgba(251, 191, 36, 0.28);

  /* 05. FUTURE ARSENAL WING THEME (Electric Violet, Cyber Cyan, Quantum Space) */
  --wing-future-primary: #a855f7;
  --wing-future-secondary: #06b6d4;
  --wing-future-quantum: #ec4899;
  --wing-future-bg: #100a26;
  --wing-future-glow: rgba(168, 85, 247, 0.2);
  --wing-future-border: rgba(168, 85, 247, 0.3);

  /* Active Theme Defaults */
  --theme-accent: var(--accent-gold);
  --theme-glow: rgba(245, 158, 11, 0.15);
  --theme-border: var(--border-medium);

  /* Spatial Transitions & Shadows */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-museum-card: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  --shadow-museum-spotlight: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px -10px var(--theme-glow);
}

/* Wing-specific root overrides based on data-wing or body classes */
body[data-wing="army"], .wing-army-theme {
  --theme-accent: var(--wing-army-primary);
  --theme-glow: var(--wing-army-glow);
  --theme-border: var(--wing-army-border);
}
body[data-wing="navy"], .wing-navy-theme {
  --theme-accent: var(--wing-navy-primary);
  --theme-glow: var(--wing-navy-glow);
  --theme-border: var(--wing-navy-border);
}
body[data-wing="air"], .wing-air-theme {
  --theme-accent: var(--wing-air-primary);
  --theme-glow: var(--wing-air-glow);
  --theme-border: var(--wing-air-border);
}
body[data-wing="industry"], .wing-industry-theme {
  --theme-accent: var(--wing-industry-primary);
  --theme-glow: var(--wing-industry-glow);
  --theme-border: var(--wing-industry-border);
}
body[data-wing="future"], .wing-future-theme {
  --theme-accent: var(--wing-future-primary);
  --theme-glow: var(--wing-future-glow);
  --theme-border: var(--wing-future-border);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-space);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-space);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Lighting Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 50% 0%, var(--theme-glow), transparent 70%),
    linear-gradient(to bottom, rgba(5, 7, 12, 0.4), rgba(5, 7, 12, 0.95));
  pointer-events: none;
  z-index: -2;
  transition: background-image 0.8s var(--ease-expo);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

/* ==========================================================================
   GLOBAL MUSEUM NAVIGATION & HEADER
   ========================================================================== */

.museum-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease-expo);
}

.museum-nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Museum Emblem & Identity */
.museum-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.museum-emblem-ring {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 153, 51, 0.2);
  position: relative;
}

.museum-emblem-ring::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-saffron);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-saffron);
}

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

.museum-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.museum-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

/* Primary Five Museum Wings Navigation */
.museum-wings-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.wing-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-expo);
  position: relative;
}

.wing-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.wing-link.active {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  border-color: var(--theme-border);
  box-shadow: 0 0 15px var(--theme-glow);
}

.wing-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.wing-link:hover .wing-indicator,
.wing-link.active .wing-indicator {
  transform: scale(1.3);
}

.wing-ind-army { background: var(--wing-army-primary); box-shadow: 0 0 8px var(--wing-army-primary); }
.wing-ind-navy { background: var(--wing-navy-primary); box-shadow: 0 0 8px var(--wing-navy-primary); }
.wing-ind-air { background: var(--wing-air-primary); box-shadow: 0 0 8px var(--wing-air-primary); }
.wing-ind-industry { background: var(--wing-industry-primary); box-shadow: 0 0 8px var(--wing-industry-primary); }
.wing-ind-future { background: var(--wing-future-primary); box-shadow: 0 0 8px var(--wing-future-primary); }

/* Header Utilities (Search & Arena) */
.museum-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-museum-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-museum-search:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.kbd-shortcut {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-museum-arena {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-museum-arena:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(249, 115, 22, 0.25));
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  color: #ffffff;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==========================================================================
   HOMEPAGE: GRAND ENTRANCE ROTUNDA & GALLERIES
   ========================================================================== */

.entrance-rotunda {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
}

.rotunda-telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 153, 51, 0.1);
  border: 1px solid rgba(255, 153, 51, 0.25);
  color: var(--accent-saffron);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(255, 153, 51, 0.15);
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.rotunda-headline {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 1200px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rotunda-tagline {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 36px;
  line-height: 1.55;
  font-weight: 400;
}

/* Grand Fleet Telemetry Counters */
.fleet-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto 48px;
}

.telemetry-node {
  background: rgba(16, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 14px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
}

.telemetry-node:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  background: rgba(16, 24, 39, 0.85);
}

.telemetry-val {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: block;
}

.telemetry-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ==========================================================================
   THE 5 SPATIAL WING GATEWAYS (PORTALS)
   ========================================================================== */

.wing-gateways-section {
  max-width: 1600px;
  margin: 0 auto 100px;
  padding: 0 24px;
}

.section-chamber-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}

.chamber-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 6px;
}

.chamber-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.chamber-caption {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  text-align: right;
}

.gateways-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.gateway-portal-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 480px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all 0.4s var(--ease-expo);
}

.gateway-portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-expo), filter 0.4s ease;
  filter: brightness(0.65) saturate(1.1);
  z-index: 1;
}

.gateway-portal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.1) 0%, rgba(5, 7, 12, 0.6) 50%, rgba(5, 7, 12, 0.95) 100%);
  z-index: 2;
}

.gateway-portal-card:hover {
  transform: translateY(-8px);
  border-color: var(--portal-accent);
  box-shadow: 0 20px 40px -10px var(--portal-glow);
}

.gateway-portal-card:hover::before {
  transform: scale(1.08);
  filter: brightness(0.85) saturate(1.25);
}

.gateway-army { --portal-accent: var(--wing-army-primary); --portal-glow: var(--wing-army-glow); }
.gateway-navy { --portal-accent: var(--wing-navy-primary); --portal-glow: var(--wing-navy-glow); }
.gateway-air { --portal-accent: var(--wing-air-primary); --portal-glow: var(--wing-air-glow); }
.gateway-industry { --portal-accent: var(--wing-industry-primary); --portal-glow: var(--wing-industry-glow); }
.gateway-future { --portal-accent: var(--wing-future-primary); --portal-glow: var(--wing-future-glow); }

.gateway-army::before { background-image: url('https://res.cloudinary.com/ezxzylvq/image/fetch/f_auto,q_auto,w_800/https%3A%2F%2Fimages.unsplash.com%2Fphoto-1541872703-74c5e44368f9%3Fq%3D80%26w%3D1600%26auto%3Dformat%26fit%3Dcrop'); }
.gateway-navy::before { background-image: url('https://res.cloudinary.com/ezxzylvq/image/fetch/f_auto,q_auto,w_800/https%3A%2F%2Fimages.unsplash.com%2Fphoto-1508614589041-895b88991e3e%3Fq%3D80%26w%3D1600%26auto%3Dformat%26fit%3Dcrop'); }
.gateway-air::before { background-image: url('https://res.cloudinary.com/ezxzylvq/image/fetch/f_auto,q_auto,w_800/https%3A%2F%2Fimages.unsplash.com%2Fphoto-1517976487541-155b9e598925%3Fq%3D80%26w%3D1600%26auto%3Dformat%26fit%3Dcrop'); }
.gateway-industry::before { background-image: url('https://res.cloudinary.com/ezxzylvq/image/fetch/f_auto,q_auto,w_800/https%3A%2F%2Fimages.unsplash.com%2Fphoto-1581091226825-a6a2a5aee158%3Fq%3D80%26w%3D1600%26auto%3Dformat%26fit%3Dcrop'); }
.gateway-future::before { background-image: url('https://res.cloudinary.com/ezxzylvq/image/fetch/f_auto,q_auto,w_800/https%3A%2F%2Fimages.unsplash.com%2Fphoto-1518709268805-4e9042af9f23%3Fq%3D80%26w%3D1600%26auto%3Dformat%26fit%3Dcrop'); }

.gateway-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gateway-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--portal-accent);
  text-transform: uppercase;
}

.gateway-title {
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.15;
}

.gateway-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.gateway-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-accent);
  margin-top: 10px;
}

/* ==========================================================================
   HEADLINE ARTIFACT SPOTLIGHT STAGE
   ========================================================================== */

.spotlight-chamber {
  max-width: 1600px;
  margin: 0 auto 100px;
  padding: 0 24px;
}

.spotlight-stage {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-museum-spotlight);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 540px;
}

.spotlight-visual-box {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.spotlight-visual-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9) contrast(1.05);
  transition: transform 0.6s var(--ease-expo);
}

.spotlight-stage:hover .spotlight-visual-box img {
  transform: scale(1.04);
}

.spotlight-tag-overlay {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.spotlight-info-box {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.06), transparent 50%);
}

.spotlight-domain-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
  display: block;
}

.spotlight-name {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.08;
  margin-bottom: 14px;
}

.spotlight-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.spotlight-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.spotlight-metric-node {
  text-align: left;
}

.spotlight-metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.spotlight-metric-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.btn-enter-chamber {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-saffron), var(--accent-gold));
  color: #000000;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-enter-chamber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   MUSEUM EXHIBIT ARTIFACT PLACARDS (CARDS)
   ========================================================================== */

.exhibits-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.exhibit-artifact {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.35s var(--ease-expo);
  box-shadow: var(--shadow-museum-card);
  position: relative;
}

.exhibit-artifact:hover {
  transform: translateY(-6px);
  border-color: var(--theme-border);
  box-shadow: 0 20px 40px -10px var(--theme-glow), 0 0 1px 1px var(--theme-border);
}

.exhibit-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #000000;
}

.exhibit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease-expo), filter 0.3s ease;
  filter: brightness(0.85);
}

.exhibit-artifact:hover .exhibit-media img {
  transform: scale(1.06);
  filter: brightness(1);
}

.exhibit-status-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--theme-accent);
}

.exhibit-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

.exhibit-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.exhibit-service-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--theme-accent);
  margin-bottom: 6px;
  display: block;
}

.exhibit-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 10px;
}

.exhibit-summary {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Micro Telemetry HUD in Exhibit Cards */
.exhibit-hud-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.hud-stat-node {
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hud-stat-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.hud-stat-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   DEDICATED EXHIBITION CHAMBER (SYSTEM DETAIL PAGE)
   ========================================================================== */

.chamber-hero-stage {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  padding: 60px 24px 48px;
  overflow: hidden;
  background: #000000;
}

.chamber-hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) contrast(1.1);
  z-index: 1;
}

.chamber-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.2) 0%, rgba(5, 7, 12, 0.6) 40%, rgba(5, 7, 12, 0.95) 100%);
  z-index: 2;
}

.chamber-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.chamber-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.chamber-breadcrumb a {
  color: var(--theme-accent);
  text-decoration: none;
}

.chamber-main-title {
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.chamber-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.badge-pill {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-service {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

.badge-origin {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

.badge-status {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-gold);
}

/* Key Metrics HUD Ribbon */
.chamber-hud-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1400px;
  margin: -30px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.hud-ribbon-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
}

.hud-ribbon-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--theme-accent);
}

.hud-ribbon-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.3;
}

/* Chamber Main Content Layout */
.chamber-body-layout {
  max-width: 1400px;
  margin: 0 auto 100px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.chamber-narrative-section {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.narrative-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
}

.narrative-block-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.narrative-block-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--theme-accent);
  border-radius: 2px;
}

.narrative-prose {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Technical Specification Matrix */
.specs-matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-matrix-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-matrix-table tr:last-child {
  border-bottom: none;
}

.specs-matrix-table td {
  padding: 14px 10px;
}

.specs-lbl-col {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  width: 38%;
}

.specs-val-col {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: right;
}

/* Chamber Sidebar (Manufacturer, Connected Ecosystem, Quick Compare) */
.chamber-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--theme-accent);
  margin-bottom: 14px;
  display: block;
}

.connected-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.connected-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.connected-link-item:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--theme-border);
  color: var(--theme-accent);
  transform: translateX(4px);
}

/* ==========================================================================
   TACTICAL MATCHUP ARENA (COMPARISON)
   ========================================================================== */

.arena-hero {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.arena-podium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 50px;
  padding: 0 24px;
}

.arena-podium-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-museum-spotlight);
}

.arena-podium-media {
  position: relative;
  height: 280px;
}

.arena-podium-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.arena-podium-body {
  padding: 28px;
}

.arena-comparison-matrix {
  max-width: 1400px;
  margin: 0 auto 100px;
  padding: 0 24px;
}

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

.comparison-table th {
  background: var(--bg-surface-elevated);
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-medium);
}

.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.comp-highlight-a { background: rgba(56, 189, 248, 0.08); font-weight: 800; color: #38bdf8; }
.comp-highlight-b { background: rgba(245, 158, 11, 0.08); font-weight: 800; color: #f59e0b; }

/* ==========================================================================
   GLOBAL MUSEUM COLLECTION SEARCH MODAL
   ========================================================================== */

.museum-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 20px 40px;
}

.museum-search-modal {
  width: 100%;
  max-width: 760px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9);
}

.search-input-header {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.search-input-box {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  outline: none;
}

.search-input-box::placeholder {
  color: var(--text-muted);
}

.search-results-chamber {
  max-height: 480px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: block;
  padding: 14px 18px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
  transform: translateX(4px);
}

/* ==========================================================================
   GLOBAL FOOTER & SOVEREIGN SIGN-OFF
   ========================================================================== */

.museum-footer {
  margin-top: auto;
  background: #020408;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 40px;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s ease;
}

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

.footer-bottom-bar {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

@media (max-width: 1200px) {
  .gateways-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .exhibits-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .spotlight-visual-box {
    height: 340px;
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .museum-wings-nav, .museum-nav-actions .kbd-shortcut {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .fleet-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gateways-grid {
    grid-template-columns: 1fr;
  }
  .exhibits-gallery-grid {
    grid-template-columns: 1fr;
  }
  .chamber-body-layout {
    grid-template-columns: 1fr;
  }
  .arena-podium-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
