/* ============================================================
   INDIGO AirGuard — Beamer Berlin Theme CSS
   LaTeX Beamer "Berlin" adaptation: dark blue header/footer,
   structured navigation, clean sans-serif, frame-like sections
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Fira+Mono:wght@400;500&display=swap');

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Fira Sans', 'Latin Modern Sans', 'Computer Modern Sans', Helvetica, Arial, sans-serif;
  color: #263238;
  background: #e8eaf6;
  line-height: 1.5;
}

/* ── Color Tokens ──────────────────────────────────────────── */
:root {
  --beamer-primary: #1a237e;
  --beamer-secondary: #283593;
  --beamer-accent: #3949ab;
  --beamer-highlight: #5c6bc0;
  --beamer-light: #e8eaf6;
  --beamer-lighter: #f5f5ff;
  --beamer-white: #ffffff;
  --beamer-text: #263238;
  --beamer-text-light: #546e7a;
  --beamer-gold: #f9a825;
  --beamer-red: #c62828;
  --beamer-green: #2e7d32;
  --beamer-orange: #e65100;
  --frame-shadow: 0 2px 12px rgba(26, 35, 126, 0.10);
  --frame-border: 1px solid rgba(26, 35, 126, 0.12);
}

/* ── Header Bar (Beamer Berlin top bar) ────────────────────── */
.beamer-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--beamer-primary) 0%, var(--beamer-secondary) 100%);
  color: #fff;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 2px 16px rgba(26, 35, 126, 0.25);
  user-select: none;
}

.beamer-header .brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.beamer-header .brand .logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--beamer-gold);
  display: inline-block;
  box-shadow: 0 0 8px rgba(249, 168, 37, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.beamer-header nav {
  display: flex;
  gap: 0;
}

.beamer-header nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 16px;
  border-radius: 3px;
  transition: all 0.2s ease;
  position: relative;
}

.beamer-header nav a:hover,
.beamer-header nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.beamer-header nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--beamer-gold);
  border-radius: 1px;
}

.beamer-header .header-right {
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.85;
  white-space: nowrap;
}

/* ── Breadcrumb Sub-Bar ────────────────────────────────────── */
.beamer-breadcrumb {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--beamer-secondary);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
}

.beamer-breadcrumb .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.beamer-breadcrumb .dot.active {
  background: var(--beamer-gold);
  box-shadow: 0 0 6px rgba(249, 168, 37, 0.5);
  transform: scale(1.3);
}

.beamer-breadcrumb .dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ── Main Content Area ─────────────────────────────────────── */
main {
  margin-top: 88px;
  padding-bottom: 40px;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--beamer-primary) 0%, #0d1247 40%, #1a237e 100%);
  color: #fff;
  padding: 72px 40px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(57, 73, 171, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(92, 107, 192, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(249, 168, 37, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated grid lines */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.hero .subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.4;
}

.hero .subtitle strong {
  color: var(--beamer-gold);
  font-weight: 600;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--beamer-gold);
  color: var(--beamer-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: #ffb300;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 168, 37, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ── Beamer Frame (Section) ────────────────────────────────── */
.frame {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 24px;
}

.frame-inner {
  background: var(--beamer-white);
  border-radius: 8px;
  box-shadow: var(--frame-shadow);
  border: var(--frame-border);
  overflow: hidden;
}

.frame-title-bar {
  background: linear-gradient(135deg, var(--beamer-primary) 0%, var(--beamer-secondary) 100%);
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.frame-title-bar .frame-icon {
  font-size: 1.3rem;
  opacity: 0.85;
}

.frame-title-bar h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.frame-title-bar .frame-number {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0.08em;
}

.frame-body {
  padding: 24px 32px;
}

/* ── Typography inside frames ──────────────────────────────── */
.frame-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--beamer-primary);
  margin: 18px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--beamer-light);
}

.frame-body h3:first-child {
  margin-top: 0;
}

.frame-body p {
  margin-bottom: 10px;
  color: var(--beamer-text);
  font-size: 0.92rem;
}

.frame-body strong {
  font-weight: 600;
  color: var(--beamer-primary);
}

.frame-body blockquote {
  margin: 14px 0;
  padding: 12px 20px;
  background: var(--beamer-lighter);
  border-left: 4px solid var(--beamer-accent);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--beamer-text-light);
  font-size: 0.9rem;
}

.frame-body blockquote strong {
  color: var(--beamer-text);
  font-style: normal;
}

.frame-body blockquote a {
  color: var(--beamer-accent);
  text-decoration: none;
  font-weight: 500;
  font-style: normal;
}

.frame-body blockquote a:hover {
  text-decoration: underline;
}

/* ── Stats Grid ────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stat-card {
  background: var(--beamer-lighter);
  border: 1px solid rgba(26, 35, 126, 0.08);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.12);
}

.stat-card .stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--beamer-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-card .stat-number.red {
  color: var(--beamer-red);
}

.stat-card .stat-number.gold {
  color: var(--beamer-gold);
}

.stat-card .stat-number.green {
  color: var(--beamer-green);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--beamer-text-light);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Innovation Cards ──────────────────────────────────────── */
.innovation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.innovation-card {
  background: var(--beamer-lighter);
  border: 1px solid rgba(26, 35, 126, 0.08);
  border-radius: 6px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.innovation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 35, 126, 0.12);
}

.innovation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--beamer-primary), var(--beamer-accent));
}

.innovation-card .inno-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
}

.innovation-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--beamer-primary);
  margin-bottom: 6px;
}

.innovation-card p {
  font-size: 0.82rem;
  color: var(--beamer-text-light);
  line-height: 1.45;
  margin-bottom: 6px;
}

.innovation-card .inno-highlight {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--beamer-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Tables ────────────────────────────────────────────────── */
.beamer-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  font-size: 0.92rem;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(26, 35, 126, 0.12);
}

.beamer-table thead th {
  background: linear-gradient(135deg, var(--beamer-primary), var(--beamer-secondary));
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.beamer-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(26, 35, 126, 0.06);
  vertical-align: top;
}

.beamer-table tbody tr:nth-child(even) {
  background: var(--beamer-lighter);
}

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

.beamer-table tbody tr:hover {
  background: #e8eaf6;
}

.beamer-table .highlight-row {
  background: rgba(26, 35, 126, 0.06) !important;
  font-weight: 600;
}

.beamer-table .highlight-row td {
  color: var(--beamer-primary);
}

/* ── Figure / Chart containers ─────────────────────────────── */
.figure {
  margin: 16px 0;
  text-align: center;
}

.figure img {
  max-width: 85%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(26, 35, 126, 0.08);
}

.figure figcaption {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--beamer-text-light);
  font-style: italic;
}

/* ── Architecture Diagram (CSS-based) ──────────────────────── */
.arch-diagram {
  margin: 16px 0;
  padding: 20px;
  background: var(--beamer-lighter);
  border-radius: 6px;
  border: 1px solid rgba(26, 35, 126, 0.08);
}

.arch-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.arch-tier {
  background: var(--beamer-white);
  border-radius: 6px;
  border: 2px solid var(--beamer-accent);
  padding: 16px;
  text-align: center;
}

.arch-tier h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--beamer-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.arch-tier .tier-items {
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.55;
}

.arch-tier .tier-items span {
  display: block;
  padding-left: 16px;
  position: relative;
}

.arch-tier .tier-items span::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--beamer-accent);
}

.arch-arrow {
  text-align: center;
  padding: 12px 0;
  color: var(--beamer-accent);
  font-size: 1.5rem;
  letter-spacing: 4px;
}

.arch-fusion {
  background: var(--beamer-white);
  border: 2px solid var(--beamer-primary);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}

.arch-fusion h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--beamer-primary);
  margin-bottom: 8px;
}

.arch-fusion p {
  font-size: 0.88rem;
  color: var(--beamer-text-light);
  margin: 0;
}

.arch-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.arch-output {
  background: var(--beamer-white);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  border: 2px solid var(--beamer-green);
}

.arch-output.military {
  border-color: var(--beamer-orange);
}

.arch-output h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.arch-output p {
  font-size: 0.82rem;
  color: var(--beamer-text-light);
  margin: 0;
}

/* ── Simulation Embed ──────────────────────────────────────── */
.sim-container {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
  max-height: 460px;            /* tabs (~40px) + iframe (420px) hard ceiling */
  border: 2px solid var(--beamer-accent);
  box-shadow: 0 4px 16px rgba(26, 35, 126, 0.1);
}

.sim-container iframe {
  width: 100%;
  height: 420px;
  max-height: 420px;            /* defense-in-depth: never exceed 420px */
  border: none;
  display: block;
}

.sim-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  position: relative;
}

.sim-tab {
  flex: 1;
  padding: 12px 20px;
  background: var(--beamer-light);
  border: none;
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--beamer-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.sim-tab:hover {
  background: var(--beamer-lighter);
}

.sim-tab.active {
  background: var(--beamer-white);
  color: var(--beamer-primary);
  border-bottom-color: var(--beamer-gold);
}

/* ── Simulation Fullscreen ────────────────────────────────── */
.sim-fullscreen-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 10;
  background: var(--beamer-primary);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  padding: 0;
  line-height: 1;
}

.sim-fullscreen-btn:hover {
  background: var(--beamer-accent);
  color: #fff;
  transform: scale(1.08);
}

.sim-fullscreen-btn:active {
  transform: scale(0.95);
}

/* Icon switching: show expand by default, collapse when fullscreen */
.sim-fullscreen-btn .fs-icon-collapse {
  display: none;
}

.sim-is-fullscreen .sim-fullscreen-btn .fs-icon-expand {
  display: none;
}

.sim-is-fullscreen .sim-fullscreen-btn .fs-icon-collapse {
  display: block;
}

/* CSS fallback fullscreen (used when Fullscreen API unavailable) */
.sim-fullscreen-fallback {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  background: #0d1117;
}

.sim-fullscreen-fallback iframe {
  height: calc(100vh - 44px) !important;
  max-height: none !important;
}

/* Native Fullscreen API styles (applies when browser goes fullscreen) */
.sim-container:fullscreen,
.sim-container:-webkit-full-screen {
  max-height: none !important;
  background: #0d1117;
  border: none;
  border-radius: 0;
}

.sim-container:fullscreen iframe,
.sim-container:-webkit-full-screen iframe {
  height: calc(100vh - 44px) !important;
  max-height: none !important;
}

.sim-container:fullscreen .sim-tabs,
.sim-container:-webkit-full-screen .sim-tabs {
  background: #0d1117;
}

.sim-container:fullscreen .sim-tab,
.sim-container:-webkit-full-screen .sim-tab {
  background: #161b22;
  color: rgba(255, 255, 255, 0.7);
  border-bottom-color: transparent;
}

.sim-container:fullscreen .sim-tab:hover,
.sim-container:-webkit-full-screen .sim-tab:hover {
  background: #1c2333;
}

.sim-container:fullscreen .sim-tab.active,
.sim-container:-webkit-full-screen .sim-tab.active {
  background: #21262d;
  color: #fff;
  border-bottom-color: var(--beamer-gold);
}

.sim-container:fullscreen .sim-fullscreen-btn,
.sim-container:-webkit-full-screen .sim-fullscreen-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.sim-container:fullscreen .sim-fullscreen-btn:hover,
.sim-container:-webkit-full-screen .sim-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Also style the CSS-fallback mode tabs to match native fullscreen */
.sim-fullscreen-fallback .sim-tabs {
  background: #0d1117;
}

.sim-fullscreen-fallback .sim-tab {
  background: #161b22;
  color: rgba(255, 255, 255, 0.7);
  border-bottom-color: transparent;
}

.sim-fullscreen-fallback .sim-tab:hover {
  background: #1c2333;
}

.sim-fullscreen-fallback .sim-tab.active {
  background: #21262d;
  color: #fff;
  border-bottom-color: var(--beamer-gold);
}

.sim-fullscreen-fallback .sim-fullscreen-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.sim-fullscreen-fallback .sim-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Team Section ──────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.team-member {
  text-align: center;
  padding: 14px 10px;
  background: var(--beamer-lighter);
  border-radius: 6px;
  border: 1px solid rgba(26, 35, 126, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(26, 35, 126, 0.12);
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--beamer-primary), var(--beamer-accent));
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--beamer-white);
  box-shadow: 0 2px 8px rgba(26, 35, 126, 0.2);
}

.team-member h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--beamer-primary);
  margin-bottom: 4px;
}

.team-member .role {
  font-size: 0.82rem;
  color: var(--beamer-text-light);
  font-weight: 500;
  margin-bottom: 8px;
}

.team-member .contrib {
  font-size: 0.78rem;
  color: var(--beamer-text-light);
  line-height: 1.5;
}

/* ── The Ask Section ───────────────────────────────────────── */
.ask-highlight {
  background: linear-gradient(135deg, var(--beamer-primary) 0%, #0d1247 100%);
  color: #fff;
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  margin: 16px 0;
}

.ask-highlight h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: none;
  color: #fff;
  padding: 0;
}

.ask-highlight p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 24px;
}

.ask-highlight .ask-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--beamer-gold);
  margin: 10px 0;
}

.ask-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
  text-align: left;
}

.ask-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 16px;
}

.ask-item strong {
  color: var(--beamer-gold);
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.ask-item span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Contact Section ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.contact-card {
  background: var(--beamer-lighter);
  border: 1px solid rgba(26, 35, 126, 0.08);
  border-radius: 6px;
  padding: 20px;
}

.contact-card h3 {
  margin-top: 0;
}

.contact-email {
  color: var(--beamer-primary);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: var(--beamer-accent);
  text-decoration: underline;
}

.contact-person {
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--beamer-text);
  line-height: 1.6;
}

.contact-person:last-child {
  margin-bottom: 0;
}

.contact-person strong {
  color: var(--beamer-primary);
  font-weight: 600;
}

.contact-person a {
  color: var(--beamer-accent);
  text-decoration: none;
  font-size: 0.88rem;
}

.contact-person a:hover {
  text-decoration: underline;
}

.sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.source-card {
  background: var(--beamer-lighter);
  border: 1px solid rgba(26, 35, 126, 0.08);
  border-radius: 6px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.source-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--beamer-primary), var(--beamer-accent));
}

.source-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.12);
}

.source-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--beamer-primary);
  margin-bottom: 8px;
}

.source-card p {
  font-size: 0.85rem;
  color: var(--beamer-text-light);
  line-height: 1.5;
  margin-bottom: 12px;
}

.source-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--beamer-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.source-link:hover {
  color: var(--beamer-primary);
  text-decoration: underline;
}

/* ── Legal Section ─────────────────────────────────────────── */
.legal-section {
  background: var(--beamer-bg);
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.legal-card {
  background: var(--beamer-lighter);
  border: 1px solid rgba(26, 35, 126, 0.06);
  border-radius: 8px;
  padding: 24px;
}

.legal-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--beamer-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legal-card p {
  font-size: 0.88rem;
  color: var(--beamer-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.legal-card a {
  color: var(--beamer-accent);
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-attr-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-attr-list li {
  font-size: 0.85rem;
  color: var(--beamer-text-light);
  line-height: 1.6;
  padding: 6px 0;
  border-bottom: 1px solid rgba(26, 35, 126, 0.04);
}

.legal-attr-list li:last-child {
  border-bottom: none;
}

.legal-attr-list li strong {
  color: var(--beamer-text);
  font-weight: 600;
}

.legal-disclaimer {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(26, 35, 126, 0.03);
  border-left: 3px solid var(--beamer-primary);
  border-radius: 0 6px 6px 0;
}

.legal-disclaimer p {
  font-size: 0.85rem;
  color: var(--beamer-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.legal-disclaimer p:last-child {
  margin-bottom: 0;
}

.legal-disclaimer a {
  color: var(--beamer-accent);
  text-decoration: none;
}

.legal-disclaimer a:hover {
  text-decoration: underline;
}

/* ── Footer Bar (Beamer Berlin bottom bar) ─────────────────── */
.beamer-footer {
  background: linear-gradient(135deg, var(--beamer-primary) 0%, var(--beamer-secondary) 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.beamer-footer a {
  color: var(--beamer-gold);
  text-decoration: none;
  font-weight: 500;
}

.beamer-footer a:hover {
  text-decoration: underline;
}

/* ── Code Blocks ───────────────────────────────────────────── */
code, pre {
  font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
}

code {
  background: #f0f0f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88em;
  color: var(--beamer-secondary);
}

pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px 24px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 16px 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ── Animated Scroll Reveal ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ── Status badges ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-green {
  background: #e8f5e9;
  color: var(--beamer-green);
}

.badge-gold {
  background: #fff8e1;
  color: #f57f17;
}

.badge-blue {
  background: var(--beamer-light);
  color: var(--beamer-primary);
}

.badge-red {
  background: #ffebee;
  color: var(--beamer-red);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .beamer-header {
    padding: 0 16px;
    height: 48px;
  }

  .beamer-header nav {
    display: none;
  }

  .beamer-header .header-right {
    font-size: 0.72rem;
  }

  .beamer-breadcrumb {
    top: 48px;
    height: 28px;
  }

  main {
    margin-top: 76px;
  }

  .hero {
    padding: 56px 16px 36px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .frame {
    margin: 12px auto;
    padding: 0 8px;
  }

  .frame-body {
    padding: 16px 14px;
  }

  .arch-tiers,
  .arch-outputs {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .innovation-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid,
  .sources-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .beamer-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px 20px;
  }

  .sim-container {
    max-height: 390px;          /* tabs (~40px) + iframe (350px) */
  }

  .sim-container iframe {
    height: 350px;
    max-height: 350px;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .ask-items {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile hamburger menu ─────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  background: var(--beamer-primary);
  z-index: 998;
  flex-direction: column;
  padding: 12px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Paper page specific styles ────────────────────────────── */
.paper-content {
  max-width: 800px;
  margin: 0 auto;
}

.paper-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--beamer-primary);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--beamer-light);
}

.paper-content h1:first-child {
  margin-top: 0;
}

.paper-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--beamer-secondary);
  margin: 32px 0 12px;
}

.paper-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--beamer-accent);
  margin: 24px 0 10px;
}

.paper-content p {
  margin-bottom: 14px;
  text-align: justify;
  hyphens: auto;
}

.paper-content ul, .paper-content ol {
  margin: 12px 0 16px 24px;
}

.paper-content li {
  margin-bottom: 6px;
}

/* ── Demo page specific styles ─────────────────────────────── */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.demo-main {
  min-width: 0;
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-sidebar .panel {
  background: var(--beamer-white);
  border-radius: 8px;
  border: var(--frame-border);
  box-shadow: var(--frame-shadow);
  overflow: hidden;
}

.demo-sidebar .panel-header {
  background: linear-gradient(135deg, var(--beamer-primary), var(--beamer-secondary));
  color: #fff;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.demo-sidebar .panel-body {
  padding: 16px;
}

.scenario-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--beamer-lighter);
  border: 1px solid rgba(26, 35, 126, 0.08);
  border-radius: 6px;
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--beamer-text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.scenario-btn:hover {
  background: var(--beamer-light);
  border-color: var(--beamer-accent);
}

.scenario-btn.active {
  background: var(--beamer-primary);
  color: #fff;
  border-color: var(--beamer-primary);
}

.scenario-btn:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
}

/* ── TRL indicator ─────────────────────────────────────────── */
.trl-bar {
  display: flex;
  gap: 3px;
  margin: 16px 0;
}

.trl-segment {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(26, 35, 126, 0.08);
  position: relative;
}

.trl-segment.filled {
  background: linear-gradient(90deg, var(--beamer-green), var(--beamer-accent));
}

.trl-segment.current {
  background: var(--beamer-gold);
  box-shadow: 0 0 8px rgba(249, 168, 37, 0.4);
}

.trl-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--beamer-text-light);
  margin-top: 4px;
}

/* ── Pipeline steps ────────────────────────────────────────── */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 14px 0;
  overflow-x: auto;
  padding: 4px 0;
}

.pipeline-step {
  background: var(--beamer-lighter);
  border: 1px solid rgba(26, 35, 126, 0.1);
  border-radius: 4px;
  padding: 10px 12px;
  text-align: center;
  min-width: 110px;
  flex-shrink: 0;
}

.pipeline-step .step-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--beamer-accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.pipeline-step .step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--beamer-primary);
  margin-bottom: 2px;
}

.pipeline-step .step-detail {
  font-size: 0.72rem;
  color: var(--beamer-text-light);
}

.pipeline-arrow {
  font-size: 1.2rem;
  color: var(--beamer-accent);
  flex-shrink: 0;
  padding: 0 4px;
}

/* ── Highlight quote ───────────────────────────────────────── */
.highlight-quote {
  background: linear-gradient(135deg, var(--beamer-primary), var(--beamer-secondary));
  color: #fff;
  padding: 18px 28px;
  border-radius: 6px;
  margin: 14px 0;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
  font-style: italic;
}

.highlight-quote strong {
  color: var(--beamer-gold);
}

/* ── Strategic Vision — Cost Asymmetry Table ───────────────── */
.cost-asymmetry-table .ratio-cell {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
}

.cost-asymmetry-table .ratio-green {
  color: var(--beamer-green);
}

.cost-asymmetry-table .ratio-gold {
  color: var(--beamer-gold);
}

.cost-asymmetry-table .ratio-red {
  color: var(--beamer-red);
}

.cost-asymmetry-table .advantage-defender {
  color: var(--beamer-green);
  font-weight: 600;
  font-size: 0.85rem;
}

.cost-asymmetry-table .advantage-attacker {
  color: var(--beamer-red);
  font-weight: 600;
  font-size: 0.85rem;
}

.beamer-table .highlight-row-danger {
  background: rgba(198, 40, 40, 0.06) !important;
}

.beamer-table .highlight-row-danger td {
  color: var(--beamer-red);
  font-weight: 600;
}

/* ── Strategic Vision — Five-Domain Grid ───────────────────── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.domain-card {
  background: var(--beamer-lighter);
  border: 1px solid rgba(26, 35, 126, 0.08);
  border-radius: 6px;
  padding: 16px 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.domain-card.domain-physical::before { background: var(--beamer-primary); }
.domain-card.domain-cyber::before { background: #00897b; }
.domain-card.domain-economic::before { background: var(--beamer-gold); }
.domain-card.domain-info::before { background: var(--beamer-orange); }
.domain-card.domain-societal::before { background: #6a1b9a; }

.domain-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.12);
}

.domain-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.domain-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 8px;
}

.badge-physical { background: var(--beamer-primary); }
.badge-cyber { background: #00897b; }
.badge-economic { background: var(--beamer-gold); color: var(--beamer-text); }
.badge-info { background: var(--beamer-orange); }
.badge-societal { background: #6a1b9a; }

.domain-desc {
  font-size: 0.78rem;
  color: var(--beamer-text-light);
  line-height: 1.4;
}

/* ── Strategic Vision — Institutional Pipeline ─────────────── */
.pipeline-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 24px 0;
  padding: 12px 0;
  overflow-x: auto;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 110px;
  flex-shrink: 0;
}

.pipeline-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  flex-shrink: 0;
}

.pipeline-active .pipeline-marker {
  background: var(--beamer-green);
  box-shadow: 0 0 12px rgba(46, 125, 50, 0.4);
}

.pipeline-next .pipeline-marker {
  background: var(--beamer-gold);
  color: var(--beamer-text);
  box-shadow: 0 0 12px rgba(249, 168, 37, 0.4);
}

.pipeline-future .pipeline-marker {
  background: rgba(26, 35, 126, 0.15);
  color: var(--beamer-text-light);
}

.pipeline-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--beamer-text);
  margin-bottom: 2px;
}

.pipeline-sublabel {
  font-size: 0.72rem;
  color: var(--beamer-text-light);
  line-height: 1.3;
  max-width: 120px;
}

.pipeline-connector {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--beamer-accent), rgba(26, 35, 126, 0.15));
  margin-top: 17px;
  flex-shrink: 0;
}

/* ── Ecosystem Synergies — 4-column grid ───────────────────── */
.synergy-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Strategic Vision — Responsive ─────────────────────────── */
@media (max-width: 900px) {
  .domain-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .synergy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-track {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .domain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .synergy-grid {
    grid-template-columns: 1fr;
  }

  .pipeline {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }

  .pipeline-step {
    min-width: 80px;
    flex: 1 1 calc(33% - 12px);
  }

  .pipeline-arrow {
    display: none;
  }

  .pipeline-track {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .pipeline-connector {
    display: none;
  }

  .pipeline-node {
    min-width: 90px;
  }
}

/* ── Print styles ──────────────────────────────────────────── */
@media print {
  .beamer-header,
  .beamer-breadcrumb,
  .beamer-footer,
  .mobile-menu-btn,
  .mobile-nav {
    display: none !important;
  }

  main {
    margin-top: 0;
  }

  .frame-inner {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .hero {
    background: var(--beamer-primary) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
