@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --cu-gold: #CFB87C;
  --cu-gold-dim: rgba(207,184,124,0.65);
  --cu-dark: #0a0a0a;
  --cu-gray: #141414;
  --cu-border: rgba(207,184,124,0.2);
  --text: #f5f3ee;
  --muted: rgba(255,255,255,0.7);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #000; color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.deck-body { overflow: hidden; cursor: default; }

#deck { position: fixed; inset: 0; }

.slide {
  position: absolute; inset: 0;
  background-color: #000;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; pointer-events: auto; }

/* ───── Content slide (CU Boulder dark) ───── */
.content-slide {
  background:
    radial-gradient(ellipse at top right, rgba(207,184,124,0.06), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
}
.slide-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px;
  padding: 88px 64px 76px;
}
.slide-tag {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cu-gold); font-weight: 700;
  margin-bottom: 18px;
}
.slide-headline {
  font-size: 46px; font-weight: 800; color: #fff;
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 0 44px;
}
.slide-headline .gold { color: var(--cu-gold); }
.slide-sub {
  font-size: 17px; color: rgba(255,255,255,0.7);
  font-weight: 400; line-height: 1.5;
  max-width: 880px; margin: -24px 0 36px;
}

/* Stat grid */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 32px;
}
.stat-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--cu-border);
  border-radius: 6px;
  padding: 30px 26px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--cu-gold);
}
.stat-number {
  font-size: 60px; font-weight: 800; line-height: 1;
  color: var(--cu-gold);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
}
.stat-label {
  font-size: 12px; font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.stat-card p {
  margin: 0; font-size: 14px;
  color: rgba(255,255,255,0.72); line-height: 1.5;
  font-weight: 400;
}

/* Callout */
.callout {
  background: rgba(207,184,124,0.07);
  border-left: 3px solid var(--cu-gold);
  padding: 18px 26px;
  font-size: 15.5px;
  color: rgba(255,255,255,0.88);
  border-radius: 2px;
  line-height: 1.55;
  max-width: 1080px;
}
.callout strong { color: var(--cu-gold); font-weight: 700; }

/* ───── Cover slide ───── */
.cover-slide {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(207,184,124,0.10), transparent 55%),
    linear-gradient(135deg, #050505 0%, #1a1a1a 100%);
}
.cover-content {
  text-align: left; max-width: 1100px;
  padding: 88px 80px 76px;
}
.cover-tag {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cu-gold); font-weight: 700;
  margin-bottom: 32px;
}
.cover-title {
  font-size: 84px; font-weight: 800; color: #fff;
  letter-spacing: -0.025em; line-height: 1.04;
  margin: 0 0 22px;
}
.cover-title .gold { color: var(--cu-gold); }
.cover-sub {
  font-size: 22px; font-weight: 300; color: rgba(255,255,255,0.78);
  line-height: 1.45; margin: 0 0 44px;
  max-width: 780px;
}
.cover-rule { width: 80px; height: 3px; background: var(--cu-gold); margin-bottom: 32px; }
.cover-name { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.cover-role { font-size: 13.5px; color: rgba(255,255,255,0.72); font-weight: 400; margin-bottom: 4px; }
.cover-co { font-size: 13px; color: var(--cu-gold); letter-spacing: 0.04em; font-weight: 600; }

/* Pillar slide variants */
.pillar-card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-bottom: 32px;
}
.pillar-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--cu-border);
  border-radius: 6px;
  padding: 28px 26px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--cu-gold);
}
.pillar-card h3 {
  font-size: 17px; font-weight: 700; color: #fff;
  margin: 0 0 10px;
}
.pillar-card p {
  margin: 0; font-size: 14px;
  color: rgba(255,255,255,0.72); line-height: 1.55;
  font-weight: 400;
}
.pillar-handoff {
  margin-top: 4px; padding: 14px 22px;
  background: rgba(207,184,124,0.07);
  border-left: 3px solid var(--cu-gold);
  border-radius: 2px;
  color: rgba(255,255,255,0.85);
  font-size: 14.5px; line-height: 1.55;
  max-width: 1080px;
}
.pillar-handoff b { color: var(--cu-gold); font-weight: 700; }

/* ───── Flow / accountability loop slide ───── */
.flow-slide {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background:
    radial-gradient(ellipse at center, rgba(207,184,124,0.10), transparent 65%),
    linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
}
.flow-tag {
  position: absolute;
  top: 78px; left: 64px;
  z-index: 5;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cu-gold); font-weight: 700;
}
.flow-svg {
  position: absolute;
  inset: 56px 60px 78px 60px;
  width: calc(100% - 120px);
  height: calc(100% - 134px);
}
.flow-arrow {
  fill: none;
  stroke: var(--cu-gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 14 11;
  opacity: 0.28;
  animation: flow-dashes 2.4s linear infinite, flow-arrow-cycle 8s infinite;
}
.flow-arrow-1 { animation-delay: 0s, 0s; }
.flow-arrow-2 { animation-delay: 0s, -6s; }
.flow-arrow-3 { animation-delay: 0s, -4s; }
.flow-arrow-4 { animation-delay: 0s, -2s; }
@keyframes flow-dashes {
  to { stroke-dashoffset: -50; }
}
@keyframes flow-arrow-cycle {
  0%, 22% { opacity: 1; stroke-width: 5.5; }
  25%, 100% { opacity: 0.28; stroke-width: 3.5; }
}
.flow-arrowhead { fill: var(--cu-gold); }

.flow-node {
  opacity: 0.55;
  animation: flow-node-cycle 8s infinite;
}
.flow-node-monitor   { animation-delay: 0s; }
.flow-node-action    { animation-delay: -6s; }
.flow-node-revenue   { animation-delay: -4s; }
.flow-node-outcomes  { animation-delay: -2s; }
@keyframes flow-node-cycle {
  0%, 22% { opacity: 1; }
  25%, 100% { opacity: 0.55; }
}
.flow-node-ring {
  fill: none;
  stroke: var(--cu-gold);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: flow-ring-pulse 8s infinite;
}
.flow-node-monitor  .flow-node-ring { animation-delay: 0s; }
.flow-node-action   .flow-node-ring { animation-delay: -6s; }
.flow-node-revenue  .flow-node-ring { animation-delay: -4s; }
.flow-node-outcomes .flow-node-ring { animation-delay: -2s; }
@keyframes flow-ring-pulse {
  0% { opacity: 0; transform: scale(0.92); }
  10% { opacity: 0.85; transform: scale(1.08); }
  22% { opacity: 0; transform: scale(1.22); }
  25%, 100% { opacity: 0; transform: scale(0.92); }
}
.flow-node-bg {
  fill: #0a0a0a;
  stroke: var(--cu-gold);
  stroke-width: 2;
}
.flow-icon-lucide path,
.flow-icon-lucide circle,
.flow-icon-lucide rect,
.flow-icon-lucide line,
.flow-icon-lucide polyline {
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: flow-rays-rotate 38s linear infinite;
}
@keyframes flow-rays-rotate {
  to { transform: rotate(360deg); }
}
.flow-ray {
  stroke: var(--cu-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.7;
}
.flow-center-circle {
  fill: #0a0a0a;
  stroke: var(--cu-gold);
  stroke-width: 2.5;
}
.flow-family {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───── Lume in Action slide (full-bleed photo grid) ───── */
.lume-photo-slide {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: #000;
}
.lume-photo-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: #000;
}
.lume-photo-tile {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0a;
  overflow: hidden;
}
.lume-photo-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}
.lume-photo-caption {
  position: absolute; left: 22px; bottom: 18px;
  z-index: 2;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.lume-photo-caption .accent { color: var(--cu-gold); }
.lume-photo-tag {
  position: absolute; top: 26px; left: 28px;
  z-index: 5;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cu-gold); font-weight: 700;
  background: rgba(10,10,10,0.65);
  padding: 8px 14px;
  border: 1px solid var(--cu-border);
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

/* ───── Map / iframe slide ───── */
.iframe-slide { background: #fff; padding: 0; align-items: stretch; justify-content: stretch; }
.slide-iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.iframe-tag {
  position: absolute; top: 60px; left: 28px;
  z-index: 5;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cu-gold); font-weight: 700;
  background: rgba(0,0,0,0.75);
  padding: 8px 14px; border-radius: 2px;
  border-left: 2px solid var(--cu-gold);
  pointer-events: none;
}
.iframe-stats {
  position: absolute; top: 100px; left: 28px;
  z-index: 5;
  background: rgba(0,0,0,0.78);
  border-left: 2px solid var(--cu-gold);
  padding: 12px 20px;
  display: flex; gap: 26px;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}
.iframe-stat { display: flex; flex-direction: column; line-height: 1; }
.iframe-stat-num {
  font-size: 26px; font-weight: 800; color: var(--cu-gold);
  letter-spacing: -0.02em;
}
.iframe-stat-label {
  font-size: 9.5px; color: rgba(255,255,255,0.72);
  text-transform: uppercase; letter-spacing: 0.13em;
  margin-top: 6px; font-weight: 600;
}

/* ───── Inline speaker notes panel ───── */
.slide-notes {
  position: absolute;
  bottom: 44px; left: 0; right: 0;
  z-index: 4;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid var(--cu-gold);
  padding: 16px 32px 18px;
  max-height: 26vh;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  display: none;
  font-family: 'Inter', -apple-system, sans-serif;
}
.show-notes .slide-notes { display: block; }
.slide-notes p { margin: 0 0 6px; }
.slide-notes p:last-child { margin-bottom: 0; }
.slide-notes-label {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cu-gold); font-weight: 700; margin-bottom: 8px;
}
.show-notes .content-slide .slide-content { padding-bottom: calc(26vh + 30px); }
/* On iframe slides, notes panel overlays the iframe (no height resize). */
.iframe-slide .slide-notes {
  background: rgba(10,10,10,0.94);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
}

/* ───── Brand bars ───── */
.brand-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px 12px;
  border-bottom: 2px solid var(--cu-gold);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.brand-cu {
  font-weight: 800; font-size: 11px; letter-spacing: 0.18em;
  color: var(--cu-gold); text-transform: uppercase;
}
.brand-sep { width: 1px; height: 14px; background: var(--cu-gold-dim); }
.brand-unit {
  font-weight: 500; font-size: 11px; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85); text-transform: uppercase;
}

.foot-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--cu-border);
  pointer-events: none;
}
.foot-event {
  font-size: 10px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7); text-transform: uppercase;
  font-weight: 500;
}
.foot-event b { color: var(--cu-gold); font-weight: 700; }
.foot-counter {
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--cu-gold); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.foot-counter .num { font-size: 13px; }
.foot-counter .sep { opacity: 0.5; margin: 0 4px; }

.deck-body.idle .brand-bar,
.deck-body.idle .foot-bar { opacity: 0; }
.brand-bar, .foot-bar { transition: opacity 0.5s; }

.hint {
  position: fixed; bottom: 56px; left: 50%; transform: translateX(-50%);
  font-size: 10px; opacity: 0; letter-spacing: 0.1em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  pointer-events: none; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.7); padding: 6px 12px; border-radius: 3px;
  transition: opacity 0.3s; z-index: 11;
}
.deck-body:not(.idle):hover .hint { opacity: 0.7; }

.progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--cu-gold);
  transition: width 0.5s ease; z-index: 12;
}

/* ───── Notes view (white-only) ───── */
html:has(.notes-body) { background: #fff; }
.notes-body {
  background: #fff; color: #1a1a1a;
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6; padding: 0 0 80px;
  margin: 0;
  overflow-y: auto;
}
.notes-top {
  background: #fff; color: #1a1a1a;
  padding: 20px 32px;
  border-bottom: 3px solid var(--cu-gold);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  position: sticky; top: 0; z-index: 100;
}
.notes-top .brand-cu { color: #0a0a0a; font-size: 11px; letter-spacing: 0.18em; font-weight: 800; }
.notes-top .brand-sep { background: rgba(10,10,10,0.25); }
.notes-top .brand-unit { color: #444; font-size: 11px; letter-spacing: 0.12em; font-weight: 500; }
.notes-top-left { display: flex; align-items: center; gap: 12px; }
.notes-top a {
  color: #0a0a0a; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px;
  border: 1px solid var(--cu-gold); border-radius: 3px;
  transition: all 0.2s; pointer-events: auto;
  background: #fff;
}
.notes-top a:hover { background: var(--cu-gold); color: #0a0a0a; }

.notes-inner { max-width: 880px; margin: 0 auto; padding: 40px 32px 0; }
.notes-body h1 {
  font-size: 30px; color: #0a0a0a; margin: 0 0 8px;
  font-weight: 800; letter-spacing: -0.01em; line-height: 1.15;
}
.notes-body .meta {
  font-size: 12px; color: #666;
  margin-bottom: 8px; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 500;
}
.notes-body .gold-rule {
  width: 56px; height: 3px; background: var(--cu-gold);
  margin: 16px 0 36px;
}
.notes-slide {
  margin-bottom: 44px; padding-bottom: 32px;
  border-bottom: 1px solid #e6e0cc;
}
.notes-slide:last-of-type { border-bottom: 0; }
.notes-slide-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.notes-slide-num {
  background: #fff; color: #0a0a0a;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0; border: 2px solid var(--cu-gold);
}
.notes-slide-title { font-size: 18px; font-weight: 700; color: #0a0a0a; }
.notes-slide-time {
  font-size: 12px; color: #888; margin-left: auto;
  font-family: ui-monospace, monospace; letter-spacing: 0.05em;
}
.notes-slide-brief {
  font-size: 13px;
  background: #fff; padding: 14px 18px; border-radius: 3px;
  border-left: 3px solid var(--cu-gold); margin-bottom: 20px;
  color: #3a3a3a; line-height: 1.55;
}
.notes-slide-brief b { color: #0a0a0a; font-weight: 700; }
.notes-slide-script p { margin: 0 0 14px; font-size: 17.5px; color: #1a1a1a; line-height: 1.55; }
.notes-slide-script b, .notes-slide-script strong { color: #0a0a0a; font-weight: 700; }
.notes-footer { background: #fff; padding-top: 12px; }
.notes-footer h3 { color: #0a0a0a; margin: 0 0 12px; font-size: 16px; }
.notes-footer ul { color: #1a1a1a; padding-left: 20px; }
.notes-footer li b { color: #0a0a0a; }

@media print {
  .notes-body { background: #fff; }
  .notes-top { position: static; }
  .notes-slide { page-break-inside: avoid; }
  .notes-top a { display: none; }
}

/* ───── Responsive ───── */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-headline { font-size: 36px; }
  .stat-number { font-size: 48px; }
}
@media (max-width: 640px) {
  .slide-content { padding: 70px 24px 60px; }
  .stat-grid { grid-template-columns: 1fr; }
  .slide-headline { font-size: 28px; }
}
