/* ==========================================================================
   HOPE WORKSHOP — Design System
   Editorial IDE: Fraunces serif + Geist sans + JetBrains Mono
   Dark navy canvas with color-coded accents.
   ========================================================================== */

/* -----  RESET & TOKENS  ----- */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:root {
  /* canvas */
  --bg:        #0a0e1a;
  --bg-elev1:  #131829;
  --bg-elev2:  #1a2138;
  --bg-elev3:  #232b46;

  /* borders & dividers */
  --border:    rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);

  /* text */
  --text:      #e8ecf5;
  --text-soft: #c0c8d8;
  --text-dim:  #8b94a8;
  --text-mute: #5a6478;

  /* accents */
  --accent-blue:  #7b8cf5;
  --accent-green: #a3d977;
  --accent-amber: #f5b97b;
  --accent-coral: #f57b8c;
  --accent-teal:  #6dd5c5;

  /* accent surfaces (subtle tinted backgrounds) */
  --tint-blue:   rgba(123, 140, 245, 0.08);
  --tint-green:  rgba(163, 217, 119, 0.08);
  --tint-amber:  rgba(245, 185, 123, 0.08);
  --tint-coral:  rgba(245, 123, 140, 0.08);

  /* layout */
  --sidebar-w:   276px;
  --content-max: 1080px;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;

  /* type */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* motion */
  --ease:   cubic-bezier(.2, .7, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.36, .64, 1);

  /* shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.2);
  --shadow:    0 6px 24px rgba(0,0,0,.25);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.4);
}

/* light theme override */
html[data-theme="light"] {
  --bg:        #f6f4ee;
  --bg-elev1:  #ffffff;
  --bg-elev2:  #f0ede4;
  --bg-elev3:  #e6e2d6;

  --border:    rgba(20, 20, 30, 0.08);
  --border-strong: rgba(20, 20, 30, 0.16);

  --text:      #18213a;
  --text-soft: #36405c;
  --text-dim:  #6b748a;
  --text-mute: #94a0b3;

  --accent-blue:  #4753c7;
  --accent-green: #4f8a2a;
  --accent-amber: #b76d1a;
  --accent-coral: #c33856;
  --accent-teal:  #1f8a7c;

  --tint-blue:   rgba(71, 83, 199, 0.07);
  --tint-green:  rgba(79, 138, 42, 0.07);
  --tint-amber:  rgba(183, 109, 26, 0.07);
  --tint-coral:  rgba(195, 56, 86, 0.07);

  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --shadow:    0 6px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.12);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* gradient + subtle vignette behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 800px at 80% -10%, var(--tint-blue) 0%, transparent 60%),
    radial-gradient(ellipse 900px 600px at 0% 100%, var(--tint-green) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* grain overlay — barely-there texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] .grain { opacity: 0; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, var(--accent-blue)) 100%);
  border-right: 1px solid var(--border);
  z-index: 30;
  transition: transform .35s var(--ease);
}

.sidebar-inner {
  height: 100%;
  padding: 28px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, color-mix(in srgb, var(--accent-blue) 75%, var(--accent-teal)) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 12px color-mix(in srgb, var(--accent-blue) 40%, transparent);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.18);
}
.brand-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  font-weight: 500;
  padding-left: 8px;
}
.nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-link {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 9px 10px 9px 14px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 7px;
  transition: all .2s var(--ease);
  position: relative;
}
.nav-link:hover {
  color: var(--text);
  background: var(--tint-blue);
}
.nav-link.active {
  color: var(--accent-blue);
  font-weight: 500;
}
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px; bottom: 11px;
  width: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dur-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.theme-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  transition: all .2s var(--ease);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 25;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.sidebar-backdrop.show { opacity: 1; }

/* ==========================================================================
   TOPBAR (mobile)
   ========================================================================== */

.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
}
.menu-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 36px;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.topbar-progress {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   STAGE & SLIDES
   ========================================================================== */

.stage {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.slide {
  display: none;
  min-height: 100vh;
  padding: 80px 64px 100px;
  position: relative;
  animation: slideIn .45s var(--ease);
}
.slide.active { display: block; }

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

.slide-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Kicker / eyebrow label */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.kicker .dot {
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue);
}
.kicker-activity { color: var(--accent-green); }
.kicker-activity .dot { background: var(--accent-green); box-shadow: 0 0 12px var(--accent-green); }

/* Slide H2 — main title style */
.slide-title-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-variation-settings: "opsz" 144;
}
.slide-title-h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-soft);
}

.slide-lede {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 0 44px;
}

/* Reveal animation utility — uses --d for stagger */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: revealUp .6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   TITLE SLIDE (Slide 01)
   ========================================================================== */

.slide-title {
  display: none;
  align-items: center;
  min-height: 100vh;
  padding: 60px 64px;
  overflow: hidden;
}
.slide-title.active {
  display: flex;
}
.slide-title .slide-inner {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 18px 0 22px;
  font-variation-settings: "opsz" 144;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.25em;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp .8s var(--ease) forwards;
}
.hero-title .word:nth-child(1) { animation-delay: .15s; }
.hero-title .word:nth-child(2) { animation-delay: .25s; font-style: italic; font-weight: 300; color: var(--text-soft); }
.hero-title .word:nth-child(3) { animation-delay: .35s; color: var(--text-soft); }
.hero-title .word:nth-child(4) {
  animation-delay: .45s;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title em { font-style: italic; font-weight: 300; }

.hero-sub {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--text-soft);
  max-width: 640px;
  line-height: 1.45;
  margin: 0 0 36px;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 36px;
}
.code-key {
  color: var(--accent-green);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.code-val {
  color: var(--text-soft);
}

.title-meta {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.title-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}
.meta-v {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.c-blue-t   { color: var(--accent-blue) !important; }
.c-green-t  { color: var(--accent-green) !important; }
.c-amber-t  { color: var(--accent-amber) !important; }
.c-coral-t  { color: var(--accent-coral) !important; }

.scroll-hint {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.scroll-hint svg { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Ambient blobs (background lights) */
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.blob-a {
  width: 480px; height: 480px;
  background: var(--accent-blue);
  opacity: 0.10;
  top: -120px; right: -80px;
  animation: float 18s ease-in-out infinite;
}
.blob-b {
  width: 320px; height: 320px;
  background: var(--accent-teal);
  opacity: 0.08;
  bottom: -60px; left: 20%;
  animation: float 22s ease-in-out infinite reverse;
}
.blob-c {
  width: 520px; height: 520px;
  background: var(--accent-green);
  opacity: 0.07;
  top: 30%; left: 35%;
  animation: float 24s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.1); }
}

/* ==========================================================================
   COLOR ACCENT CARDS — c-blue / c-green / c-amber / c-coral
   ========================================================================== */

.c-blue   { --c: var(--accent-blue);  --ct: var(--tint-blue); }
.c-green  { --c: var(--accent-green); --ct: var(--tint-green); }
.c-amber  { --c: var(--accent-amber); --ct: var(--tint-amber); }
.c-coral  { --c: var(--accent-coral); --ct: var(--tint-coral); }

/* ==========================================================================
   OBJECTIVES GRID (Slide 02)
   ========================================================================== */

.obj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
.obj-card {
  background: var(--ct);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.obj-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease);
}
.obj-card:hover {
  background: color-mix(in srgb, var(--ct) 80%, var(--bg-elev1));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.obj-card:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}
.obj-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.obj-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.obj-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ==========================================================================
   BIG STAT LIST (Slide 03)
   ========================================================================== */

.big-stat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.big-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--ct);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: all .3s var(--ease);
}
.big-row:hover {
  background: color-mix(in srgb, var(--ct) 75%, var(--bg-elev1));
  transform: translateX(4px);
}
.big-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 500;
  color: var(--c);
  line-height: 1;
}
.big-body h3 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.big-body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ==========================================================================
   ACTIVITY SLIDES — Q-cards, inputs, etc.
   ========================================================================== */

.slide-activity .slide-inner { max-width: 1180px; }

.q-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.q-card {
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--c);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: all .3s var(--ease);
}
.q-card:hover {
  background: var(--bg-elev2);
  border-color: var(--border-strong);
  border-left-color: var(--c);
}
.q-head { margin-bottom: 10px; }
.q-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c);
  font-weight: 500;
}
.q-question {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  font-variation-settings: "opsz" 36;
}

/* Inputs */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  transition: all .2s var(--ease);
}
textarea { min-height: 80px; }
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: color-mix(in srgb, var(--bg) 92%, var(--accent-blue));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-blue) 18%, transparent);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-mute);
}

.q-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.save-state {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.save-state.show { opacity: 1; }
.save-state::before { content: "● "; color: var(--accent-green); }

/* ==========================================================================
   COMPARE GRID (Slide 05)
   ========================================================================== */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.compare-card {
  background: var(--ct);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: all .3s var(--ease);
}
.compare-card:hover {
  background: color-mix(in srgb, var(--ct) 75%, var(--bg-elev1));
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.compare-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c);
  font-weight: 600;
  margin-bottom: 16px;
}
.compare-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-variation-settings: "opsz" 36;
}
.compare-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.takeaway {
  background: color-mix(in srgb, var(--accent-blue) 10%, var(--bg-elev1));
  border: 1px solid color-mix(in srgb, var(--accent-blue) 22%, transparent);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 12px;
}
.takeaway-bar {
  width: 3px;
  align-self: stretch;
  background: var(--accent-blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.takeaway h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}
.takeaway p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ==========================================================================
   GPA GRID — Snyder's Hope Theory (Slide 06)
   ========================================================================== */

.gpa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.gpa-card {
  background: var(--ct);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.gpa-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.gpa-card:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--ct) 70%, var(--bg-elev1));
  box-shadow: var(--shadow);
}
.gpa-card:hover::after { transform: scaleX(1); }
.gpa-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--c);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 144;
}
.gpa-card h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.gpa-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.gpa-body {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ==========================================================================
   MY HOPE MAP (Slide 07)
   ========================================================================== */

.map-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 14px;
  transition: all .3s var(--ease);
}
.map-step:hover {
  background: var(--bg-elev2);
  border-color: var(--border-strong);
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}
.step-body h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}
.step-sub {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 14px;
}
.code-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  transition: all .2s var(--ease);
}
.code-input:focus-within {
  border-color: var(--accent-blue);
  background: color-mix(in srgb, var(--bg) 92%, var(--accent-blue));
}
.code-prefix {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-blue);
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.code-input input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
}
.code-input input:focus {
  outline: none;
  background: transparent;
  box-shadow: none;
}
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ==========================================================================
   HABIT GRID (Slide 08)
   ========================================================================== */

.habit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.habit-card {
  background: var(--ct);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all .3s var(--ease);
  position: relative;
}
.habit-card:hover {
  background: color-mix(in srgb, var(--ct) 75%, var(--bg-elev1));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.habit-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c);
  font-weight: 500;
  margin-bottom: 14px;
}
.habit-card h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.habit-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.inline-code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   REFRAMING (Slide 09)
   ========================================================================== */

.reframe-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.reframe-row {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  gap: 14px;
  align-items: stretch;
}
.reframe-cell {
  background: var(--ct);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .3s var(--ease);
}
.reframe-cell:hover {
  background: color-mix(in srgb, var(--ct) 75%, var(--bg-elev1));
}
.cell-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c);
  font-weight: 500;
}
.reframe-cell input {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  font-variation-settings: "opsz" 24;
  line-height: 1.35;
}
.reframe-cell input:focus {
  outline: none;
  background: transparent;
  box-shadow: none;
}
.reframe-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-mute);
}
.reframe-hint {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mute);
}

/* ==========================================================================
   BREAK SLIDE (Slide 10)
   ========================================================================== */

.slide-break .slide-inner { max-width: 720px; text-align: center; }
.break-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}
.break-circle {
  position: relative;
  width: 200px; height: 200px;
  margin-bottom: 28px;
}
.break-ring {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.break-timer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: -0.02em;
}
#breakRingFill {
  transition: stroke-dashoffset 1s linear;
}
.break-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-variation-settings: "opsz" 144;
}
.break-sub {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 0 32px;
}
.break-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.break-meta {
  display: flex;
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  width: 100%;
  justify-content: center;
}
.break-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

/* ==========================================================================
   HOPE LETTERS — H-O-P-E (Slide 11)
   ========================================================================== */

.hope-letters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.hope-letter {
  background: var(--ct);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .3s var(--ease);
}
.hope-letter:hover {
  background: color-mix(in srgb, var(--ct) 70%, var(--bg-elev1));
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.hl-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--c);
  margin-bottom: 16px;
  font-variation-settings: "opsz" 144;
}
.hope-letter h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 4px;
}
.hl-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.hope-letter p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ==========================================================================
   ACTION PLAN (Slide 12)
   ========================================================================== */

.plan-row { display: grid; gap: 14px; margin-bottom: 14px; }
.plan-row.plan-wide { grid-template-columns: 1fr; }
.plan-row.plan-two { grid-template-columns: 1fr 1fr; }
.plan-card {
  background: var(--ct);
  border: 1px solid var(--border);
  border-left: 3px solid var(--c);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: all .3s var(--ease);
}
.plan-card:hover {
  background: color-mix(in srgb, var(--ct) 75%, var(--bg-elev1));
}
.plan-card.plan-emphasis {
  background: color-mix(in srgb, var(--c) 12%, var(--bg-elev1));
}
.plan-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c);
  font-weight: 600;
  margin-bottom: 4px;
}
.plan-hint {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ==========================================================================
   HDPS LAYER GRID (Slide 14)
   ========================================================================== */

.layer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.layer-card {
  background: var(--ct);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: all .3s var(--ease);
}
.layer-card:hover {
  background: color-mix(in srgb, var(--ct) 75%, var(--bg-elev1));
}
.layer-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c);
  font-weight: 600;
  margin-bottom: 12px;
}
.layer-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-variation-settings: "opsz" 36;
}
.layer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.layer-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 15px;
}
.bullet {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--c);
}

/* ==========================================================================
   HOPE PERFORMANCE MATRIX (Slide 15)
   ========================================================================== */

.matrix {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.matrix-corner { /* empty */ }
.matrix-col-label,
.matrix-row-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 600;
  display: flex;
  align-items: center;
}
.matrix-row-label { padding-left: 4px; }
.matrix-cell {
  background: var(--ct);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
  transition: all .3s var(--ease);
}
.matrix-cell:hover {
  background: color-mix(in srgb, var(--ct) 75%, var(--bg-elev1));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.matrix-cell h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--c);
}
.matrix-cell p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}
.matrix-star {
  background: linear-gradient(135deg, var(--ct) 0%, color-mix(in srgb, var(--c) 18%, var(--bg-elev1)) 100%);
  border-color: color-mix(in srgb, var(--c) 25%, transparent);
}

/* ==========================================================================
   CLOSING SLIDE (Slide 16)
   ========================================================================== */

.slide-close {
  display: none;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.slide-close.active { display: flex; }
.close-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.close-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6.5vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 16px;
  font-variation-settings: "opsz" 144;
}
.close-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-soft);
}
.close-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-soft);
  margin: 0 auto 36px;
  max-width: 560px;
}
.close-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--accent-green);
  background: color-mix(in srgb, var(--accent-green) 8%, var(--bg-elev1));
  border: 1px solid color-mix(in srgb, var(--accent-green) 20%, transparent);
  border-radius: var(--radius);
  padding: 26px 36px;
  margin: 0 auto 44px;
  max-width: 680px;
}
.close-meta {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  margin: 0 auto 36px;
  max-width: 600px;
  flex-wrap: wrap;
}
.meta-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
  margin-top: 8px;
}
.close-cta p {
  color: var(--text-soft);
  margin: 0 0 16px;
  font-size: 15px;
}

/* ==========================================================================
   SUBMIT FORM (Slide 17)
   ========================================================================== */

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 820px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 500;
}
.opt {
  color: var(--text-mute);
  text-transform: none;
  font-size: 10.5px;
  letter-spacing: 0;
  margin-left: 4px;
}

.rating-block {
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.rating-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  font-variation-settings: "opsz" 36;
}
.rating-block h3 em { font-style: italic; font-weight: 300; color: var(--text-soft); }
.rating-hint {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 14px;
}
.rating-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.rating-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rating-name {
  font-size: 14.5px;
  color: var(--text-soft);
}
.rating-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-blue);
  font-weight: 600;
  background: var(--tint-blue);
  padding: 2px 10px;
  border-radius: 6px;
  min-width: 32px;
  text-align: center;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-elev3);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-blue), 0 2px 8px color-mix(in srgb, var(--accent-blue) 50%, transparent);
  transition: transform .15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-blue);
}

/* HKI display */
.hki-display {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hki-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 500;
}
.hki-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.1;
  color: var(--accent-blue);
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  margin: 4px 0 14px;
}
.hki-bar {
  height: 8px;
  background: var(--bg-elev3);
  border-radius: 4px;
  overflow: hidden;
}
.hki-bar-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--accent-coral) 0%, var(--accent-amber) 50%, var(--accent-green) 100%);
  border-radius: 4px;
  transition: width .4s var(--ease);
}

.feedback-block { display: flex; flex-direction: column; gap: 8px; }
.feedback-block label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 500;
}

/* Custom consent checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}
.consent input { display: none; }
.consent-box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all .2s var(--ease);
}
.consent input:checked + .consent-box {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}
.consent input:checked + .consent-box::after {
  content: "";
  position: absolute;
  inset: 3px 4px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  width: 4px;
  height: 8px;
}

.submit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.btn-primary, .btn-ghost {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .25s var(--ease);
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--accent-blue);
  color: white;
  border: 1px solid var(--accent-blue);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-blue) 90%, white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-blue) 35%, transparent);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-primary.loading .btn-spinner { display: block; }
.btn-primary.loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-elev1);
  color: var(--text);
  border-color: var(--border-strong);
}

.submit-status {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px 16px;
  border-radius: 8px;
  display: none;
}
.submit-status.show { display: block; }
.submit-status.success {
  background: color-mix(in srgb, var(--accent-green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-green) 30%, transparent);
  color: var(--accent-green);
}
.submit-status.error {
  background: color-mix(in srgb, var(--accent-coral) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-coral) 30%, transparent);
  color: var(--accent-coral);
}

/* ==========================================================================
   SLIDE FOOTER & NAV CONTROLS
   ========================================================================== */

.slide-foot {
  position: fixed;
  bottom: 18px;
  left: calc(var(--sidebar-w) + 64px);
  right: 64px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 5;
}

.nav-controls {
  position: fixed;
  right: 24px;
  bottom: 50%;
  transform: translateY(50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}
.ctrl-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
  backdrop-filter: blur(8px);
}
.ctrl-btn:hover {
  background: var(--bg-elev2);
  color: var(--text);
  border-color: var(--border-strong);
  transform: scale(1.05);
}
.ctrl-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.progress-bar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 40;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
  width: 0;
  transition: width .4s var(--ease);
}

/* ==========================================================================
   TOAST
   ========================================================================== */

.toast-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
  pointer-events: none;
}
.toast {
  background: var(--bg-elev2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s var(--ease-bounce), toastOut .3s var(--ease) 2.7s forwards;
}
.toast.success { border-color: color-mix(in srgb, var(--accent-green) 40%, transparent); }
.toast.error   { border-color: color-mix(in srgb, var(--accent-coral) 40%, transparent); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .slide { padding: 70px 44px 90px; }
  .slide-title { padding: 60px 44px; }
  .obj-grid, .compare-grid, .habit-grid, .layer-grid { grid-template-columns: 1fr 1fr; }
  .gpa-grid { grid-template-columns: 1fr 1fr; }
  .hope-letters { grid-template-columns: 1fr 1fr; }
  .slide-foot { left: calc(var(--sidebar-w) + 44px); right: 44px; }
  .nav-controls { right: 16px; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  body { padding-top: 56px; }
  .topbar { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    --sidebar-w: 280px;
    top: 56px;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }

  .stage { margin-left: 0; }
  .slide { padding: 36px 22px 80px; min-height: calc(100vh - 56px); }
  .slide-title { padding: 36px 22px; min-height: calc(100vh - 56px); }

  .hero-title { font-size: clamp(54px, 16vw, 96px); }
  .slide-title-h2 { font-size: clamp(32px, 8vw, 52px); }

  .obj-grid,
  .compare-grid,
  .habit-grid,
  .layer-grid,
  .gpa-grid,
  .hope-letters,
  .path-grid,
  .form-row,
  .plan-row.plan-two {
    grid-template-columns: 1fr;
  }

  .big-row {
    grid-template-columns: 80px 1fr;
    gap: 18px;
    padding: 22px 20px;
  }
  .big-num { font-size: 36px; }
  .big-body h3 { font-size: 18px; }

  .reframe-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .reframe-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .matrix {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .matrix-corner, .matrix-col-label { display: none; }
  .matrix-row-label {
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
  .matrix-row-label:first-of-type { border-top: 0; padding-top: 0; }

  .map-step { padding: 18px 18px; grid-template-columns: 36px 1fr; gap: 14px; }
  .step-num { width: 32px; height: 32px; font-size: 13px; }

  .close-meta { gap: 28px; flex-direction: column; align-items: center; }
  .close-quote { padding: 22px 22px; }

  .slide-foot { left: 22px; right: 22px; bottom: 12px; font-size: 10px; }
  .nav-controls {
    flex-direction: row;
    right: 16px;
    bottom: 12px;
    transform: none;
  }
  .ctrl-btn { width: 38px; height: 38px; }

  .progress-bar { left: 0; top: 56px; }

  .title-meta { gap: 22px; }
  .scroll-hint { margin-top: 36px; font-size: 11px; }

  .break-circle { width: 160px; height: 160px; }
  .break-timer { font-size: 30px; }
}

@media (max-width: 420px) {
  .slide-title-h2 { font-size: clamp(28px, 9vw, 44px); }
  .hero-title { font-size: clamp(44px, 16vw, 80px); }
  .code-pill { font-size: 11px; padding: 10px 14px; gap: 10px; }
  .gpa-letter, .hl-big { font-size: 44px; }
  .compare-card { padding: 24px 22px; }
  .compare-card h3 { font-size: 24px; }
}

/* ==========================================================================
   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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title .word { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible { outline-offset: 4px; }

/* Print friendliness for action plan export */
@media print {
  .sidebar, .topbar, .nav-controls, .progress-bar, .slide-foot, .grain, body::before { display: none !important; }
  body { background: white; color: #111; }
  .stage { margin-left: 0; }
  .slide { display: block !important; min-height: auto; padding: 24px; page-break-after: always; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   PASSWORD GATE
   ============================================================================ */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, #131a2c 0%, #0a0e1a 50%, #060912 100%);
  padding: 24px;
  overflow: hidden;
  animation: pwFadeIn 0.5s ease;
}
.password-gate.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
@keyframes pwFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pw-ambient {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  animation: pwFloat 12s ease-in-out infinite alternate;
}
.pw-ambient-a {
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, #7b8cf5 0%, transparent 70%);
}
.pw-ambient-b {
  bottom: -200px;
  right: -120px;
  background: radial-gradient(circle, #6dd5c5 0%, transparent 70%);
  animation-delay: -6s;
}
@keyframes pwFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 40px) scale(1.08); }
}

.password-card {
  position: relative;
  z-index: 2;
  max-width: 460px;
  width: 100%;
  background: rgba(20, 26, 44, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 44px 36px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03);
  animation: pwCardRise 0.6s cubic-bezier(.16,.84,.44,1) 0.1s both;
}
@keyframes pwCardRise {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pw-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7b8cf5 0%, #6dd5c5 100%);
  margin-bottom: 18px;
  position: relative;
  box-shadow: 0 6px 24px rgba(123, 140, 245, 0.35);
}
.pw-brand-mark::after {
  content: "H";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 26px;
  color: white;
}

.pw-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pw-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5b97b;
  box-shadow: 0 0 12px #f5b97b;
}

.pw-title {
  font-family: "Fraunces", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.pw-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
}

.pw-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.pw-form { display: block; }

.pw-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.pw-input-wrap {
  position: relative;
  margin-bottom: 18px;
}
.pw-input-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-family: inherit;
  padding: 14px 48px 14px 16px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.pw-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }
.pw-input-wrap input:focus {
  border-color: rgba(123, 140, 245, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(123, 140, 245, 0.15);
}

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}
.pw-toggle:hover { color: white; background: rgba(255,255,255,0.05); }

.pw-submit {
  width: 100%;
  justify-content: center;
}

.pw-error {
  color: #f57b8c;
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
  opacity: 0;
  transition: opacity .2s;
}
.pw-error.show { opacity: 1; }

.pw-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.pw-foot a {
  position: relative;
  display: inline-block;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.005em;
  background: linear-gradient(
    100deg,
    #7b8cf5 0%,
    #6dd5c5 35%,
    #a3d977 65%,
    #f5b97b 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
  filter: drop-shadow(0 0 14px rgba(123, 140, 245, 0.45))
          drop-shadow(0 0 30px rgba(109, 213, 197, 0.25));
  transition: background-position .6s cubic-bezier(.16,.84,.44,1),
              filter .3s ease,
              transform .25s ease;
}
.pw-foot a::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -3px;
  height: 1.5px;
  background: linear-gradient(100deg, #7b8cf5 0%, #6dd5c5 50%, #a3d977 100%);
  border-radius: 1px;
  opacity: 0.55;
  transform: scaleX(0.65);
  transform-origin: center;
  transition: transform .35s cubic-bezier(.16,.84,.44,1),
              opacity .25s ease;
}
.pw-foot a:hover {
  background-position: 100% 50%;
  filter: drop-shadow(0 0 18px rgba(123, 140, 245, 0.7))
          drop-shadow(0 0 38px rgba(109, 213, 197, 0.4))
          drop-shadow(0 0 60px rgba(163, 217, 119, 0.25));
  transform: translateY(-1px);
}
.pw-foot a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.password-shake {
  animation: pwShake 0.45s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes pwShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

@media (max-width: 480px) {
  .password-card { padding: 32px 24px 24px; border-radius: 20px; }
  .pw-title { font-size: 30px; }
}

/* ============================================================================
   CERTIFICATE SLIDE
   ============================================================================ */
.kicker-cert .dot { background: var(--accent-amber, #f5b97b); box-shadow: 0 0 12px #f5b97b; }

.cert-inner { max-width: 1180px; }

.cert-preview-wrap {
  margin: 32px 0 28px;
  display: flex;
  justify-content: center;
}

.cert-preview {
  width: 100%;
  max-width: 980px;
  aspect-ratio: 1600 / 1131;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #faf6ee;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cert-preview svg { display: block; width: 100%; height: 100%; }

.cert-preview.empty::before {
  content: "Your certificate will appear here after you submit.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(10, 14, 26, 0.5);
  text-align: center;
  padding: 24px;
}

.cert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cert-actions .btn-primary,
.cert-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cert-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cert-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.cert-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cert-meta .meta-k {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.cert-meta .meta-v {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.cert-meta .meta-v a {
  color: var(--accent-blue, #7b8cf5);
  text-decoration: none;
}
.cert-meta .meta-v a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .cert-meta { grid-template-columns: 1fr; }
}

[data-theme="light"] .cert-preview.empty::before { color: rgba(10, 14, 26, 0.5); }
[data-theme="light"] .cert-meta { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .cert-meta .meta-k { color: rgba(10,14,26,0.5); }
[data-theme="light"] .cert-meta .meta-v { color: rgba(10,14,26,0.85); }

/* Print: just the certificate */
@media print {
  body > *:not(main) { display: none !important; }
  main > *:not(.slide-certificate) { display: none !important; }
  .slide-certificate { display: block !important; padding: 0 !important; }
  .cert-actions, .cert-meta, .slide-lede, .kicker, .slide-title-h2 { display: none !important; }
  .cert-preview { box-shadow: none; max-width: 100%; }
}

/* ============================================================================
   WORKSHOP SURVEY (slide 18)
   ============================================================================ */
.kicker-survey .dot { background: var(--accent-coral, #f57b8c); box-shadow: 0 0 12px #f57b8c; }

.survey-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
  margin: 32px 0 0;
}

.survey-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--c, #7b8cf5);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color .15s, background .15s;
}
.survey-card:focus-within {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: var(--c, #7b8cf5);
}

.survey-q-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.survey-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c, #7b8cf5);
  background: var(--ct, rgba(123, 140, 245, 0.12));
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.survey-q-head h3 {
  font-family: "Fraunces", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.survey-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.4;
}

/* Slider row */
.survey-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 4px 2px;
}
.survey-slider-row input[type="range"] {
  flex: 1;
  margin: 0;
}
.survey-bound {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  min-width: 18px;
  text-align: center;
}
.survey-val {
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--c, #7b8cf5);
  min-width: 48px;
  text-align: center;
  background: var(--ct, rgba(123, 140, 245, 0.1));
  border-radius: 10px;
  padding: 4px 10px;
}

/* Textareas inside survey cards */
.survey-card textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.95);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: border-color .15s, background .15s;
}
.survey-card textarea:focus {
  border-color: var(--c, #7b8cf5);
  background: rgba(0, 0, 0, 0.25);
}
.survey-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Multi-select chips */
.survey-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.survey-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all .15s ease;
}
.survey-chip span {
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
.survey-chip input[type="checkbox"] {
  display: none;
}
.survey-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.survey-chip.checked {
  background: rgba(123, 140, 245, 0.15);
  border-color: rgba(123, 140, 245, 0.5);
  box-shadow: 0 0 0 1px rgba(123, 140, 245, 0.2) inset;
}
.survey-chip.checked span {
  color: #ffffff;
}

.survey-other {
  width: 100%;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.95);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.survey-other:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
}
.survey-other::placeholder { color: rgba(255, 255, 255, 0.3); }

/* Light theme adjustments */
[data-theme="light"] .survey-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .survey-q-head h3 { color: rgba(10, 14, 26, 0.95); }
[data-theme="light"] .survey-hint { color: rgba(10, 14, 26, 0.55); }
[data-theme="light"] .survey-card textarea,
[data-theme="light"] .survey-other {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(10, 14, 26, 0.95);
}
[data-theme="light"] .survey-chip { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .survey-chip span { color: rgba(10, 14, 26, 0.75); }
[data-theme="light"] .survey-chip.checked span { color: rgba(10, 14, 26, 0.95); }

@media (max-width: 720px) {
  .survey-card { padding: 18px 18px; }
  .survey-q-head { gap: 12px; }
  .survey-q-head h3 { font-size: 17px; }
  .survey-val { font-size: 22px; min-width: 40px; }
}

/* ============================================================================
   REQUIRED FIELD MARKERS + ERROR STATES
   ============================================================================ */
.req-badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f57b8c;
  background: rgba(245, 123, 140, 0.1);
  border: 1px solid rgba(245, 123, 140, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: 3px;
  white-space: nowrap;
}

.slide-lede .req-badge {
  margin: 0 2px;
  vertical-align: 1px;
}

.survey-card.has-error {
  border-color: rgba(245, 123, 140, 0.4);
  border-left-color: #f57b8c;
  background: rgba(245, 123, 140, 0.04);
  animation: cardShake 0.4s cubic-bezier(.36,.07,.19,.97);
}
@keyframes cardShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.survey-card.has-error textarea,
.survey-card.has-error .survey-other {
  border-color: rgba(245, 123, 140, 0.35);
}

.survey-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 12px;
  font-size: 13px;
  color: #f57b8c;
  background: rgba(245, 123, 140, 0.08);
  border-left: 2px solid #f57b8c;
  border-radius: 6px;
  line-height: 1.45;
  animation: errorFadeIn 0.2s ease;
}
.survey-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #f57b8c;
  color: white;
  border-radius: 50%;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
@keyframes errorFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-theme="light"] .req-badge {
  color: #d44a60;
  background: rgba(212, 74, 96, 0.08);
  border-color: rgba(212, 74, 96, 0.25);
}
[data-theme="light"] .survey-card.has-error {
  background: rgba(212, 74, 96, 0.04);
}
[data-theme="light"] .survey-error {
  color: #d44a60;
  background: rgba(212, 74, 96, 0.08);
  border-left-color: #d44a60;
}
[data-theme="light"] .survey-error::before { background: #d44a60; }

/* ============================================================================
   FORM FIELD ERROR STATES (Name, Mobile, Email validation on slide 17)
   ============================================================================ */
.form-field.has-error label {
  color: #f57b8c;
}
.form-field.has-error input {
  border-color: rgba(245, 123, 140, 0.5) !important;
  background: rgba(245, 123, 140, 0.04) !important;
  animation: cardShake 0.4s cubic-bezier(.36,.07,.19,.97);
}
.form-field.has-error input:focus {
  border-color: #f57b8c !important;
  box-shadow: 0 0 0 3px rgba(245, 123, 140, 0.12) !important;
}
.form-field .survey-error {
  margin-top: 6px;
  padding: 7px 10px;
  font-size: 12.5px;
}

[data-theme="light"] .form-field.has-error label { color: #d44a60; }
[data-theme="light"] .form-field.has-error input {
  border-color: rgba(212, 74, 96, 0.5) !important;
  background: rgba(212, 74, 96, 0.04) !important;
}

/* ============================================================================
   ENHANCED HOVER STATES — Slides 2, 3, 5, 6, 8, 9, 11, 14, 15
   ----------------------------------------------------------------------------
   Innovative, attention-grabbing card interactions for live workshop
   presentation. Each card type gets a distinctive premium hover effect.
   Wrapped in @media (hover: hover) so touch devices don't get stuck
   hover states after taps.
   ============================================================================ */
@media (hover: hover) {

  /* Shared: smoother transitions on every interactive card type */
  .obj-card, .big-row, .compare-card, .gpa-card, .habit-card,
  .reframe-cell, .hope-letter, .layer-card, .matrix-cell {
    transition:
      transform .4s cubic-bezier(.16, .84, .44, 1),
      box-shadow .4s cubic-bezier(.16, .84, .44, 1),
      background-color .3s ease,
      border-color .3s ease;
    will-change: transform, box-shadow;
  }
  /* Inner elements also animate smoothly */
  .obj-num, .big-num, .compare-label, .gpa-letter, .habit-label,
  .reframe-arrow, .hl-big, .hl-tag,
  .layer-list li, .layer-list .bullet, .matrix-cell h4 {
    transition: transform .4s cubic-bezier(.16, .84, .44, 1),
                color .3s ease, background-color .3s ease,
                text-shadow .3s ease, box-shadow .3s ease,
                letter-spacing .3s ease;
  }

  /* ───────────────────────────────── SLIDE 2 — Objectives */
  .obj-card:hover {
    transform: translateY(-8px) scale(1.018);
    background: color-mix(in srgb, var(--c) 14%, var(--bg-elev1));
    border-color: color-mix(in srgb, var(--c) 50%, transparent);
    box-shadow:
      0 22px 44px rgba(0, 0, 0, 0.4),
      0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent),
      0 0 50px -10px var(--c);
  }
  .obj-card:hover .obj-num {
    transform: scale(1.18) rotate(-6deg);
    background: var(--c);
    color: #fff;
    box-shadow: 0 0 22px var(--c), 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent);
  }
  .obj-card:hover h3 { color: var(--c); }

  /* ───────────────────────────────── SLIDE 3 — Why Hope Matters */
  .big-row:hover {
    transform: translateX(10px);
    background: color-mix(in srgb, var(--c) 12%, var(--bg-elev1));
    box-shadow:
      -6px 0 0 0 var(--c),
      0 14px 30px rgba(0, 0, 0, 0.25),
      0 0 40px -15px var(--c);
  }
  .big-row:hover .big-num {
    transform: scale(1.12);
    color: var(--c);
    text-shadow: 0 0 30px var(--c), 0 0 60px color-mix(in srgb, var(--c) 50%, transparent);
  }
  .big-row:hover h3 { color: var(--c); }

  /* ───────────────────────────────── SLIDE 5 — Optimism vs Hope */
  .compare-card:hover {
    transform: translateY(-10px) scale(1.022);
    background: color-mix(in srgb, var(--c) 14%, var(--bg-elev1));
    border-color: color-mix(in srgb, var(--c) 60%, transparent);
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.4),
      0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent),
      0 0 70px -20px var(--c);
  }
  .compare-card:hover .compare-label {
    color: var(--c);
    letter-spacing: 0.28em;
    text-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent);
  }
  .compare-card:hover .tag { background: color-mix(in srgb, var(--c) 22%, var(--bg-elev1)); }

  /* ───────────────────────────────── SLIDE 6 — Snyder's G·P·A */
  .gpa-card:hover {
    transform: translateY(-10px) scale(1.025);
    background: color-mix(in srgb, var(--c) 14%, var(--bg-elev1));
    border-color: color-mix(in srgb, var(--c) 60%, transparent);
    box-shadow:
      0 26px 54px rgba(0, 0, 0, 0.42),
      0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent),
      0 0 80px -20px var(--c);
  }
  .gpa-card:hover .gpa-letter {
    transform: scale(1.18);
    text-shadow:
      0 0 32px var(--c),
      0 0 70px color-mix(in srgb, var(--c) 60%, transparent);
  }
  .gpa-card:hover .gpa-tag { color: var(--c); }

  /* ───────────────────────────────── SLIDE 8 — Four Habits (with shine sweep) */
  .habit-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .habit-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      120deg,
      transparent 30%,
      color-mix(in srgb, var(--c) 14%, transparent) 50%,
      transparent 70%
    );
    transform: translateX(-110%) skewX(-12deg);
    transition: transform 0.85s cubic-bezier(.16, .84, .44, 1);
    pointer-events: none;
    z-index: 0;
  }
  .habit-card > * { position: relative; z-index: 1; }
  .habit-card:hover::after { transform: translateX(110%) skewX(-12deg); }
  .habit-card:hover {
    transform: translateY(-8px) scale(1.018);
    background: color-mix(in srgb, var(--c) 12%, var(--bg-elev1));
    border-color: color-mix(in srgb, var(--c) 50%, transparent);
    box-shadow:
      0 20px 42px rgba(0, 0, 0, 0.35),
      0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent),
      0 0 60px -15px var(--c);
  }
  .habit-card:hover .habit-label {
    background: var(--c);
    color: #fff;
    box-shadow: 0 0 16px color-mix(in srgb, var(--c) 50%, transparent);
  }
  .habit-card:hover h3 { color: var(--c); }

  /* ───────────────────────────────── SLIDE 9 — Reframing (dramatize the shift) */
  .reframe-cell { transition: transform .4s cubic-bezier(.16, .84, .44, 1),
                              background-color .3s ease, box-shadow .3s ease; }
  .reframe-row:hover .reframe-cell.c-coral {
    transform: translateX(-6px);
    background: color-mix(in srgb, var(--accent-coral) 14%, var(--bg-elev1));
    box-shadow: -4px 0 0 0 var(--accent-coral);
  }
  .reframe-row:hover .reframe-cell.c-green {
    transform: translateX(6px);
    background: color-mix(in srgb, var(--accent-green) 14%, var(--bg-elev1));
    box-shadow:
      4px 0 0 0 var(--accent-green),
      0 0 40px -10px var(--accent-green);
  }
  .reframe-row:hover .reframe-arrow {
    transform: scale(1.35);
    color: var(--accent-green);
    text-shadow:
      0 0 22px var(--accent-green),
      0 0 50px color-mix(in srgb, var(--accent-green) 50%, transparent);
  }
  .reframe-arrow { transition: transform .45s cubic-bezier(.16, .84, .44, 1),
                                color .3s ease, text-shadow .3s ease; }

  /* ───────────────────────────────── SLIDE 11 — H-O-P-E letters */
  .hope-letter:hover {
    transform: translateY(-12px) scale(1.03);
    background: color-mix(in srgb, var(--c) 16%, var(--bg-elev1));
    border-color: color-mix(in srgb, var(--c) 65%, transparent);
    box-shadow:
      0 30px 60px rgba(0, 0, 0, 0.45),
      0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent),
      0 0 80px -18px var(--c);
  }
  .hope-letter:hover .hl-big {
    transform: scale(1.22);
    text-shadow:
      0 0 36px var(--c),
      0 0 80px color-mix(in srgb, var(--c) 60%, transparent);
  }
  .hope-letter:hover .hl-tag {
    color: var(--c);
    letter-spacing: 0.18em;
  }

  /* ───────────────────────────────── SLIDE 14 — HDPS Layers */
  .layer-card:hover {
    transform: translateY(-6px);
    background: color-mix(in srgb, var(--c) 12%, var(--bg-elev1));
    border-color: color-mix(in srgb, var(--c) 55%, transparent);
    box-shadow:
      0 20px 44px rgba(0, 0, 0, 0.34),
      0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent),
      0 0 55px -15px var(--c);
  }
  .layer-card:hover h3 { color: var(--c); }
  /* Cascading list-item highlight */
  .layer-card:hover .layer-list li {
    transform: translateX(6px);
    color: var(--text);
  }
  .layer-card:hover .layer-list li .bullet {
    background: var(--c);
    box-shadow: 0 0 14px var(--c);
    transform: scale(1.3);
  }
  .layer-card:hover .layer-list li:nth-child(1) { transition-delay: .03s; }
  .layer-card:hover .layer-list li:nth-child(2) { transition-delay: .08s; }
  .layer-card:hover .layer-list li:nth-child(3) { transition-delay: .13s; }
  .layer-card:hover .layer-list li:nth-child(4) { transition-delay: .18s; }

  /* ───────────────────────────────── SLIDE 15 — Performance Matrix */
  .matrix-cell {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .matrix-cell:hover {
    transform: translateY(-4px) scale(1.025);
    background: color-mix(in srgb, var(--c) 18%, var(--bg-elev1));
    border-color: color-mix(in srgb, var(--c) 65%, transparent);
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.42),
      0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent),
      0 0 60px -15px var(--c);
    z-index: 2;
  }
  .matrix-cell:hover h4 {
    color: var(--c);
    letter-spacing: 0.01em;
  }
  /* Star performer gets extra emphasis */
  .matrix-cell.matrix-star:hover {
    transform: translateY(-6px) scale(1.035);
    box-shadow:
      0 26px 56px rgba(0, 0, 0, 0.5),
      0 0 0 2px var(--c),
      0 0 90px -10px var(--c);
  }
  /* Add a subtle glow halo behind matrix-cell on hover */
  .matrix-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, var(--c) 18%, transparent) 0%,
      transparent 65%
    );
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: 0;
  }
  .matrix-cell > * { position: relative; z-index: 1; }
  .matrix-cell:hover::before { opacity: 1; }
}

/* ============================================================================
   HKI FORMULA LEGEND (Slide 15)
   Color-coded letter glossary that sits below the formula pill
   ============================================================================ */
.hki-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  margin: 14px 0 26px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  max-width: 820px;
}
.legend-item {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}
.legend-letter {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 0 10px currentColor);
}
.legend-meaning {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

[data-theme="light"] .hki-legend {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .legend-meaning { color: rgba(10, 14, 26, 0.78); }

@media (max-width: 720px) {
  .hki-legend { gap: 8px 14px; padding: 12px 14px; }
  .legend-letter { font-size: 17px; }
  .legend-meaning { font-size: 11.5px; }
}

/* ============================================================================
   PRIVACY NOTICE (Slide 17)
   ============================================================================ */
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 760px;
  margin: 14px 0 28px;
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(109, 213, 197, 0.05);
  border: 1px solid rgba(109, 213, 197, 0.18);
  border-left: 2px solid #6dd5c5;
  border-radius: 8px;
}
.privacy-note svg {
  flex-shrink: 0;
  color: #6dd5c5;
  margin-top: 2px;
}
.privacy-note strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
[data-theme="light"] .privacy-note {
  background: rgba(109, 213, 197, 0.06);
  color: rgba(10, 14, 26, 0.7);
}
[data-theme="light"] .privacy-note strong { color: rgba(10, 14, 26, 0.9); }

/* ============================================================================
   LANGUAGE TOGGLE — sits in the topbar to switch between English & বাংলা
   ============================================================================ */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all .2s ease;
}
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
}
.lang-toggle .lang-current {
  font-weight: 600;
  color: var(--accent-blue, #7b8cf5);
}
.lang-toggle .lang-sep { opacity: 0.4; }
.lang-toggle .lang-alt { opacity: 0.7; }
.lang-toggle[data-lang="bn"] .lang-current { color: var(--accent-blue, #7b8cf5); }

/* Bengali typography tweaks — Bengali script reads better at slightly larger */
[lang="bn"] body,
html[lang="bn"] {
  --bn-scale: 1.04;
}
html[lang="bn"] .pw-title,
html[lang="bn"] .slide-title-h2,
html[lang="bn"] .hero-title {
  font-family: "Fraunces", "Hind Siliguri", "Noto Sans Bengali", system-ui, serif;
  letter-spacing: 0;
}
html[lang="bn"] [data-i18n] {
  font-feature-settings: "kern" 1;
}

@media (max-width: 720px) {
  .topbar-right { gap: 8px; }
  .lang-toggle { padding: 5px 9px; font-size: 10px; }
}

/* ============================================================================
   PREMIUM PRESENTATION LAYER — cohesive polish across all slides
   (additive only — does not alter navigation, submission, or certificate logic)
   ============================================================================ */

/* ── 1. Cursor-aware ambient spotlight ──────────────────────────────────────
   A soft radial glow follows the cursor on the stage for a premium feel.
   Only active on true pointer devices; respects reduced-motion. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .stage::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
      420px circle at var(--mx, 50%) var(--my, 40%),
      rgba(123, 140, 245, 0.06),
      transparent 60%
    );
    opacity: 0;
    transition: opacity .5s ease;
  }
  .stage.spotlight-on::after { opacity: 1; }
}

/* ── 2. Glowing progress-bar leading edge ──────────────────────────────────── */
.progress-fill {
  position: relative;
}
.progress-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue, #7b8cf5);
  box-shadow:
    0 0 12px var(--accent-blue, #7b8cf5),
    0 0 24px rgba(123, 140, 245, 0.5);
  opacity: 0.9;
}

/* ── 3. Keyboard shortcuts help overlay ─────────────────────────────────────── */
.shortcuts-hint {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: rgba(20, 26, 44, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all .2s ease;
  opacity: 0;
  animation: hintFadeIn .5s ease 1.5s forwards;
}
.shortcuts-hint:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(20, 26, 44, 0.9);
}
.shortcuts-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
@keyframes hintFadeIn { to { opacity: 1; } }

/* Hide hint on small screens (touch-driven) */
@media (max-width: 768px) { .shortcuts-hint { display: none; } }

.shortcuts-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 18, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 24px;
}
.shortcuts-overlay.open { opacity: 1; pointer-events: auto; }

.shortcuts-panel {
  width: 100%;
  max-width: 460px;
  background: rgba(20, 26, 44, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 32px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96) translateY(8px);
  transition: transform .3s cubic-bezier(.16, .84, .44, 1);
}
.shortcuts-overlay.open .shortcuts-panel { transform: scale(1) translateY(0); }

.shortcuts-panel h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 4px;
  color: #fff;
}
.shortcuts-panel .sc-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 22px;
}
.sc-list { display: flex; flex-direction: column; gap: 12px; }
.sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sc-row .sc-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.sc-row .sc-keys { display: inline-flex; gap: 6px; }
.sc-row kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.shortcuts-close {
  margin-top: 24px;
  width: 100%;
  padding: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}
.shortcuts-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Light theme */
[data-theme="light"] .shortcuts-panel { background: rgba(255, 255, 255, 0.96); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .shortcuts-panel h3 { color: #0a0e1a; }
[data-theme="light"] .shortcuts-panel .sc-sub { color: rgba(10,14,26,0.55); }
[data-theme="light"] .sc-row .sc-label { color: rgba(10,14,26,0.8); }
[data-theme="light"] .sc-row kbd,
[data-theme="light"] .shortcuts-hint kbd { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.15); color: #0a0e1a; }
[data-theme="light"] .shortcuts-hint { background: rgba(255,255,255,0.8); color: rgba(10,14,26,0.6); }
[data-theme="light"] .shortcuts-close { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: rgba(10,14,26,0.7); }

/* ============================================================================
   ORGANIZATIONAL PERSPECTIVE SLIDES (inserted after Break)
   Reuses compare-grid, obj-grid, big-stat-list, q-card, takeaway, survey-chips.
   These are the only new primitives needed.
   ============================================================================ */
.org-list { list-style: none; margin: 6px 0 0; padding: 0; }
.org-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 15px;
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.org-list li:last-child { border-bottom: none; }
.org-list li::before {
  content: "";
  position: absolute; left: 2px; top: 14px;
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: .55;
}
[data-theme="light"] .org-list li { color: rgba(10,14,26,.82); }

/* Risk chain flow */
.risk-chain {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 18px 0 22px; padding: 18px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
}
.risk-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(245,123,140,.1); border: 1px solid rgba(245,123,140,.28);
  font-size: 13px; font-weight: 600; color: #f5b97b; white-space: nowrap;
}
.risk-step:nth-child(1) { background: rgba(123,140,245,.12); border-color: rgba(123,140,245,.3); color: #9aabff; }
.risk-arrow { color: rgba(255,255,255,.3); font-size: 16px; }
[data-theme="light"] .risk-chain { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.07); }

/* Org quote-loss rows (Direction / Meaning / Agency) */
.org-quote { font-style: italic; color: rgba(255,255,255,.6); font-size: 14px; margin-top: 3px; }
[data-theme="light"] .org-quote { color: rgba(10,14,26,.6); }

/* Compact org grid for symptom lists */
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
@media (max-width: 760px) { .org-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .org-grid { grid-template-columns: 1fr; } }
.org-chip-static {
  padding: 13px 15px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500;
}
[data-theme="light"] .org-chip-static { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.07); color: rgba(10,14,26,.85); }

/* Choose-top-3 hint counter */
.chip-counter { font-family: "JetBrains Mono", monospace; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 10px; }
[data-theme="light"] .chip-counter { color: rgba(10,14,26,.5); }

/* ============================================================================
   SLIDE 14 — CLICKABLE RISK CHAIN (tap up to 3) + selection display
   ============================================================================ */
.risk-chain .risk-step {
  cursor: pointer;
  user-select: none;
  transition: transform .18s cubic-bezier(.16,.84,.44,1), box-shadow .2s, border-color .2s, background .2s, opacity .2s;
}
.risk-chain .risk-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  border-color: rgba(255,255,255,.4);
}
.risk-chain .risk-step:focus-visible {
  outline: 2px solid var(--accent-blue, #7b8cf5);
  outline-offset: 2px;
}
.risk-chain .risk-step.selected {
  background: linear-gradient(135deg, rgba(123,140,245,.28), rgba(109,213,197,.22)) !important;
  border-color: var(--accent-blue, #7b8cf5) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px var(--accent-blue, #7b8cf5), 0 8px 24px rgba(123,140,245,.35);
}
.risk-chain .risk-step.selected::before {
  content: "✓ ";
  font-weight: 700;
  color: #a3d977;
}
.risk-chain .risk-step.risk-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.risk-selected-wrap {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 12px;
}
.risk-selected-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}
.risk-selected { display: flex; flex-wrap: wrap; gap: 10px; min-height: 40px; align-items: center; }
.risk-selected-empty { font-size: 14px; color: rgba(255,255,255,.35); font-style: italic; }
.risk-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 9px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(123,140,245,.18), rgba(109,213,197,.14));
  border: 1px solid rgba(123,140,245,.4);
  font-size: 14px; font-weight: 600; color: #fff;
  animation: riskPillIn .3s cubic-bezier(.16,.84,.44,1) both;
}
@keyframes riskPillIn { from { opacity:0; transform: scale(.85); } to { opacity:1; transform: scale(1); } }
.risk-pill-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-blue, #7b8cf5); color: #fff;
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700;
}
[data-theme="light"] .risk-selected-wrap { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.14); }
[data-theme="light"] .risk-selected-label { color: rgba(10,14,26,.5); }
[data-theme="light"] .risk-selected-empty { color: rgba(10,14,26,.4); }
[data-theme="light"] .risk-pill { color: #0a0e1a; }

/* ============================================================================
   SLIDE 15 — MENTAL HEALTH cards: hover + color contrast for engagement
   ============================================================================ */
.org-grid .org-chip-static {
  position: relative;
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: transform .2s cubic-bezier(.16,.84,.44,1), box-shadow .25s, border-color .2s, background .25s;
}
/* color-code each card in rotation across the palette */
.org-grid .org-chip-static:nth-child(6n+1) { border-left-color: #7b8cf5; }
.org-grid .org-chip-static:nth-child(6n+2) { border-left-color: #6dd5c5; }
.org-grid .org-chip-static:nth-child(6n+3) { border-left-color: #f5b97b; }
.org-grid .org-chip-static:nth-child(6n+4) { border-left-color: #f57b8c; }
.org-grid .org-chip-static:nth-child(6n+5) { border-left-color: #a3d977; }
.org-grid .org-chip-static:nth-child(6n+6) { border-left-color: #c79bf5; }
.org-grid .org-chip-static:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  background: rgba(255,255,255,.06);
  border-left-width: 5px;
}
/* subtle shine sweep on hover */
.org-grid .org-chip-static::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-18deg);
  transition: left .6s cubic-bezier(.16,.84,.44,1);
}
.org-grid .org-chip-static:hover::after { left: 130%; }
@media (hover: none) { .org-grid .org-chip-static::after { display: none; } }
[data-theme="light"] .org-grid .org-chip-static:hover { background: rgba(0,0,0,.04); }

/* ============================================================================
   LEARNING SUMMARY — secondary button + hint (certificate slide)
   ============================================================================ */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(109,213,197,.16), rgba(163,217,119,.12));
  border: 1px solid rgba(109,213,197,.4);
  color: #cfeee7; font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: transform .15s, filter .2s, box-shadow .25s, background .2s;
}
.btn-secondary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(109,213,197,.26), rgba(163,217,119,.2));
  box-shadow: 0 8px 26px rgba(109,213,197,.25);
  color: #fff;
}
.btn-secondary svg { flex-shrink: 0; }
.summary-hint {
  max-width: 540px; margin: 14px auto 0; text-align: center;
  font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.55);
}
[data-theme="light"] .btn-secondary { color: #1a6b5e; }
[data-theme="light"] .summary-hint { color: rgba(10,14,26,.6); }

/* ============================================================================
   ╔══════════════════════════════════════════════════════════════════════╗
   ║  CINEMATIC SLIDES — Movie-experience layer                           ║
   ║  Brain-based learning + adult learning psychology design system      ║
   ╚══════════════════════════════════════════════════════════════════════╝
   ============================================================================ */

/* ── Cinematic letterbox + drama envelope ───────────────────────────────── */
.slide-cinematic {
  background: radial-gradient(ellipse at 30% 20%, #0d121f 0%, #060912 60%, #02030a 100%);
}
.slide-cinematic .slide-inner {
  position: relative;
  padding: 100px 64px 110px;
}
.slide-cinematic::before,
.slide-cinematic::after {
  content: ""; position: absolute; left: 0; right: 0; height: 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,.85), transparent);
  pointer-events: none; z-index: 3;
}
.slide-cinematic::before { top: 0; }
.slide-cinematic::after { bottom: 0; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); }

.cin-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(245,185,123,.85); margin-bottom: 26px;
}
.cin-kicker::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(to right, transparent, #f5b97b);
}
.cin-headline {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.025em;
  color: #fff; margin: 0 0 22px;
}
.cin-headline em { font-style: italic; font-weight: 200; opacity: .7; }
.cin-headline .accent {
  background: linear-gradient(135deg, #f5b97b 0%, #f57b8c 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cin-sub {
  font-family: "Fraunces", serif; font-size: clamp(17px, 1.9vw, 22px);
  color: rgba(255,255,255,.7); font-weight: 300; line-height: 1.45;
  max-width: 720px; margin: 0 0 50px;
}
.cin-finishing-line {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  color: rgba(255,255,255,.85);
  margin: 44px 0 0; padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; letter-spacing: -.01em;
}

/* ── Story pair (Slide A: Two Employees) ──────────────────────────────── */
.story-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  margin: 10px 0 0;
}
@media (max-width: 760px) { .story-pair { grid-template-columns: 1fr; gap: 18px; } }
.story-pair-card {
  position: relative; padding: 32px 28px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,.005) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  transition: transform .3s cubic-bezier(.16,.84,.44,1), border-color .3s, box-shadow .3s;
}
.story-pair-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--story-color, #888);
  border-top-left-radius: 14px; border-top-right-radius: 14px;
}
.story-pair-card[data-mood="dark"]  { --story-color: linear-gradient(90deg,#f57b8c,#a23b56); box-shadow: 0 0 50px -25px rgba(245,123,140,.4); }
.story-pair-card[data-mood="dark"]::before { background: linear-gradient(90deg,#f57b8c,#a23b56); }
.story-pair-card[data-mood="light"] { box-shadow: 0 0 50px -25px rgba(163,217,119,.4); }
.story-pair-card[data-mood="light"]::before { background: linear-gradient(90deg,#a3d977,#6dd5c5); }
.story-pair-card:hover { transform: translateY(-3px); }

.story-label {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 10px;
}
.story-name {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: 28px; color: #fff; margin: 0 0 8px;
}
.story-tag {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .08em; color: rgba(255,255,255,.5);
  margin: 0 0 22px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.story-beats { list-style: none; margin: 0; padding: 0; }
.story-beats li {
  padding: 6px 0; font-size: 15px; line-height: 1.5;
  color: rgba(255,255,255,.75);
}
.story-beats li::before { content: "— "; color: rgba(255,255,255,.3); }

/* ── Pause / breathing slide (Slide B) ────────────────────────────────── */
.slide-pause {
  background: radial-gradient(ellipse at center, #0f1422 0%, #050810 70%, #02030a 100%);
}
.slide-pause .slide-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100vh - 200px); text-align: center;
  padding: 80px 40px;
}
.pause-kicker {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(123,140,245,.7); margin-bottom: 50px;
}
.pause-headline {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.15;
  color: #fff; margin: 0 0 24px; letter-spacing: -.015em;
}
.pause-prompt {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 300;
  font-size: clamp(17px, 1.8vw, 22px);
  color: rgba(255,255,255,.6); max-width: 560px; line-height: 1.5;
  margin: 0 0 60px;
}
.breathing-orb {
  position: relative; width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.breathing-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border-width: 2.5px;
  border-style: solid;
  opacity: 0;
  animation: breatheRing 5.5s ease-in-out infinite;
}
/* Each ring is a different workshop-palette color and a different starting phase,
   so the four colors visibly cascade outward — the "flow" the audience feels. */
.breathing-ring-1 {
  border-color: rgba(123, 140, 245, .9);          /* blue   */
  box-shadow: 0 0 22px rgba(123, 140, 245, .55), inset 0 0 12px rgba(123, 140, 245, .35);
  animation-delay: 0s;
}
.breathing-ring-2 {
  border-color: rgba(109, 213, 197, .9);          /* teal   */
  box-shadow: 0 0 22px rgba(109, 213, 197, .55), inset 0 0 12px rgba(109, 213, 197, .35);
  animation-delay: -1.3s;
}
.breathing-ring-3 {
  border-color: rgba(245, 185, 123, .9);          /* amber  */
  box-shadow: 0 0 22px rgba(245, 185, 123, .55), inset 0 0 12px rgba(245, 185, 123, .35);
  animation-delay: -2.7s;
}
.breathing-ring-4 {
  border-color: rgba(245, 123, 140, .9);          /* coral  */
  box-shadow: 0 0 22px rgba(245, 123, 140, .55), inset 0 0 12px rgba(245, 123, 140, .35);
  animation-delay: -4.1s;
}

@keyframes breatheRing {
  0%   { transform: scale(.18); opacity: 0; }
  18%  { opacity: 1; }
  60%  { transform: scale(1.0); opacity: .55; }
  100% { transform: scale(1.25); opacity: 0; }
}

.breathing-orb-core {
  position: relative; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9d3 0%, #f5b97b 35%, #f57b8c 70%, #7b8cf5 100%);
  box-shadow:
    0 0 16px rgba(245, 185, 123, .75),
    0 0 38px rgba(245, 123, 140, .55),
    0 0 60px rgba(123, 140, 245, .45);
  animation: corePulse 5.5s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(.7); filter: brightness(1); }
  50%      { transform: scale(1.5); filter: brightness(1.4); }
}
.pause-counter {
  margin-top: 36px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: .14em; color: rgba(255,255,255,.45);
}
.pause-counter strong { color: rgba(255,255,255,.85); font-weight: 600; }

/* ── Two-scenes slide (Slide C) ───────────────────────────────────────── */
.scene-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  margin: 10px 0 0;
}
@media (max-width: 760px) { .scene-pair { grid-template-columns: 1fr; } }
.scene-card {
  position: relative; padding: 30px 28px 26px;
  border-radius: 14px; overflow: hidden;
  transition: transform .25s cubic-bezier(.16,.84,.44,1);
}
.scene-card[data-tone="tense"]  { background: linear-gradient(160deg, rgba(245,123,140,.08), rgba(20,12,20,.4)); border: 1px solid rgba(245,123,140,.22); }
.scene-card[data-tone="warm"]   { background: linear-gradient(160deg, rgba(109,213,197,.08), rgba(12,22,20,.4)); border: 1px solid rgba(109,213,197,.22); }
.scene-card:hover { transform: translateY(-3px); }
.scene-num {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 6px; font-weight: 600;
}
.scene-card[data-tone="tense"] .scene-num { color: #f57b8c; }
.scene-card[data-tone="warm"]  .scene-num { color: #6dd5c5; }
.scene-title {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: 22px; color: #fff; margin: 0 0 18px;
}
.scene-beats { list-style: none; padding: 0; margin: 0 0 18px; }
.scene-beats li {
  padding: 5px 0; font-size: 14.5px; line-height: 1.5;
  color: rgba(255,255,255,.72);
}
.scene-beats li::before { content: "›  "; color: rgba(255,255,255,.3); }
.scene-outcome {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: "Fraunces", serif; font-style: italic;
  font-size: 14.5px; color: rgba(255,255,255,.9);
}
.scene-card[data-tone="tense"] .scene-outcome { color: #f57b8c; }
.scene-card[data-tone="warm"]  .scene-outcome { color: #a3d977; }

/* ── Simulation slide (Slide D) ───────────────────────────────────────── */
.slide-simulation .slide-inner { padding: 80px 60px 100px; }
.mission-brief {
  background: linear-gradient(135deg, rgba(123,140,245,.08), rgba(109,213,197,.04));
  border: 1px solid rgba(123,140,245,.25);
  border-left: 4px solid #7b8cf5;
  border-radius: 12px; padding: 22px 26px; margin: 0 0 28px;
}
.mission-brief-label {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase; color: #7b8cf5;
  margin-bottom: 8px;
}
.mission-brief-text {
  font-family: "Fraunces", serif; font-size: 17px; font-weight: 400;
  color: #fff; line-height: 1.45; margin: 0;
}
.mission-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 26px; }
@media (max-width: 760px) { .mission-options { grid-template-columns: 1fr; } }
.mission-option {
  padding: 16px 18px; border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  transition: all .2s;
}
.mission-option:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(123,140,245,.4);
  transform: translateY(-2px);
}
.mission-option-icon { font-size: 22px; margin-bottom: 6px; }
.mission-option-text { font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500; }
.hope-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 0 0 26px;
}
@media (max-width: 720px) { .hope-steps { grid-template-columns: 1fr 1fr; } }
.hope-step {
  padding: 16px 16px 14px; border-radius: 10px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
  text-align: center;
}
.hope-step-letter {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 28px;
  line-height: 1; margin-bottom: 4px;
  filter: drop-shadow(0 0 10px currentColor);
}
.hope-step:nth-child(1) .hope-step-letter { color: #7b8cf5; }
.hope-step:nth-child(2) .hope-step-letter { color: #6dd5c5; }
.hope-step:nth-child(3) .hope-step-letter { color: #a3d977; }
.hope-step:nth-child(4) .hope-step-letter { color: #f5b97b; }
.hope-step-word {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin: 4px 0 6px;
}
.hope-step-prompt {
  font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.45;
}
.mission-timer {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(245,185,123,.1); border: 1px solid rgba(245,185,123,.3);
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .14em; color: #f5b97b; margin-left: 12px;
}
.mission-timer::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #f5b97b; animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .3; } }

[data-theme="light"] .slide-cinematic { background: radial-gradient(ellipse at 30% 20%, #f0ece4, #e7e2d4); }
[data-theme="light"] .slide-cinematic .cin-headline,
[data-theme="light"] .slide-cinematic .story-name,
[data-theme="light"] .slide-cinematic .scene-title { color: #0a0e1a; }
[data-theme="light"] .slide-pause { background: radial-gradient(ellipse at center, #f0ece4, #e7e2d4); }
[data-theme="light"] .pause-headline { color: #0a0e1a; }

/* ============================================================================
   ╔══════════════════════════════════════════════════════════════════════╗
   ║  SLIDE 1 — CINEMATIC COLD OPEN                                       ║
   ║  The opening shot. Pure cinema: types in, scales up, line draws.     ║
   ╚══════════════════════════════════════════════════════════════════════╝
   ============================================================================ */
.slide-cold-open {
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(245,185,123,.08), transparent 60%),
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(123,140,245,.10), transparent 60%),
    radial-gradient(ellipse at center, #0c1020 0%, #060912 55%, #02030a 100%);
  position: relative;
  overflow: hidden;
}
.slide-cold-open .slide-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  min-height: calc(100vh - 90px);
  padding: 56px 40px 64px;
  position: relative;
  z-index: 2;
}

/* Drifting aurora ambient (slow Ken Burns) */
.cold-open-ambient {
  position: absolute; inset: -10%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(245,185,123,.14), transparent 35%),
    radial-gradient(circle at 78% 65%, rgba(109,213,197,.12), transparent 35%);
  animation: coldDrift 28s ease-in-out infinite alternate;
}
@keyframes coldDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}

/* Cinematic vignette (darker at corners) */
.slide-cold-open::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* Letterbox top + bottom — heavier than other cinematic slides */
.slide-cold-open::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 44px;
  z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, #02030a 30%, transparent);
}
.cold-open-bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 44px;
  z-index: 2; pointer-events: none;
  background: linear-gradient(to top, #02030a 30%, transparent);
}

/* ──── 1. PRESENTS strip (top) ──── */
.cold-open-presents {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(245,185,123,.7);
  margin-top: 16px;
  white-space: nowrap;
  opacity: 0;
}
.cold-open-presents::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(245,185,123,.6));
}
.slide.active .cold-open-presents {
  animation: coldFadeIn 1.2s ease .35s forwards;
}

/* ──── 2. Title card (center) ──── */
.cold-open-stack {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.cold-open-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(80px, 16vw, 220px);
  line-height: .92;
  letter-spacing: -.045em;
  color: #fff;
  margin: 0;
  text-shadow:
    0 0 40px rgba(123,140,245,.22),
    0 0 100px rgba(109,213,197,.14);
  opacity: 0;
  /* Start state for the scale-in */
  transform: scale(.92);
}
.slide.active .cold-open-title {
  animation: coldTitleIn 1.6s cubic-bezier(.16,.84,.44,1) 1.4s forwards;
}
@keyframes coldTitleIn {
  0% { opacity: 0; transform: scale(.92); letter-spacing: 0.02em; filter: blur(6px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); letter-spacing: -.045em; filter: blur(0); }
}

.cold-open-subtitle {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3.4vw, 44px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 18px;
  opacity: 0;
}
.slide.active .cold-open-subtitle {
  animation: coldFadeIn 1.1s ease 2.7s forwards;
}

/* ──── 3. The drawing line ──── */
.cold-open-line {
  position: relative;
  margin: 36px auto 30px;
  height: 1px;
  width: clamp(120px, 22vw, 280px);
  background: linear-gradient(to right,
    transparent 0%,
    rgba(245,185,123,.45) 25%,
    rgba(245,185,123,.9) 50%,
    rgba(245,185,123,.45) 75%,
    transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  filter: drop-shadow(0 0 8px rgba(245,185,123,.4));
}
.slide.active .cold-open-line {
  animation: coldLineDraw 1.6s cubic-bezier(.16,.84,.44,1) 3.5s forwards;
}
@keyframes coldLineDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ──── 4. Tagline ──── */
.cold-open-tagline {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(16px, 2vw, 22px);
  font-style: italic;
  color: rgba(255,255,255,.7);
  max-width: 540px;
  line-height: 1.45;
  letter-spacing: -.005em;
  opacity: 0;
  margin: 0;
}
.slide.active .cold-open-tagline {
  animation: coldFadeIn 1.2s ease 4.4s forwards;
}

/* ──── 5. "Chapter One →" cue (bottom) ──── */
.cold-open-cue {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  opacity: 0;
}
.cold-open-arrow {
  font-family: inherit; font-size: 16px;
  color: rgba(245,185,123,.85);
  animation: coldArrowGlide 1.6s ease-in-out infinite;
}
@keyframes coldArrowGlide {
  0%,100% { transform: translateX(0); opacity: .55; }
  50%     { transform: translateX(6px); opacity: 1; }
}
.slide.active .cold-open-cue {
  animation: coldFadeIn 1s ease 5.6s forwards;
}

/* Shared fade-in for cold-open */
@keyframes coldFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Light theme — keep cinematic but on cream */
[data-theme="light"] .slide-cold-open {
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(245,185,123,.18), transparent 60%),
    radial-gradient(ellipse at center, #f5f0e4 0%, #ece5d1 80%);
}
[data-theme="light"] .cold-open-title { color: #0a0e1a; text-shadow: 0 0 40px rgba(245,185,123,.18); }
[data-theme="light"] .cold-open-subtitle,
[data-theme="light"] .cold-open-tagline,
[data-theme="light"] .cold-open-cue { color: rgba(10,14,26,.65); }

@media (max-width: 640px) {
  .slide-cold-open .slide-inner { padding: 36px 24px 48px; }
}

/* ============================================================================
   ╔══════════════════════════════════════════════════════════════════════╗
   ║  SLIDE 2 — CINEMATIC TITLE CARD                                      ║
   ║  Animated colour-contrast subtitle: Motivation · Meaning · Future    ║
   ╚══════════════════════════════════════════════════════════════════════╝
   ============================================================================ */

/* Cinematic vignette on the title slide */
.slide-title {
  position: relative;
  overflow: hidden;
}
.slide-title::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.45) 100%);
  z-index: 1;
}
.slide-title .slide-inner { position: relative; z-index: 2; }

/* Subtle letterbox shadow band at top + bottom */
.slide-title .slide-inner::before {
  content: ""; position: absolute; top: -56px; left: -56px; right: -56px; height: 36px;
  background: linear-gradient(to bottom, rgba(2,3,10,.7), transparent);
  pointer-events: none;
}
.slide-title .slide-inner::after {
  content: ""; position: absolute; bottom: -64px; left: -56px; right: -56px; height: 36px;
  background: linear-gradient(to top, rgba(2,3,10,.6), transparent);
  pointer-events: none;
}

/* Bigger, more cinematic hero typography */
.slide-title .hero-title {
  font-size: clamp(64px, 10vw, 140px);
  line-height: .92;
  letter-spacing: -.045em;
  text-shadow:
    0 0 50px rgba(123,140,245,.18),
    0 0 120px rgba(109,213,197,.12);
}
.slide-title .hero-sub {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
  max-width: 920px;
  color: rgba(255,255,255,.78);
}

/* ── The colour-contrast animated words ── */
.word-accent {
  display: inline-block;
  position: relative;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-style: italic;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding: 0 .06em;
}
.word-amber { background-image: linear-gradient(135deg, #f5b97b 0%, #f57b8c 100%); }
.word-teal  { background-image: linear-gradient(135deg, #6dd5c5 0%, #a3d977 100%); }
.word-blue  { background-image: linear-gradient(135deg, #7b8cf5 0%, #6dd5c5 100%); }

/* ── Chunks: the colored word + its connector animate IN TOGETHER ── */
.hero-chunk {
  display: inline-block;
  opacity: 0;
  white-space: nowrap;
}
.slide.active .hero-chunk-1 { animation: chunkIn 1s cubic-bezier(.16,.84,.44,1) 0s forwards; }
.slide.active .hero-chunk-2 { animation: chunkIn 1s cubic-bezier(.16,.84,.44,1) .55s forwards; }
.slide.active .hero-chunk-3 { animation: chunkIn 1s cubic-bezier(.16,.84,.44,1) .95s forwards; }
.slide.active .hero-chunk-4 { animation: chunkIn 1s cubic-bezier(.16,.84,.44,1) 1.35s forwards; }
.slide.active .hero-chunk-5 { animation: chunkIn 1s cubic-bezier(.16,.84,.44,1) 1.75s forwards; }

@keyframes chunkIn {
  0%   { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* The muted closing phrase is dim italic but follows the same entrance */
.hero-sub-muted {
  color: rgba(255,255,255,.45);
  font-style: italic;
}
[data-theme="light"] .hero-sub-muted { color: rgba(10,14,26,.45); }

/* Continuous gentle breathing glow on each colored word (begins after chunks land) */
.slide.active .word-amber { animation: wordGlowAmber 5s ease-in-out 1.9s infinite; }
.slide.active .word-teal  { animation: wordGlowTeal  5s ease-in-out 2.3s infinite; }
.slide.active .word-blue  { animation: wordGlowBlue  5s ease-in-out 2.7s infinite; }

@keyframes wordGlowAmber {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(245,185,123,.35)); }
  50%      { filter: drop-shadow(0 0 22px rgba(245,185,123,.7)); }
}
@keyframes wordGlowTeal {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(109,213,197,.35)); }
  50%      { filter: drop-shadow(0 0 22px rgba(109,213,197,.7)); }
}
@keyframes wordGlowBlue {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(123,140,245,.35)); }
  50%      { filter: drop-shadow(0 0 22px rgba(123,140,245,.7)); }
}

/* Light theme — keep the gradient text visible against cream */
[data-theme="light"] .slide-title::after {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(220,210,190,.5) 100%);
}
[data-theme="light"] .slide-title .hero-title { text-shadow: 0 0 30px rgba(123,140,245,.12); }

/* ============================================================================
   ╔══════════════════════════════════════════════════════════════════════╗
   ║  SLIDE 3 — "WHAT HAPPENS WHEN EMPLOYEES LOSE HOPE?" (cinematic Q)    ║
   ║  Coral-tinted variant of cinematic slide                              ║
   ╚══════════════════════════════════════════════════════════════════════╝
   ============================================================================ */
.slide-cinematic.tone-problem {
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(245,123,140,.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 80%, rgba(245,185,123,.06), transparent 60%),
    radial-gradient(ellipse at center, #14101a 0%, #08060c 100%);
}
.slide-cinematic.tone-problem .cin-kicker { color: rgba(245,123,140,.85); }
.slide-cinematic.tone-problem .cin-kicker::before {
  background: linear-gradient(to right, transparent, #f57b8c);
}
.slide-cinematic.tone-problem .cin-headline .accent {
  background: linear-gradient(135deg, #f57b8c 0%, #f5b97b 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.slide-cinematic .q-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(245,123,140,.25);
  backdrop-filter: blur(8px);
}
.slide-cinematic .q-card label.q-question { color: rgba(255,255,255,.85); }
.slide-cinematic .q-card textarea {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.slide-cinematic .q-card textarea:focus {
  border-color: rgba(245,123,140,.5);
  box-shadow: 0 0 0 3px rgba(245,123,140,.12);
}

/* ============================================================================
   ╔══════════════════════════════════════════════════════════════════════╗
   ║  SLIDE 4 — "THE STRUGGLE" (lucrative color-grid)                     ║
   ║  Five selectable cards, each with its own gradient & glow            ║
   ╚══════════════════════════════════════════════════════════════════════╝
   ============================================================================ */
.struggle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 26px 0 28px;
}
@media (max-width: 980px) { .struggle-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .struggle-grid { grid-template-columns: repeat(2, 1fr); } }

.struggle-card {
  position: relative;
  padding: 28px 14px 22px;
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,.84,.44,1),
              border-color .25s, box-shadow .3s, background .25s;
  isolation: isolate;
}
.struggle-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--struggle-gradient);
  opacity: 0; transition: opacity .3s;
}
.struggle-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: 16px;
  background: linear-gradient(135deg, var(--struggle-color), transparent 65%);
  opacity: 0; z-index: -2;
  transition: opacity .35s;
  filter: blur(18px);
}
.struggle-card:nth-child(1) { --struggle-color: #7b8cf5; --struggle-gradient: linear-gradient(160deg, rgba(123,140,245,.28), rgba(123,140,245,.04)); }
.struggle-card:nth-child(2) { --struggle-color: #f5b97b; --struggle-gradient: linear-gradient(160deg, rgba(245,185,123,.28), rgba(245,185,123,.04)); }
.struggle-card:nth-child(3) { --struggle-color: #f57b8c; --struggle-gradient: linear-gradient(160deg, rgba(245,123,140,.28), rgba(245,123,140,.04)); }
.struggle-card:nth-child(4) { --struggle-color: #6dd5c5; --struggle-gradient: linear-gradient(160deg, rgba(109,213,197,.28), rgba(109,213,197,.04)); }
.struggle-card:nth-child(5) { --struggle-color: #c79bf5; --struggle-gradient: linear-gradient(160deg, rgba(199,155,245,.28), rgba(199,155,245,.04)); }

.struggle-card:hover {
  transform: translateY(-4px);
  border-color: var(--struggle-color);
}
.struggle-card:hover::before { opacity: .6; }
.struggle-card:hover::after  { opacity: .5; }

.struggle-card.selected {
  transform: translateY(-3px);
  border-color: var(--struggle-color);
  box-shadow: 0 0 0 2px var(--struggle-color),
              0 14px 32px -10px var(--struggle-color);
}
.struggle-card.selected::before { opacity: 1; }
.struggle-card.selected::after  { opacity: .7; }
.struggle-card.selected .struggle-check {
  opacity: 1; transform: scale(1);
}

.struggle-icon {
  font-size: 38px; line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}
.struggle-name {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  letter-spacing: -.005em;
  line-height: 1.25;
}
.struggle-check {
  position: absolute; top: 10px; right: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--struggle-color);
  color: #0a0e1a;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .25s cubic-bezier(.16,.84,.44,1);
}

.struggle-question {
  margin-top: 8px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(245,123,140,.08), rgba(245,185,123,.04));
  border-left: 4px solid #f57b8c;
  border-radius: 10px;
}
.struggle-question h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -.005em;
}
.struggle-question p {
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  margin: 0;
  font-style: italic;
}
[data-theme="light"] .struggle-card { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.08); }
[data-theme="light"] .struggle-card .struggle-name { color: #0a0e1a; }
[data-theme="light"] .struggle-question h3 { color: #0a0e1a; }

/* ============================================================================
   ╔══════════════════════════════════════════════════════════════════════╗
   ║  SLIDE 3 — LIVE "VOICES FROM THE ROOM" WALL                          ║
   ║  Share button + animated pill grid, polled via JSONP                 ║
   ╚══════════════════════════════════════════════════════════════════════╝
   ============================================================================ */
.share-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f57b8c 0%, #f5b97b 100%);
  border: none;
  color: #1a0e10;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.16,.84,.44,1), box-shadow .25s, filter .2s;
  box-shadow: 0 6px 18px -4px rgba(245,123,140,.45);
}
.btn-share svg { stroke: currentColor; transition: transform .25s ease; }
.btn-share:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 28px -6px rgba(245,123,140,.55);
}
.btn-share:hover svg { transform: translate(2px, -2px) rotate(8deg); }
.btn-share:disabled {
  opacity: .55; cursor: not-allowed; transform: none;
  filter: grayscale(.3);
}
.btn-share.sharing svg { animation: shareFly .8s ease forwards; }
@keyframes shareFly {
  from { transform: translate(0,0) rotate(0); opacity: 1; }
  to   { transform: translate(30px,-26px) rotate(35deg); opacity: 0; }
}

.voices-wall {
  margin-top: 22px;
  padding: 22px 24px 26px;
  background: linear-gradient(160deg, rgba(245,123,140,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(245,123,140,.18);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.voices-wall::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,123,140,.4), transparent);
}
.voices-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.voices-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #f57b8c;
  box-shadow: 0 0 0 0 rgba(245,123,140,.7);
  animation: voicesPulse 1.8s ease-in-out infinite;
}
@keyframes voicesPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,123,140,.75); transform: scale(1); }
  70%  { box-shadow: 0 0 0 10px rgba(245,123,140,0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(245,123,140,0); transform: scale(1); }
}
.voices-count {
  margin-left: auto;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(245,123,140,.15);
  border: 1px solid rgba(245,123,140,.3);
  color: #f5b97b;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 12px;
}

.voices-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
  min-height: 48px;
  align-content: flex-start;
  align-items: flex-start;
}
.voices-empty {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,.4);
  padding: 6px 2px;
  width: 100%;
}

.voice-pill {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--pill-text, #fff);
  max-width: 100%;
  word-break: break-word;
  position: relative;
  animation: voiceIn .6s cubic-bezier(.16,.84,.44,1) var(--enter-delay, 0s) both;
}
.voice-pill::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 var(--pill-glow, transparent);
  animation: voiceGlow 1.4s ease-out var(--enter-delay, 0s) both;
}
.voice-color-0 { --pill-bg: linear-gradient(135deg, rgba(123,140,245,.22), rgba(123,140,245,.06)); --pill-border: rgba(123,140,245,.45); --pill-text: #d4daff; --pill-glow: rgba(123,140,245,.5); }
.voice-color-1 { --pill-bg: linear-gradient(135deg, rgba(109,213,197,.22), rgba(109,213,197,.06)); --pill-border: rgba(109,213,197,.45); --pill-text: #c5efe7; --pill-glow: rgba(109,213,197,.5); }
.voice-color-2 { --pill-bg: linear-gradient(135deg, rgba(245,185,123,.22), rgba(245,185,123,.06)); --pill-border: rgba(245,185,123,.45); --pill-text: #f8dcb3; --pill-glow: rgba(245,185,123,.5); }
.voice-color-3 { --pill-bg: linear-gradient(135deg, rgba(245,123,140,.22), rgba(245,123,140,.06)); --pill-border: rgba(245,123,140,.45); --pill-text: #f8c4ce; --pill-glow: rgba(245,123,140,.5); }
.voice-color-4 { --pill-bg: linear-gradient(135deg, rgba(163,217,119,.22), rgba(163,217,119,.06)); --pill-border: rgba(163,217,119,.45); --pill-text: #d6edb7; --pill-glow: rgba(163,217,119,.5); }
.voice-color-5 { --pill-bg: linear-gradient(135deg, rgba(199,155,245,.22), rgba(199,155,245,.06)); --pill-border: rgba(199,155,245,.45); --pill-text: #e2cdfa; --pill-glow: rgba(199,155,245,.5); }

@keyframes voiceIn {
  from { opacity: 0; transform: translateY(12px) scale(.85); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes voiceGlow {
  0%   { box-shadow: 0 0 0 0 var(--pill-glow); }
  100% { box-shadow: 0 0 0 14px transparent; }
}

[data-theme="light"] .voices-wall { background: linear-gradient(160deg, rgba(245,123,140,.06), rgba(0,0,0,.02)); }
[data-theme="light"] .voices-header { color: rgba(10,14,26,.65); }
[data-theme="light"] .voices-empty { color: rgba(10,14,26,.45); }
[data-theme="light"] .voice-pill { color: rgba(10,14,26,.9) !important; }

@media (max-width: 640px) {
  .share-row { justify-content: stretch; }
  .btn-share { width: 100%; justify-content: center; }
}
