/* ================================================
   ATLYS STRATEGY DECK — Premium Consulting Presentation
   Design System & Stylesheet
   ================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --bg:          #F6F7FB;
  --bg-alt:      #EDEEF5;
  --surface:     #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.80);
  --surface-glass-dark: rgba(255, 255, 255, 0.55);

  --navy:        #0D1B2A;
  --navy-mid:    #1B3154;
  --blue:        #2952CC;
  --blue-light:  #4F78F1;
  --blue-pale:   #EEF2FF;
  --amber:       #D4821A;
  --amber-pale:  #FEF3E2;
  --red:         #C0392B;
  --green:       #1A7F5A;
  --green-pale:  #E6F4EE;

  --text:        #0D1B2A;
  --text-mid:    #2D3E55;
  --text-muted:  #64748B;
  --text-light:  #94A3B8;

  --border:      rgba(13, 27, 42, 0.09);
  --border-mid:  rgba(13, 27, 42, 0.14);
  --shadow-sm:   0 1px 3px rgba(13, 27, 42, 0.06), 0 1px 2px rgba(13, 27, 42, 0.04);
  --shadow-md:   0 4px 16px rgba(13, 27, 42, 0.08), 0 2px 6px rgba(13, 27, 42, 0.05);
  --shadow-lg:   0 8px 32px rgba(13, 27, 42, 0.10), 0 4px 12px rgba(13, 27, 42, 0.06);
  --shadow-xl:   0 20px 60px rgba(13, 27, 42, 0.12), 0 8px 24px rgba(13, 27, 42, 0.08);
  --glow-blue:   0 0 40px rgba(41, 82, 204, 0.15);

  /* Typography */
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'Inter', -apple-system, sans-serif;
  --font-mono:   'DM Mono', 'Fira Mono', monospace;

  /* Spacing */
  --space-xs:    4px;
  --space-sm:    6px;
  --space-md:    12px;
  --space-lg:    18px;
  --space-xl:    28px;
  --space-2xl:   48px;
  --space-3xl:   72px;

  /* Layout */
  --slide-padding-h: 56px;
  --slide-padding-v: 40px;
  --nav-height: 56px;

  /* Easing */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Transitions */
  --transition-fast:   0.15s var(--ease-out);
  --transition-base:   0.35s var(--ease-out);
  --transition-slow:   0.6s var(--ease-out);
  --transition-slower: 0.9s var(--ease-out);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: #05070B;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background: #05070B;
  color: var(--text);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overscroll-behavior: none;
  touch-action: none;
}

/* --- Strict 16:9 viewport for embeds and normal browser/mobile mode --- */
#deck-viewport {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  width: min(100vw, calc(100dvh * 16 / 9));
  height: min(100dvh, calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.28);
  contain: layout paint size;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

/* --- Fixed 1920x1080 design canvas: JS scales it into the 16:9 viewport --- */
#deck-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--bg);
  transform-origin: top left;
  will-change: transform;
  backface-visibility: hidden;
}

/* --- Presentation Container --- */
#presentation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ================================================
   SLIDE SYSTEM
   ================================================ */

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: var(--slide-padding-v) var(--slide-padding-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;

  /* State: hidden */
  opacity: 0;
  transform: translate3d(22px, 0, 0) scale(0.996);
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease-out),
    transform 0.55s var(--ease-out);
}

.slide.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

/* Slide background layers */
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide > * {
  position: relative;
  z-index: 1;
}

/* ================================================
   SLIDE TRANSITION ANIMATIONS
   ================================================ */

/* Elements that animate in when slide becomes active */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.992);
  transition:
    opacity 0.72s var(--ease-out),
    transform 0.72s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-fade {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.reveal-right {
  opacity: 0;
  transform: translate3d(-34px, 0, 0);
  transition:
    opacity 0.72s var(--ease-out),
    transform 0.72s var(--ease-out);
}

.reveal-scale {
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.955);
  transition:
    opacity 0.78s var(--ease-out),
    transform 0.78s var(--ease-out);
  will-change: opacity, transform;
}

/* Activated state */
.slide.active .reveal,
.slide.active .reveal-fade,
.slide.active .reveal-right,
.slide.active .reveal-scale {
  opacity: 1;
  transform: none;
}

/* Staggered delays */
.slide.active .d1 { transition-delay: 0.05s; }
.slide.active .d2 { transition-delay: 0.15s; }
.slide.active .d3 { transition-delay: 0.25s; }
.slide.active .d4 { transition-delay: 0.35s; }
.slide.active .d5 { transition-delay: 0.45s; }
.slide.active .d6 { transition-delay: 0.55s; }
.slide.active .d7 { transition-delay: 0.65s; }
.slide.active .d8 { transition-delay: 0.75s; }
.slide.active .d9 { transition-delay: 0.85s; }

/* Global content choreography: cards, tables and diagrams enter after their parent reveal. */
.slide .reveal > .card,
.slide .reveal > .glass-card,
.slide .reveal > .card-accent,
.slide .reveal > .card-amber,
.slide .reveal > .loop-item,
.slide .reveal > .risk-item,
.slide .reveal > .trust-layer,
.slide .reveal > .timeline-phase,
.slide .reveal > .proof-cell,
.slide .reveal > .compare-col,
.slide .reveal > .compare-item,
.slide .reveal > .rec-card,
.slide .grid-2.reveal > *,
.slide .grid-3.reveal > *,
.slide .grid-4.reveal > *,
.slide .stat-grid.reveal > *,
.slide .proof-strip.reveal > *,
.slide .stance-bottom.reveal > *,
.slide .stance-flow > *,
.slide .stance-proof-grid > *,
.slide .insights-stack .insight-item,
.slide .market-force,
.slide .market-proof-panel > *,
.slide .op-model > *,
.slide .constraint-map > *,
.slide .competitive-system > *,
.slide .corridor-matrix > *,
.slide .gtm-grid > *,
.slide .data-table tr {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.985);
  transition:
    opacity 0.62s var(--ease-out),
    transform 0.62s var(--ease-out),
    box-shadow var(--transition-base),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
  will-change: opacity, transform;
}

.slide.active .reveal > .card,
.slide.active .reveal > .glass-card,
.slide.active .reveal > .card-accent,
.slide.active .reveal > .card-amber,
.slide.active .reveal > .loop-item,
.slide.active .reveal > .risk-item,
.slide.active .reveal > .trust-layer,
.slide.active .reveal > .timeline-phase,
.slide.active .reveal > .proof-cell,
.slide.active .reveal > .compare-col,
.slide.active .reveal > .compare-item,
.slide.active .reveal > .rec-card,
.slide.active .grid-2.reveal > *,
.slide.active .grid-3.reveal > *,
.slide.active .grid-4.reveal > *,
.slide.active .stat-grid.reveal > *,
.slide.active .proof-strip.reveal > *,
.slide.active .stance-bottom.reveal > *,
.slide.active .stance-flow > *,
.slide.active .stance-proof-grid > *,
.slide.active .insights-stack .insight-item,
.slide.active .market-force,
.slide.active .market-proof-panel > *,
.slide.active .op-model > *,
.slide.active .constraint-map > *,
.slide.active .competitive-system > *,
.slide.active .corridor-matrix > *,
.slide.active .gtm-grid > *,
.slide.active .data-table tr {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.slide.active .reveal > *:nth-child(1),
.slide.active .grid-2.reveal > *:nth-child(1),
.slide.active .grid-3.reveal > *:nth-child(1),
.slide.active .grid-4.reveal > *:nth-child(1),
.slide.active .stat-grid.reveal > *:nth-child(1),
.slide.active .proof-strip.reveal > *:nth-child(1),
.slide.active .stance-flow > *:nth-child(1),
.slide.active .stance-proof-grid > *:nth-child(1),
.slide.active .data-table tr:nth-child(1) { transition-delay: 0.16s; }

.slide.active .reveal > *:nth-child(2),
.slide.active .grid-2.reveal > *:nth-child(2),
.slide.active .grid-3.reveal > *:nth-child(2),
.slide.active .grid-4.reveal > *:nth-child(2),
.slide.active .stat-grid.reveal > *:nth-child(2),
.slide.active .proof-strip.reveal > *:nth-child(2),
.slide.active .stance-flow > *:nth-child(2),
.slide.active .stance-proof-grid > *:nth-child(2),
.slide.active .data-table tr:nth-child(2) { transition-delay: 0.24s; }

.slide.active .reveal > *:nth-child(3),
.slide.active .grid-2.reveal > *:nth-child(3),
.slide.active .grid-3.reveal > *:nth-child(3),
.slide.active .grid-4.reveal > *:nth-child(3),
.slide.active .stat-grid.reveal > *:nth-child(3),
.slide.active .proof-strip.reveal > *:nth-child(3),
.slide.active .stance-flow > *:nth-child(3),
.slide.active .stance-proof-grid > *:nth-child(3),
.slide.active .data-table tr:nth-child(3) { transition-delay: 0.32s; }

.slide.active .reveal > *:nth-child(4),
.slide.active .grid-2.reveal > *:nth-child(4),
.slide.active .grid-3.reveal > *:nth-child(4),
.slide.active .grid-4.reveal > *:nth-child(4),
.slide.active .stat-grid.reveal > *:nth-child(4),
.slide.active .proof-strip.reveal > *:nth-child(4),
.slide.active .stance-flow > *:nth-child(4),
.slide.active .stance-proof-grid > *:nth-child(4),
.slide.active .data-table tr:nth-child(4) { transition-delay: 0.40s; }

.slide.active .reveal > *:nth-child(5),
.slide.active .grid-3.reveal > *:nth-child(5),
.slide.active .grid-4.reveal > *:nth-child(5),
.slide.active .stance-flow > *:nth-child(5),
.slide.active .data-table tr:nth-child(5) { transition-delay: 0.48s; }

.slide.active .reveal > *:nth-child(n+6),
.slide.active .data-table tr:nth-child(n+6) { transition-delay: 0.56s; }

/* ================================================
   TYPOGRAPHY SYSTEM
   ================================================ */

.slide-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.slide-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
  max-width: 1220px;
}

.slide-title em {
  font-style: italic;
  color: var(--blue);
}

.slide-title-lg {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.slide-title-xl {
  font-family: var(--font-serif);
  font-size: 88px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.slide-subtitle {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 1120px;
}

.slide-body {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.7;
}

.pullquote {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

strong {
  font-weight: 600;
  color: var(--navy);
}

/* ================================================
   CARD SYSTEM
   ================================================ */

.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.glass-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.card-accent {
  background: var(--blue-pale);
  border: 1px solid rgba(41, 82, 204, 0.12);
  border-radius: 12px;
}

.card-dark {
  background: var(--navy);
  border-radius: 12px;
  color: white;
}

.card-amber {
  background: var(--amber-pale);
  border: 1px solid rgba(212, 130, 26, 0.15);
  border-radius: 12px;
}

/* ================================================
   LAYOUT UTILITIES
   ================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.flex-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.spacer-sm { height: var(--space-sm); }
.spacer-md { height: var(--space-md); }
.spacer-lg { height: var(--space-lg); }
.spacer-xl { height: var(--space-xl); }

/* ================================================
   DIVIDER
   ================================================ */

.divider {
  width: 40px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.divider-full {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ================================================
   TABLE SYSTEM
   ================================================ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-mid);
  background: var(--bg-alt);
}

.data-table th:first-child { border-radius: 8px 0 0 0; }
.data-table th:last-child { border-radius: 0 8px 0 0; }

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: top;
  line-height: 1.5;
}

.data-table td:first-child {
  font-weight: 600;
  color: var(--navy);
}

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

.data-table tr:hover td {
  background: rgba(41, 82, 204, 0.025);
}

/* ================================================
   INSIGHT NUMBERED LIST
   ================================================ */

.insight-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  border-radius: 10px;
  transition: background var(--transition-fast);
}

.insight-item:hover {
  background: rgba(41, 82, 204, 0.04);
}

.insight-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 6px;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.insight-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
}

.insight-text strong {
  display: block;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 2px;
}

/* ================================================
   BADGE / TAG
   ================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.badge-blue {
  background: var(--blue-pale);
  color: var(--blue);
  border: 1px solid rgba(41, 82, 204, 0.15);
}

.badge-amber {
  background: var(--amber-pale);
  color: var(--amber);
  border: 1px solid rgba(212, 130, 26, 0.15);
}

.badge-green {
  background: var(--green-pale);
  color: var(--green);
  border: 1px solid rgba(26, 127, 90, 0.15);
}

/* ================================================
   PROGRESS BAR
   ================================================ */

.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 4px;
  transition: width 0.6s var(--ease-out);
}

/* ================================================
   SLIDE-SPECIFIC BACKGROUNDS
   ================================================ */

/* Cover slide */
.bg-cover {
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(41, 82, 204, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(79, 120, 241, 0.05) 0%, transparent 60%),
    var(--bg);
}

.bg-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230D1B2A' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease-out), transform 1.6s var(--ease-out);
}

.slide.active .bg-cover::after {
  opacity: 1;
  transform: scale(1);
}

/* Section divider slides */
.bg-section {
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(41, 82, 204, 0.06) 0%, transparent 70%),
    var(--bg);
}

/* Data-heavy slides */
.bg-data {
  background:
    radial-gradient(ellipse 54% 58% at 88% 12%, rgba(41, 82, 204, 0.035) 0%, transparent 66%),
    var(--bg);
}

.bg-data::after,
.bg-section::after {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(120deg, transparent 0%, rgba(41, 82, 204, 0.035) 48%, transparent 64%);
  opacity: 0;
  transform: translate3d(-8%, 0, 0);
  transition: opacity 0.8s var(--ease-out), transform 2.2s var(--ease-out);
}

.slide.active .bg-data::after,
.slide.active .bg-section::after {
  opacity: 1;
  transform: translate3d(8%, 0, 0);
}

/* Dark accent slides */
.bg-dark {
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(27, 49, 84, 0.96) 0%, var(--navy) 100%);
  color: white;
}

[data-bg="dark"] .slide-title { color: white; }
[data-bg="dark"] .slide-label { color: rgba(100, 140, 255, 1); }
[data-bg="dark"] .slide-label::before { background: rgba(100, 140, 255, 1); }
[data-bg="dark"] .slide-subtitle { color: rgba(255,255,255,0.8); }
[data-bg="dark"] .slide-body { color: rgba(255,255,255,0.8); }
[data-bg="dark"] .text-muted { color: rgba(255,255,255,0.65); }
[data-bg="dark"] .pullquote { color: white; }

/* ================================================
   DECORATIVE ELEMENTS
   ================================================ */

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}

.deco-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ================================================
   CHART COMPONENTS
   ================================================ */

.bar-chart-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.bar-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  width: 140px;
  flex-shrink: 0;
  text-align: right;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--blue);
  width: 0;
  position: relative;
  overflow: hidden;
  transition: width 1.05s var(--ease-out);
}

.bar-fill::after,
.matrix-meter span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: translateX(-120%);
}

.slide.active .bar-fill::after,
.slide.active .matrix-meter span::after {
  animation: chartSheen 1.15s var(--ease-out) 0.45s both;
}

.bar-fill.amber { background: var(--amber); }
.bar-fill.green { background: var(--green); }
.bar-fill.navy  { background: var(--navy); }

.bar-value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  width: 40px;
  flex-shrink: 0;
}

/* Activate bars */
.slide.active .bar-fill {
  width: var(--bar-w, 50%);
}

/* Loop diagram */
.loop-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-md);
  border-radius: 12px;
  position: relative;
}

.loop-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.loop-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.loop-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.loop-badge {
  display: inline-flex;
  margin-top: 4px;
  width: fit-content;
}

/* Scales / Risk indicators */
.risk-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: 8px 12px;
  border-radius: 10px;
  border-left: 3px solid var(--border);
  background: var(--surface);
}

.risk-item.high { border-left-color: var(--red); }
.risk-item.medium { border-left-color: var(--amber); }
.risk-item.low { border-left-color: var(--green); }

.risk-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 60px;
  padding-top: 2px;
}

.risk-label.high { color: var(--red); }
.risk-label.medium { color: var(--amber); }
.risk-label.low { color: var(--green); }

.risk-text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.55;
}

.risk-text strong {
  font-size: 16px;
}

/* ================================================
   SLIDE-SPECIFIC LAYOUTS
   ================================================ */

/* Cover */
.cover-layout {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  max-width: 800px;
}

.slide[data-index="0"] .cover-layout {
  width: 100%;
  height: 100%;
  max-width: none;
}

.cover-hero {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 72px;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
}

.cover-copy {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.slide[data-index="0"] .cover-title {
  width: 100%;
  max-width: none !important;
  font-size: 112px;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.slide[data-index="0"] .cover-title em,
.slide[data-index="0"] .cover-title .accent-blue {
  color: var(--blue);
  font-style: italic;
}

.slide[data-index="0"] .cover-subtext {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
}

.slide[data-index="0"] .cover-subtext .slide-subtitle {
  max-width: 900px !important;
  text-align: left;
  text-wrap: balance;
  font-size: 28px;
  line-height: 1.55;
}

.cover-thesis {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(238, 242, 255, 0.68)),
    var(--surface);
  border: 1px solid rgba(41, 82, 204, 0.14);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
}

.cover-thesis-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.cover-thesis-main {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1.08;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.cover-thesis-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cover-thesis-flow span,
.cover-thesis-flow strong {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-mid);
}

.cover-thesis-flow strong {
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  border-color: rgba(41, 82, 204, 0.35);
  color: white;
  font-size: 19px;
  box-shadow: 0 16px 34px rgba(41, 82, 204, 0.24);
}

.cover-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.cover-orb-lg {
  width: 740px;
  height: 740px;
  right: -240px;
  top: -200px;
  background: radial-gradient(circle at 42% 42%, rgba(79, 120, 241, 0.18), rgba(41, 82, 204, 0.04) 44%, transparent 70%);
  border: 1px solid rgba(41, 82, 204, 0.08);
}

.cover-orb-sm {
  width: 260px;
  height: 260px;
  left: 48%;
  bottom: 110px;
  background: radial-gradient(circle, rgba(212, 130, 26, 0.10), transparent 66%);
}

.slide.active .cover-orb-lg {
  animation: floatOrb 9s ease-in-out 0.2s infinite alternate;
}

.slide.active .cover-orb-sm {
  animation: floatOrb 7s ease-in-out 0.5s infinite alternate-reverse;
}

.cover-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-lg);
}

.cover-meta {
  display: flex;
  gap: var(--space-xl);
  margin-top: 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.cover-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cover-meta-key {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.cover-meta-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}

/* Two-column layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  height: 100%;
}

.split-layout.wide {
  grid-template-columns: 1.1fr 0.9fr;
}

.split-layout.narrow-right {
  grid-template-columns: 0.9fr 1.1fr;
}

/* Full slide layouts */
.full-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--space-lg);
}

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Vertical stack of insight items */
.insights-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs) var(--space-md);
}

.insights-board {
  flex: 1 1 auto;
  align-content: stretch !important;
  gap: var(--space-md) !important;
}

.insights-board .insight-item {
  min-height: 126px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.insights-board .insight-item:nth-child(1),
.insights-board .insight-item:nth-child(3) {
  background: var(--blue-pale);
  border-color: rgba(41, 82, 204, 0.12);
}

.insights-board .insight-num {
  min-width: 38px;
  height: 38px;
  font-size: 13px;
}

.insights-board .insight-text {
  font-size: 18px;
  line-height: 1.55;
}

.insights-board .insight-text strong {
  font-size: 20px;
  margin-bottom: 6px;
}

.insights-synthesis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.insights-synthesis > div {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}

.insights-synthesis strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.insights-synthesis span {
  display: block;
  font-size: 17px;
  line-height: 1.45;
  color: white;
}

.market-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-lg);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.market-force-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.market-force,
.market-proof-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.market-force {
  border-top: 4px solid var(--blue);
}

.market-force:nth-child(2) { border-top-color: var(--green); }
.market-force:nth-child(3) { border-top-color: var(--amber); }

.market-force-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.market-force h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.13;
  color: var(--navy);
}

.market-force p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
}

.market-proof-panel {
  background:
    radial-gradient(circle at 80% 18%, rgba(41, 82, 204, 0.10), transparent 34%),
    var(--surface);
  border-top: 4px solid var(--navy);
}

.market-proof-title {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.12;
  color: var(--navy);
}

.venn-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  color: var(--text-muted);
}

.venn-row strong {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--blue);
  white-space: nowrap;
}

.market-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  background: var(--blue-pale);
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.25;
}

.market-equation strong {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: var(--blue);
  font-size: 18px;
}

.stance-system {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-lg);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.stance-flow {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  gap: 12px;
  align-items: stretch;
}

.stance-node {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 100%;
}

.stance-node.old { border-top: 4px solid var(--red); }
.stance-node.score { border-top: 4px solid var(--blue); background: var(--blue-pale); }
.stance-node.refund { border-top: 4px solid var(--green); }

.stance-node span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.stance-node strong {
  display: block;
  margin: 28px 0 18px;
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.04;
  color: var(--navy);
}

.stance-checks {
  display: grid;
  gap: 9px;
}

.stance-checks div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(212, 220, 232, 0.9);
  font-size: 13px;
  line-height: 1.25;
  color: var(--text-mid);
}

.stance-node p {
  margin-top: auto;
  font-size: 18px;
  line-height: 1.58;
  color: var(--text-mid);
}

.stance-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 54px;
  color: var(--blue);
}

.stance-proof {
  display: grid;
  grid-template-rows: 0.9fr 1.1fr;
  gap: var(--space-md);
  min-height: 0;
}

.stance-proof-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border-radius: 24px;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}

.stance-proof-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.stance-proof-number {
  font-family: var(--font-serif);
  font-size: 70px;
  line-height: 0.98;
  color: white;
}

.stance-proof-card p {
  font-size: 18px;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.78);
}

.stance-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stance-proof-grid > div {
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stance-proof-grid strong,
.stance-bottom strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue);
}

.stance-proof-grid span,
.stance-bottom span {
  display: block;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text-mid);
}

.stance-proof-grid small {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-muted);
}

.stance-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  width: 100%;
  flex: 0 0 auto;
}

.slide[data-index="2"] .stance-bottom {
  flex: 0 0 auto !important;
  min-height: auto !important;
}

.stance-bottom > div {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.slide[data-index="2"] .stance-bottom > div {
  min-height: 116px;
}

/* Trust layers */
.trust-layer {
  display: flex;
  gap: var(--space-md);
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: flex-start;
  transition: box-shadow var(--transition-fast);
}

.trust-layer:hover {
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.trust-content {
  flex: 1;
  min-width: 0;
}

.trust-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}

.trust-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.trust-badge {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Comparison columns */
.compare-col {
  padding: var(--space-lg);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.compare-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.compare-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.5;
}

.compare-item::before {
  content: '—';
  color: var(--text-light);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

/* Corridor table */
.corridor-row {
  display: flex;
  gap: var(--space-md);
  padding: 10px 14px;
  border-radius: 8px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}

.corridor-row:last-child { border-bottom: none; }
.corridor-row:hover { background: rgba(41, 82, 204, 0.025); }

.corridor-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  width: 160px;
  flex-shrink: 0;
}

.corridor-why {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.5;
  flex: 1;
}

/* Recommendation cards */
.rec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rec-horizon {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rec-horizon.short { color: var(--blue); }
.rec-horizon.medium { color: var(--amber); }
.rec-horizon.long { color: var(--green); }

.rec-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.rec-body {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ================================================
   BOTTOM NAVIGATION BAR
   ================================================ */

#nav-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px;
  border-radius: 100px;

  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(13, 27, 42, 0.10);
  box-shadow:
    0 4px 24px rgba(13, 27, 42, 0.12),
    0 1px 3px rgba(13, 27, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

#nav-bar.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 100px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--navy);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-btn:hover {
  background: rgba(13, 27, 42, 0.06);
}

.nav-btn:active {
  transform: scale(0.93);
}

.nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-separator {
  width: 1px;
  height: 20px;
  background: var(--border-mid);
  margin: 0 4px;
}

#nav-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 8px;
  letter-spacing: 0.05em;
  min-width: 52px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

#nav-counter:hover {
  background: rgba(13, 27, 42, 0.05);
}

/* ================================================
   GRID / OVERVIEW MODE
   ================================================ */

#grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 900;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);

  overflow-y: auto;
  padding: 48px var(--slide-padding-h);
  padding-bottom: 80px;
}

#grid-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.grid-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.grid-close {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.grid-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.grid-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.thumb {
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.thumb:hover {
  border-color: rgba(79, 120, 241, 0.5);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.thumb.current {
  border-color: rgba(79, 120, 241, 0.8);
  box-shadow: 0 0 0 2px rgba(79, 120, 241, 0.3);
}

.thumb-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}

.thumb-title {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.35;
}

.thumb-label {
  font-size: 9px;
  color: rgba(79, 120, 241, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  font-family: var(--font-mono);
}

.thumb-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  z-index: 0;
}

.thumb > * { position: relative; z-index: 1; }

/* ================================================
   FULLSCREEN MODE
   ================================================ */

:fullscreen #nav-bar {
  bottom: 24px;
}

:-webkit-full-screen #nav-bar {
  bottom: 24px;
}

#deck-viewport:fullscreen,
#deck-viewport:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  aspect-ratio: auto;
  background: #05070B;
  box-shadow: none;
}

#deck-viewport:fullscreen #deck-wrapper,
#deck-viewport:-webkit-full-screen #deck-wrapper {
  box-shadow: 0 24px 110px rgba(0, 0, 0, 0.38);
}

@media (orientation: portrait) {
  #deck-viewport {
    width: 100vw;
    height: calc(100vw * 9 / 16);
  }
}

@supports (height: 100svh) {
  body {
    height: 100svh;
  }

  #deck-viewport {
    width: min(100vw, calc(100svh * 16 / 9));
    height: min(100svh, calc(100vw * 9 / 16));
  }

  #deck-viewport:fullscreen,
  #deck-viewport:-webkit-full-screen {
    height: 100svh;
  }
}

/* ================================================
   SCROLL HINT
   ================================================ */

.slide-number-indicator {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.slide-number-indicator.visible {
  opacity: 1;
}

.dot-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-mid);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.dot-indicator.active {
  background: var(--blue);
  transform: scale(1.4);
}

/* ================================================
   SPECIAL COMPONENTS
   ================================================ */

/* The "flywheel" visual for growth loops */
.flywheel-container {
  position: relative;
  width: 200px;
  height: 200px;
}

/* Arch diagram */
.arch-block {
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
}

.arch-block-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.arch-block-sub {
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.7;
}

/* Arrow connector */
.arrow-down {
  display: flex;
  justify-content: center;
  color: var(--text-light);
  font-size: 16px;
  margin: 2px 0;
}

/* Score/meter */
.defensibility-meter {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.meter-pip {
  width: 18px;
  height: 5px;
  border-radius: 2px;
  background: var(--border);
}

.meter-pip.filled { background: var(--blue); }
.meter-pip.filled.amber { background: var(--amber); }

/* Horizontal timeline */
.timeline-row {
  display: flex;
  gap: 0;
  width: 100%;
}

.timeline-phase {
  flex: 1;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-phase:last-child { border-right: none; }

.timeline-horizon {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-horizon.short  { color: var(--blue); }
.timeline-horizon.medium { color: var(--amber); }
.timeline-horizon.long   { color: var(--green); }

.timeline-rec {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.timeline-rec::before {
  content: '→';
  color: var(--text-light);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

/* Consulting proof components */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  width: 100%;
  flex: 0 0 auto !important;
}

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

.proof-cell {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  min-height: 96px;
}

.proof-cell strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.proof-cell span {
  display: block;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-mid);
}

.proof-cell.green { border-top: 3px solid var(--green); }
.proof-cell.amber { border-top: 3px solid var(--amber); }
.proof-cell.blue { border-top: 3px solid var(--blue); }
.proof-cell.navy { border-top: 3px solid var(--navy); }

.proof-cell.green strong { color: var(--green); }
.proof-cell.amber strong { color: var(--amber); }
.proof-cell.blue strong { color: var(--blue); }
.proof-cell.navy strong { color: var(--navy); }

.op-model {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.op-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.op-stage::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--blue);
}

.op-stage.scalable::before { background: var(--green); }
.op-stage.mixed::before { background: var(--blue); }
.op-stage.human::before { background: var(--amber); }

.op-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.op-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.12;
  color: var(--navy);
}

.op-copy {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.op-detail {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-mid);
}

.op-detail span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.op-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.op-stage.scalable .op-tag { background: var(--green-pale); color: var(--green); }
.op-stage.human .op-tag { background: var(--amber-pale); color: var(--amber); }
.op-stage.mixed .op-tag { background: var(--blue-pale); color: var(--blue); }

.constraint-map {
  display: grid;
  grid-template-columns: 1fr 0.75fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-lg);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.constraint-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.constraint-card.red { border-top: 4px solid var(--red); }
.constraint-card.amber { border-top: 4px solid var(--amber); }
.constraint-card.blue { border-top: 4px solid var(--blue); grid-column: 1 / 4; }

.constraint-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.constraint-title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.15;
  color: var(--navy);
}

.constraint-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
}

.constraint-center {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.constraint-orb {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 45% 35%, rgba(79, 120, 241, 0.18), transparent 62%),
    var(--navy);
  color: white;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.12;
  box-shadow: var(--shadow-xl);
}

.constraint-caption {
  max-width: 260px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.metric-row strong {
  font-family: var(--font-mono);
  color: var(--navy);
  white-space: nowrap;
}

.funnel-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.funnel-row {
  width: var(--funnel-w);
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-radius: 16px;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.funnel-row.accepted {
  background: var(--blue-pale);
  border: 1px solid rgba(41, 82, 204, 0.12);
}

.funnel-row.discouraged {
  background: var(--amber-pale);
  border: 1px solid rgba(212, 130, 26, 0.16);
}

.funnel-row span {
  font-size: 17px;
  font-weight: 600;
}

.funnel-row strong {
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
}

.funnel-note {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.decision-economics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  height: 100%;
}

.decision-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.decision-col.bad { border-top: 4px solid var(--red); }
.decision-col.good { border-top: 4px solid var(--green); }

.decision-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.decision-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-mid);
}

.decision-result {
  margin-top: auto;
  padding: 16px;
  border-radius: 14px;
  background: var(--navy);
  color: white;
  font-size: 16px;
  line-height: 1.45;
}

.corridor-matrix {
  display: grid;
  grid-template-columns: 220px 150px 150px 180px 1fr;
  gap: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  flex: 1 1 auto;
}

.matrix-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.matrix-name,
.matrix-copy,
.corridor-matrix .matrix-meter {
  border-bottom: 1px solid var(--border);
  padding: 17px 16px;
  display: flex;
  align-items: center;
}

.matrix-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.matrix-copy {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-mid);
}

.matrix-meter {
  background: var(--surface);
}

.matrix-meter span {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: var(--green);
  position: relative;
  overflow: hidden;
  transition: width 1.05s var(--ease-out);
}

.matrix-meter.amber span { background: var(--amber); }
.matrix-meter.blue span { background: var(--blue); }

.gtm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: var(--space-lg);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.persona-card,
.premium-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.persona-card.metro { border-top: 4px solid var(--text-muted); }
.persona-card.tier { border-top: 4px solid var(--blue); }

.persona-title,
.chart-title {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 6px;
}

.persona-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
}

.persona-row strong {
  text-align: right;
  color: var(--navy);
}

.persona-score {
  margin-top: auto;
  padding: 18px;
  border-radius: 14px;
  background: var(--blue-pale);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.persona-card.metro .persona-score {
  background: var(--bg-alt);
  color: var(--text-muted);
}

.premium-chart .bar-row {
  min-height: 52px;
}

.slide[data-index="6"] .slide-title {
  max-width: 1280px !important;
}

.slide[data-index="6"] .wedge-table {
  flex: 1 1 auto;
  font-size: 18px !important;
}

.slide[data-index="6"] .wedge-table th {
  font-size: 12px;
  padding: 18px 22px;
}

.slide[data-index="6"] .wedge-table td {
  padding: 24px 26px;
  font-size: 20px;
  line-height: 1.55;
}

.slide[data-index="6"] .wedge-table td:first-child {
  font-size: 21px;
}

.slide[data-index="6"] .stat-card {
  padding: 30px 24px;
}

.slide[data-index="6"] .stat-number {
  font-size: 72px;
}

.slide[data-index="6"] .stat-label {
  font-size: 14px;
}

.slide[data-index="9"],
.slide[data-index="19"] {
  background: var(--bg) !important;
}

.slide[data-index="9"] h2,
.slide[data-index="19"] h2 {
  color: var(--navy) !important;
}

.slide[data-index="9"] h2 em,
.slide[data-index="19"] h2 em {
  color: var(--blue) !important;
}

.slide[data-index="9"] .slide-label,
.slide[data-index="19"] .slide-label {
  color: var(--blue) !important;
}

.slide[data-index="9"] .slide-label::before,
.slide[data-index="19"] .slide-label::before {
  background: var(--blue) !important;
}

.slide[data-index="9"] p,
.slide[data-index="19"] p,
.slide[data-index="9"] span,
.slide[data-index="19"] span,
.slide[data-index="9"] div,
.slide[data-index="19"] div {
  color: var(--text-mid) !important;
}

.slide[data-index="9"] strong,
.slide[data-index="19"] strong,
.slide[data-index="9"] [style*="font-weight:600"],
.slide[data-index="19"] [style*="font-weight:600"] {
  color: var(--navy) !important;
}

.slide[data-index="9"] [style*="background:rgba(255,255,255"],
.slide[data-index="19"] [style*="background:rgba(255,255,255"] {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm);
}

.slide[data-index="9"] [style*="background:rgba(79,120,241"],
.slide[data-index="19"] [style*="background:rgba(79,120,241"] {
  background: var(--blue-pale) !important;
  border: 1px solid rgba(41, 82, 204, 0.14) !important;
}

.slide[data-index="9"] .pullquote,
.slide[data-index="19"] .pullquote {
  color: var(--navy) !important;
}

.slide[data-index="9"] .stat-number,
.slide[data-index="19"] .stat-number,
.slide[data-index="9"] [style*="rgba(79,120,241"],
.slide[data-index="19"] [style*="rgba(79,120,241"] {
  color: var(--blue) !important;
}

.slide[data-index="9"] .slide-label,
.slide[data-index="19"] .slide-label {
  color: var(--blue) !important;
}

.slide[data-index="22"] .grid-2 {
  max-width: none !important;
}

.slide[data-index="22"] .card {
  justify-content: flex-start !important;
}

.slide[data-index="22"] .card > div:first-child {
  font-size: 14px !important;
}

.slide[data-index="22"] .compare-item {
  font-size: 21px !important;
  line-height: 1.55;
}

.slide[data-index="22"] .card p {
  font-size: 18px !important;
  line-height: 1.65 !important;
}

.competitive-system {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-lg);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.moat-ladder,
.competitor-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.moat-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 18px;
  flex: 1 1 0;
  min-height: 82px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.moat-row.top {
  background: var(--blue-pale);
  border-color: rgba(41, 82, 204, 0.14);
}

.moat-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.moat-row strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  color: var(--navy);
}

.moat-row span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.competitor-card,
.competitor-warning {
  flex: 1 1 0;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.competitor-card strong,
.competitor-warning strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 27px;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 10px;
}

.competitor-card span,
.competitor-warning span {
  display: block;
  font-size: 15px;
  line-height: 1.58;
  color: var(--text-mid);
}

.competitor-card:nth-child(1) { border-top: 4px solid var(--amber); }
.competitor-card:nth-child(2) { border-top: 4px solid var(--red); }
.competitor-card:nth-child(3) { border-top: 4px solid var(--blue); }

.competitor-warning {
  flex: 1.15 1 0;
  background: var(--navy);
  border-color: rgba(13, 27, 42, 0.18);
}

.competitor-warning strong,
.competitor-warning span {
  color: white;
}

/* ================================================
   FOOTER / SOURCE LINE
   ================================================ */

.slide-source {
  position: absolute;
  bottom: calc(var(--nav-height) + 32px);
  left: var(--slide-padding-h);
  right: var(--slide-padding-h);
  font-size: 10px;
  color: var(--text-light);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

/* No mobile breakpoints: the 1920x1080 deck scales as a single unit. */

/* Use the full 16:9 canvas instead of compressing content into narrow notes. */
.slide > .slide-title {
  max-width: 1320px !important;
}

.slide > .slide-subtitle,
.slide > .slide-body {
  max-width: 1180px !important;
}

.slide > .grid-2,
.slide > .grid-3,
.slide > .grid-4,
.slide > .stat-grid,
.slide > .table-scroll,
.slide > table.data-table,
.slide > .flex-col,
.slide > .glass-card,
.slide > .card-accent,
.slide > .card-amber,
.slide > .reveal:not(.slide-label):not(.reveal-scale) {
  width: 100%;
  max-width: none !important;
}

.slide > .grid-2,
.slide > .grid-3,
.slide > .grid-4 {
  align-items: stretch;
}

.slide > .grid-2,
.slide > .grid-3,
.slide > .grid-4,
.slide > .stat-grid,
.slide > .table-scroll,
.slide > table.data-table,
.slide > .flex-col,
.slide > .reveal:not(.slide-label):not(.slide-title):not(.slide-subtitle):not(.slide-body):not(.reveal-scale):not(.glass-card):not(.card-accent):not(.card-amber) {
  flex: 1 1 auto;
  min-height: 0;
}

.slide > .grid-2 > *,
.slide > .grid-3 > *,
.slide > .grid-4 > *,
.slide > .stat-grid > * {
  height: 100%;
}

.slide > .grid-2 > div:not(.card):not(.loop-item),
.slide > .grid-3 > div:not(.card):not(.loop-item),
.slide > .grid-4 > div:not(.card):not(.loop-item) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide > .table-scroll {
  display: flex;
}

.slide > .table-scroll > .data-table,
.slide > table.data-table {
  height: 100%;
}

.slide > .flex-col,
.slide > .reveal[style*="flex-direction:column"],
.slide > .reveal[style*="flex-direction: column"] {
  justify-content: space-between;
}

.slide > .flex-col > .risk-item,
.slide > .reveal[style*="flex-direction:column"] > .risk-item,
.slide > .reveal[style*="flex-direction: column"] > .risk-item,
.slide > .reveal[style*="flex-direction:column"] > .trust-layer,
.slide > .reveal[style*="flex-direction: column"] > .trust-layer {
  flex: 1 1 auto;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.slide > .reveal .timeline-row {
  height: 100%;
}

.timeline-phase {
  justify-content: space-between;
}

.slide > .grid-2 .compare-item,
.slide > .grid-3 .compare-item,
.slide > .grid-4 .compare-item {
  margin-block: 6px;
}

.slide[data-index="7"] > .grid-2 > div {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
}

.slide[data-index="7"] > .grid-2 > div:first-child {
  border-top: 3px solid var(--green);
}

.slide[data-index="7"] > .grid-2 > div:last-child {
  border-top: 3px solid var(--amber);
}

.slide > .grid-3 .card,
.slide > .grid-2 .card,
.slide > .grid-2 .loop-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px !important;
}

.slide > .glass-card,
.slide > .card-accent,
.slide > .card-amber {
  padding: 22px 26px !important;
}

/* ================================================
   PRINT / EXPORT HINT
   ================================================ */

@media print {
  body { overflow: visible; }
  #presentation { position: static; }
  .slide {
    position: relative;
    opacity: 1 !important;
    pointer-events: auto !important;
    page-break-after: always;
    height: 100vh;
  }
  #nav-bar, #grid-overlay { display: none; }
}

/* ================================================
   LOADING STATE
   ================================================ */

#loading {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s;
}

#loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--navy);
  opacity: 0.4;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ================================================
   ANIMATIONS
   ================================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: var(--bar-w, 60%); }
}

@keyframes chartSheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(130%); }
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18px, 14px, 0) scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .slide,
  .reveal,
  .reveal-right,
  .reveal-scale,
  .slide .reveal > .card,
  .slide .reveal > .glass-card,
  .slide .reveal > .card-accent,
  .slide .reveal > .card-amber,
  .slide .data-table tr {
    transform: none !important;
  }
}

/* ================================================
   UTILITY
   ================================================ */

.text-blue   { color: var(--blue); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-muted); }
.text-amber  { color: var(--amber); }
.text-green  { color: var(--green); }
.text-white  { color: white; }
.text-light  { color: var(--text-light); }

.font-serif  { font-family: var(--font-serif); }
.font-mono   { font-family: var(--font-mono); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.italic      { font-style: italic; }

.p-sm  { padding: var(--space-sm); }
.p-md  { padding: var(--space-md); }
.p-lg  { padding: var(--space-lg); }
.p-xl  { padding: var(--space-xl); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.no-select { user-select: none; }
.cursor-pointer { cursor: pointer; }

/* Overflow scroll for tables on mobile */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
