/* Care Manager: Year One Simulation
   Alexandria's Design — Healthcare Trainings */

:root {
  --bg: #0f0f1a;
  --bg-soft: #15152a;
  --surface: #1c1d35;
  --surface-2: #25274a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f1ea;
  --text-soft: rgba(244, 241, 234, 0.72);
  --text-mute: rgba(244, 241, 234, 0.45);
  --gold: #c4a35f;
  --gold-bright: #e0bc73;
  --teal: #5b9fa6;
  --warn: #d97757;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55), 0 8px 30px rgba(0, 0, 0, 0.35);
  --radius: 4px;
  --radius-lg: 10px;
  --easing: cubic-bezier(0.25, 1, 0.5, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: auto;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  overflow-y: auto; /* page-level scroll fallback for short viewports */
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

img { display: block; max-width: 100%; }

.hidden { display: none !important; }

/* Stage */
.stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible; /* allow scene content to push page taller on short viewports */
}

/* Password gate — fixed overlay; internal scroll only if truly needed */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(ellipse at center top, #1c1d35 0%, #0f0f1a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 6vw;
  animation: fadeIn 380ms var(--easing) both;
  overflow-y: auto;
}
@media (max-height: 820px) {
  .gate { align-items: flex-start; padding-top: 4vh; }
  .gate__head { font-size: clamp(2rem, 4.5vw, 3.2rem) !important; }
  .gate__sub { margin-bottom: 1.6rem; }
  .gate__eyebrow { margin-bottom: 1.2rem; }
}
.gate.is-unlocked { display: none; }
.gate__panel {
  max-width: 540px;
  width: 100%;
  text-align: left;
}
.gate__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}
.gate__head {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.gate__head em { color: var(--gold-bright); font-style: italic; }
.gate__sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 2.2rem;
  max-width: 460px;
}
.gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
  max-width: 380px;
}
.gate__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.gate__input {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.95em 1em;
  outline: none;
  transition: border-color 200ms var(--easing), background 200ms var(--easing);
}
.gate__input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}
.gate__submit { align-self: flex-start; margin-top: 0.4rem; }
.gate__error {
  font-size: 0.88rem;
  color: var(--warn);
  background: rgba(217, 119, 87, 0.1);
  border-left: 2px solid var(--warn);
  padding: 0.6rem 0.9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.gate__foot {
  font-size: 0.85rem;
  color: var(--text-mute);
  max-width: 380px;
}
.gate__foot a { color: var(--gold); text-decoration: none; }
.gate__foot a:hover { color: var(--gold-bright); }


/* Scene */
.scene {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  transition: opacity 600ms var(--easing);
}
/* Active scene leaves the stacked absolute context and joins normal flow
   so its content can push the page taller (body scrolls). */
.scene.is-active {
  position: relative;
  display: block;
  opacity: 1;
  width: 100%;
  min-height: 100vh;
}

.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.95);
}

.scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,26,0) 40%, rgba(15,15,26,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

/* =========================================================
   COURSE HOME (module index)
   ========================================================= */
.scene--home {
  background: radial-gradient(ellipse at center top, #1c1d35 0%, #0f0f1a 65%);
}
.scene--home::before { display: none; }

.home-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6vh 6vw 8vh;
  min-height: 100vh;
  box-sizing: border-box;
}

.home-header {
  margin-bottom: 4rem;
  max-width: 820px;
}
.home-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.home-head {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.home-head em { color: var(--gold-bright); font-style: italic; }
.home-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 1.4rem;
}
.home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-mute);
}
.home-meta strong { color: var(--gold); font-weight: 600; }

.home-cert-banner {
  margin: 1.4rem 0 2rem;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(91,191,207,0.12) 0%, rgba(212,175,55,0.10) 100%);
  border: 0.5px solid rgba(91,191,207,0.45);
  border-radius: 10px;
}
.home-cert-banner.hidden { display: none; }
.home-cert-banner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.home-cert-banner__copy { flex: 1; min-width: 260px; }
.home-cert-banner__eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #5BBFCF; font-weight: 600; margin: 0 0 6px;
}
.home-cert-banner__title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.25rem; line-height: 1.25; color: var(--text);
  margin: 0 0 4px;
}
.home-cert-banner__sub {
  font-size: 0.78rem; color: var(--text-mute); margin: 0;
}
.home-cert-banner__btn {
  font-family: inherit; font-weight: 600; font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 8px;
  background: #d4af37; color: #1a1a2e; border: none;
  cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap;
}
.home-cert-banner__btn:hover { background: #e8c252; transform: translateY(-1px); }

.home-section { margin-bottom: 3rem; }
.home-section__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 0.5px solid var(--line);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.module-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.2rem;
  cursor: pointer;
  transition: all 240ms var(--easing);
  text-align: left;
  font: inherit;
  color: inherit;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
.module-card:hover {
  border-color: rgba(196, 163, 95, 0.45);
  background: rgba(196, 163, 95, 0.04);
  transform: translateY(-2px);
}
.module-card.is-completed {
  border-color: rgba(91, 159, 166, 0.35);
  background: rgba(91, 159, 166, 0.04);
}
.module-card.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
}
.module-card.is-locked:hover { transform: none; background: rgba(255,255,255,0.03); border-color: var(--line); }

.module-card__number {
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.module-card.is-completed .module-card__number { color: var(--teal); }

.module-card__title {
  font-family: 'Newsreader', serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.module-card__desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-soft);
  flex-grow: 1;
  margin-bottom: 0.9rem;
}
.module-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--text-mute);
  padding-top: 0.8rem;
  border-top: 0.5px dashed var(--line);
}
.module-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}
.module-card__status--complete { color: var(--teal); }
.module-card__status--new { color: var(--gold); }
.module-card__status svg { width: 14px; height: 14px; }

.module-card--featured {
  background: linear-gradient(135deg, rgba(196, 163, 95, 0.08) 0%, rgba(255,255,255,0.02) 100%);
  border-color: rgba(196, 163, 95, 0.35);
}
.module-card--featured .module-card__number { color: var(--gold-bright); }

.home-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-mute);
  max-width: 780px;
  line-height: 1.6;
}

/* Persistent fullscreen toggle (top-left, low-key, always above page chrome) */
.fullscreen-toggle {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 9800;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(15, 15, 26, 0.72);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  opacity: 0.6;
}
.fullscreen-toggle:hover { opacity: 1; background: rgba(15, 15, 26, 0.92); color: #fff; }
.fullscreen-toggle.is-unsupported { opacity: 0.25; cursor: not-allowed; }
.fullscreen-toggle__icon { display: inline-block; }
.fullscreen-toggle__icon--exit { display: none; }
body.is-fullscreen .fullscreen-toggle__icon--enter { display: none; }
body.is-fullscreen .fullscreen-toggle__icon--exit { display: inline-block; }
body.is-fullscreen .fullscreen-toggle { opacity: 0.4; }
body.is-fullscreen .fullscreen-toggle:hover { opacity: 0.95; }

/* Course top navigation bar */
.course-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--line);
}
.course-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 180ms var(--easing);
}
.course-nav__back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
}
.course-nav__crumb {
  font-size: 0.85rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.course-nav__crumb strong { color: var(--text-soft); font-weight: 500; }

/* =========================================================
   GENERIC LESSON SCENE
   ========================================================= */
.scene--lesson { background: var(--bg); }
.scene--lesson::before { display: none; }
.lesson-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 11vh 6vw 8vh;
  min-height: 100vh;
  box-sizing: border-box;
}
.lesson-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 2.2rem;
}
.lesson-progress__dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 300ms var(--easing);
}
.lesson-progress__dot.is-current { background: var(--gold); }
.lesson-progress__dot.is-done { background: var(--teal); }

.lesson-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.lesson-head {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.lesson-head em { color: var(--gold-bright); font-style: italic; }
.lesson-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 680px;
}
.lesson-body p { margin-bottom: 1rem; }
.lesson-body strong { color: var(--text); font-weight: 600; }
.lesson-body em { color: var(--gold-bright); font-style: italic; }
.lesson-body ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}
.lesson-body li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
  line-height: 1.5;
}
.lesson-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

.lesson-callout {
  background: rgba(196, 163, 95, 0.08);
  border-left: 2px solid var(--gold);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.8rem 0;
}
.lesson-callout__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.lesson-callout__text {
  font-family: 'Newsreader', serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
}

.lesson-image {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
  margin: 1.8rem auto;
  display: block;
  border: 0.5px solid var(--line);
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--line);
}
.lesson-nav__back {
  padding: 0.7em 1.2em;
  color: var(--text-mute);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 180ms var(--easing);
}
.lesson-nav__back:hover { color: var(--gold); }
.lesson-nav__back:disabled { opacity: 0.3; cursor: not-allowed; }

/* Sort-into-columns practice */
.lesson-sort {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 2rem 0;
}
.lesson-sort__column {
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  min-height: 220px;
}
.lesson-sort__column h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 0.5px solid var(--line);
}
.lesson-sort__column--goal h4 { color: var(--gold); }
.lesson-sort__column--resource h4 { color: var(--teal); }
.lesson-sort__item {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  cursor: grab;
  transition: all 180ms var(--easing);
}
.lesson-sort__item:hover {
  border-color: var(--gold);
  background: rgba(196, 163, 95, 0.05);
}
.lesson-sort__item.is-placed { cursor: default; opacity: 0.8; }
.lesson-sort__item.is-correct { border-color: var(--teal); background: rgba(91, 159, 166, 0.08); }
.lesson-sort__item.is-wrong { border-color: var(--warn); background: rgba(217, 119, 87, 0.08); }

/* Workflow slide (click-to-reveal sequential steps) */
.workflow-list {
  list-style: none;
  counter-reset: none;
  padding: 0;
  margin: 1.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.workflow-step {
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 220ms var(--easing);
}
.workflow-step:hover { border-color: var(--gold); background: rgba(196, 163, 95, 0.05); }
.workflow-step.is-open {
  background: rgba(91, 159, 166, 0.06);
  border-color: rgba(91, 159, 166, 0.4);
  cursor: default;
}
.workflow-step__num {
  font-family: 'Newsreader', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  align-self: start;
}
.workflow-step.is-open .workflow-step__num { color: var(--teal); }
.workflow-step__body { display: flex; flex-direction: column; gap: 0.5rem; }
.workflow-step__title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.workflow-step__detail {
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-style: italic;
  border-left: 2px solid rgba(91, 159, 166, 0.4);
  padding-left: 0.9rem;
  margin-top: 0.3rem;
  animation: slideIn 360ms var(--easing) both;
}
.workflow-step__check {
  align-self: start;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 220ms var(--easing);
}
.workflow-step__check.is-done {
  background: var(--teal);
  border-color: var(--teal);
}
.workflow-step__check.is-done::after {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><path d='M20 6L9 17l-5-5'/></svg>") no-repeat center/contain;
}

/* MCP Portals page */
.mcp-table {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
  margin-bottom: 2.4rem;
}
.mcp-row {
  display: grid;
  grid-template-columns: 2fr 1.8fr 1.2fr 1.2fr;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: start;
  font-size: 0.92rem;
}
.mcp-row--header {
  background: transparent;
  border: none;
  padding: 0 1.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.mcp-row:hover:not(.mcp-row--header) { border-color: rgba(196, 163, 95, 0.3); }
.mcp-row__name {
  font-family: 'Newsreader', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}
.mcp-row__sub {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 0.2rem;
}
.mcp-row a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}
.mcp-row a:hover { color: var(--gold-bright); text-decoration: underline; }
.mcp-row__note {
  font-size: 0.78rem;
  color: var(--text-mute);
  font-style: italic;
  margin-top: 0.2rem;
}

@media (max-width: 860px) {
  .mcp-row, .mcp-row--header { grid-template-columns: 1fr; gap: 0.4rem; }
  .mcp-row--header { display: none; }
}

/* Multiple-choice practice */
.lesson-choice {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.6rem 0;
}
.lesson-choice__btn {
  text-align: left;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.45;
  transition: all 180ms var(--easing);
  cursor: pointer;
}
.lesson-choice__btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(196, 163, 95, 0.05);
}
.lesson-choice__btn.is-correct { border-color: var(--teal); background: rgba(91, 159, 166, 0.12); }
.lesson-choice__btn.is-wrong { border-color: var(--warn); background: rgba(217, 119, 87, 0.1); }
.lesson-choice__feedback {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-style: italic;
}

.takeaway-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.8rem 0;
}
.takeaway-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(91, 159, 166, 0.06);
  border-left: 2px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.takeaway-item__num {
  font-family: 'Newsreader', serif;
  font-size: 1.3rem;
  color: var(--teal);
  flex-shrink: 0;
  line-height: 1;
}
.takeaway-item__text {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
}

/* =========================================================
   RESOURCES PAGE
   ========================================================= */
.scene--resources { background: var(--bg); }
.scene--resources::before { display: none; }
.resources-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 11vh 6vw 8vh;
  min-height: 100vh;
  box-sizing: border-box;
}
.resource-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 200ms var(--easing);
}
.resource-card:hover {
  border-color: var(--gold);
  background: rgba(196, 163, 95, 0.04);
  transform: translateY(-1px);
}
.resource-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(196, 163, 95, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resource-card__icon svg { width: 22px; height: 22px; }
.resource-card__body h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.resource-card__body p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.resource-card__type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

/* Title screen */
.scene--title {
  background: radial-gradient(ellipse at center top, #1c1d35 0%, #0f0f1a 60%);
}
.scene--title::before { display: none; }

.title-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 6vh 6vw 5vh;
  text-align: left;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
/* Shrink headline on short viewports so content fits comfortably */
@media (max-height: 820px) {
  .title-head { font-size: clamp(2.4rem, 6vw, 4.4rem) !important; }
  .title-sub { font-size: 1.05rem; }
  .title-content { padding-top: 4vh; padding-bottom: 3vh; }
}
.title-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.title-head {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.title-head em { color: var(--gold-bright); font-style: italic; }
.title-sub {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 1rem;
}
.title-mod {
  font-size: 0.95rem;
  color: var(--text-mute);
  margin-bottom: 3rem;
}
.title-foot {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 1.6em;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--radius);
  transition: all 220ms var(--easing);
  border: 0.5px solid transparent;
}
.btn--primary {
  background: var(--gold);
  color: #1a1410;
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
}

/* Hotspots */
.scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  cursor: pointer;
  z-index: 3;
}
.hotspot.is-disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.hotspot-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow:
    0 0 0 4px rgba(196, 163, 95, 0.55),
    0 0 0 14px rgba(196, 163, 95, 0.22),
    0 4px 14px rgba(0, 0, 0, 0.4);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(196, 163, 95, 0.55),
      0 0 0 14px rgba(196, 163, 95, 0.22),
      0 4px 14px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(196, 163, 95, 0.7),
      0 0 0 22px rgba(196, 163, 95, 0.28),
      0 6px 18px rgba(0, 0, 0, 0.5);
  }
}
.hotspot-label {
  background: rgba(15, 15, 26, 0.95);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 0.5px solid var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  /* Always visible so players know what to click */
}
.hotspot:hover .hotspot-dot {
  transform: scale(1.15);
  transition: transform 220ms var(--easing);
}
.hotspot.is-completed .hotspot-dot {
  background: var(--teal);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 0 4px rgba(91, 159, 166, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.4);
  animation: none;
}
.hotspot.is-completed .hotspot-label {
  border-color: var(--teal);
  color: var(--teal);
  opacity: 0.85;
}

/* Caption bar */
.caption-bar {
  position: absolute;
  left: 50%;
  bottom: 7rem;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(8px);
  padding: 1rem 1.6rem;
  border-radius: var(--radius);
  border: 0.5px solid var(--line);
  max-width: 580px;
  text-align: center;
}
.caption-bar p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  font-family: 'Newsreader', serif;
}

/* Action tray */
.action-tray {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 4;
  background: rgba(28, 29, 53, 0.96);
  backdrop-filter: blur(12px);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--line);
  max-width: 760px;
  width: calc(100% - 3rem);
  box-shadow: var(--shadow-lg);
  animation: slideUp 480ms var(--easing) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.action-tray__prompt {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: center;
}
.action-tray__buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 280ms var(--easing) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUpModal 380ms var(--easing) both;
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  z-index: 2;
}
.modal__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

/* Case file */
.casefile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}
.casefile__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.casefile__body { padding: 1.8rem 2rem 1.8rem 1.6rem; }
.casefile__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.casefile__pof {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}
.casefile h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.casefile__demo {
  font-size: 0.95rem;
  color: var(--text-mute);
  margin-bottom: 1.4rem;
}
.casefile__facts {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.casefile__facts dt {
  color: var(--text-mute);
  font-weight: 500;
}
.casefile__facts dd { color: var(--text); }
.casefile__note {
  background: rgba(196, 163, 95, 0.08);
  border-left: 2px solid var(--gold);
  padding: 0.9rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.casefile__note em { color: var(--text); font-style: italic; }

/* Voicemail */
.modal__panel--voicemail { max-width: 540px; padding: 2.2rem 2rem 1.8rem; }
.voicemail__from {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.voicemail__caller {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}
.voicemail__transcript {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 1.2rem 0 1.4rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

audio { width: 100%; margin-bottom: 0.5rem; }
audio::-webkit-media-controls-panel { background: var(--surface-2); }

/* Outcome screens */
.scene--outcome { background: var(--bg); }
.scene--outcome::before { display: none; }
.outcome-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 12vh 6vw 8vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.outcome-time {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.outcome-content h2 {
  font-family: 'Newsreader', serif;
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.outcome-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 2rem;
}

/* Motel video moment */
.video-moment {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(15, 15, 26, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  gap: 1.5rem;
  animation: fadeIn 480ms var(--easing) both;
}
.video-moment__frame {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 920px;
  box-shadow: var(--shadow-lg);
}
#kathy-media-slot {
  width: 320px;
  height: 400px;
  background: #000;
  position: relative;
  overflow: hidden;
}
#kathy-media-slot img,
#kathy-media-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#kathy-media-slot img.has-kenburns {
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.06) translate(-1.5%, -1.5%); }
}
.video-moment__caption {
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.speaker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.quote {
  font-family: 'Newsreader', serif;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
}
.quote::before { content: '“'; color: var(--gold); margin-right: 0.1em; }
.quote::after { content: '”'; color: var(--gold); margin-left: 0.05em; }

/* Debrief dialogue card */
.dialogue-card {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(28, 29, 53, 0.97);
  backdrop-filter: blur(12px);
  padding: 1.8rem 2rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--line);
  max-width: 720px;
  width: calc(100% - 3rem);
  box-shadow: var(--shadow-lg);
  animation: slideUp 600ms var(--easing) both;
}
.dialogue-card__header { margin-bottom: 1rem; }
.speaker-tag {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.speaker-tag__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8a6a3a);
  color: #1a1410;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.speaker-tag__name {
  font-weight: 600;
  font-size: 0.98rem;
}
.speaker-tag__role {
  font-size: 0.82rem;
  color: var(--text-mute);
}
.dialogue-card__text {
  font-family: 'Newsreader', serif;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
  min-height: 4em;
}
.dialogue-card__audio { margin-bottom: 1.2rem; }

/* Chart panel */
.chart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 380px;
  background: rgba(28, 29, 53, 0.97);
  backdrop-filter: blur(12px);
  border-left: 0.5px solid var(--line);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 400ms var(--easing);
  display: flex;
  flex-direction: column;
}
.chart-panel.is-open { transform: translateX(0); }
.chart-panel__toggle {
  position: absolute;
  left: -56px;
  top: 1.5rem;
  width: 56px;
  background: rgba(28, 29, 53, 0.97);
  border: 0.5px solid var(--line);
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding: 1rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  cursor: pointer;
}
.chart-panel.is-open .chart-panel__toggle {
  /* When panel is open, toggle stays at its same -56px left so it remains the click handle */
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.chart-panel__count {
  background: var(--gold);
  color: #1a1410;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.chart-panel__body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.chart-panel__header { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 0.5px solid var(--line); }
.chart-panel__name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.chart-panel__meta {
  font-size: 0.78rem;
  color: var(--text-mute);
}
.chart-panel__entries {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.chart-entry {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--teal);
  padding: 0.8rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: slideIn 360ms var(--easing) both;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
.chart-entry__time {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.chart-entry__text { color: var(--text); margin-bottom: 0.4rem; }
.chart-entry__cite {
  font-size: 0.74rem;
  color: var(--gold);
  font-style: italic;
}

/* Chart review (end screen) */
.scene--chart-review { background: var(--bg); display: none; }
.scene--chart-review.is-active { display: block; min-height: 100vh; }
.scene--chart-review::before { display: none; }
.chart-review-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 6vh 6vw 6vh;
}
.chart-review__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.chart-review-content h2 {
  font-family: 'Newsreader', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.chart-review__hint {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  max-width: 640px;
}
.chart-review__entries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}
.chart-review__entries .chart-entry {
  background: var(--surface);
  border-left-width: 3px;
  padding: 1.2rem 1.4rem;
  font-size: 0.96rem;
}
.chart-review__entries .chart-entry__time { font-size: 0.8rem; }
.chart-review__entries .chart-entry__cite { font-size: 0.82rem; }
.chart-review__footer {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.chart-review__footer p { font-size: 1rem; line-height: 1.6; color: var(--text-soft); margin-bottom: 1.5rem; }

/* HUD — meters, cinema beats, marquee — shared across all modules */

.hud-meter {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin: 0.65rem 0;
  transition: transform 0.3s ease;
}
.hud-meter.is-rising { transform: translateY(-2px); border-color: var(--teal); }
.hud-meter.is-falling { transform: translateY(2px); border-color: #d96666; }
.hud-meter__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.hud-meter__lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-mute); }
.hud-meter__val { font-family: 'Newsreader', serif; font-size: 1.2rem; color: var(--text); }
.hud-meter__bar { background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; height: 6px; }
.hud-meter__bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width 0.55s ease; }
.hud-meter--trust .hud-meter__bar > span { background: linear-gradient(90deg, #6f9bcf, #c4a35f); }
.hud-meter__hint { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--text-soft); }

.hud-stress {
  position: fixed; top: 12px; right: 12px; z-index: 70;
  background: rgba(15, 15, 26, 0.85);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  min-width: 130px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.hud-stress.is-high { border-color: rgba(217, 102, 102, 0.5); color: #f3c5c5; }
.hud-stress.is-critical { border-color: #d96666; color: #ffd0d0; animation: stressPulse 1.6s ease-in-out infinite; }
@keyframes stressPulse { 50% { box-shadow: 0 0 18px rgba(217,102,102,0.45); } }
.hud-stress__row { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; }
.hud-stress__lbl { letter-spacing: 0.16em; text-transform: uppercase; flex: 1; }
.hud-stress__bar { background: rgba(255, 255, 255, 0.07); border-radius: 999px; overflow: hidden; height: 4px; }
.hud-stress__bar > span { display: block; height: 100%; background: linear-gradient(90deg, #6fa8c1, #d96666); transition: width 0.45s ease; }

.hud-break {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 15, 26, 0.78);
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.hud-break__card {
  max-width: 420px; padding: 2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  text-align: center;
}
.hud-break__eyebrow { font-size: 0.75rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.18em; }
.hud-break__h { font-family: 'Newsreader', serif; font-size: 1.8rem; margin: 0.4rem 0 1rem; }
.hud-break__actions { display: flex; gap: 0.7rem; justify-content: center; margin-top: 1.4rem; }

.pam-panel {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0.9rem 1rem;
}
.pam-panel__eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-mute); margin-bottom: 0.7rem; }
.pam-panel__levels { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.pam-level { display: grid; grid-template-columns: 28px 1fr 14px; gap: 0.7rem; align-items: center; padding: 0.45rem 0.55rem; border-radius: 8px; transition: background 0.4s ease; }
.pam-level__num { font-family: 'Newsreader', serif; font-size: 1.4rem; color: var(--text-mute); }
.pam-level__lbl { margin: 0; font-size: 0.92rem; color: var(--text); }
.pam-level__cue { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--text-soft); }
.pam-level__lit { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.07); }
.pam-level.is-lit { background: rgba(196, 163, 95, 0.10); }
.pam-level.is-lit .pam-level__num { color: var(--gold-bright); }
.pam-level.is-lit .pam-level__lit { background: var(--gold-bright); box-shadow: 0 0 12px var(--gold-bright); }
.pam-panel__note { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--text-soft); font-style: italic; }

.cinema {
  position: fixed; inset: 0; z-index: 60;
  opacity: 0; transition: opacity 0.32s ease;
  display: grid; place-items: end center;
  pointer-events: none;
}
.cinema.is-on { opacity: 1; pointer-events: auto; }
.cinema__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: kenBurns 14s ease-in-out infinite alternate; }
@keyframes kenBurns { from { transform: scale(1.05) translateX(-2%); } to { transform: scale(1.18) translateX(2%); } }
.cinema__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,26,0.05), rgba(15,15,26,0.85)); }
.cinema__portrait { position: absolute; bottom: 8rem; left: 6vw; width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); box-shadow: 0 14px 60px rgba(0,0,0,0.55); }
.cinema__caption { position: relative; max-width: 720px; padding: 0 5vw 9vh; text-align: left; }
.cinema__eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-bright); }
.cinema__title { font-family: 'Newsreader', serif; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; margin: 0.3rem 0 0.7rem; color: #fff; }
.cinema__transcript { font-size: 1.05rem; line-height: 1.6; color: var(--text); background: rgba(0,0,0,0.42); border-left: 3px solid var(--gold); padding: 0.7rem 1rem; border-radius: 6px; }
.cinema__audio { position: absolute; bottom: 4vh; right: 5vw; width: 280px; max-width: 38vw; opacity: 0.92; }
.cinema__skip { position: absolute; top: 18px; right: 18px; background: rgba(0,0,0,0.5); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.78rem; cursor: pointer; }
.cinema__skip:hover { background: rgba(0,0,0,0.7); }

.hud-marquee {
  position: fixed; bottom: 18px; left: 50%; transform: translate(-50%, 18px);
  background: rgba(15, 15, 26, 0.92); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.6rem 1.2rem; font-size: 0.86rem; color: var(--text);
  z-index: 75; opacity: 0; transition: all 0.36s ease;
  backdrop-filter: blur(4px);
}
.hud-marquee.is-on { transform: translate(-50%, 0); opacity: 1; }

/* M02 Scenario application + Reformat-the-bad-note + Transfer probe + Recap + Monday */

.m02-scenario, .transfer-task, .m12-reformat-stage {
  padding: 1.5rem;
  display: grid;
  place-items: center;
}
.m02-scenario-card, .m12-reformat-card, .m12-bad-note {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 2rem;
}
.m02-scenario-situation, .m12-bad-note blockquote {
  font-size: 1.05rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  margin: 0.6rem 0;
}
.m02-scenario-prompt { margin: 0.9rem 0 0.6rem; color: var(--text); }
.m02-scenario-choices, .transfer-options { display: grid; gap: 0.55rem; margin: 0.6rem 0; }
.m05-choice.is-correct { border-color: var(--teal); background: rgba(91, 159, 166, 0.10); }
.m05-choice.is-off { border-color: #d96666; background: rgba(217, 102, 102, 0.06); }
.m05-choice.is-warn { border-color: var(--gold); background: rgba(196, 163, 95, 0.06); }

.m12-reformat-original {
  font-style: italic;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.7rem 1rem;
  border-left: 3px solid #d96666;
  border-radius: 4px;
  margin: 0.5rem 0;
}
.m12-reformat-why { font-size: 0.95rem; color: var(--text-soft); margin: 0.5rem 0 1rem; }

.m12-bad-note-hint { font-size: 0.9rem; color: var(--text-soft); margin-top: 0.5rem; }

/* M11 pipeline visualization */
.m11-pipeline-status {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; gap: 0.4rem;
}
.m11-pipeline-pip {
  display: grid; place-items: center; gap: 0.25rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line); border-radius: 10px;
  min-width: 92px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  transition: all 0.3s ease;
}
.m11-pipeline-pip-num {
  font-family: 'Newsreader', serif;
  font-size: 1.3rem; color: var(--text-mute);
}
.m11-pipeline-pip-lbl { font-size: 0.78rem; color: var(--text-soft); }
.m11-pipeline-pip.is-current { border-color: var(--gold); background: rgba(196, 163, 95, 0.08); }
.m11-pipeline-pip.is-current .m11-pipeline-pip-num { color: var(--gold-bright); }
.m11-pipeline-pip.is-done { border-color: var(--teal); background: rgba(91, 159, 166, 0.08); }
.m11-pipeline-pip.is-done .m11-pipeline-pip-num { color: var(--teal); }
.m11-pipeline-pip.is-done .m11-pipeline-pip-num::after { content: ' ✓'; }
.m11-pipeline-arrow {
  width: 32px; height: 1px;
  background: linear-gradient(90deg, var(--line), var(--text-mute));
}
.m11-call-card {
  max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem 2rem;
}
.m11-call-job { font-size: 0.92rem; color: var(--text-soft); margin: 0.4rem 0 0.9rem; }
.m11-call-prompt { margin: 0.9rem 0 0.5rem; }
.m11-call-options { display: grid; gap: 0.55rem; }
.m11-call-result { margin-top: 0.5rem; color: var(--text-soft); font-size: 0.92rem; }

/* M08 PAM panel mount */
.m08-pam-mount {
  position: absolute; top: 1rem; right: 1rem;
  width: 320px;
  z-index: 5;
}

.m08-q-choices, .m08-pam-buttons { display: grid; gap: 0.5rem; }
.m08-mei-response { background: rgba(196, 163, 95, 0.06); border-left: 3px solid var(--gold); padding: 0.7rem 1rem; border-radius: 4px; margin-top: 0.6rem; }
.m08-score-card { margin-top: 1rem; padding: 0.8rem 1rem; background: rgba(255, 255, 255, 0.03); border-radius: 8px; }

/* Marisol Mondays */
.monday-pop {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(15, 15, 26, 0.78);
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.4s ease;
}
.monday-pop.is-on { opacity: 1; }
.monday-card {
  max-width: 600px; margin: 0 1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 2rem;
  display: grid; grid-template-columns: 100px 1fr; gap: 1.5rem; align-items: start;
}
.monday-portrait { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.monday-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-bright); }
.monday-title { font-family: 'Newsreader', serif; font-size: 1.7rem; line-height: 1.2; margin: 0.4rem 0 0.7rem; }
.monday-text { line-height: 1.65; color: var(--text); }
.monday-chart-pull {
  margin-top: 1rem; padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
}
.monday-chart-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-mute); margin: 0; }
.monday-chart-text { font-size: 0.92rem; color: var(--text-soft); margin: 0.3rem 0 0; }
.monday-actions { margin-top: 1.2rem; display: flex; justify-content: flex-end; }
@media (max-width: 600px) {
  .monday-card { grid-template-columns: 1fr; text-align: center; }
  .monday-portrait { margin: 0 auto; }
}

/* Transfer probe */
.transfer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  overflow-y: auto;
  padding: 1.5rem;
}
.transfer-header { padding: 0.5rem 1rem 1.5rem; }
.transfer-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-bright); }
.transfer-title { font-family: 'Newsreader', serif; font-size: 2rem; margin: 0.4rem 0 0; }
.transfer-intro, .transfer-task, .transfer-done {
  max-width: 760px; margin: 0 auto;
  padding: 1.5rem;
}
.transfer-member-card {
  background: var(--surface); border: 1px solid var(--gold);
  border-radius: 12px; padding: 1.2rem 1.5rem; margin: 1rem 0;
}
.transfer-mc-name { font-family: 'Newsreader', serif; font-size: 1.3rem; margin: 0; }
.transfer-mc-meta { color: var(--text-mute); margin: 0.3rem 0 0.7rem; font-size: 0.9rem; }
.transfer-mc-summary { color: var(--text-soft); line-height: 1.6; margin: 0; }
.transfer-intro-hint, .transfer-fb { margin-top: 1rem; }
.transfer-monday-questions { display: grid; gap: 1.2rem; margin: 1rem 0; }
.transfer-mq { display: grid; gap: 0.4rem; }
.transfer-mq-label { font-size: 0.85rem; color: var(--gold-bright); }
.transfer-mq-input {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.8rem 1rem; font: inherit; resize: vertical;
}
.transfer-mq-input:focus { border-color: var(--gold); outline: none; }
.transfer-goals { display: grid; gap: 0.55rem; margin: 1rem 0; }
.m06-goal.is-picked, .m11-cs.is-correct { border-color: var(--teal); background: rgba(91, 159, 166, 0.10); }
.transfer-done-h { font-family: 'Newsreader', serif; font-size: 1.5rem; }

/* Recap reel */
.recap {
  position: fixed; inset: 0; z-index: 85;
  background: linear-gradient(180deg, #0a0a18, #14142a);
  display: grid; place-items: center;
}
.recap-stage { display: grid; gap: 1.5rem; padding: 2rem; max-width: 820px; }
.recap-progress { display: flex; gap: 4px; justify-content: center; }
.recap-pip { width: 18px; height: 3px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; transition: all 0.3s ease; }
.recap-pip.is-current { background: var(--gold-bright); width: 36px; }
.recap-pip.is-done { background: rgba(196, 163, 95, 0.4); }
.recap-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 163, 95, 0.18);
  border-radius: 18px;
  padding: 2rem 2.5rem;
  min-height: 260px;
  animation: recapIn 0.5s ease;
}
@keyframes recapIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.recap-card--opener, .recap-card--closer { background: linear-gradient(135deg, rgba(91, 159, 166, 0.10), rgba(196, 163, 95, 0.10)); }
.recap-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold-bright); }
.recap-title { font-family: 'Newsreader', serif; font-size: 2.1rem; line-height: 1.15; margin: 0.5rem 0 1rem; }
.recap-body { color: var(--text-soft); line-height: 1.7; }
.recap-controls { display: flex; gap: 0.6rem; justify-content: space-between; }
.recap-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text); padding: 0.6rem 1.1rem; border-radius: 8px; font: inherit; cursor: pointer; }
.recap-btn:hover { background: rgba(255, 255, 255, 0.08); }
.recap-btn--primary { background: var(--gold); border-color: var(--gold); color: #0a0a18; font-weight: 600; }
.recap-btn--primary:hover { background: var(--gold-bright); }
.recap-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* M11 cs grid styling */
.m11-cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; margin-top: 0.8rem; }
.m11-cs { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text); padding: 0.85rem 1rem; border-radius: 10px; cursor: pointer; text-align: left; font: inherit; }
.m11-cs:hover { border-color: var(--gold); }
.m11-cs.is-correct { border-color: var(--teal); background: rgba(91, 159, 166, 0.10); }
.m11-cs.is-off { border-color: #d96666; opacity: 0.6; }
.m11-cs-hint { font-size: 0.8rem; color: var(--text-mute); margin: 0.4rem 0 0; font-style: italic; }

/* Audio transcript caption — applied to .m##-cap across every module so
   auto-play Marisol audio always has a visible transcript beside it for
   accessibility (Bridgepoint pilot ADA requirement). */
.m07-cap, .m08-cap, .m09-cap, .m10-cap, .m11-cap, .m12-cap {
  display: block;
  margin-top: 0.5rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-style: normal;
}
.m07-cap em, .m08-cap em, .m09-cap em, .m10-cap em, .m11-cap em, .m12-cap em {
  color: var(--text);
}

/* Responsive */
@media (max-width: 760px) {
  .casefile { grid-template-columns: 1fr; }
  .casefile__photo { height: 240px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .video-moment__frame { grid-template-columns: 1fr; }
  #kathy-media-slot { width: 100%; height: 280px; }
  .chart-panel { width: 100%; }
  .title-head { font-size: 3rem; }
}

/* Phone widths: the fixed right-edge HUD (Chart tab at top 24px, height 84px;
   stress meter at top 12px) sits over the home header band. Push the home
   content down so the eyebrow and heading start below both pills, and slide
   the stress meter left of the Chart tab so the two pills never stack. */
@media (max-width: 480px) {
  .home-content { padding-top: 122px; }
  .hud-stress { right: 68px; min-width: 0; }
}
