/* ═══════════════════════════════════════════════════════════════════
   KYNDRYL — AI Platform Engineering  |  Presentation Format
   Horizontal slides  •  Light theme  •  IBM Plex Sans
═══════════════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ───────────────────────────────────────────────── */
:root {
  /* Kyndryl Brand */
  --red:          #ff462d;
  --red-hover:    #e03820;
  --red-light:    #fff0ee;
  --red-mid:      #ffd4ce;
  --red-glass:    rgba(255, 70, 45, 0.09);
  --red-border:   rgba(255, 70, 45, 0.28);

  /* Backgrounds */
  --bg:           #f2f2f2;
  --slide-bg:     #ffffff;
  --surface-1:    #f4f4f4;
  --surface-2:    #ffffff;
  --surface-dark: #161616;

  /* Text */
  --t1:  #161616;
  --t2:  #525252;
  --t3:  #8d8d8d;
  --t-inv: #ffffff;

  /* Borders */
  --b1:  #e0e0e0;
  --b2:  #c6c6c6;
  --ba:  rgba(255, 70, 45, 0.28);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.11);

  /* Type scale — fluid (+1pt across all sizes) */
  --f-hero:  clamp(2.75rem, 5.15vw, 5.75rem);
  --f-h2:    clamp(1.82rem, 3.1vw, 3.52rem);
  --f-h3:    clamp(1.08rem, 1.6vw, 1.38rem);
  --f-lead:  clamp(0.98rem, 1.3vw, 1.18rem);
  --f-body:  clamp(0.88rem, 1.02vw, 0.98rem);
  --f-sm:    clamp(0.76rem, 0.9vw, 0.86rem);
  --f-eye:   clamp(0.68rem, 0.78vw, 0.76rem);
  --f-stat:  clamp(2.32rem, 3.95vw, 4.55rem);

  /* Motion */
  --slide-ease: cubic-bezier(0.77, 0, 0.175, 1);
  --in-ease:    cubic-bezier(0.22, 1, 0.36, 1);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
}

/* ── 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: 'IBM Plex Sans', 'Helvetica Neue', system-ui, sans-serif;
  background: var(--bg);
  color: var(--t1);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  user-select: none;
  -webkit-user-select: none;
}

h1, h2, h3, h4 {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  color: var(--t1);
}
p  { color: var(--t2); line-height: 1.65; }
ul { list-style: none; padding: 0; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; line-height: 1; }

/* ── Canvas (subtle background particles) ────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ── Presentation Shell ───────────────────────────────────────────── */
.presentation {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

/* ── Slides Track ─────────────────────────────────────────────────── */
.slides-track {
  display: flex;
  height: 100vh;
  transition: transform 0.78s var(--slide-ease);
  will-change: transform;
}

/* ── Individual Slide ─────────────────────────────────────────────── */
.slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slide-bg);
}

/* Red top accent line on every slide */
.slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  z-index: 2;
}

/* Subtle dot-pattern on every slide */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Alternating slide backgrounds */
.slide--findings,
.slide--model,
.slide--governance { background: #fafafa; }
.slide--baseline,
.slide--capabilities,
.slide--programs    { background: var(--slide-bg); }

/* CTA slide — bold Kyndryl Red background */
.slide--cta {
  background: var(--red);
}
.slide--cta::after {
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.slide--cta::before {
  background: rgba(0,0,0,0.15);
}

/* ── Slide Inner ──────────────────────────────────────────────────── */
.slide-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1500px;
  padding: 4rem 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* ── Slide Header ─────────────────────────────────────────────────── */
.slide-header { display: flex; flex-direction: column; gap: 0.35rem; }

.slide-eyebrow {
  font-size: var(--f-eye);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  display: block;
}
.slide-heading {
  font-size: var(--f-h2);
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--t1);
}
.slide-sub {
  font-size: var(--f-lead);
  color: var(--t2);
  max-width: 700px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   SLIDE 01 — HERO
══════════════════════════════════════════════════ */
.slide--hero { background: var(--slide-bg); }

.slide-inner--hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3.5rem;
  padding-top: 2.5rem;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--red-border);
  background: var(--red-light);
  color: var(--red);
  font-size: var(--f-eye);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: var(--f-hero);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 0.97;
  color: var(--t1);
  margin-bottom: 1.2rem;
}
/* Red underline on last line of title */
.hero-title span.accent { color: var(--red); }

.hero-lead {
  font-size: var(--f-lead);
  color: var(--t2);
  margin-bottom: 0.7rem;
  line-height: 1.55;
}
.hero-body {
  font-size: var(--f-body);
  color: var(--t3);
  line-height: 1.75;
  margin-bottom: 1.3rem;
}
.hero-claim {
  font-size: var(--f-lead);
  font-weight: 600;
  color: var(--t1);
  border-left: 3px solid var(--red);
  padding-left: 1rem;
  margin-top: 0.2rem;
}

/* Metrics 2×2 */
.metric-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.big-metric {
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.big-metric::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.25s;
}
.big-metric:hover {
  border-color: var(--red-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.big-metric:hover::before { opacity: 1; }

.big-num {
  display: block;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.big-num--prefixed { display: flex; align-items: baseline; gap: 0.05em; }
.big-label { display: block; font-size: var(--f-sm); color: var(--t2); font-weight: 500; margin-bottom: 0.1rem; }
.big-ctx   { display: block; font-size: calc(var(--f-sm) * 0.88); color: var(--t3); }

/* Hero right card */
.hero-card {
  background: var(--surface-1);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.4rem;
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow-sm);
}
.hero-card h2 { font-size: var(--f-h3); margin-bottom: 0.5rem; color: var(--t1); }
.hero-card p  { font-size: var(--f-sm); margin-bottom: 0.85rem; }
.domain-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.85rem; }
.domain-tags span {
  font-size: calc(var(--f-sm) * 0.9);
  font-weight: 600;
  color: var(--t1);
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-radius: 5px;
  padding: 0.22rem 0.55rem;
}
.hitl-notice {
  background: var(--red-light);
  border: 1px dashed var(--red-border);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.85rem;
  font-size: var(--f-sm);
  color: var(--t2);
}
.hitl-notice strong { color: var(--red); margin-right: 0.3rem; }
.source-note { font-size: calc(var(--f-sm) * 0.88); color: var(--t3); margin-top: 0.6rem; }

/* Journey steps (Hero right column) */
.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.journey-step {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-left: 3px solid transparent;
  border-radius: var(--r-md);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.journey-step:hover {
  border-left-color: var(--red);
  border-color: var(--red-border);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.journey-step--accent {
  border-left-color: var(--red);
  background: var(--red-light);
  border-color: var(--red-border);
}
.js-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.journey-step--accent .js-num { background: var(--red); }
.js-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.js-body strong {
  font-size: var(--f-sm);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.3;
}
.js-body span {
  font-size: calc(var(--f-sm) * 0.88);
  color: var(--t2);
  line-height: 1.4;
}

/* Bottom red bar */
.slide-accent-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(255,70,45,0.25) 40%, transparent 70%);
  z-index: 2;
}

/* ══════════════════════════════════════════════════
   SLIDE 02 — FINDINGS
══════════════════════════════════════════════════ */
.findings-body { display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.stat-card {
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--in-ease), box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--in-ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red-border); }
.stat-card:hover::after { transform: scaleX(1); }

.stat-val {
  font-size: var(--f-stat);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
}
.stat-label { font-size: var(--f-body); font-weight: 600; color: var(--t1); margin-bottom: 0.25rem; }
.stat-ctx   { font-size: var(--f-sm); color: var(--t3); line-height: 1.4; }

.insight-card {
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-left: 3px solid var(--red);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.insight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.insight-card--warn { border-left-color: #e6a817; }
.insight-icon { font-size: 1.3rem; color: var(--red); margin-bottom: 0.5rem; display: block; }
.insight-card--warn .insight-icon { color: #e6a817; }
.insight-card h3 { font-size: var(--f-body); font-weight: 600; margin-bottom: 0.3rem; color: var(--t1); }
.insight-card p  { font-size: var(--f-sm); }

/* Findings visual: donut chart + insight pair */
.findings-visual {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.1rem;
  align-items: center;
}

.adoption-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.ring-svg { width: 160px; height: 160px; display: block; }

/* Ring animations — only fill when active, snap back instantly on deactivation */
.ring-outer { stroke-dasharray: 408.41; stroke-dashoffset: 408.41; }
.ring-inner { stroke-dasharray: 295.31; stroke-dashoffset: 295.31; }
.slide.is-active .ring-outer { stroke-dashoffset: 40.84;  transition: stroke-dashoffset 1.6s 0.3s var(--in-ease); }
.slide.is-active .ring-inner { stroke-dashoffset: 103.36; transition: stroke-dashoffset 1.4s 0.5s var(--in-ease); }

.ring-num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  fill: #ff462d;
}
.ring-lbl {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 9.5px;
  fill: #525252;
}

.ring-legend { display: flex; flex-direction: column; gap: 0.32rem; }
.ring-leg-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--f-sm);
  color: var(--t2);
}
.ring-leg-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.ring-leg-dot--b { background: rgba(255,70,45,0.5); }

.insight-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

/* ══════════════════════════════════════════════════
   SLIDE 03 — PERFORMANCE BASELINE
══════════════════════════════════════════════════ */
.baseline-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
  flex: 1;
}
.perf-bars { display: flex; flex-direction: column; gap: 1.5rem; }

.perf-row {
  display: grid;
  grid-template-columns: 155px 1fr 190px;
  align-items: center;
  gap: 1rem;
}
.perf-label { font-size: var(--f-body); font-weight: 600; color: var(--t2); white-space: nowrap; }
.perf-track { display: flex; flex-direction: column; gap: 4px; }
.perf-bar {
  height: 10px;
  border-radius: 999px;
  width: 0;
}
.perf-bar--elite { background: linear-gradient(90deg, var(--red), rgba(255,70,45,0.5)); }
.perf-bar--non   { background: var(--b1); }
.slide.is-active .perf-bar { width: var(--bar-w, 0%); transition: width 1.2s var(--in-ease); }

.perf-vals { display: flex; flex-direction: column; gap: 4px; }
.val-elite { font-size: var(--f-sm); font-weight: 700; color: var(--red); }
.val-non   { font-size: var(--f-sm); color: var(--t3); }

.signals-split { display: grid; grid-template-rows: 1fr 1fr; gap: 0.85rem; }
.signal-card {
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.signal-card--elite { border-left: 3px solid var(--red); }
.signal-card--non   { border-left: 3px solid var(--b2); }
.signal-label { font-size: var(--f-eye); font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--red); }
.signal-label--non { color: var(--t3); }
.signal-card li { font-size: var(--f-sm); color: var(--t2); padding-left: 1rem; position: relative; margin-bottom: 0.3rem; line-height: 1.5; }
.signal-card li::before { content: '→'; position: absolute; left: 0; color: var(--red); font-size: 0.6rem; top: 0.2em; }
.signal-card--non li::before { color: var(--t3); }

/* Tighter inner spacing for diagram slide to maximise diagram height */
.slide--model .slide-inner { gap: 1.1rem; padding-top: 3.2rem; padding-bottom: 3.2rem; }

/* ══════════════════════════════════════════════════
   SLIDE 04 — MODEL DIAGRAM
══════════════════════════════════════════════════ */
.model-diagram {
  display: grid;
  grid-template-columns: 195px 90px 1fr 90px 235px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

/* Sources column — 3 nodes distributed evenly */
.md-sources {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}

.md-col-hdr {
  font-size: var(--f-eye);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--t3);
}

.src-node {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.src-node:hover { border-color: var(--red-border); box-shadow: var(--shadow-md); }

.src-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  display: grid;
  place-items: center;
  color: var(--red);
  flex-shrink: 0;
}

.src-text { display: flex; flex-direction: column; gap: 1px; }
.src-name { font-size: var(--f-sm); font-weight: 600; color: var(--t1); }
.src-sub  { font-size: calc(var(--f-sm) * 0.84); color: var(--t3); }

/* SVG connector columns */
.md-conn-wrap {
  height: 100%;
  display: flex;
  align-items: center;
}
.conn-svg { width: 100%; height: 100%; overflow: visible; }

/* AI center column */
.md-ai-center {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  height: 100%;
}

.ai-agent-box { position: relative; width: 100%; }

.ai-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: var(--r-lg);
  border: 2px solid var(--red);
  opacity: 0.3;
  animation: aiRingPulse 2.8s ease-in-out infinite;
}

@keyframes aiRingPulse {
  0%, 100% { transform: scale(1);    opacity: 0.3; }
  50%       { transform: scale(1.03); opacity: 0.1; }
}

.ai-box-inner {
  background: var(--red-light);
  border: 2px solid var(--red);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 0 0 6px rgba(255,70,45,0.07), var(--shadow-md);
  position: relative;
}

.ai-box-eyebrow {
  font-size: var(--f-eye);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  text-align: center;
  margin-bottom: 1rem;
}

.ai-cap-list { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1rem; }

.ai-cap-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--red-border);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.8rem;
}

.ai-cap-ico { font-size: 1.1rem; color: var(--red); width: 22px; text-align: center; flex-shrink: 0; line-height: 1; }
.ai-cap-name { font-size: var(--f-sm); font-weight: 600; color: var(--t1); }
.ai-cap-desc { font-size: calc(var(--f-sm) * 0.84); color: var(--t3); }

.ai-hitl-badge {
  text-align: center;
  font-size: calc(var(--f-sm) * 0.84);
  font-weight: 600;
  color: var(--red);
  background: rgba(255,70,45,0.07);
  border: 1px dashed var(--red-border);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
}

/* Outputs column — 2 panels distributed evenly */
.md-outputs {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}

.output-panel,
.obs-panel {
  flex: 1;
  max-height: 48%;
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.obs-panel { border-left: 3px solid var(--red); }
.obs-hdr   { color: var(--red) !important; }

.asset-chips { display: flex; flex-wrap: wrap; gap: 0.28rem; margin-top: 0.35rem; }
.asset-chips span {
  font-size: calc(var(--f-sm) * 0.88);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red);
  font-weight: 500;
}

/* Observability mini chart */
.obs-mini-chart { display: flex; flex-direction: column; gap: 0.48rem; margin-top: 0.35rem; }

.obs-row {
  display: grid;
  grid-template-columns: 68px 1fr 22px;
  align-items: center;
  gap: 0.4rem;
}

.obs-metric { font-size: calc(var(--f-sm) * 0.87); color: var(--t2); }
.obs-delta  { font-size: var(--f-sm); font-weight: 700; text-align: right; }
.obs-up     { color: #24a148; }

.obs-track { height: 7px; background: var(--b1); border-radius: 999px; overflow: hidden; }

.obs-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #24a148, rgba(36,161,72,0.5));
}
.obs-fill--b { background: linear-gradient(90deg, #0f62fe, rgba(15,98,254,0.5)); }
.obs-fill--c { background: linear-gradient(90deg, var(--red), rgba(255,70,45,0.5)); }
.slide.is-active .obs-fill { width: var(--w, 0%); transition: width 1.4s 0.4s var(--in-ease); }

/* ══════════════════════════════════════════════════
   SLIDE 05 — CAPABILITIES
══════════════════════════════════════════════════ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  flex: 1;
}
.cap-card {
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  padding: 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--in-ease), box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 3px; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--in-ease);
}
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red-border); }
.cap-card:hover::before { transform: scaleX(1); }
.cap-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 0.25rem;
}
.cap-card h3 { font-size: var(--f-body); font-weight: 700; line-height: 1.25; color: var(--t1); }
.cap-card > p { font-size: var(--f-sm); color: var(--t3); }
.cap-ai-label {
  font-size: calc(var(--f-sm) * 0.84);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--b1);
}
.cap-card li { font-size: calc(var(--f-sm) * 0.92); color: var(--t2); padding-left: 0.85rem; position: relative; margin-bottom: 0.28rem; line-height: 1.45; }
.cap-card li::before { content: '·'; position: absolute; left: 0; color: var(--red); font-size: 1rem; line-height: 1; }

/* ══════════════════════════════════════════════════
   SLIDE 06 — PROGRAMS
══════════════════════════════════════════════════ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.85rem;
  flex: 1;
}
.prog-card {
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--in-ease), box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.prog-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--in-ease);
}
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red-border); }
.prog-card:hover::after { transform: scaleX(1); }
.prog-num {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red-border);
  margin-bottom: 0.1rem;
}
.prog-card { display: flex; flex-direction: column; }
.prog-card h3 { font-size: var(--f-body); font-weight: 600; line-height: 1.3; color: var(--t1); margin-bottom: 0.2rem; }
.prog-card p  { font-size: calc(var(--f-sm) * 0.93); color: var(--t2); line-height: 1.45; margin-bottom: 0.3rem; }
.prog-card ul { padding: 0; margin: 0 0 0.3rem 0; list-style: none; }
.prog-card li { font-size: calc(var(--f-sm) * 0.87); color: var(--t3); padding-left: 0.8rem; position: relative; margin-bottom: 0.15rem; line-height: 1.4; }
.prog-card li::before { content: '·'; position: absolute; left: 0; color: var(--red); font-size: 1rem; line-height: 1; }
.prog-metric {
  margin-top: auto;
  padding-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-top: 1px solid var(--b1);
}
.prog-metric-bar {
  flex: 1;
  height: 5px;
  background: var(--red-mid);
  border-radius: 3px;
  overflow: hidden;
}
.prog-metric-fill {
  height: 100%;
  background: var(--red);
  width: 0;
  border-radius: 3px;
  transition: none;
}
.slide.is-active .prog-metric-fill {
  width: var(--pw);
  transition: width 0.9s var(--in-ease);
  transition-delay: 0.5s;
}
.prog-metric-val {
  font-size: calc(var(--f-sm) * 0.82);
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}
.prog-metric-src {
  font-size: calc(var(--f-sm) * 0.75);
  color: var(--t3);
  white-space: nowrap;
  margin-left: auto;
}

/* ══════════════════════════════════════════════════
   SLIDE 07 — GOVERNANCE
══════════════════════════════════════════════════ */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.85rem;
  flex: 1;
}
.gov-card {
  background: var(--slide-bg);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.gov-card:hover { box-shadow: var(--shadow-md); border-color: var(--red-border); }
.gov-card h3 { font-size: var(--f-body); font-weight: 600; padding-bottom: 0.5rem; border-bottom: 1px solid var(--b1); color: var(--t1); }
.gov-card li { font-size: var(--f-sm); color: var(--t2); padding-left: 0.9rem; position: relative; margin-bottom: 0.3rem; line-height: 1.45; }
.gov-card li::before { content: '—'; position: absolute; left: 0; color: var(--red); font-size: 0.6rem; top: 0.2em; }

/* ══════════════════════════════════════════════════
   SLIDE 08 — CTA (Red background)
══════════════════════════════════════════════════ */
.slide-inner--cta {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
}
.cta-body-wrap { max-width: 860px; }
.cta-eyebrow {
  display: block;
  font-size: var(--f-eye);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
}
.cta-title {
  font-size: clamp(2.4rem, 5vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.0;
  color: #ffffff;
  margin-bottom: 1.4rem;
}
.cta-body {
  font-size: var(--f-lead);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin: 0 auto 1.8rem;
  line-height: 1.65;
}
.cta-domains { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.cta-domains span {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: var(--f-sm);
  font-weight: 600;
}
.cta-brand-block { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.cta-k {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}
.cta-brand-name { font-size: var(--f-lead); font-weight: 600; color: #ffffff; }
.cta-brand-sub  { font-size: var(--f-sm); color: rgba(255,255,255,0.6); }
.cta-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255,255,255,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════════
   NAVIGATION — ARROWS
══════════════════════════════════════════════════ */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--slide-bg);
  border: 1.5px solid var(--b1);
  color: var(--t2);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.nav-arrow:hover {
  background: var(--red-light);
  border-color: var(--red-border);
  color: var(--red);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}
.nav-arrow--prev { left: 1.4rem; }
.nav-arrow--next { right: 1.4rem; }
.nav-arrow:disabled { opacity: 0.22; pointer-events: none; }

/* ══════════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════════ */
.progress-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--b1);
  z-index: 200;
}
.progress-fill {
  height: 100%;
  background: var(--red);
  transition: width 0.6s var(--in-ease);
}

/* ══════════════════════════════════════════════════
   SLIDE COUNTER
══════════════════════════════════════════════════ */
.slide-counter {
  position: fixed;
  bottom: 1.2rem;
  right: 5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--f-sm);
  color: var(--t3);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.counter-sep { color: var(--b2); margin: 0 0.1rem; }

/* ══════════════════════════════════════════════════
   DOT INDICATORS
══════════════════════════════════════════════════ */
.dot-nav {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.dot-btn {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--b2);
  transition: background 0.28s, width 0.28s, border-radius 0.28s;
  padding: 0;
}
.dot-btn.active { background: var(--red); width: 22px; border-radius: 999px; }
.dot-btn:hover:not(.active) { background: var(--t2); }

/* ══════════════════════════════════════════════════
   BRAND WATERMARK (top-left)
══════════════════════════════════════════════════ */
.brand-wm {
  position: fixed;
  top: 1.3rem; left: 1.7rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-wm-k {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-wm-text { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-wm-text span:first-child { font-size: 0.8rem; font-weight: 600; color: var(--t1); line-height: 1; }
.brand-wm-sub { font-size: 0.58rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; }

/* ══════════════════════════════════════════════════
   CONTROLS BAR (top-right)
══════════════════════════════════════════════════ */
.controls-bar {
  position: fixed;
  top: 1.3rem; right: 1.7rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.lang-toggle {
  display: flex;
  border: 1.5px solid var(--b1);
  border-radius: 999px;
  overflow: hidden;
  background: var(--slide-bg);
  box-shadow: var(--shadow-sm);
}
.lang-btn { padding: 0.3rem 0.6rem; font-size: 0.68rem; font-weight: 600; color: var(--t3); transition: all 0.2s; }
.lang-btn.active { background: var(--red); color: #fff; }
.autoplay-btn,
.fullscreen-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--b1);
  background: var(--slide-bg);
  color: var(--t3);
  display: grid;
  place-items: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.autoplay-btn:hover, .fullscreen-btn:hover { border-color: var(--red-border); color: var(--red); background: var(--red-light); }
.autoplay-btn.is-playing { border-color: var(--red-border); color: var(--red); background: var(--red-light); }

/* ══════════════════════════════════════════════════
   ELEMENT ENTRANCE ANIMATIONS
══════════════════════════════════════════════════ */
[data-animate-in] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--in-ease),
    transform 0.6s var(--in-ease);
  transition-delay: var(--delay, 0s);
}
.slide.is-active [data-animate-in] {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   FOCUS STYLES
══════════════════════════════════════════════════ */
.nav-arrow:focus-visible,
.dot-btn:focus-visible,
.lang-btn:focus-visible,
.autoplay-btn:focus-visible,
.fullscreen-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .slides-track { transition: none !important; }
  [data-animate-in] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .slide.is-active .perf-bar,
  .slide.is-active .obs-fill,
  .slide.is-active .prog-metric-fill { transition: none !important; }
  .slide.is-active .ring-outer,
  .slide.is-active .ring-inner { transition: none !important; stroke-dashoffset: 40.84; }
  .slide.is-active .ring-inner { stroke-dashoffset: 103.36; }
  .ai-pulse-ring { animation: none !important; }
  .stat-card, .cap-card, .prog-card, .gov-card,
  .insight-card, .big-metric { transition: none !important; }
}

/* ══════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════ */
@media print {
  body { overflow: auto; background: #fff; }
  #bg-canvas, .nav-arrow, .progress-wrap,
  .slide-counter, .controls-bar, .dot-nav, .brand-wm { display: none !important; }
  .slides-track { flex-direction: column; transform: none !important; width: 100%; }
  .slide { height: auto; min-height: 100vh; break-inside: avoid; page-break-inside: avoid; }
  .slide::before, .slide::after { display: none; }
  [data-animate-in] { opacity: 1 !important; transform: none !important; }
  .perf-bar { width: var(--bar-w, 0%) !important; }
  .obs-fill { width: var(--w, 0%) !important; }
  .prog-metric-fill { width: var(--pw, 0%) !important; }
  .ring-outer { stroke-dashoffset: 40.84 !important; }
  .ring-inner { stroke-dashoffset: 103.36 !important; }
  .slide--cta { background: var(--red) !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
