/* ============================================================
   SLIDES.CSS — Slide-based presentation viewer
   Used on core-slides.html (slidestyle branch)
   Preserves all fonts, sizes, and colors from core.css
   ============================================================ */

/* ── Body override: lock scroll, full height ── */
.cs-slides-mode {
  overflow: hidden;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: #f5f3ee;
}

/* ── Chrome: hide default navbar when in slide mode ── */
.cs-slides-mode .navbar,
.cs-slides-mode .nav-mobile {
  display: none;
}

/* ── Back to home button (top-left) ── */
.slides-back-home {
  position: fixed;
  top: 20px;
  left: 28px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-cs-mono);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-cs-ink-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.slides-back-home:hover { color: var(--color-cs-ink); }
.slides-back-home svg { flex-shrink: 0; }

/* ── Slide counter (top-right) ── */
.slides-counter {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 200;
  font-family: var(--font-cs-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-cs-ink-muted);
}

/* ── Slide viewer wrapper ── */
.slides-viewer {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ── Individual slides ── */
.slide {
  position: absolute;
  inset: 0;
  bottom: 56px;
  display: flex;
  flex-direction: column;
  background: #f5f3ee;
  pointer-events: none;
  z-index: 0;
  transform: none !important;
  overflow: hidden;
}

.slide.is-active {
  pointer-events: auto;
  z-index: 2;
}

.slide.is-exit-left {
  pointer-events: none;
  z-index: 1;
}

/* ── Disable scroll on specific slides ── */
.slide--no-scroll .slide-inner { overflow-y: hidden; }

/* ── Slide inner scroll container ── */
.slide-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 56px 64px 32px 64px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;

  /* Content transition — background stays fixed, only content moves */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide.is-active .slide-inner {
  opacity: 1;
  transform: translateY(0);
}

.slide.is-exit-left .slide-inner {
  /* Stay visible as the bottom layer while incoming content fades in on top */
  opacity: 1;
  transform: translateY(0);
}

/* ── BOTTOM NAV BAR ── */
.slides-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 56px;
  background: rgba(245, 243, 238, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(50, 64, 79, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slides-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 24px;
  scrollbar-width: none;
}
.slides-nav-inner::-webkit-scrollbar { display: none; }

.slides-nav-item {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-cs-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-cs-ink-muted);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.slides-nav-item:hover { color: var(--color-cs-ink); background: rgba(50, 64, 79, 0.06); }
.slides-nav-item.is-active { color: var(--color-cs-ink); font-weight: 600; }
.slides-nav-item:focus-visible { outline: none; }
.slides-nav-item.is-inactive { opacity: 0.35; cursor: default; pointer-events: none; }

.slides-nav-sep {
  color: var(--color-cs-ink-muted);
  font-size: 11px;
  opacity: 0.4;
  user-select: none;
  padding: 0 2px;
}


/* ── Prev / Next arrow buttons ── */
.slides-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(50, 64, 79, 0.10);
  border: 1.5px solid rgba(50, 64, 79, 0.18);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-cs-ink);
  padding: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.slides-arrow:hover {
  background: rgba(50, 64, 79, 0.18);
  border-color: rgba(50, 64, 79, 0.35);
  color: var(--color-cs-ink);
}
.slides-arrow--prev { left: 20px; }
.slides-arrow--next { right: 20px; }
.slides-arrow[hidden] { display: none; }

/* ═══════════════════════════════════════════════
   SHARED metric number style (used by slides 2 + old)
═══════════════════════════════════════════════ */
.slide-1-metric-num {
  font-family: var(--font-cs-body);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-cs-ink);
  line-height: 1;
  margin: 0 0 4px 0;
}
.slide-1-metric-label {
  font-family: var(--font-cs-body);
  font-size: 13px;
  color: var(--color-cs-ink-muted);
  line-height: 1.4;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   SLIDE 1 — Intro / Landing
═══════════════════════════════════════════════ */
.slide-intro .slide-inner.slide-intro-inner {
  position: relative;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* Center content block */
.slide-intro-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 640px;
  z-index: 1;
}

.slide-intro-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.slide-intro-tags .slides-nav-sep {
  font-size: 16px;
  color: var(--color-cs-ink-muted);
  opacity: 1;
  line-height: 1;
}

.slide-intro-title {
  font-family: var(--font-cs-body);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--color-cs-ink);
  line-height: 1.3;
  margin: 0;
}

/* Metrics row under title */
.slide-intro-metrics {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  width: 100%;
}

.slide-intro-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 28px;
}

.slide-intro-metric-num {
  font-family: var(--font-cs-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-cs-ink);
  line-height: 1;
  margin: 0 0 4px 0;
}

.slide-intro-metric-label {
  font-family: var(--font-cs-body);
  font-size: 12px;
  color: var(--color-cs-ink-muted);
  line-height: 1.4;
  margin: 0;
  max-width: 120px;
}

.slide-intro-metric-sep {
  width: 1px;
  height: 36px;
  background: rgba(50, 64, 79, 0.15);
  align-self: center;
  flex-shrink: 0;
}

/* Enter case study button */
.slide-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--color-cs-ink);
  color: #f5f3ee;
  font-family: var(--font-cs-body);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  margin-top: 4px;
}
.slide-enter-btn:hover {
  background: rgba(50, 64, 79, 0.82);
  transform: translateY(-1px);
}
.slide-enter-arrow {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.slide-enter-btn:hover .slide-enter-arrow {
  transform: translateX(5px);
}

/* ── Fun annotation hints ── */
/* Base: all hints are fixed to the viewport and hidden by default.
   They live as direct children of .slide so the .is-active check works,
   and because .slide has transform:none !important, position:fixed here
   correctly anchors to the viewport (not a transformed ancestor). */
.slide-hint {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-cs-ink-muted);
  pointer-events: none;
  z-index: 190;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide.is-active > .slide-hint {
  opacity: 1;
}

.slide-hint-text {
  font-family: 'Handlee', cursive;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
  margin: 0;
  color: var(--color-cs-ink-muted);
}

.slide-hint-arrow {
  flex-shrink: 0;
}

/* Home hint — anchored to same top-left corner as the HOME button (top:20px left:28px).
   Placed just below it; arrow curves up-left toward the button. */
.slide-hint-home {
  top: 52px;
  left: 24px;
  align-items: flex-start;
  flex-direction: column-reverse;
}
.slide-hint-home .slide-hint-text {
  text-align: left;
}

/* Arrow keys hint — sits to the left of the nav arrow button, vertically
   centered with it. Both anchored to right edge + top:50%, so the
   gap is constant on every screen size. Arrow points right at the button. */
.slide-hint-arrows {
  right: 84px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  flex-direction: row;
  gap: 8px;
}
.slide-hint-arrows .slide-hint-text {
  text-align: right;
  font-size: 15px;
}

/* Nav hint — fixed just above the nav bar (bottom:56px) at viewport center. */
.slide-hint-nav {
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

/* Long-form hint — bottom-left, above the nav bar. Keeps absolute so it
   stays within the slide's painted area (it's decorative, not chrome-pointing). */
.slide-hint-longform {
  position: fixed;
  bottom: 72px;
  left: 52px;
  align-items: flex-start;
  pointer-events: auto;
  z-index: 190;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide.is-active > .slide-hint-longform {
  opacity: 1;
}

.slide-hint-arrow--longform {
  margin-bottom: -2px;
}

.slide-hint-longform-link {
  font-family: var(--font-cs-body);
  font-size: 12px;
  color: var(--color-cs-ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.75;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.slide-hint-longform-link:hover {
  opacity: 1;
  color: var(--color-cs-ink);
}

/* ═══════════════════════════════════════════════
   SLIDE 2 — Problem + Video + Solution
═══════════════════════════════════════════════ */
.slide-overview-inner {
  justify-content: space-between;
  gap: 0;
}

/* General header/body block used across all slides */
.slide-overview-ps-row {
  padding-top: 24px;
  padding-bottom: 8px;
}

/* Two-column variant (slide 2: Problem + Solution) */
.slide-overview-ps-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.slide-overview-problem,
.slide-overview-solution-top {}

/* Video + metrics: single centered container */
.slide-overview-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
  min-height: 0;
  align-self: center;
}

.slide-overview-video {
  width: auto;
  height: auto;
  max-height: 440px;
  min-height: 280px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(50, 64, 79, 0.14);
}

/* Shrink the video-wrap to hug the video so controls sit at its corner */
.slide-overview-media .slide-video-wrap {
  width: auto;
}

.slide-overview-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.slide-overview-metric {}


/* ═══════════════════════════════════════════════
   SLIDE 3 — My Role (shifted from old slide 2)
═══════════════════════════════════════════════ */
.slide-2 .slide-inner {
  gap: 0;
}

/* Meta row at top */
.slide-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(50, 64, 79, 0.1);
  margin-bottom: 40px;
}

.slide-meta-item {}

/* role body content */
.slide-role-content {
  max-width: 780px;
}

/* ═══════════════════════════════════════════════
   SLIDE 3 — Meet Sarah
═══════════════════════════════════════════════ */
.slide-3 .slide-inner {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
}

.slide-3-text {
  max-width: 100%;
  font-family: var(--font-cs-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-cs-ink);
  margin: 0;
}

.slide-3-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.slide-3-img {
  width: 220px;
  height: auto;
  display: block;
}

/* ── Exclamation marks ── */
.slide-3-exclaims {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: -4px;
}

.slide-3-exclm {
  font-family: 'Handlee', cursive;
  font-size: 36px;
  font-weight: 700;
  color: #d93025;
  line-height: 1;
  display: inline-block;
  transform-origin: bottom center;
}

/* Staggered bounce animation */
@keyframes exclm-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%       { transform: translateY(-10px) rotate(-6deg); }
  60%       { transform: translateY(-6px) rotate(4deg); }
}

.slide-3-exclm--1 {
  animation: exclm-bounce 1.6s ease-in-out infinite;
  animation-delay: 0s;
}
.slide-3-exclm--2 {
  animation: exclm-bounce 1.6s ease-in-out infinite;
  animation-delay: 0.2s;
}
.slide-3-exclm--3 {
  animation: exclm-bounce 1.6s ease-in-out infinite;
  animation-delay: 0.4s;
}

/* ═══════════════════════════════════════════════
   SLIDE 4 — The Problem (Old Experience)
   SLIDE 5 — Research (Sarah Would…)
   Shared layout: callouts left | center | callouts right
═══════════════════════════════════════════════ */
.slide-annotated .slide-inner {
  gap: 0;
}

.slide-ann-title-text {
  font-family: var(--font-cs-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-cs-ink-muted);
  text-align: center;
  margin: 0 0 20px 0;
}

/* Annotated layout: mirrors .slide-overview-media exactly.
   position:relative lets callouts float absolutely without touching the video. */
/* 3-column grid: [left callouts] [video/png] [right callouts]
   Centre column is auto so it shrinks to the PNG width,
   pulling the callout columns flush against it. */
.slide-ann-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-height: 0;
  max-height: 420px;
  width: 100%;
}

/* Video variant: fixed outer columns + flexible centre so the video fills space */
.slide-ann-layout--video {
  grid-template-columns: 210px 1fr 210px;
  grid-template-rows: 420px; /* fixed row height keeps post-its at same Y across slides */
  max-height: none;
  align-content: center;
  gap: 32px;
}

.slide-ann-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: flex-end;   /* bubbles flush to the right edge, tail points right */
}

.slide-ann-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: flex-start; /* bubbles flush to the left edge, tail points left */
}

/* ── Base callout — red annotation box (slide 4) ── */
.slide-callout {
  border: 1px solid rgba(185, 40, 40, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
  color: #b82020;
  font-family: var(--font-cs-body);
  font-size: 13px;
  line-height: 1.55;
  background: rgba(255, 240, 240, 0.7);
  max-width: 200px;
}

.slide-callout-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #b82020;
}

/* ── Post-it note variant (slide 4 only) ── */
.slide-callout--postit {
  position: relative;
  /* Layout & text only — paper visual lives in ::before so pin is never clipped */
  background: transparent;
  border: none;
  padding: 12px 12px 12px 42px;
  color: #1a1a1a;
  font-family: var(--font-cs-body);
  font-size: 13px;
  line-height: 21px;
  max-width: 200px;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Freeze post-its when slide is not active so they don't drift during transitions */
.slide:not(.is-active) .slide-callout--postit {
  transition: none;
}

/* Paper visual — clip-path here so the absolutely-positioned pin is never clipped */
.slide-callout--postit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  background-color: #fff;
  background-image:
    radial-gradient(circle at 15px 14%, #f5f3ee 4px, rgba(0,0,0,0.1) 4px, rgba(0,0,0,0.1) 5.2px, transparent 5.2px),
    radial-gradient(circle at 15px 50%, #f5f3ee 4px, rgba(0,0,0,0.1) 4px, rgba(0,0,0,0.1) 5.2px, transparent 5.2px),
    radial-gradient(circle at 15px 86%, #f5f3ee 4px, rgba(0,0,0,0.1) 4px, rgba(0,0,0,0.1) 5.2px, transparent 5.2px),
    linear-gradient(90deg, transparent 30px, #fca5a5 30px, #fca5a5 31.5px, transparent 31.5px),
    repeating-linear-gradient(transparent 0px, transparent 21px, #bfdbfe 21px, #bfdbfe 22px);
  background-position: 0 0, 0 0, 0 0, 0 0, 0 5px;
  border: 0.5px solid rgba(0,0,0,0.3);
  box-shadow: none;
}

/* Ensure text/pin render above the ::before paper layer */
.slide-callout--postit > * { position: relative; z-index: 1; }

/* Resting rotations — pivot from pin location */
.slide-ann-left .slide-callout--postit:nth-child(1) {
  transform: rotate(-1.8deg);
  transform-origin: top left;
}
.slide-ann-left .slide-callout--postit:nth-child(2) {
  transform: rotate(1.4deg);
  transform-origin: top left;
}
.slide-ann-right .slide-callout--postit {
  transform: rotate(-1deg);
  transform-origin: top right;
}

/* Unique torn shapes on the ::before paper layer */
.slide-ann-left .slide-callout--postit:nth-child(1)::before {
  clip-path: polygon(
    0% 0%, 100% 0%,
    100% 62%, 94% 69%, 100% 75%, 91% 82%, 98% 88%, 90% 94%, 97% 100%,
    80% 94%, 63% 100%, 47% 93%, 30% 100%, 13% 94%, 4% 100%, 0% 95%
  );
}
.slide-ann-left .slide-callout--postit:nth-child(2)::before {
  clip-path: polygon(
    0% 0%, 14% 5%, 28% 0%, 44% 6%, 60% 1%, 76% 5.5%, 90% 0%, 100% 4%,
    98% 30%, 100% 58%, 97% 82%, 100% 100%,
    82% 93%, 63% 100%, 45% 93%, 27% 100%, 10% 93%, 0% 100%
  );
}
.slide-ann-right .slide-callout--postit::before {
  clip-path: polygon(
    0% 0%, 100% 0%,
    95% 16%, 100% 32%, 93% 48%, 100% 64%, 94% 80%, 100% 100%,
    84% 93%, 68% 100%, 51% 93%, 35% 100%, 18% 93%, 3% 100%, 0% 94%,
    2% 74%, 0% 52%, 3% 30%, 0% 10%
  );
}

/* Hover: tilt away from the pin, spring back on leave */
.slide-ann-left .slide-callout--postit:nth-child(1):hover  { transform: rotate(-12deg); }
.slide-ann-left .slide-callout--postit:nth-child(2):hover  { transform: rotate(12deg);  }
.slide-ann-right .slide-callout--postit:hover              { transform: rotate(-12deg); }

/* Push-pin SVG — shared base */
.slide-postit-pin {
  position: absolute;
  top: -22px;   /* needle sits on top of the note, tip embedded in paper */
  width: 30px;
  height: auto;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

/* Left notes: pin leans in from the left */
.slide-ann-left .slide-postit-pin {
  left: 12px;
  transform: rotate(-22deg);
  transform-origin: bottom center;
}

/* Right note: pin leans in from the right */
.slide-ann-right .slide-postit-pin {
  right: 12px;
  transform: rotate(22deg);
  transform-origin: bottom center;
}

/* Title inside post-it */
.slide-callout--postit .slide-callout-title {
  font-family: var(--font-cs-body);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 5px;
  color: #1a1a1a;
}

/* ── Comic speech bubble variant (slide 5 only) ── */
.slide-callout--bubble {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-height: 72px;
}

/* Organic blob SVG background */
.slide-callout--bubble .slide-callout-bubble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.slide-callout--bubble .slide-callout-bubble path {
  fill: #ffffff;
  stroke: #2a2a2a;
  stroke-width: 1.2;
}

/* Tail SVG */
.slide-callout--bubble .slide-callout-tail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.slide-callout--bubble .slide-callout-tail path {
  fill: #ffffff;
  stroke: #2a2a2a;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Left column: tail exits RIGHT toward PNG */
.slide-ann-left .slide-callout-tail--right {
  right: -16px;
}

/* Right column: tail exits LEFT toward PNG */
.slide-ann-right .slide-callout-tail--left {
  left: -16px;
}

/* Proto bubble: tail exits DOWN toward character */
.slide-callout--bubble .slide-callout-tail--down {
  top: auto;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
}

/* Text layer */
.slide-callout-text {
  position: relative;
  z-index: 1;
  padding: 14px 20px;
  font-family: var(--font-cs-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-cs-ink);
}

.slide-callout--bubble .slide-callout-title {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
  color: var(--color-cs-ink);
  border: none;
  background: none;
}

/* ── Bubble pop-in animation ──────────────────────────────
   Bubbles scale out from the PNG edge (transform-origin faces
   the PNG) and bounce slightly on arrival.
   Replays every time the slide becomes active because
   .slide:not(.is-active) resets opacity + animation.        */

@keyframes bubble-pop {
  0%   { opacity: 0; transform: scale(0.2); }
  65%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

/* Hidden when slide is inactive → ensures replay on re-visit */
.slide:not(.is-active) .slide-callout--bubble {
  opacity: 0;
  animation: none;
}

/* Left bubble: scales from its RIGHT edge (closest to PNG) */
.slide.is-active .slide-ann-left .slide-callout--bubble {
  transform-origin: right center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

/* Right bubble 1 */
.slide.is-active .slide-ann-right .slide-callout--bubble:nth-child(1) {
  transform-origin: left center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s both;
}

/* Right bubble 2 */
.slide.is-active .slide-ann-right .slide-callout--bubble:nth-child(2) {
  transform-origin: left center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.05s both;
}

/* Video wrapper — needed to position controls overlay */
.slide-video-wrap {
  position: relative;
  display: inline-flex;   /* shrinks to the video's actual rendered size */
  align-items: center;
  justify-content: center;
  align-self: center;
}

.slide-ann-video {
  width: auto;
  height: auto;
  max-height: 440px;
  min-height: 280px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(50, 64, 79, 0.14);
}

/* UX Decision 2 — image overlay inside video-wrap */
.slide-ux2-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-height: 440px;
  min-height: 280px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(50, 64, 79, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.slide.ux2-state-image video.slide-ann-video {
  opacity: 0;
  pointer-events: none;
}

.slide.ux2-state-image .slide-ux2-image {
  opacity: 1;
  pointer-events: auto;
}

.slide.ux2-state-image .slide-video-controls {
  opacity: 0 !important;
  pointer-events: none;
}

/* Controls overlay — hidden by default, shown on wrapper hover */
.slide-video-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;   /* always interactive so clicks land */
  z-index: 10;
}

.slide-video-wrap:hover .slide-video-controls {
  opacity: 1;
  transform: translateY(0);
}

.slide-vid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.slide-vid-btn:hover {
  background: rgba(30, 30, 30, 0.85);
  transform: scale(1.1);
}

.slide-ann-img {
  width: 160px;
  height: auto;
  display: block;
  position: absolute;
  bottom: 0;
  left: -20px;
}

.slide-ann-center-inner {
  position: relative;
  width: 100%;
}

/* Centre PNG wrapper — needed so anger marks position relative to it */
.slide-ann-png-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

/* Two-character row (slide 6) */
.slide-duo-imgs {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.slide-duo-img {
  height: auto;
  display: block;
}

.slide-duo-img:nth-child(1) { width: 282px; transform: translateY(-8px); }
.slide-duo-img:nth-child(2) { width: 206px; }

/* Centre PNG for research slide — matches Meet Sarah PNG size */
.slide-ann-png {
  width: 220px;
  height: auto;
  display: block;
}



/* ── Bottom tag bar (slide 4) ── */
.slide-tag-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;   /* sits above any overflowing video shadow */
}

.slide-insight-tag {
  background: transparent;
  color: var(--color-cs-ink);
  border: 1px solid rgba(50, 64, 79, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-cs-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ── Prototype slide: sarah + video side by side ── */
.slide-proto-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  flex: 1;
  min-height: 0;
  margin-top: 12px;
  padding-bottom: 12px; /* room for shadow to breathe */
}

.slide-proto-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.slide-proto-bubble {
  transform-origin: bottom center;
  margin-bottom: 8px;
}

.slide-proto-sarah {
  width: 220px;   /* matches .slide-ann-png used in research slide */
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* Video matches the problem-slide video sizing */
.slide-proto-vid-wrap {
  align-self: center;
  max-height: 440px;
}

/* Replay animation on revisit for proto bubble */
.slide:not(.is-active) .slide-proto-bubble { opacity: 0; animation: none; }
.slide.is-active .slide-proto-bubble {
  transform-origin: bottom center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

/* ── Slide example images (Reddit / Chrome) ── */
.slide-example-imgs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
  min-height: 0;
  margin-top: 16px;
}

.slide-example-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.slide-example-caption {
  font-family: var(--font-cs-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-cs-ink-muted);
}

.slide-example-img {
  width: auto;
  max-width: 520px;
  max-height: 360px;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(50, 64, 79, 0.12);
}

/* ── UX Decision inline label — cursive, sits at the start of the title ── */
.slide-decision-inline {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  font-family: 'Dancing Script', cursive;
  font-size: var(--text-cs-title);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-cs-ink);
  clip-path: inset(0 100% 0 0);
}

/* Write in when slide becomes active */
.slide.is-active .slide-decision-inline {
  animation: ux-write-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

/* Stay fully visible while slide is exiting */
.slide.is-exit-left .slide-decision-inline {
  clip-path: inset(0 0% 0 0);
}

@keyframes ux-write-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0%   0 0); }
}

/* ── Green post-it pin modifier ── */
.slide-callout--postit-green {
  /* pin colors are in the SVG; no extra CSS needed here */
}

/* ── Coloured insight pills ── */
.slide-insight-tag--purple {
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(139, 92, 246, 0.35);
  color: #4c1d95;
}
.slide-insight-tag--green {
  background: rgba(134, 239, 172, 0.25);
  border-color: rgba(34, 197, 94, 0.4);
  color: #14532d;
}

/* ══════════════════════════════════════════════
   Psychology insight overlay (Problem slide)
══════════════════════════════════════════════ */

.slide-insight-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 6, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 56px 32px 28px;
}

.slide.insight-visible .slide-insight-overlay {
  opacity: 1;
  pointer-events: auto;
}

.slide-insight-card {
  background: #fff;
  border-radius: 8px;
  padding: 22px 26px 18px;
  max-width: 340px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
  transform: translateY(14px);
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide.insight-visible .slide-insight-card {
  transform: translateY(0);
}

.slide-insight-eyebrow {
  font-family: var(--font-cs-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cs-ink-muted);
  margin: 0 0 8px;
}

.slide-insight-title {
  font-family: var(--font-cs-serif);
  font-size: var(--text-cs-title);
  font-weight: var(--font-regular);
  color: var(--color-cs-ink);
  margin: 0 0 14px;
  line-height: var(--leading-cs-title);
}

.slide-insight-card > p {
  font-family: var(--font-cs-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-cs-ink);
  margin: 0 0 10px;
}

.slide-insight-citations {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.slide-insight-citations p {
  font-family: var(--font-cs-body);
  font-size: 10.5px;
  line-height: 1.5;
  color: #999;
  margin: 0 0 3px;
  font-style: italic;
}

.slide-insight-citations a {
  color: var(--color-cs-ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.slide-insight-citations a:hover {
  color: var(--color-cs-ink);
}

/* ══════════════════════════════════════════════
   SLIDES 17–18 — Testing & Feedback
══════════════════════════════════════════════ */

/* Slide 17: two-column grid */
.slide-tf-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 40px;
  flex: 1;
  min-height: 0;
  align-items: start;
  padding-top: 8px;
}

.slide-tf-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-tf-col-label {
  font-family: var(--font-cs-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cs-ink-muted);
  margin: 0;
}

.slide-tf-divider {
  width: 1px;
  background: rgba(50, 64, 79, 0.12);
  align-self: stretch;
}

/* Phase steps — rollout timeline */
.slide-tf-phases { display: flex; flex-direction: column; gap: 0; }
.slide-tf-phase { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; }
.slide-tf-phase-num {
  font-family: var(--font-cs-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-cs-ink-muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.slide-tf-phase-text {
  font-family: Geist, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  color: rgba(50, 64, 79, 0.584);
  display: block;
}
.slide-tf-phase-connector {
  width: 1px;
  height: 16px;
  background: rgba(50, 64, 79, 0.18);
  margin-left: 25px;
}

/* Inline tool pill — sits inside paragraph text */
.slide-tf-tool-inline {
  display: inline-block;
  font-family: var(--font-cs-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--color-cs-ink);
  border: 1px solid rgba(50, 64, 79, 0.28);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: middle;
  line-height: 1.6;
  white-space: nowrap;
}

/* Tool badges */
.slide-tf-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slide-tf-tool {
  font-family: var(--font-cs-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-cs-ink);
  border: 1px solid rgba(50, 64, 79, 0.28);
  border-radius: 999px;
  padding: 5px 13px;
  background: rgba(50, 64, 79, 0.04);
}

/* Slide 18: feedback layout */
.slide-tf-feedback-inner {
  justify-content: space-between;
}

.slide-tf-quote-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 80px;
  gap: 4px;
  min-height: 0;
}

.slide-tf-quote-mark {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 96px;
  line-height: 0.7;
  color: rgba(50, 64, 79, 0.12);
  margin-bottom: -8px;
  user-select: none;
}

.slide-tf-quote {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1.55;
  color: var(--color-cs-ink);
  margin: 0;
  max-width: 780px;
}

.slide-tf-attribution {
  font-family: var(--font-cs-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-cs-ink-muted);
  margin: 12px 0 0 0;
}

/* Thin rule between sections within the right column */
.slide-tf-right-divider {
  width: 100%;
  height: 1px;
  background: rgba(50, 64, 79, 0.1);
  flex-shrink: 0;
}

/* Inline quote — used in the two-column feedback slide */
.slide-tf-inline-quote {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: rgba(50, 64, 79, 0.584);
  margin: 12px 0 0 0;
  position: relative;
}
.slide-tf-inline-quote::before {
  content: '\201C';
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 52px;
  font-style: italic;
  line-height: 0;
  color: rgba(50, 64, 79, 0.18);
  vertical-align: -0.3em;
  margin-right: 3px;
}

.slide-tf-improvement-row {
  padding: 0 80px 8px;
  flex-shrink: 0;
}

.slide-tf-improvement-card {
  border-top: 1px solid rgba(50, 64, 79, 0.12);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Sarah3: nearly square image, render wider ── */
.slide-ann-png--sarah3 {
  width: 260px;
}

/* ── Testing & Feedback duo: man2 + sarah3 side by side ── */
.slide-duo-imgs--tf {
  align-items: flex-end;
  gap: 16px;
}

.slide-duo-img--man2-tf {
  width: 200px;
  height: auto;
}

.slide-duo-img--sarah3-tf {
  width: 230px;
  height: auto;
  transform: translateY(-6px);
}

/* ── Final Designs 3-up grid ── */
.slide-final-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
  min-height: 0;
}

.slide-final-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
}

.slide-final-img {
  width: 321px;
  height: 440px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 32px rgba(50, 64, 79, 0.14);
}

/* ══════════════════════════════════════════════════
   SLIDE 18 — User Impact (Sarah "I" statements)
══════════════════════════════════════════════════ */
.slide-impact .slide-inner {
  gap: 12px;
  overflow-y: hidden;
  padding-bottom: 20px;
}

.slide-impact-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

/* Sarah image */
.slide-impact-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-impact-img {
  width: 230px;
  height: auto;
  display: block;
}

/* Bubble columns */
.slide-impact-bubbles {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

/* ── Scattered positions — left column ──
   "close to Sarah" = align-self: flex-end (right edge of left column)
   negative margin-bottom = slight overlap with next bubble             */
.slide-impact-bubbles--left .slide-callout--bubble:nth-child(1) {
  position: relative;
  align-self: flex-end;
  width: 90%;
  margin-bottom: -10px;
  z-index: 3;
}
.slide-impact-bubbles--left .slide-callout--bubble:nth-child(2) {
  position: relative;
  align-self: flex-start;
  width: 80%;
  z-index: 2;
}
.slide-impact-bubbles--left .slide-callout--bubble:nth-child(3) {
  position: relative;
  align-self: flex-end;
  width: 86%;
  margin-top: -6px;
  z-index: 1;
}

/* ── Scattered positions — right column ──
   "close to Sarah" = align-self: flex-start (left edge of right column) */
.slide-impact-bubbles--right .slide-callout--bubble:nth-child(1) {
  position: relative;
  align-self: flex-start;
  width: 86%;
  margin-bottom: -8px;
  z-index: 3;
}
.slide-impact-bubbles--right .slide-callout--bubble:nth-child(2) {
  position: relative;
  align-self: flex-end;
  width: 92%;
  z-index: 2;
}
.slide-impact-bubbles--right .slide-callout--bubble:nth-child(3) {
  position: relative;
  align-self: flex-start;
  width: 78%;
  margin-top: -4px;
  z-index: 1;
}

/* "Before" / "Now" inline labels inside impact bubbles */
.slide-impact-before,
.slide-impact-now {
  font-style: italic;
  font-weight: 700;
  color: var(--color-accent-hover);
}

/* Tail positions for impact layout columns */
.slide-impact-bubbles--left  .slide-callout-tail--right { right: -16px; }
.slide-impact-bubbles--right .slide-callout-tail--left  { left:  -16px; }

/* Stagger pop-in for 3 bubbles per side */
.slide-impact.is-active .slide-impact-bubbles--left .slide-callout--bubble:nth-child(1) {
  transform-origin: right center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.10s both;
}
.slide-impact.is-active .slide-impact-bubbles--left .slide-callout--bubble:nth-child(2) {
  transform-origin: right center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}
.slide-impact.is-active .slide-impact-bubbles--left .slide-callout--bubble:nth-child(3) {
  transform-origin: right center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.60s both;
}
.slide-impact.is-active .slide-impact-bubbles--right .slide-callout--bubble:nth-child(1) {
  transform-origin: left center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.22s both;
}
.slide-impact.is-active .slide-impact-bubbles--right .slide-callout--bubble:nth-child(2) {
  transform-origin: left center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.47s both;
}
.slide-impact.is-active .slide-impact-bubbles--right .slide-callout--bubble:nth-child(3) {
  transform-origin: left center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.72s both;
}

/* ══════════════════════════════════════════════════
   SLIDE 19 — Reflections & Results
══════════════════════════════════════════════════ */
.slide-results .slide-inner {
  gap: 18px;
}

.slide-results .slide-overview-ps-row {
  gap: 2px;
}

/* Horizontal rule between Reflections and Results */
.slide-results-divider {
  width: 100%;
  height: 1px;
  background: rgba(50, 64, 79, 0.1);
  flex-shrink: 0;
  margin: 6px 0;
}

/* Three-column stats grid */
.slide-results-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

/* Large serif number */
.slide-results-stat-num {
  font-family: var(--font-cs-serif);
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-cs-ink);
  margin: 0 0 10px 0;
}

.slide-results-stat-pct {
  font-size: 0.65em;
  vertical-align: 0.12em;
  margin-left: 2px;
}

/* Mono uppercase label */
.slide-results-stat-label {
  font-family: var(--font-cs-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cs-ink-muted);
  margin: 0 0 10px 0;
}

/* ── Inherited typography classes from core.css (no overrides needed) ──
   .cs-section-eyebrow, .cs-tnc-subtitle, .cs-section-title,
   .cs-section-body, .cs-hero-ps-body, .cs-meta-item, etc.
   All font/size/color values come from existing CSS + tokens.
   ────────────────────────────────────────────────────────────────── */
