/* ============================================
   Rseen (رصين) — rseen.ai
   Sovereign AI for Saudi credit.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@700;800&family=Tajawal:wght@500;700;800&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --vault-lowest: #080e1d;
  --vault-base: #0d1322;
  --vault-card: #191f2f;
  --vault-card-high: #242a3a;
  --vault-floating: #2f3445;
  --vault-bright: #33394a;

  --vault-primary: #b4c5ff;
  --vault-primary-container: #002c7e;
  --vault-accent: #C9A96E;

  --vault-text: #dde2f8;
  --vault-text-secondary: #a0a8b4;
  --vault-text-muted: #6b7280;

  --success-green: #10b981;
  --warning-orange: #f59e0b;
  --danger-red: #ef4444;

  --ease-surface: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-reveal:  cubic-bezier(0.16, 1, 0.3, 1);

  --vault-border: rgba(255, 255, 255, 0.06);
  --vault-border-strong: rgba(67, 71, 79, 0.2);

  --vault-shadow: 0px 20px 40px rgba(0, 0, 0, 0.4);
  --vault-glow-primary: 0px 0px 15px rgba(180, 197, 255, 0.1);
  --vault-glow-accent: 0px 0px 20px rgba(201, 169, 110, 0.15);

  --vault-gradient-hero: linear-gradient(135deg, #080e1d 0%, #0d1322 50%, #002c7e 100%);
  --vault-gradient-cta: linear-gradient(135deg, #b4c5ff 0%, #002c7e 100%);
  --vault-gradient-card: linear-gradient(180deg, #191f2f 0%, #151b2b 100%);
  --vault-gradient-accent: linear-gradient(135deg, #C9A96E 0%, #A8894E 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--vault-lowest);
  color: var(--vault-text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  overflow: hidden;
}

html[dir="rtl"] body { font-family: 'IBM Plex Sans Arabic', sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: 'Tajawal', sans-serif; }

h1, h2, h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin-bottom: 0.4em; }
p  { font-size: clamp(0.95rem, 1.25vw, 1.125rem); line-height: 1.65; color: var(--vault-text); }
.subtitle { color: var(--vault-text-secondary); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.subtext  { color: var(--vault-text-secondary); font-size: 0.875rem; }

.eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vault-accent);
  margin-bottom: 1rem;
}
.mono-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vault-text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}
.mono-heading.gold { color: var(--vault-accent); }

/* -------- Presentation shell -------- */
.presentation { position: relative; width: 100vw; height: 100vh; }

.slide {
  position: absolute; inset: 0;
  display: none;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--vault-base);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transform-origin: center center;
  transition:
    opacity 0.65s var(--ease-reveal),
    transform 0.65s var(--ease-reveal),
    filter 0.55s var(--ease-reveal);
  filter: blur(2px);
  overflow: hidden;
  will-change: opacity, transform, filter;
}
.slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.slide-content { width: 100%; max-width: 1200px; position: relative; z-index: 1; }
.slide-content.narrow { max-width: 960px; }

.hero-slide { background: var(--vault-gradient-hero); }
.hero-slide .slide-content { text-align: center; }

.animate-in { opacity: 0; transform: translateY(12px); animation: fadeUp 0.6s ease forwards; }
.animate-in:nth-child(2) { animation-delay: 0.08s; }
.animate-in:nth-child(3) { animation-delay: 0.16s; }
.animate-in:nth-child(4) { animation-delay: 0.24s; }
.animate-in:nth-child(5) { animation-delay: 0.32s; }
.animate-in:nth-child(6) { animation-delay: 0.40s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* -------- Brand wordmark (hero cover) -------- */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.wordmark-tagline {
  margin-top: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--vault-accent);
  opacity: 0.9;
}
.wordmark-ar {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: clamp(5rem, 10vw, 8.5rem);
  line-height: 1;
  color: var(--vault-accent);
  text-shadow: 0 0 32px rgba(201, 169, 110, 0.35);
}
.wordmark-en {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--vault-text-secondary);
  padding-top: 0.4rem;
  border-top: 1px solid rgba(201, 169, 110, 0.4);
}

/* Small persistent brand mark — top-right corner on all non-cover slides */
.brand-mark {
  position: fixed;
  top: 1.6rem;
  right: 1.8rem;
  z-index: 25;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--vault-accent);
  opacity: 0.55;
  pointer-events: none;
}
html[dir="rtl"] .brand-mark { right: auto; left: 1.8rem; }

/* -------- Glass badge -------- */
.vault-glass-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45em 1em;
  background: rgba(180, 197, 255, 0.08);
  border: 1px solid var(--vault-border);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  color: var(--vault-primary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.vault-glass-badge .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--vault-accent);
  animation: accentPulse 2s ease-in-out infinite;
}
@keyframes accentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(201, 169, 110, 0); }
}

.vault-text-glow {
  color: var(--vault-primary);
  text-shadow: 0 0 20px rgba(180, 197, 255, 0.4);
}

/* -------- Cards -------- */
.vault-card {
  display: block;
  padding: clamp(1.25rem, 2vw, 2rem);
  background: var(--vault-gradient-card);
  border: 1px solid var(--vault-border);
  border-radius: 16px;
  color: var(--vault-text);
  text-decoration: none;
  box-shadow: var(--vault-shadow);
  transition: transform 0.3s var(--ease-reveal), border-color 0.3s var(--ease-reveal), box-shadow 0.3s var(--ease-reveal);
}
.vault-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 197, 255, 0.25);
  box-shadow: var(--vault-shadow), var(--vault-glow-primary);
}
.card-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.card-number {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--vault-accent);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.vault-icon-glow {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(180, 197, 255, 0.08);
  border: 1px solid var(--vault-border);
  border-radius: 10px;
  color: var(--vault-primary);
  box-shadow: var(--vault-glow-primary);
  flex-shrink: 0;
}
.vault-icon-glow svg { width: 22px; height: 22px; }

/* -------- Grids -------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .split-2 { grid-template-columns: 1fr; }
}

/* -------- CTA — gold tier-1 with shimmer + ghost tier-3 -------- */
.vault-cta-primary, .vault-button-ghost {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0.9em 1.8em;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.35s var(--ease-reveal), transform 0.35s var(--ease-reveal), opacity 0.3s ease;
}
.vault-cta-primary {
  background: var(--vault-gradient-accent);
  color: var(--vault-lowest);
  overflow: hidden;
  box-shadow: 0 0 15px rgba(201, 169, 110, 0.2);
}
.vault-cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.4), 0 8px 20px rgba(201, 169, 110, 0.15);
}
.vault-cta-primary::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 200%; height: 200%;
  background: linear-gradient(45deg,
    transparent 20%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.13) 50%,
    rgba(255,255,255,0.08) 60%,
    transparent 80%);
  transform: translateX(-100%) rotate(25deg);
  animation: vaultShimmer 4s infinite linear;
  pointer-events: none;
}
@keyframes vaultShimmer {
  from { transform: translateX(-100%) rotate(25deg); }
  to   { transform: translateX(100%) rotate(25deg); }
}
.vault-button-ghost {
  background: transparent;
  color: var(--vault-text-secondary);
  border: 1px solid var(--vault-border-strong);
}
.vault-button-ghost:hover { color: var(--vault-primary); border-color: var(--vault-primary); }

.action-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* -------- Navigation -------- */
.nav-arrows { position: fixed; bottom: 2rem; right: 2rem; display: flex; gap: 0.5rem; z-index: 20; }
html[dir="rtl"] .nav-arrows { right: auto; left: 2rem; }
.nav-arrow {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--vault-card);
  border: 1px solid var(--vault-border);
  color: var(--vault-text);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav-arrow:hover { background: var(--vault-floating); border-color: var(--vault-primary); transform: translateY(-2px); }

.nav-dots { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 20; }
.nav-dot {
  width: 8px; height: 8px; padding: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none; border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-dot.active { background: var(--vault-primary); transform: scale(1.4); }
.nav-dot.appendix-dot { background: rgba(201, 169, 110, 0.25); }
.nav-dot.appendix-dot.active { background: var(--vault-accent); }

.slide-counter {
  position: fixed; bottom: 2rem; left: 2rem;
  z-index: 20;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--vault-text-muted);
}
html[dir="rtl"] .slide-counter { left: auto; right: 2rem; }

.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--vault-gradient-accent);
  z-index: 30;
  transition: width 0.4s ease;
}

/* -------- Slide header pattern -------- */
.slide-header { margin-bottom: 1.8rem; }
.slide-header h2 { margin-bottom: 0.4rem; }
.slide-header .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--vault-text-secondary);
  max-width: 820px;
}

/* -------- Section divider -------- */
.section-divider {
  height: 1px;
  margin: clamp(1.5rem, 3vw, 3rem) auto;
  max-width: 320px;
  background: linear-gradient(90deg, transparent, var(--vault-accent), transparent);
  opacity: 0.5;
}

/* -------- Pain list (dashed items) -------- */
.pain-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.pain-list li {
  position: relative;
  padding-left: 1.6rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--vault-border);
  color: var(--vault-text);
  font-size: 1rem;
  line-height: 1.55;
}
.pain-list li:last-child { border-bottom: none; }
.pain-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 10px; height: 1px;
  background: var(--vault-accent);
  opacity: 0.7;
}
html[dir="rtl"] .pain-list li { padding-left: 0; padding-right: 1.6rem; }
html[dir="rtl"] .pain-list li::before { left: auto; right: 0; }

/* -------- Check-list (gold checkmark icons) -------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 0.7rem 0;
  color: var(--vault-text);
  font-size: 1rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--vault-border);
}
.check-list li:last-child { border-bottom: none; }
.check-list .check-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.12);
  color: var(--vault-accent);
  margin-top: 0.1rem;
}
.check-list .check-icon svg { width: 12px; height: 12px; stroke-width: 3; }

/* -------- Pull-quote -------- */
.pull-quote {
  margin-top: 1.8rem;
  padding: 1.4rem 1.6rem;
  background: rgba(201, 169, 110, 0.06);
  border-left: 2px solid var(--vault-accent);
  border-radius: 0 12px 12px 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: #ffffff;
  line-height: 1.5;
  font-weight: 500;
}
html[dir="rtl"] .pull-quote {
  border-left: none;
  border-right: 2px solid var(--vault-accent);
  border-radius: 12px 0 0 12px;
}

/* -------- Metric (KPI counter) -------- */
.vault-metric { display: flex; align-items: baseline; gap: 0.15em; font-family: 'Manrope', sans-serif; }
.vault-metric .value {
  font-weight: 800;
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  color: var(--vault-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.vault-metric .suffix {
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--vault-accent);
  line-height: 1;
}
.metric-label {
  display: block;
  margin-top: 0.6rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vault-text-muted);
}
.metric-cite {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--vault-text-secondary);
  line-height: 1.5;
}

/* -------- Verdict badge (red — used for DSCR BREACH) -------- */
.verdict-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fca5a5;
}
.verdict-badge .verdict-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger-red);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* -------- DOCX page mock (slide 6) -------- */
.docx-mock {
  background: #f6f4ee;
  color: #1a1f2e;
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.docx-mock::before {
  content: 'RECOMMENDATION';
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: #8a8578;
  margin-bottom: 0.6rem;
}
.docx-mock h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #0d1322;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.docx-mock p { font-size: 0.8rem; color: #2a3040; margin-bottom: 0.55rem; line-height: 1.6; }
.docx-mock .sup {
  display: inline;
  color: #8b6f3d;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
  margin-inline-start: 0.05em;
  cursor: pointer;
  text-decoration: none;
}
.docx-mock .endnotes {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(90, 91, 135, 0.3);
  font-size: 0.68rem;
  line-height: 1.55;
  color: #4d5166;
}
.docx-mock .endnotes .en-num {
  color: #8b6f3d;
  font-weight: 700;
  margin-inline-end: 0.35em;
}
.docx-mock .endnotes .en-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a8578;
  margin-bottom: 0.4rem;
}
.docx-mock .endnotes .en-row { margin-bottom: 0.25rem; }
.docx-mock .breach {
  display: inline-block;
  background: #c23c3c;
  color: #fff;
  padding: 0.1em 0.5em;
  border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* -------- Stress-test table (slide 9) -------- */
.stress-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--vault-text);
}
.stress-table th, .stress-table td {
  padding: 0.65rem 0.7rem;
  text-align: center;
  border-bottom: 1px solid var(--vault-border);
}
.stress-table th {
  background: var(--vault-card-high);
  font-weight: 600;
  color: var(--vault-text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.66rem;
}
.stress-table th:first-child,
.stress-table td:first-child { text-align: left; color: var(--vault-primary); }
.stress-table td { background: var(--vault-card); }
.stress-table tr:hover td { background: var(--vault-floating); }
.stress-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 0.6rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vault-text-muted);
}

/* -------- Audit pane (slide 8) -------- */
.audit-pane {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.audit-col {
  background: var(--vault-card);
  border: 1px solid var(--vault-border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.audit-col .audit-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vault-text-muted);
  margin-bottom: 0.9rem;
}
.audit-col p { font-size: 0.86rem; line-height: 1.55; color: var(--vault-text-secondary); }
.audit-col .highlight {
  background: rgba(201, 169, 110, 0.15);
  color: #ffffff;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-weight: 600;
  border-bottom: 1px solid var(--vault-accent);
}
.audit-col .audit-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--vault-text-muted);
  font-size: 0.72rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.05em;
}
.audit-arrow {
  align-self: center;
  padding: 0 0.9rem;
  color: var(--vault-accent);
  font-size: 1.8rem;
}
@media (max-width: 900px) {
  .audit-pane { grid-template-columns: 1fr; gap: 0.8rem; }
  .audit-arrow { transform: rotate(90deg); padding: 0.4rem 0; }
}

/* -------- Pipeline SVG (slide 7) -------- */
.pipeline-wrap {
  margin: 1.6rem 0 2rem;
  padding: 0.6rem 0;
}
.pipeline-svg { width: 100%; height: auto; }
.pipeline-svg .line {
  fill: none;
  stroke: var(--vault-primary);
  stroke-width: 1.5;
  opacity: 0.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawStroke 1.6s var(--ease-reveal) 0.2s forwards;
}
/* Node circle fill must be solid — transparent fills let the drawn line bleed through text. */
.pipeline-svg .node-circle {
  fill: var(--vault-card);
  stroke: var(--vault-border-strong);
  stroke-width: 1.5;
}
.pipeline-svg .node-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  fill: var(--vault-accent);
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes fadeIn     { to { opacity: 1; } }

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pipeline-step {
  background: var(--vault-gradient-card);
  border: 1px solid var(--vault-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.pipeline-step h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}
.pipeline-step p { font-size: 0.82rem; color: var(--vault-text-secondary); line-height: 1.5; }
@media (max-width: 900px) { .pipeline-steps { grid-template-columns: 1fr 1fr; } }

/* -------- Stat card variants (slide 13) -------- */
.stat-card { text-align: center; }
.stat-card .stat-line {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.stat-card .stat-line.gold  { color: var(--vault-accent); }
.stat-card .stat-line.blue  { color: var(--vault-primary); }

/* -------- Integration surface (slide 12) -------- */
.integration-cell { text-align: center; }
.integration-cell .label {
  display: block;
  font-weight: 600;
  color: var(--vault-primary);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}
.integration-cell p {
  font-size: 0.85rem;
  color: var(--vault-text-secondary);
  line-height: 1.5;
}

/* -------- Parent brand lockup (Rseen → GulfBoost) --------
   Block-level flex with margin-inline auto so it centers even when
   a sibling (e.g. .action-row) is also centered. Narrow gold divider
   above — NOT a full-width border. */
.parent-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 2.8rem auto 0;
  padding-top: 1.6rem;
  position: relative;
  width: fit-content;
}
.parent-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.parent-brand-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.parent-brand-logo { height: 26px; width: auto; opacity: 0.9; }

/* Last-resort typographic wordmark — only visible if both image tiers 404 */
.gulfboost-wordmark {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.3rem;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.gulfboost-wordmark .gb-w1 { font-weight: 800; }
.gulfboost-wordmark .gb-w2 { font-weight: 500; }
.gulfboost-wordmark .gb-tm {
  font-size: 0.42em;
  margin-inline-start: 0.18em;
  opacity: 0.6;
  vertical-align: super;
  font-weight: 400;
  letter-spacing: 0;
}

/* -------- Contact line (slide 14) -------- */
.contact-line {
  margin-top: 1.2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--vault-text-secondary);
}
.contact-line a { color: var(--vault-accent); text-decoration: none; }
.contact-line a:hover { color: var(--vault-primary); }
.contact-line .sep { color: var(--vault-text-muted); margin: 0 0.9rem; }

/* -------- Appendix ribbon -------- */
.appendix-ribbon {
  position: absolute;
  top: 1.7rem; left: 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--vault-accent);
  opacity: 0.7;
  z-index: 5;
}
html[dir="rtl"] .appendix-ribbon { left: auto; right: 2rem; }

/* -------- Ambient particle field (cover only) -------- */
#vault-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

/* -------- Modal (wired but unused in current content) -------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 14, 29, 0.75);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 100;
}
.modal-overlay.active { display: flex; }
.modal {
  position: relative;
  max-width: min(720px, 92vw);
  max-height: 85vh; overflow: auto;
  padding: 2.5rem;
  background: var(--vault-gradient-card);
  border: 1px solid var(--vault-border);
  border-radius: 18px;
  box-shadow: var(--vault-shadow);
}
.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px;
  background: transparent; border: none; color: var(--vault-text-secondary);
  font-size: 1.5rem; cursor: pointer;
}
.modal-close:hover { color: var(--vault-text); }

/* -------- Print / PDF -------- */
.print-appendix { display: none; }
@media print {
  html, body { overflow: visible; }
  .nav-arrows, .nav-dots, .progress-bar, .slide-counter, .brand-mark { display: none !important; }
  .slide { display: block !important; opacity: 1 !important; transform: none !important; page-break-after: always; position: relative; }
  .print-appendix { display: block; padding: 2rem; }
}

/* -------- Accessibility -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-in { opacity: 1; transform: none; }
  .pipeline-svg .line { stroke-dashoffset: 0; }

  /* Slide transitions — keep a gentle crossfade even under reduced-motion.
     Transform + blur are disabled (vestibular safety), but a 450ms opacity
     fade is considered a11y-safe and preserves the sense of transition. */
  .slide {
    transform: none !important;
    filter: none !important;
    transition: opacity 0.45s ease !important;
  }
  .slide.active {
    transform: none !important;
    filter: none !important;
  }
}
:focus-visible {
  outline: 2px solid var(--vault-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
  .slide { padding: 1.5rem; }
  .nav-arrows { bottom: 1rem; right: 1rem; }
  .nav-dots { bottom: 1rem; }
  .slide-counter { bottom: 1rem; left: 1rem; }
  .brand-mark { top: 1rem; right: 1rem; font-size: 1rem; }
  html[dir="rtl"] .nav-arrows { left: 1rem; }
  html[dir="rtl"] .brand-mark { right: auto; left: 1rem; }
}
