/* ═══════════════════════════════════════════════════════════════
   Views — agenda, themes (picker + workspace), immersion, debrief.
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   AGENDA
   Rebuilt as real markup. The original was a flat GIF with
   percentage-positioned invisible hotspots (design §5.2) — the
   hotspots drifted from the artwork and nothing was selectable
   or screen-readable. Same content, now actual type.
   ─────────────────────────────────────────────────────────────── */

.agenda-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--gutter); flex-wrap: wrap;
  padding-bottom: clamp(18px, 2.4vh, 30px);
  border-bottom: 1px solid var(--ink);
}
.agenda-h1 {
  font-size: var(--t-800);
  max-width: 14ch;
}
.agenda-meta {
  text-align: right; font-size: var(--t-100); color: var(--stone);
  line-height: 1.5;
}

.agenda-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.agenda-block {
  display: flex; flex-direction: column;
  gap: clamp(14px, 1.8vh, 22px);
  padding: clamp(24px, 3.2vh, 42px) clamp(20px, 2vw, 36px)
           clamp(28px, 3.6vh, 48px) 0;
  border-right: 1px solid var(--line);
  text-align: left; background: none; border-top: 0; border-bottom: 0;
  border-left: 0;
  transition: background var(--d-ui) var(--ease);
}
.agenda-block:last-child { border-right: 0; }
.agenda-block:not(.is-static):hover { background: var(--ink-03); }

.agenda-block__n {
  font-size: var(--t-700);
  color: var(--grey-2);
  transition: color var(--d-ui) var(--ease);
}
.agenda-block:not(.is-static):hover .agenda-block__n { color: var(--ink); }

.agenda-block__title {
  font-size: var(--t-500);
  max-width: 16ch;
}
.agenda-block__sub {
  font-size: var(--t-200); color: var(--stone); max-width: 32ch;
}

.agenda-block__go {
  margin-top: auto;
  font-size: var(--t-075); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.agenda-block__go::after {
  content: "→";
  transition: transform var(--d-ui) var(--ease);
}
.agenda-block:hover .agenda-block__go::after { transform: translateX(5px); }

/* The three themes, nested inside block 02 */
.agenda-themes {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.agenda-theme {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0;
  text-align: left;
  transition: padding-left var(--d-ui) var(--ease);
}
.agenda-theme:hover { padding-left: 8px; }
.agenda-theme__mark {
  width: 13px; height: 13px; flex: none;
  border: 1.5px solid var(--ink);
}
.agenda-theme__label {
  font-size: var(--t-200); font-weight: 600; line-height: 1.3;
}


/* ───────────────────────────────────────────────────────────────
   THEMES — PICKER
   ─────────────────────────────────────────────────────────────── */

.themes-intro { margin-bottom: clamp(22px, 3vh, 38px); }
.themes-intro h2 { font-size: var(--t-700); margin-top: 10px; max-width: 18ch; }
.themes-intro p  {
  font-size: var(--t-400); color: var(--stone);
  max-width: 54ch; margin-top: 12px;
}

.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 26vw, 400px), 1fr));
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--ink);
}

.tp-card {
  display: flex; flex-direction: column;
  background: var(--base); border: 0; padding: 0; text-align: left;
  transition: background var(--d-ui) var(--ease);
}
.tp-card:hover { background: var(--ink-03); }

.tp-card__img { display: block; position: relative;
  height: clamp(150px, 20vh, 220px); overflow: hidden; }
.tp-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: var(--clamp-thumb);
  transition: transform var(--d-ui) var(--ease);
}
.tp-card:hover .tp-card__img img { transform: scale(1.03); }

.tp-card__body {
  display: flex; flex-direction: column; gap: 10px; flex: 1;
  padding: clamp(18px, 2.4vh, 28px) clamp(18px, 1.8vw, 28px)
           clamp(20px, 2.8vh, 32px);
}
.tp-card__n { display: block; font-size: var(--t-200); color: var(--stone);
  font-variant-numeric: tabular-nums; }
.tp-card__name { display: block; font-size: var(--t-500); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.15; max-width: 15ch; }
.tp-card__sub { display: block; font-size: var(--t-200); color: var(--stone);
  max-width: 34ch; }
.tp-card__ambition { display: block; font-size: var(--t-300); font-weight: 600;
  padding-top: 12px; border-top: 1px solid var(--grid-line); }
.tp-metrics { display: flex; flex-direction: column; gap: 6px; }
.tp-metric { display: block; font-size: var(--t-200); padding-left: 14px;
  position: relative; }
.tp-metric::before { content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 1px; background: var(--grey-2); }
.tp-card__go { display: block; margin-top: auto; padding-top: 16px;
  font-size: var(--t-075); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase; }
.tp-card__go::after { content: " \2192"; display: inline-block;
  transition: transform var(--d-ui) var(--ease); }
.tp-card:hover .tp-card__go::after { transform: translateX(5px); }

.agenda-theme__n {
  font-family: var(--font-display); font-size: var(--t-050);
  font-weight: 800; letter-spacing: var(--tr-wide);
  color: var(--stone); flex: none; font-variant-numeric: tabular-nums;
  min-width: 30px;
}
.theme-pill__n {
  font-family: var(--font-display); font-size: var(--t-050);
  font-weight: 800; letter-spacing: var(--tr-wide);
  color: var(--grey-2); font-variant-numeric: tabular-nums;
}
.theme-pill[aria-selected="true"] .theme-pill__n { color: var(--theme-tone, var(--ink)); }

/* ───────────────────────────────────────────────────────────────
   THEMES — WORKSPACE
   ─────────────────────────────────────────────────────────────── */

.theme-strip {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: stretch;
  min-height: var(--stripH);
  padding: 0 var(--gutter);
  background: var(--base);
  border-bottom: 1px solid var(--ink);
}
.theme-back {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0 20px 0 0; margin-right: 20px;
  border-right: 1px solid var(--line);
  font-size: var(--t-075); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--stone); flex: none;
  transition: color var(--d-micro) var(--ease);
}
.theme-back:hover { color: var(--ink); }

.theme-pills { display: flex; align-items: stretch; gap: 0; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.theme-pills::-webkit-scrollbar { display: none; }

.theme-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 0 clamp(12px, 1.4vw, 22px);
  background: none; border: 0; border-bottom: 3px solid transparent;
  font-size: var(--t-200); font-weight: 600;
  color: var(--stone); white-space: nowrap;
  transition: color var(--d-micro) var(--ease),
              border-color var(--d-micro) var(--ease);
}
.theme-pill__mark { width: 11px; height: 11px; border: 1.5px solid currentColor; flex: none; }
.theme-pill:hover { color: var(--ink); }
.theme-pill[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--theme-tone, var(--ink)); }

.theme-body {
  display: flex; align-items: flex-start; gap: 0;
  max-width: var(--measure); margin: 0 auto;
  padding: 0 var(--gutter);
}

.theme-sidebar {
  flex: none; width: var(--sidebarW);
  position: sticky; top: var(--stripH);
  align-self: flex-start;
  padding: clamp(20px, 2.6vh, 32px) clamp(16px, 1.4vw, 26px)
           clamp(20px, 2.6vh, 32px) 0;
  border-right: 1px solid var(--line);
}
.theme-sidebar__label {
  font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--grey-2); margin-bottom: 14px;
}

.theme-page-btn {
  display: flex; align-items: flex-start; gap: 11px; width: 100%;
  padding: 11px 10px 11px 12px;
  background: none; border: 0; border-left: 2px solid var(--line);
  text-align: left;
  transition: background var(--d-micro) var(--ease),
              border-color var(--d-micro) var(--ease);
}
.theme-page-btn:hover { background: var(--ink-03); }
.theme-page-btn[aria-pressed="true"] {
  background: var(--theme-wash, var(--ink-03));
  border-left-color: var(--theme-tone, var(--ink));
}
.theme-page-btn__badge {
  font-family: var(--font-display);
  font-size: var(--t-050); font-weight: 800;
  letter-spacing: var(--tr-wide);
  color: var(--grey-2); flex: none; padding-top: 2px; min-width: 9px;
}
.theme-page-btn[aria-pressed="true"] .theme-page-btn__badge { color: var(--ink); }
/* display:block is load-bearing — these are <span> so the button can
   stay a button; inline elements ignore margin-top and run together. */
.theme-page-btn__title { display: block; font-size: var(--t-200); font-weight: 600; line-height: 1.3; }
.theme-page-btn__sub   { display: block; font-size: var(--t-050); color: var(--stone); margin-top: 3px; line-height: 1.35; }

.theme-content {
  flex: 1 1 auto; min-width: 0;
  padding: clamp(20px, 2.6vh, 32px) 0 clamp(48px, 6vh, 80px)
           clamp(20px, 2vw, 36px);
}

.sec-head { margin-bottom: clamp(18px, 2.4vh, 28px); }
.sec-head h2 { font-size: var(--t-600); margin-top: 8px; }
.sec-head p  { font-size: var(--t-300); color: var(--stone); margin-top: 8px; max-width: 56ch; }

/* ── Friction rows ───────────────────────────────────────────── */

.fr-list { border-top: 1px solid var(--ink); }

.fr-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 2.4vw, 48px);
  padding: clamp(18px, 2.2vh, 28px) 0;
  border-bottom: 1px solid var(--line);
}
.fr-row__label {
  font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--stone); margin-bottom: 10px;
}
.fr-row__point { font-size: var(--t-400); font-weight: 600; max-width: 48ch; }
.fr-row__bullets { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.fr-row__bullets li {
  position: relative; padding-left: 16px;
  font-size: var(--t-200); color: var(--ink-70);
}
.fr-row__bullets li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 1px; background: var(--grey-2);
}

.fr-seen {
  align-self: start;
  padding: 12px 14px;
  background: var(--warn-bg);
  border-left: 2px solid var(--warn-line);
  font-size: var(--t-200); color: var(--ink);
}
.fr-seen__label {
  display: block; font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--warn); margin-bottom: 5px;
}

/* ── Proof / value metrics ───────────────────────────────────── */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 18vw, 250px), 1fr));
  border-top: 1px solid var(--ink);
  margin-top: clamp(26px, 3.4vh, 44px);
}
.proof-cell {
  padding: clamp(18px, 2.2vh, 26px) clamp(16px, 1.6vw, 26px)
           clamp(20px, 2.6vh, 30px) 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-cell:last-child { border-right: 0; }
.proof-cell__metric {
  font-size: var(--t-600); color: var(--theme-tone, var(--ink));
  margin-bottom: 8px;
}
.proof-cell__label { font-size: var(--t-200); color: var(--stone); line-height: 1.45; }

/* ── AI response ─────────────────────────────────────────────── */

.ai-block {
  margin-top: clamp(26px, 3.4vh, 44px);
  padding: clamp(20px, 2.6vh, 32px) clamp(20px, 2vw, 32px);
  background: var(--base-raise);
}
.ai-block__head { margin-bottom: 16px; }
.ai-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); }
.ai-point {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; background: var(--base-raise);
  font-size: var(--t-200);
}
.ai-point__n {
  font-family: var(--font-display); font-size: var(--t-050);
  font-weight: 800; letter-spacing: var(--tr-wide);
  color: var(--theme-tone, var(--ink)); flex: none; padding-top: 2px;
}

/* ── Discussion ──────────────────────────────────────────────── */

.dq-list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.dq-item { padding: clamp(18px, 2.2vh, 26px) 0; border-bottom: 1px solid var(--line); }
.dq-item__q {
  display: flex; gap: 14px; align-items: baseline;
  font-size: var(--t-400); font-weight: 600; margin-bottom: 12px;
}
.dq-item__n {
  font-family: var(--font-display); font-size: var(--t-100);
  font-weight: 800; color: var(--theme-tone, var(--ink)); flex: none;
}
.dq-item textarea {
  width: 100%; min-height: 78px; resize: vertical;
  padding: 12px 14px;
  background: var(--base-raise);
  border: 1px solid var(--line);
  font-family: inherit; font-size: var(--t-200); line-height: 1.55;
  color: var(--ink);
  transition: border-color var(--d-micro) var(--ease);
}
.dq-item textarea:focus { outline: 0; border-color: var(--ink); }
.dq-item textarea::placeholder { color: var(--grey-2); }

/* ── Placeholder for pages not yet rebuilt ───────────────────── */

.pending-note {
  padding: clamp(28px, 4vh, 56px);
  border: 1px dashed var(--line-firm);
  text-align: center; color: var(--stone); font-size: var(--t-300);
}
.pending-note strong { display: block; color: var(--ink); font-size: var(--t-400); margin-bottom: 6px; }

/* ───────────────────────────────────────────────────────────────
   RESPONSIVE
   Deliberate set, replacing the original's 7 spot-fix queries and
   its dead zone between 820–900px (design §5.3).
   ─────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .agenda-list { grid-template-columns: 1fr; }
  .agenda-block { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .agenda-block:last-child { border-bottom: 0; }
  .fr-row { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 900px) {
  /* align-items must flip too. The desktop rule is flex-start so the
     sticky sidebar sizes to content; left in place on a column axis it
     shrink-wraps the content pane to ~68% and strands the right edge. */
  .theme-body { flex-direction: column; align-items: stretch; }
  .theme-sidebar {
    position: static; width: 100%;
    display: flex; flex-wrap: wrap; gap: 4px;
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }
  .theme-sidebar__label { width: 100%; margin-bottom: 8px; }
  .theme-page-btn {
    width: auto; flex: 1 1 auto; min-width: 150px;
    border-left: 0; border-top: 2px solid var(--line);
  }
  .theme-page-btn[aria-pressed="true"] { border-left-color: transparent; border-top-color: var(--theme-tone, var(--ink)); }
  .theme-content { padding-left: 0; }
  .agenda-head { align-items: flex-start; }
  .agenda-meta { text-align: left; }
}
