/* ============================================================
   PRACTICE THE PAUSE — Training Platform
   Layout: Sidebar + Main content, single-module view
   ============================================================ */

[hidden] { display: none !important; }

/* --- Access Gate --- */
.access-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: var(--bg);
}

.access-gate__card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
}

.access-gate__icon {
  margin-bottom: var(--space-xl);
  color: var(--accent);
}

.access-gate__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.access-gate__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.access-gate__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.access-gate__input-wrap { position: relative; }

.access-gate__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  min-height: 48px;
}

.access-gate__input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.access-gate__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 75, 42, 0.07);
}

.access-gate__input--error { border-color: var(--red); }
.access-gate__input--error:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06); }

.access-gate__error {
  font-size: 0.82rem;
  color: var(--red);
  margin-top: var(--space-sm);
  text-align: left;
}

.access-gate__help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-lg);
}


/* ============================================================
   TRAINING APP LAYOUT
   ============================================================ */
.t {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
}


/* ============================================================
   SIDEBAR
   ============================================================ */
.t-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--nav-h);
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
}

.t-sidebar__head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.t-sidebar__progress-ring {
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
}

.t-sidebar__progress-ring svg {
  width: 100%;
  height: 100%;
}

.t-sidebar__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
}

.t-sidebar__label {
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
}

.t-sidebar__sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Nav items */
.t-sidebar__nav {
  flex: 1;
  padding: var(--space-sm) 0;
}

.t-sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 12px var(--space-lg);
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-mid);
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.t-sidebar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.t-sidebar__item:hover {
  background: var(--bg);
  color: var(--text);
}

.t-sidebar__item.is-active {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
}

.t-sidebar__item.is-active::before {
  opacity: 1;
}

.t-sidebar__num {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 22px;
}

.t-sidebar__item.is-active .t-sidebar__num {
  color: var(--accent);
}

.t-sidebar__name {
  flex: 1;
}

.t-sidebar__check {
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.2s;
}

.t-sidebar__item.is-complete .t-sidebar__check {
  opacity: 1;
  color: var(--green);
}

/* Simulator link at bottom */
.t-sidebar__foot {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.t-sidebar__sim {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(199, 75, 42, 0.2);
  transition: background 0.2s, border-color 0.2s;
  justify-content: center;
}

.t-sidebar__sim:hover {
  background: rgba(199, 75, 42, 0.06);
  border-color: rgba(199, 75, 42, 0.35);
  color: var(--accent);
}


/* ============================================================
   MOBILE SIDEBAR TOGGLE
   ============================================================ */
.t-mobile-toggle {
  display: none;
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  gap: var(--space-sm);
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */
.t-main {
  flex: 1;
  margin-left: 280px;
  min-height: calc(100vh - var(--nav-h));
}

.t-module {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-3xl);
}


/* ============================================================
   VIDEO PLAYER
   ============================================================ */
.t-video {
  margin-bottom: var(--space-xl);
}

.t-video__player {
  aspect-ratio: 16 / 9;
  background: var(--dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.t-video__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  cursor: pointer;
  transition: opacity 0.2s;
}

.t-video__placeholder:hover { opacity: 0.85; }

.t-video__play {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s, transform 0.2s;
}

.t-video__placeholder:hover .t-video__play {
  color: rgba(255,255,255,0.95);
  transform: scale(1.05);
}

.t-video__label {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

.t-video__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}

.t-video__tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.t-video__tag--foundation { background: rgba(199, 75, 42, 0.07); color: var(--accent); }
.t-video__tag--science { background: rgba(26, 122, 109, 0.06); color: var(--teal); }
.t-video__tag--interactive { background: rgba(37, 99, 235, 0.06); color: #2563EB; }
.t-video__tag--credentials { background: rgba(184, 134, 11, 0.06); color: var(--amber); }
.t-video__tag--response { background: rgba(220, 38, 38, 0.06); color: var(--red); }
.t-video__tag--habit { background: rgba(46, 125, 82, 0.06); color: var(--green); }

.t-video__duration {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}


/* ============================================================
   MODULE CONTENT
   ============================================================ */
.t-content__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.t-content__intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  max-width: 560px;
}

/* Sections */
.t-section {
  margin-bottom: var(--space-2xl);
}

.t-section__heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.t-section__heading svg {
  color: var(--accent);
  flex-shrink: 0;
}


/* ============================================================
   LEARNING OBJECTIVES
   ============================================================ */
.t-objectives {
  display: grid;
  gap: var(--space-sm);
}

.t-objective {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.t-objective__num {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 24px;
  padding-top: 2px;
}

.t-objective p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
}


/* ============================================================
   CALLOUT / KEY CONCEPT
   ============================================================ */
.t-callout {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--radius);
  padding: var(--space-xl);
}

.t-callout--accent {
  border-left-color: var(--accent);
  background: rgba(199, 75, 42, 0.04);
}

.t-callout__title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.t-callout p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}


/* ============================================================
   CASE STUDIES
   ============================================================ */
.t-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.t-case {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.t-case__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.t-case__badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(220, 38, 38, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}

.t-case__company {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.t-case__body {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.t-case__stat {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.t-case__stat strong {
  color: var(--text-mid);
}


/* ============================================================
   P.A.U.S.E. FRAMEWORK — Dark editorial treatment
   ============================================================ */
.t-framework-wrap {
  background: var(--dark, #141210);
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-2xl) var(--space-xl);
  margin: 0 calc(-1 * var(--space-xl));
}

.t-framework-wrap .t-section__heading {
  color: #F2ECE4;
  border-bottom-color: rgba(242, 236, 228, 0.1);
}

.t-framework-wrap .t-section__heading svg {
  color: var(--accent);
}

.t-framework {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.t-framework--5 {
  grid-template-columns: repeat(5, 1fr);
}

.t-framework__step {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: rgba(242, 236, 228, 0.04);
  border: 1px solid rgba(242, 236, 228, 0.08);
  border-radius: var(--radius, 8px);
  transition: border-color 0.2s, background 0.2s;
}

.t-framework__step:hover {
  background: rgba(242, 236, 228, 0.07);
  border-color: rgba(199, 75, 42, 0.3);
}

.t-framework__letter {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.t-framework__step strong {
  font-size: 0.92rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #F2ECE4;
}

.t-framework__step p {
  font-size: 0.78rem;
  color: rgba(242, 236, 228, 0.45);
  line-height: 1.55;
}


/* ============================================================
   TRIGGERS GRID
   ============================================================ */
.t-triggers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.t-trigger {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.t-trigger__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: var(--space-sm);
}

.t-trigger__icon--red {
  background: rgba(220, 38, 38, 0.06);
  color: var(--red);
}

.t-trigger strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

.t-trigger p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}


/* ============================================================
   INTERACTIVE SCENARIO / QUIZ
   ============================================================ */
.t-scenario {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.t-scenario__prompt {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--dark);
  color: #F2ECE4;
}

.t-scenario__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(199, 75, 42, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-scenario__prompt p {
  font-size: 0.95rem;
  line-height: 1.6;
  padding-top: 6px;
}

.t-quiz {
  padding: var(--space-lg);
}

.t-quiz__options {
  display: grid;
  gap: var(--space-sm);
}

.t-quiz__option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.55;
  min-height: 48px;
}

.t-quiz__option:hover {
  border-color: var(--border-dark);
  background: var(--bg-alt);
}

.t-quiz__option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.t-quiz__radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.t-quiz__option:hover .t-quiz__radio {
  border-color: var(--accent);
}

.t-quiz__option input:checked ~ .t-quiz__radio {
  border-color: var(--accent);
  background: var(--accent);
}

.t-quiz__option input:checked ~ .t-quiz__radio::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* Quiz states */
.t-quiz__option--correct {
  border-color: var(--green) !important;
  background: rgba(46, 125, 82, 0.04) !important;
}

.t-quiz__option--correct .t-quiz__radio {
  border-color: var(--green) !important;
  background: var(--green) !important;
}

.t-quiz__option--wrong {
  border-color: var(--red) !important;
  background: rgba(220, 38, 38, 0.04) !important;
}

.t-quiz__option--wrong .t-quiz__radio {
  border-color: var(--red) !important;
  background: var(--red) !important;
}

.t-quiz__feedback {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.55;
}

.t-quiz__feedback--correct {
  background: rgba(46, 125, 82, 0.06);
  border: 1px solid rgba(46, 125, 82, 0.2);
  color: var(--green);
}

.t-quiz__feedback--wrong {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--red);
}


/* ============================================================
   CHECKLIST (interactive)
   ============================================================ */
.t-checklist {
  display: grid;
  gap: var(--space-sm);
}

.t-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.t-checklist__item:hover {
  border-color: var(--border-dark);
}

.t-checklist__item input { display: none; }

.t-checklist__box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-dark);
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-checklist__item input:checked ~ .t-checklist__box {
  background: var(--green);
  border-color: var(--green);
}

.t-checklist__item input:checked ~ .t-checklist__box::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.t-checklist__item input:checked ~ span:last-child {
  text-decoration: line-through;
  color: var(--text-muted);
}


/* ============================================================
   TIMELINE
   ============================================================ */
.t-timeline {
  position: relative;
  padding-left: 44px;
}

.t-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.t-timeline__step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

.t-timeline__step:last-child { margin-bottom: 0; }

.t-timeline__marker {
  position: absolute;
  left: -44px;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}

.t-timeline__step strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.t-timeline__step p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.55;
}


/* ============================================================
   30-DAY CHALLENGE
   ============================================================ */
.t-challenge {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.t-challenge__week {
  padding: var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.t-challenge__badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
}

.t-challenge__week p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}


/* ============================================================
   MODULE ACTIONS
   ============================================================ */
.t-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.t-actions__complete[data-done="true"] {
  background: var(--green);
  pointer-events: none;
}

.t-actions__next {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}


/* ============================================================
   MODULE SCROLL PROGRESS BAR
   ============================================================ */
.t-progress-bar {
  position: fixed;
  top: var(--nav-h);
  left: 280px;
  right: 0;
  height: 3px;
  background: var(--border-light);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s;
}

.t-progress-bar.is-visible { opacity: 1; }

.t-progress-bar__fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}


/* ============================================================
   DID YOU KNOW? STAT CALLOUT
   ============================================================ */
.t-stat-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--dark);
  color: #F2ECE4;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.t-stat-callout__number {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 80px;
}

.t-stat-callout__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 236, 228, 0.4);
  display: block;
  margin-bottom: var(--space-xs, 4px);
}

.t-stat-callout__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(242, 236, 228, 0.85);
}


/* ============================================================
   EXPANDABLE DEEP-DIVE
   ============================================================ */
.t-expand {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.t-expand__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.15s;
}

.t-expand__trigger:hover { background: var(--bg-alt, rgba(0,0,0,0.02)); }

.t-expand__icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out, ease);
  flex-shrink: 0;
}

.t-expand.is-open .t-expand__icon {
  transform: rotate(180deg);
}

.t-expand__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out, ease);
}

.t-expand.is-open .t-expand__body {
  max-height: 600px;
}

.t-expand__inner {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.t-expand__inner p + p { margin-top: var(--space-md); }


/* ============================================================
   PULL QUOTE
   ============================================================ */
.t-pull-quote {
  padding: var(--space-xl) 0;
  margin: var(--space-lg) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.t-pull-quote__text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  max-width: 540px;
  margin: 0 auto var(--space-sm);
}

.t-pull-quote__attr {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ============================================================
   MODULE COMPLETION CELEBRATION
   ============================================================ */
.t-celebration {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  display: none;
}

.t-celebration.is-visible { display: block; }

.t-celebration__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: rgba(46, 125, 82, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  animation: t-celebrate-pop 0.5s var(--ease-out, ease) both;
}

@keyframes t-celebrate-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.t-celebration__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.t-celebration__sub {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: var(--space-xl);
}

.t-celebration__score {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: var(--space-xl);
}

.t-celebration__score-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
  font-weight: 600;
}

.t-celebration__score-val {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--green);
}


/* ============================================================
   ALL-COMPLETE CERTIFICATE
   ============================================================ */
.t-certificate {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  margin: var(--space-xl);
  display: none;
}

.t-certificate.is-visible { display: block; }

.t-certificate__badge {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  color: var(--accent);
}

.t-certificate__title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.t-certificate__sub {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: var(--space-lg);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}


/* ============================================================
   VIDEO PLACEHOLDER UPGRADE
   ============================================================ */
.t-video__player {
  background: linear-gradient(135deg, #1a1816 0%, #2a2420 50%, #1a1816 100%);
}

.t-video__chapters {
  display: flex;
  gap: 3px;
  padding: 0 var(--space-lg);
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
}

.t-video__chapter {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.t-video__duration-overlay {
  position: absolute;
  bottom: 16px;
  right: var(--space-lg);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.4);
  padding: 2px 8px;
  border-radius: 4px;
}


/* ============================================================
   SECTION REVEAL ANIMATION
   ============================================================ */
.t-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.t-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .t-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-out);
  }

  .t-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
  }

  .t-main {
    margin-left: 0;
  }

  .t-mobile-toggle {
    display: flex;
  }

  .t-progress-bar {
    left: 0;
  }
}

@media (max-width: 768px) {
  .t-module {
    padding: 0 var(--space-lg) var(--space-2xl);
  }

  .t-cases {
    grid-template-columns: 1fr;
  }

  .t-framework,
  .t-framework--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .t-framework-wrap {
    margin: 0 calc(-1 * var(--space-lg));
    padding: var(--space-xl) var(--space-lg);
  }

  .t-triggers {
    grid-template-columns: 1fr;
  }

  .t-challenge {
    grid-template-columns: 1fr;
  }

  .t-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .t-actions__next {
    justify-content: center;
  }

  .t-video__player {
    border-radius: var(--radius);
  }

  .t-stat-callout {
    flex-direction: column;
    gap: var(--space-md);
  }

  .t-stat-callout__number {
    min-width: auto;
  }
}
