/* ========================================================================
   MSB THESIS DEFENSE — Light Consulting Theme
   LANDSCAPE 16:9 · Clean White · Soft Shadows · Professional
   ======================================================================== */

:root {
  --bg: #FFFFFF;
  --bg2: #F8FAFC;
  --bg3: #F1F5F9;
  --primary: #E85A10;
  --primary-dim: rgba(232, 90, 16, 0.08);
  --primary-glow: rgba(232, 90, 16, 0.15);
  --accent: #E09000;
  --accent-dim: rgba(224, 144, 0, 0.07);
  --success: #059669;
  --success-dim: rgba(5, 150, 105, 0.07);
  --danger: #DC2626;
  --danger-dim: rgba(220, 38, 38, 0.06);
  --purple: #7C3AED;
  --purple-dim: rgba(124, 58, 237, 0.06);
  --cyan: #0891B2;
  --cyan-dim: rgba(8, 145, 178, 0.06);
  --text: #1E293B;
  --muted: #64748B;
  --dim: #94A3B8;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-hover: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-border-hover: rgba(0, 0, 0, 0.12);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --slide-padding: clamp(1.5rem, 3vw, 3rem);
  --content-max: 1400px;
  --gap: clamp(0.6rem, 1.2vw, 1.2rem);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.4s;
  --radius: 16px;
  --radius-sm: 10px;

  /* Typographic Scale — 7 steps */
  --fs-2xs: 0.625rem;    /* 10px — gate labels, keyboard hints */
  --fs-xs: 0.6875rem;    /* 11px — overlines, badges, tags, captions */
  --fs-sm: 0.8125rem;    /* 13px — table cells, bar labels, nav, scores */
  --fs-base: 0.9375rem;  /* 15px — body text, lists, callouts, cards */
  --fs-md: 1.0625rem;    /* 17px — h4, decision titles, quotes */
  --fs-lg: 1.1875rem;    /* 19px — h3 */
  --fs-xl: 1.375rem;     /* 22px — used with clamp for slide-title */
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* === SUBTLE TEXTURE OVERLAY === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === SLIDE CONTAINER === */
.slide-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

/* Subtle accent glow per slide */
.slide-container::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 90, 16, 0.03) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

/* === HEADER / PROGRESS === */
.slide-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.6rem var(--slide-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.slide-number {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--dim);
  letter-spacing: 2px;
  font-weight: 700;
}

.slide-number .current {
  color: var(--primary);
  font-size: var(--fs-md);
}

.progress-bar {
  flex: 1;
  max-width: 200px;
  height: 3px;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  margin-left: 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--accent));
  border-radius: 2px;
  transition: width 0.6s var(--ease);
  box-shadow: 0 1px 4px rgba(232, 90, 16, 0.2);
}

.slide-section-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}

/* === MAIN CONTENT === */
.slide-content {
  flex: 1;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 2.8rem var(--slide-padding) 2.8rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  z-index: 1;
}
.slide-content::-webkit-scrollbar { display: none; }

/* === 2-COL LAYOUT === */
.slide-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.slide-body.cols-3-2 { grid-template-columns: 3fr 2fr; }
.slide-body.cols-2-3 { grid-template-columns: 2fr 3fr; }
.slide-body > .full-width { grid-column: 1 / -1; }

/* === SECTION NUMBER === */
.section-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, rgba(232,90,16,0.12), rgba(232,90,16,0.03));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: -0.3rem;
}

/* === TYPOGRAPHY — Cinematic === */
.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, #1E293B 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.slide-subtitle {
  font-size: var(--fs-base);
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 0.8rem;
  max-width: 700px;
  line-height: 1.5;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

h4 {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.3rem;
}

.overline {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 0.15rem;
  display: block;
}

/* === GLASS CARDS — Cinematic === */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: clamp(0.6rem, 1.2vw, 1rem);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Top highlight line on glass cards */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}

.card:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 0 0 1px rgba(232,90,16,0.08);
}

.card.border-primary { border-left: 3px solid var(--primary); }
.card.border-accent { border-left: 3px solid var(--accent); }
.card.border-success { border-left: 3px solid var(--success); }
.card.border-amber { border-left: 3px solid var(--accent); }
.card.border-danger { border-left: 3px solid var(--danger); }
.card.border-purple { border-left: 3px solid var(--purple); }
.card.border-cyan { border-left: 3px solid var(--cyan); }

.card-highlight {
  background: rgba(232, 90, 16, 0.05);
  border-color: rgba(232, 90, 16, 0.2);
  box-shadow: 0 4px 16px rgba(232, 90, 16, 0.06);
}

/* === GRIDS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); }
.grid-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: var(--gap); }

/* === METRICS — Gradient text === */
.metric { text-align: center; padding: 0.5rem 0.3rem; }

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.15rem;
}

/* Gradient metric colors — cinematic style */
.metric-value.text-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.metric-value.text-accent {
  background: linear-gradient(135deg, var(--accent), #fcd34d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.metric-value.text-success {
  background: linear-gradient(135deg, var(--success), #34d399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.metric-value.text-amber {
  background: linear-gradient(135deg, var(--accent), #fcd34d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.metric-value.text-danger { color: var(--danger); }
.metric-value.text-purple {
  background: linear-gradient(135deg, var(--purple), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.metric-value.text-cyan {
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.metric-label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.metric-detail { font-size: var(--fs-xs); color: var(--dim); margin-top: 0.1rem; }

/* === DATA TABLES === */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); margin: 0.4rem 0; }
.data-table thead th { background: rgba(232,90,16,0.05); color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: var(--fs-xs); padding: 0.4rem 0.6rem; text-align: left; border-bottom: 1px solid rgba(249,102,24,0.15); }
.data-table thead th:first-child { border-radius: 6px 0 0 0; }
.data-table thead th:last-child { border-radius: 0 6px 0 0; }
.data-table tbody td { padding: 0.38rem 0.6rem; border-bottom: 1px solid var(--glass-border); vertical-align: middle; }
.data-table tbody tr:hover td { background: var(--glass-hover); }
.data-table .highlight-row td { background: rgba(232,90,16,0.06); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }

/* === BAR CHARTS === */
.bar-chart { margin: 0.4rem 0; }
.bar-row { display: flex; align-items: center; margin-bottom: 0.35rem; gap: 0.5rem; }
.bar-label { min-width: 90px; font-size: var(--fs-sm); color: var(--muted); text-align: right; flex-shrink: 0; }
.bar-track { flex: 1; height: 18px; background: rgba(0,0,0,0.04); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 1.4s var(--ease); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.4rem; font-size: var(--fs-xs); font-weight: 700; color: white; min-width: 24px; }
.bar-fill.bg-primary { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.bar-fill.bg-accent { background: linear-gradient(90deg, var(--accent), #fcd34d); }
.bar-fill.bg-success { background: linear-gradient(90deg, var(--success), #34d399); }
.bar-fill.bg-amber { background: linear-gradient(90deg, var(--accent), #fcd34d); }
.bar-fill.bg-purple { background: linear-gradient(90deg, var(--purple), #a78bfa); }
.bar-fill.bg-danger { background: linear-gradient(90deg, var(--danger), #f87171); }
.bar-fill.bg-cyan { background: linear-gradient(90deg, var(--cyan), #38bdf8); }
.bar-value { min-width: 50px; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text); font-weight: 600; flex-shrink: 0; }

/* === SCORE BARS === */
.score-bar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.score-label { min-width: 110px; font-size: var(--fs-sm); color: var(--muted); }
.score-track { flex: 1; height: 6px; background: rgba(0,0,0,0.06); border-radius: 3px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 3px; transition: width 1.4s var(--ease); }
.score-value { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600; min-width: 32px; }

/* === TIMELINE === */
.timeline { position: relative; padding: 0.4rem 0; }
.timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary), var(--cyan), var(--success)); }
.timeline-item { display: flex; gap: 0.8rem; margin-bottom: 0.7rem; position: relative; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg); flex-shrink: 0; margin-top: 0.3rem; margin-left: 14px; z-index: 1; }
.timeline-content { flex: 1; }
.timeline-phase { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.1rem; }

/* Horizontal timeline */
.h-timeline { display: flex; gap: 0; position: relative; margin: 0.8rem 0; }
.h-timeline::before { content: ''; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--cyan), var(--success), var(--purple)); border-radius: 2px; }
.h-timeline-item { flex: 1; text-align: center; position: relative; padding-top: 2rem; font-size: var(--fs-sm); }
.h-timeline-item::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); z-index: 1; }
.h-timeline-item:nth-child(2)::before { border-color: var(--cyan); }
.h-timeline-item:nth-child(3)::before { border-color: var(--accent); }
.h-timeline-item:nth-child(4)::before { border-color: var(--success); }
.h-timeline-item:nth-child(5)::before { border-color: var(--purple); }

/* === TAGS === */
.tag { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 100px; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-primary { background: var(--primary-dim); color: var(--primary); }
.tag-accent { background: var(--accent-dim); color: var(--accent); }
.tag-success { background: var(--success-dim); color: var(--success); }
.tag-amber { background: var(--accent-dim); color: var(--accent); }
.tag-danger { background: var(--danger-dim); color: var(--danger); }
.tag-purple { background: var(--purple-dim); color: var(--purple); }
.tag-cyan { background: var(--cyan-dim); color: var(--cyan); }

/* === CALLOUT BOXES — Cinematic === */
.research-question { background: rgba(0,174,199,0.06); border-left: 3px solid var(--cyan); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.6rem 0.9rem; margin: 0.5rem 0; font-style: italic; font-size: var(--fs-base); backdrop-filter: blur(8px); }
.research-question .rq-label { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 2px; font-style: normal; margin-bottom: 0.2rem; display: block; }

.finding-box { background: rgba(16,185,129,0.06); border-left: 3px solid var(--success); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.6rem 0.9rem; margin: 0.5rem 0; font-size: var(--fs-base); backdrop-filter: blur(8px); }
.finding-box .finding-label { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; color: var(--success); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.2rem; display: block; }

.warning-box { background: rgba(239,68,68,0.06); border-left: 3px solid var(--danger); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.6rem 0.9rem; margin: 0.5rem 0; font-size: var(--fs-base); backdrop-filter: blur(8px); }

.insight-box { background: rgba(255,171,64,0.06); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.6rem 0.9rem; margin: 0.5rem 0; font-size: var(--fs-base); backdrop-filter: blur(8px); }

.decision-box { background: linear-gradient(135deg, rgba(232,90,16,0.04), rgba(224,144,0,0.03)); border: 2px solid var(--accent); border-radius: var(--radius); padding: 0.8rem 1.2rem; margin: 0.7rem 0; text-align: center; box-shadow: 0 2px 16px rgba(224,144,0,0.06); }
.decision-box .decision-title { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 800; color: var(--primary); margin-bottom: 0.3rem; }

/* === QUOTE === */
.quote-box { border-left: 3px solid var(--accent); padding: 0.6rem 1rem; margin: 0.5rem 0; background: rgba(255,171,64,0.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; position: relative; backdrop-filter: blur(8px); }
.quote-box::before { content: '"'; position: absolute; top: -4px; left: 8px; font-size: 2.5rem; color: var(--accent); opacity: 0.2; font-family: Georgia, serif; }
.quote-box .quote-text { font-family: var(--font-display); font-size: var(--fs-base); font-style: italic; line-height: 1.4; color: var(--text); }
.quote-box .quote-source { font-size: var(--fs-sm); color: var(--muted); margin-top: 0.3rem; }

/* === RISK METER === */
.risk-meter { display: flex; gap: 2px; margin: 0.25rem 0; }
.risk-block { width: 14px; height: 5px; border-radius: 2px; background: rgba(0,0,0,0.06); }
.risk-block.active.high { background: var(--danger); }
.risk-block.active.medium { background: var(--accent); }
.risk-block.active.low { background: var(--success); }

/* === COMPARE === */
.compare-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.6rem; align-items: stretch; }
.compare-before { background: rgba(239,68,68,0.05); border: 1px solid rgba(239,68,68,0.15); border-radius: var(--radius-sm); padding: 0.7rem; backdrop-filter: blur(8px); }
.compare-arrow { display: flex; align-items: center; font-size: 1.5rem; color: var(--primary); }
.compare-after { background: rgba(16,185,129,0.05); border: 1px solid rgba(16,185,129,0.15); border-radius: var(--radius-sm); padding: 0.7rem; backdrop-filter: blur(8px); }

/* === HERO IMAGE === */
.hero-image { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-sm); margin: 0.4rem 0; border: 1px solid var(--glass-border); }
.side-image { width: 100%; max-height: 100%; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); }
.image-caption { font-size: var(--fs-xs); color: var(--dim); text-align: center; font-style: italic; margin-top: -0.2rem; margin-bottom: 0.4rem; }
.image-float-right { float: right; width: 38%; margin: 0 0 0.5rem 0.8rem; border-radius: var(--radius-sm); max-height: 180px; object-fit: cover; }

/* === COVER SLIDE === */
.cover-slide { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 100vh; padding: var(--slide-padding); position: relative; overflow: hidden; }
.cover-bg { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; overflow: hidden; }
.cover-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: saturate(0.8); }
/* Vignette */
.cover-bg::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 200px 80px rgba(255,255,255,0.7); }

.cover-badge { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 5px; border: 1px solid rgba(232,90,16,0.2); padding: 0.3rem 1.2rem; border-radius: 100px; margin-bottom: 1.5rem; background: rgba(232,90,16,0.05); }

.cover-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 900; line-height: 1.1; max-width: 900px; margin-bottom: 0.6rem; background: linear-gradient(135deg, #1E293B 0%, #475569 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: none; letter-spacing: -0.02em; }

.cover-subtitle { font-size: clamp(0.85rem, 1.5vw, 1.1rem); color: var(--muted); max-width: 700px; margin-bottom: 2rem; line-height: 1.6; }

.cover-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; font-size: var(--fs-base); color: var(--muted); }
.cover-meta .meta-item { display: flex; align-items: center; gap: 0.4rem; }
.cover-meta .meta-label { color: var(--dim); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

.cover-confidential { position: fixed; bottom: 1.2rem; font-family: var(--font-display); font-size: var(--fs-xs); color: var(--danger); text-transform: uppercase; letter-spacing: 4px; opacity: 0.5; font-weight: 600; }

/* === NAVIGATION === */
.slide-footer { position: absolute; bottom: 0; left: 0; right: 0; z-index: 100; padding: 0.5rem var(--slide-padding); background: linear-gradient(0deg, rgba(255,255,255,0.95) 0%, transparent 100%); pointer-events: none; }
.slide-footer > * { pointer-events: auto; }
.slide-nav { display: flex; justify-content: space-between; align-items: center; max-width: var(--content-max); margin: 0 auto; }

.nav-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.9rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); background: var(--glass); border: 1px solid var(--glass-border); cursor: pointer; transition: all 0.3s var(--ease); text-decoration: none; backdrop-filter: blur(8px); text-transform: uppercase; letter-spacing: 1px; }
.nav-btn:hover { color: var(--text); background: var(--glass-hover); border-color: var(--glass-border-hover); transform: translateY(-1px); }
.nav-btn.primary { background: rgba(249,102,24,0.08); border-color: rgba(249,102,24,0.3); color: var(--primary); }
.nav-btn.primary:hover { background: var(--primary); color: white; box-shadow: 0 4px 16px rgba(232,90,16,0.2); }

.nav-home { font-family: var(--font-display); font-size: var(--fs-xs); color: var(--dim); text-transform: uppercase; letter-spacing: 3px; font-weight: 600; }
.nav-keyboard-hint { position: fixed; bottom: 2.5rem; right: var(--slide-padding); font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--dim); opacity: 0.35; }

/* === LISTS === */
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 0.2rem 0 0.2rem 1.5rem; position: relative; font-size: var(--fs-base); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.num-list { list-style: none; padding: 0; counter-reset: item; }
.num-list li { padding: 0.2rem 0 0.2rem 2rem; position: relative; font-size: var(--fs-base); counter-increment: item; }
.num-list li::before { content: counter(item); position: absolute; left: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--primary-dim); color: var(--primary); font-weight: 700; font-size: var(--fs-xs); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); }

/* === UTILITY === */
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.text-center { text-align: center; } .text-sm { font-size: var(--fs-sm) !important; } .text-xs { font-size: var(--fs-xs) !important; }
.text-muted { color: var(--muted); } .text-dim { color: var(--dim); }
.text-primary { color: var(--primary); } .text-accent { color: var(--accent); } .text-success { color: var(--success); }
.text-amber { color: var(--accent); } .text-danger { color: var(--danger); } .text-purple { color: var(--purple); } .text-cyan { color: var(--cyan); }
.font-mono { font-family: var(--font-mono); } .font-display { font-family: var(--font-display); } .fw-700 { font-weight: 700; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 0.3rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.8rem; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border), transparent); margin: 0.6rem 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.4rem; }

/* ================================================================
   INFOGRAPHIC DIAGRAMS
   ================================================================ */

/* DONUT CHART */
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.donut { width: clamp(130px, 16vw, 190px); height: clamp(130px, 16vw, 190px); border-radius: 50%; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.donut::after { content: ''; position: absolute; inset: 26%; border-radius: 50%; background: var(--bg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; text-align: center; padding: 28%; }
.donut-center .donut-label { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; color: var(--text); line-height: 1.3; }
.donut-legend { display: flex; flex-direction: column; gap: 0.3rem; }
.donut-legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); }
.donut-legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.donut-legend-pct { font-family: var(--font-mono); font-weight: 700; min-width: 30px; }

/* MAP CALLOUT */
.map-infographic { position: relative; min-height: 280px; }
.map-bg { position: absolute; inset: 0; opacity: 0.06; z-index: 0; }
.map-callouts { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.map-callout { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.6rem; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 6px; font-size: var(--fs-sm); transition: all 0.3s var(--ease); backdrop-filter: blur(10px); }
.map-callout:hover { border-color: rgba(249,102,24,0.3); background: var(--glass-hover); }
.map-callout.best { border-color: rgba(232,90,16,0.3); background: rgba(232,90,16,0.05); box-shadow: 0 2px 12px rgba(232,90,16,0.06); }
.map-callout-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
.map-callout.best .map-callout-dot { background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.map-callout-name { font-weight: 700; min-width: 65px; color: var(--text); }
.map-callout-detail { color: var(--muted); flex: 1; }
.map-callout-roi { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }

/* CONVERGENCE */
.convergence-diagram { position: relative; padding: 0.8rem 0; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.convergence-tracks { display: flex; gap: 1.5rem; width: 100%; justify-content: center; align-items: center; }
.convergence-track { text-align: center; padding: 0.7rem; border-radius: var(--radius-sm); flex: 1; max-width: 180px; }
.convergence-track.physical { border: 2px solid rgba(249,102,24,0.3); background: rgba(249,102,24,0.05); }
.convergence-track.virtual { border: 2px solid rgba(0,174,199,0.3); background: rgba(0,174,199,0.05); }
.convergence-merge { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--cyan)); display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 800; color: white; box-shadow: 0 4px 16px rgba(232,90,16,0.15); flex-shrink: 0; }
.convergence-shared { text-align: center; padding: 0.4rem 1.2rem; background: linear-gradient(90deg, rgba(139,92,246,0.06), rgba(0,174,199,0.06)); border: 1px dashed rgba(139,92,246,0.2); border-radius: var(--radius-sm); font-size: var(--fs-sm); }

/* PHASE GATES */
.phase-gates { display: flex; align-items: flex-start; gap: 0; width: 100%; margin: 0.4rem 0; }
.phase-gate-item { flex: 1; text-align: center; }
.phase-gate-arrow { background: var(--glass); border: 1px solid var(--glass-border); padding: 0.4rem 0.2rem 0.4rem 0.8rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); font-size: var(--fs-xs); min-height: 50px; display: flex; flex-direction: column; justify-content: center; }
.phase-gate-item:first-child .phase-gate-arrow { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); padding-left: 0.5rem; border-radius: 6px 0 0 6px; }
.phase-gate-arrow .phase-name { font-weight: 800; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-display); }
.phase-gate-arrow .phase-cost { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.phase-gate-item:nth-child(1) .phase-gate-arrow { background: rgba(255,171,64,0.06); border-color: rgba(255,171,64,0.2); }
.phase-gate-item:nth-child(2) .phase-gate-arrow { background: rgba(249,102,24,0.06); border-color: rgba(249,102,24,0.2); }
.phase-gate-item:nth-child(3) .phase-gate-arrow { background: rgba(0,174,199,0.06); border-color: rgba(0,174,199,0.2); }
.phase-gate-item:nth-child(4) .phase-gate-arrow { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.2); }
.phase-gate-item:nth-child(5) .phase-gate-arrow { background: rgba(139,92,246,0.06); border-color: rgba(139,92,246,0.2); }
.gate-diamond { width: 16px; height: 16px; background: var(--accent); transform: rotate(45deg); margin: 0.25rem auto; box-shadow: 0 2px 6px rgba(224,144,0,0.2); }
.gate-label { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.15rem; }

/* TAGLINE */
.tagline { font-family: var(--font-display); font-size: clamp(0.85rem, 1.4vw, 1.1rem); font-weight: 700; text-align: center; margin-top: 0.4rem; }
.tagline strong { text-transform: uppercase; }

/* === ANIMATIONS — Cinematic timing === */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.15s; } .reveal.delay-2 { transition-delay: 0.30s; }
.reveal.delay-3 { transition-delay: 0.45s; } .reveal.delay-4 { transition-delay: 0.60s; }
.reveal.delay-5 { transition-delay: 0.75s; } .reveal.delay-6 { transition-delay: 0.90s; }

@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px var(--primary-glow); } 50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(249,102,24,0.08); } }
.glow { animation: pulse-glow 2.5s ease-in-out infinite; }

@keyframes fade-in-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fade-in-up 0.8s var(--ease) both; }
.animate-in.d1 { animation-delay: 0.08s; } .animate-in.d2 { animation-delay: 0.16s; }
.animate-in.d3 { animation-delay: 0.24s; } .animate-in.d4 { animation-delay: 0.32s; }
.animate-in.d5 { animation-delay: 0.40s; } .animate-in.d6 { animation-delay: 0.48s; }
.animate-in.d7 { animation-delay: 0.56s; } .animate-in.d8 { animation-delay: 0.64s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1, .grid-1-2, .grid-3-2 { grid-template-columns: 1fr; }
  .slide-body, .slide-body.cols-3-2, .slide-body.cols-2-3 { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-arrow { justify-content: center; transform: rotate(90deg); }
  .image-float-right { float: none; width: 100%; margin: 0.5rem 0; }
  .phase-gates { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .h-timeline { flex-direction: column; gap: 0.5rem; }
  .h-timeline::before { display: none; }
  .bar-label { min-width: 60px; font-size: var(--fs-xs); }
  .convergence-tracks { flex-direction: column; gap: 0.5rem; }
}

@media (max-height: 700px) {
  html { font-size: 13px; }
  .section-num { font-size: 1.8rem; }
  .cover-title { font-size: 1.6rem; }
  .slide-content { padding-top: 2rem; padding-bottom: 2rem; }
  .metric { padding: 0.2rem; }
  .card { padding: 0.4rem; }
}

/* === PRINT === */
@media print {
  body, body::after { background: white; content: none; }
  .slide-container { height: auto; overflow: visible; page-break-after: always; background: white; }
  .slide-container::before { display: none; }
  .slide-header, .slide-footer, .nav-keyboard-hint, .cover-bg { display: none; }
  .slide-content { padding: 1.5rem; max-width: none; overflow: visible; color: #1a1a1a; }
  .card { background: #f8f9fa; border-color: #dee2e6; backdrop-filter: none; }
  .slide-title, .cover-title, .metric-value { -webkit-text-fill-color: #1a1a1a; background: none; color: #1a1a1a !important; }
  a { color: #0366d6; }
  .reveal, .animate-in { opacity: 1; transform: none; animation: none; }
}
