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

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c20;
  --border: #2a2a30;
  --text: #e8e8ec;
  --text-muted: #8a8a96;
  --accent: #4b50b7;
  --accent-light: #6b70d6;
  --gradient: linear-gradient(135deg, #4b50b7, #7b6fcc, #a78bda);
  --gradient-subtle: linear-gradient(
    135deg,
    rgba(75, 80, 183, 0.15),
    rgba(123, 111, 204, 0.15)
  );
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* === Progress Bar === */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 100;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  width: 6.25%;
}

/* === Navigation === */
.slide-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 50;
  background: rgba(20, 20, 22, 0.8);
  backdrop-filter: blur(12px);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.slide-counter {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 4rem;
  text-align: center;
}

/* === Slides === */
.slide {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(20px);
}

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

.slide-content {
  max-width: 960px;
  width: 100%;
  padding: 2rem 3rem;
}

/* === Typography === */
h1 {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.overline {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 600px;
  line-height: 1.6;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
}

/* === Title Slide === */
.title-slide {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-slide .subtitle {
  text-align: center;
}

/* === Tags === */
.tag-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

/* === Stat Cards === */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Outcome Grid === */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.outcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.outcome-card:hover {
  border-color: var(--accent);
}

.outcome-icon {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.outcome-card h3 {
  margin-bottom: 0.5rem;
}

.outcome-card p {
  font-size: 0.9rem;
}

/* === Method Stack === */
.method-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.3s;
}

.method-card:hover {
  border-color: var(--accent);
}

.method-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.method-card h3 {
  margin-bottom: 0.35rem;
}

.method-card p {
  font-size: 0.9rem;
}

/* === Format Layout === */
.format-layout {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.format-block {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.format-label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.format-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.format-block p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.format-detail {
  font-size: 0.75rem;
  color: var(--accent-light);
  font-family: var(--mono);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.format-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
  display: none;
}

/* === Journey Timeline === */
.journey-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2.5rem 0 2rem;
}

.journey-week {
  text-align: center;
  flex-shrink: 0;
}

.journey-week[data-goto] {
  cursor: pointer;
}

.journey-week[data-goto]:hover .week-marker {
  border-color: var(--accent);
  background: rgba(75, 80, 183, 0.15);
  color: var(--accent-light);
}

.week-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0 auto 0.5rem;
  transition: all 0.3s;
}

.active-marker {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-light);
}

.week-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.week-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.journey-connector {
  width: 40px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

/* === Journey Bars === */
.journey-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 500px;
  margin: 0 auto;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 110px;
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
  display: flex;
  gap: 2px;
}

.bar-segment {
  flex: 1;
  height: 100%;
  background: var(--surface-2);
  transition: background 0.3s;
}

.bar-segment.filled {
  background: var(--accent);
}

.bar-segment.filled.subtle {
  background: rgba(75, 80, 183, 0.35);
}

/* === Week Slides === */
.week-slide {
  max-width: 860px;
}

.week-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.week-number {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  display: block;
  margin-bottom: 0.5rem;
}

.week-header h2 {
  font-size: 1.75rem;
}

.week-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.week-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.week-section h4 {
  font-size: 0.7rem;
  margin-bottom: 0.6rem;
}

.week-section p {
  font-size: 0.82rem;
  line-height: 1.55;
}

.week-section strong {
  color: var(--text);
}

.week-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.week-section ul li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.week-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.case-study-callout {
  background: var(--gradient-subtle);
  border-color: rgba(99, 102, 241, 0.25);
}

.curveball-list li {
  font-style: italic;
}

/* === Rubric Grid === */
.rubric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.rubric-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rubric-pct {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.85rem;
}

/* === Case Study Cards === */
.case-study-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-week {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}

.cs-card h3 {
  font-size: 1.05rem;
}

.cs-card p {
  font-size: 0.85rem;
  flex: 1;
}

.cs-skill {
  font-size: 0.75rem;
  color: var(--accent-light);
  font-family: var(--mono);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* === Progression List === */
.progression-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.prog-item {
  display: grid;
  grid-template-columns: 2.5rem 200px 1fr;
  align-items: center;
  gap: 1rem;
}

.prog-week {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  text-align: right;
}

.prog-bar-wrap {
  width: 200px;
  height: 28px;
}

.prog-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 6px;
  opacity: 0.8;
  min-width: 16px;
}

.prog-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* === Research Grid === */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.research-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.research-card h4 {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.research-card p {
  font-size: 0.8rem;
  line-height: 1.5;
}

/* === Final Stats === */
.final-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.final-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.final-stat .stat-number {
  font-size: 2.5rem;
}

.final-stat .stat-label {
  font-size: 0.75rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  /* Allow slides to scroll on mobile */
  .slide {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
  }

  .slide-content {
    padding: 3rem 1.25rem 5rem;
    max-width: 100%;
  }

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 1rem;
    margin-top: 1rem;
  }

  /* Nav pill */
  .slide-nav {
    bottom: 1rem;
    padding: 0.5rem 1rem;
    gap: 1rem;
  }

  /* Grids → single column */
  .three-col,
  .outcome-grid,
  .case-study-cards,
  .research-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .three-col {
    margin-top: 1.5rem !important;
  }

  .stat-card {
    padding: 1.25rem 1rem;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
    flex-shrink: 0;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Outcomes */
  .outcome-grid {
    margin-top: 1.5rem;
  }

  .outcome-card {
    padding: 1rem;
  }

  .outcome-card p {
    font-size: 0.82rem;
  }

  /* Methods (Slide 4) */
  .method-stack {
    margin-top: 1.5rem;
    gap: 0.75rem;
  }

  .method-card {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }

  .method-card p {
    font-size: 0.82rem;
  }

  /* Format (Slide 5) */
  .format-layout {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .format-block {
    padding: 1rem;
  }

  .format-block p {
    font-size: 0.8rem;
  }

  /* Journey timeline (Slide 6) */
  .journey-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.5rem;
    margin: 1.5rem 0 1.5rem;
  }

  .journey-connector {
    display: none;
  }

  .week-marker {
    width: 38px;
    height: 38px;
    font-size: 0.6rem;
  }

  .week-title {
    font-size: 0.7rem;
  }

  .week-desc {
    font-size: 0.6rem;
  }

  .journey-bars {
    max-width: 100%;
  }

  .bar-label {
    width: 80px;
    font-size: 0.65rem;
  }

  /* Week slides (Slides 7-12) */
  .week-slide {
    max-width: 100%;
  }

  .week-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .week-header h2 {
    font-size: 1.2rem;
  }

  .week-body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .week-section {
    padding: 1rem;
  }

  .week-section h4 {
    font-size: 0.65rem;
  }

  .week-section p {
    font-size: 0.75rem;
  }

  .week-section ul li {
    font-size: 0.72rem;
  }

  /* Case studies */
  .case-study-cards {
    gap: 0.75rem;
  }

  .cs-card {
    padding: 1rem;
  }

  .cs-card h3 {
    font-size: 0.95rem;
  }

  .cs-card p {
    font-size: 0.8rem;
  }

  /* Progression (Slide 14) */
  .progression-list {
    margin-top: 1.5rem;
    gap: 0.6rem;
  }

  .prog-item {
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
  }

  .prog-bar-wrap {
    display: none;
  }

  .prog-desc {
    font-size: 0.78rem;
    white-space: normal;
  }

  /* Research */
  .research-grid {
    gap: 0.75rem;
  }

  .research-card {
    padding: 1rem;
  }

  .research-card p {
    font-size: 0.75rem;
  }

  /* Final slide */
  .final-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .final-stat .stat-number {
    font-size: 2rem;
  }

  /* Rubric */
  .rubric-grid {
    grid-template-columns: 1fr;
  }
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide.active .slide-content > * {
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.slide.active .slide-content > *:nth-child(1) {
  animation-delay: 0s;
}
.slide.active .slide-content > *:nth-child(2) {
  animation-delay: 0.08s;
}
.slide.active .slide-content > *:nth-child(3) {
  animation-delay: 0.16s;
}
.slide.active .slide-content > *:nth-child(4) {
  animation-delay: 0.24s;
}
.slide.active .slide-content > *:nth-child(5) {
  animation-delay: 0.32s;
}
