/* ============================================================
   pg-design-system — Slide Engine CSS
   Requires: tokens.css loaded before this file via <link>.
   All visual values use DS custom properties — no raw hex,
   no raw px font sizes, no raw rgba color values.
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #0a0a0f;           /* page chrome shell — exempt */
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── HUD ────────────────────────────────────────────────────── */
/* HUD chrome uses rgba(10,10,15,…) — it is shell, not a slide surface */
#hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 36px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, var(--alpha-subtle));
  display: flex; align-items: center; gap: var(--space-5); padding: 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, var(--alpha-medium));
  user-select: none;
}
#hud .hud-section {
  color: rgba(255, 255, 255, var(--alpha-muted));
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
#hud .hud-title {
  color: rgba(255, 255, 255, var(--alpha-strong));
  flex: 1;
}
#hud .hud-counter {
  color: rgba(255, 255, 255, var(--alpha-muted));
}
.hud-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, var(--alpha-subtle));
  color: rgba(255, 255, 255, var(--alpha-medium));
  font-family: var(--font-mono);
  font-size: 10px;                /* 10px sub-xs HUD chrome — exempt */
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 3px var(--space-2);
  border-radius: 4px;             /* sub-sm intentional HUD micro-radius — exempt */
  cursor: pointer;
  transition: all var(--duration-fast);
}
.hud-btn:hover {
  background: rgba(255, 255, 255, var(--alpha-faint));
  color: rgba(255, 255, 255, var(--alpha-intense));
}
.hud-btn.active {
  background: rgba(108, 92, 231, 0.25);
  border-color: rgba(108, 92, 231, 0.5);
  color: var(--accent-violet-light);
}
.hud-btn.off { opacity: 0.35; pointer-events: none; }

/* ── Stage ──────────────────────────────────────────────────── */
#stage-wrapper {
  position: fixed; top: 36px; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  background: #0a0a0f;           /* shell — exempt */
}
#stage {
  position: relative; overflow: hidden;
  width: 1920px; height: 1080px;
  transform-origin: top left;
  /* scaleStage() sets transform via JS */
}

/* ── Shapes layer ───────────────────────────────────────────── */
#shapes {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  z-index: 1;
}
.shape {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ── Layout container ───────────────────────────────────────── */
#layout-container {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
}

/* ── Grain texture overlay ──────────────────────────────────── */
#grain, .grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ── Keyframe animations ────────────────────────────────────── */
@keyframes fly-right {
  from { opacity: 0; transform: translateX(140px); }
  to   { opacity: var(--o, 0.12); transform: translateX(0); }
}
@keyframes fly-up {
  from { opacity: 0; transform: translateY(120px); }
  to   { opacity: var(--o, 0.12); transform: translateY(0); }
}
@keyframes fly-left {
  from { opacity: 0; transform: translateX(-100px); }
  to   { opacity: var(--o, 0.12); transform: translateX(0); }
}
@keyframes pop {
  0%   { transform: scale(0);    opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1);    opacity: var(--o, 0.12); }
}
@keyframes expand {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1);   opacity: var(--o, 0.12); }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
@keyframes drift-x {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(12px); }
}
@keyframes pulse-o {
  0%, 100% { opacity: var(--o, 0.12); }
  50%       { opacity: calc(var(--o, 0.12) * 0.45); }
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  50%       { transform: rotate(7deg); }
}
@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(var(--space-8)); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Layout: base ───────────────────────────────────────────── */
.layout {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  font-family: var(--font-body);
  /* Slide text context — adapts to dark/light background */
  --slide-fg:       var(--text-heading);
  --slide-fg-sub:   var(--text-secondary);
  --slide-fg-muted: var(--text-tertiary);
}

/* ──────────────────────────────────────────────────────────────
   InsightWell — all 7 variants + on-dark context override
   ────────────────────────────────────────────────────────────── */
.well {
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
  position: relative;
  overflow: hidden;
}
.well.compact { padding: var(--space-5) var(--space-6); }

.well-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: flex; align-items: center; gap: var(--space-2);
}
.well-icon  { font-size: var(--text-lg); line-height: 1; }
.well-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}
.well-text  { font-size: 15px; line-height: var(--leading-relaxed); } /* 15px — between sm(14) and base(16) intentional */
.well-bullets {
  list-style: none; margin-top: var(--space-1);
  display: flex; flex-direction: column; gap: var(--space-1);
}
.well-bullet { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 15px; line-height: var(--leading-normal); }
.well-dot    { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 0.4em; }

/* Well with image */
.well-img-wrap { display: flex; gap: 0; overflow: hidden; border-radius: var(--radius-md); }
.well-img-wrap .well-img  { object-fit: cover; flex-shrink: 0; }
.well-img-wrap .well-body { flex: 1; padding: var(--space-5) var(--space-6); }

/* Well image sizes */
.well-img-wrap.img-left-strip  .well-img { width: 28%; }
.well-img-wrap.img-right-strip .well-img { width: 28%; order: 2; }
.well-img-wrap.img-half        .well-img { width: 50%; }
.well-img-wrap.img-full { position: relative; min-height: 160px; display: block; }
.well-img-wrap.img-full .well-img  { position: absolute; inset: 0; width: 100%; height: 100%; }
.well-img-wrap.img-full .well-body { position: relative; z-index: 2; }
.well-img-wrap.img-full::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.52);   /* full-bleed overlay — exempt (not DS surface) */
  z-index: 1;
}

/* span full row */
.well.span-full { grid-column: 1 / -1; }

/* ── Well variants ──────────────────────────────────────────── */
.well-v-default { background: var(--bg-elevated); border: 1px solid var(--border-default); }
.well-v-default .well-label { color: var(--text-secondary); }
.well-v-default .well-title { color: var(--text-heading); }
.well-v-default .well-text  { color: var(--text-primary); }
.well-v-default .well-dot   { background: var(--border-strong); }

.well-v-violet { background: var(--accent-violet-bg); border: 1px solid rgba(108, 92, 231, 0.18); }
.well-v-violet .well-label  { color: var(--accent-violet); }
.well-v-violet .well-title  { color: var(--text-heading); }
.well-v-violet .well-text   { color: var(--text-primary); }
.well-v-violet .well-dot    { background: var(--accent-violet); }

.well-v-coral { background: var(--accent-coral-bg); border: 1px solid rgba(255, 107, 107, 0.18); }
.well-v-coral .well-label   { color: var(--accent-coral); }
.well-v-coral .well-title   { color: var(--text-heading); }
.well-v-coral .well-text    { color: var(--text-primary); }
.well-v-coral .well-dot     { background: var(--accent-coral); }

.well-v-mint { background: var(--accent-mint-bg); border: 1px solid rgba(0, 210, 160, 0.18); }
.well-v-mint .well-label    { color: var(--accent-mint); }
.well-v-mint .well-title    { color: var(--text-heading); }
.well-v-mint .well-text     { color: var(--text-primary); }
.well-v-mint .well-dot      { background: var(--accent-mint); }

.well-v-amber { background: var(--accent-amber-bg); border: 1px solid rgba(253, 203, 110, 0.22); }
.well-v-amber .well-label   { color: var(--accent-amber-text); }
.well-v-amber .well-title   { color: var(--text-heading); }
.well-v-amber .well-text    { color: var(--text-primary); }
.well-v-amber .well-dot     { background: var(--accent-amber); }

.well-v-dark { background: var(--bg-inverse); border: none; }
.well-v-dark .well-label    { color: var(--accent-violet-light); }
.well-v-dark .well-title    { color: var(--text-inverse); }
.well-v-dark .well-text     { color: rgba(255, 255, 255, var(--alpha-strong)); }
.well-v-dark .well-dot      { background: rgba(255, 255, 255, var(--alpha-muted)); }

.well-v-translucent {
  background: rgba(0, 0, 0, 0.38);   /* translucent scrim — exempt */
  border: 1px solid rgba(255, 255, 255, var(--alpha-subtle));
  backdrop-filter: blur(8px);
}
.well-v-translucent .well-label { color: rgba(255, 255, 255, var(--alpha-medium)); }
.well-v-translucent .well-title { color: var(--text-inverse); }
.well-v-translucent .well-text  { color: rgba(255, 255, 255, var(--alpha-intense)); }
.well-v-translucent .well-dot   { background: rgba(255, 255, 255, var(--alpha-muted)); }

/* ── on-dark slide context — text + well overrides ─────────── */
.on-dark {
  --slide-fg:       var(--text-inverse);
  --slide-fg-sub:   rgba(255, 255, 255, var(--alpha-strong));
  --slide-fg-muted: rgba(255, 255, 255, var(--alpha-medium));
}

/* ── on-dark context: non-dark wells adapt to translucent ───── */
.on-dark .well-v-default,
.on-dark .well-v-violet,
.on-dark .well-v-coral,
.on-dark .well-v-mint,
.on-dark .well-v-amber {
  background: rgba(255, 255, 255, 0.07);   /* between faint/subtle — translucent card, no exact token */
  border-color: rgba(255, 255, 255, var(--alpha-subtle));
}
.on-dark .well-v-default .well-label,
.on-dark .well-v-violet  .well-label { color: var(--accent-violet-light); }
.on-dark .well-v-coral   .well-label { color: var(--accent-coral-light); }
.on-dark .well-v-mint    .well-label { color: var(--accent-mint-light); }
.on-dark .well-v-amber   .well-label { color: var(--accent-amber-light); }

.on-dark .well-v-default .well-title,
.on-dark .well-v-violet  .well-title,
.on-dark .well-v-coral   .well-title,
.on-dark .well-v-mint    .well-title,
.on-dark .well-v-amber   .well-title { color: var(--text-inverse); }

.on-dark .well-v-default .well-text,
.on-dark .well-v-violet  .well-text,
.on-dark .well-v-coral   .well-text,
.on-dark .well-v-mint    .well-text,
.on-dark .well-v-amber   .well-text  { color: rgba(255, 255, 255, var(--alpha-strong)); }

.on-dark .well-v-default .well-dot   { background: rgba(255, 255, 255, var(--alpha-muted)); }

/* ── Tabular figures for stat/evidence numbers ──────────────── */
.st-number,
.ss-number,
.ev-value { font-feature-settings: 'tnum' 1; }

/* ──────────────────────────────────────────────────────────────
   EvidenceStrip
   ────────────────────────────────────────────────────────────── */
.evidence-strip { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-5) 0; }
.ev-card {
  flex: 1; min-width: 120px; text-align: center;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);       /* between faint/subtle — translucent card, no exact token */
  border: 1px solid rgba(255, 255, 255, var(--alpha-subtle));
}
.ev-card.on-light { background: var(--bg-elevated); border-color: var(--border-default); }
.ev-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
}
.ev-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-top: var(--space-1);
  opacity: 0.65;
}

/* ──────────────────────────────────────────────────────────────
   Pills / tags
   ────────────────────────────────────────────────────────────── */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, var(--alpha-subtle));
  color: rgba(255, 255, 255, var(--alpha-intense));
  border: 1px solid rgba(255, 255, 255, var(--alpha-subtle));
}
.pill-violet { background: var(--accent-violet-bg); border-color: rgba(108, 92, 231, 0.3); color: var(--accent-violet); }
.pill-coral  { background: var(--accent-coral-bg);  border-color: rgba(255, 107, 107, 0.3); color: var(--accent-coral); }
.pill-mint   { background: var(--accent-mint-bg);   border-color: rgba(0, 210, 160, 0.3);   color: var(--accent-mint); }
.pill-amber  { background: var(--accent-amber-bg);  border-color: rgba(253, 203, 110, 0.3); color: var(--accent-amber-text); }
.pill-dark   { background: var(--bg-inverse); color: var(--text-inverse); border-color: transparent; }

/* ──────────────────────────────────────────────────────────────
   DrilldownCard
   ────────────────────────────────────────────────────────────── */
.drilldown { margin-top: var(--space-2); border-radius: var(--radius-sm); overflow: hidden; }
.drilldown-toggle {
  width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, var(--alpha-faint));
  border: 1px solid rgba(255, 255, 255, var(--alpha-subtle));
  color: rgba(255, 255, 255, var(--alpha-medium));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between;
  transition: all var(--duration-fast);
}
.drilldown-toggle:hover {
  background: rgba(255, 255, 255, 0.09);   /* between faint/subtle — no exact token */
  color: rgba(255, 255, 255, var(--alpha-strong));
}
.drilldown-toggle.open {
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  background: rgba(255, 255, 255, 0.09);   /* between faint/subtle — no exact token */
  color: rgba(255, 255, 255, var(--alpha-strong));
}
.drilldown-body {
  display: none;
  padding: var(--space-3) var(--space-3);
  background: rgba(0, 0, 0, 0.25);         /* deep scrim — exempt */
  border: 1px solid rgba(255, 255, 255, var(--alpha-subtle));
  border-top: none;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, var(--alpha-strong));
}
.drilldown-body.open { display: block; }
.drilldown-source {
  font-family: var(--font-mono);
  font-size: 10px;                          /* sub-xs HUD/meta chrome — exempt */
  color: rgba(255, 255, 255, var(--alpha-muted));
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-normal);
}
.drilldown-toggle.on-light {
  background: var(--bg-subtle); border-color: var(--border-default); color: var(--text-secondary);
}
.drilldown-body.on-light {
  background: var(--bg-elevated); border-color: var(--border-default); color: var(--text-primary);
}

/* ──────────────────────────────────────────────────────────────
   Transition note
   ────────────────────────────────────────────────────────────── */
.frame-transition {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, var(--alpha-subtle));
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: italic;
  color: rgba(255, 255, 255, var(--alpha-muted));
}
.frame-transition.on-light { border-top-color: var(--border-default); color: var(--text-tertiary); }

/* ──────────────────────────────────────────────────────────────
   Watermark
   ────────────────────────────────────────────────────────────── */
#watermark {
  position: absolute; bottom: var(--space-10); left: 0; right: 0; z-index: 10;
  text-align: center; pointer-events: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, var(--alpha-subtle));
}
.hide-wm #watermark { display: none; }

/* pb-* slides carry their own footer (.pb-footer) with trainer mark + cohort
   + page counter — hide V1 watermark, slide-counter, and block-marker chrome
   on those slides to avoid double-rendering. Mark toggle still hides .pb-footer. */
body.pb-slide-active #watermark,
body.pb-slide-active #slide-counter,
body.pb-slide-active #block-marker { display: none; }
.hide-wm .pb-footer { display: none; }

/* NUMS toggle — hide the on-stage page counter on V1 layouts AND the page
   number on pb-* layouts. Mark toggle keeps wordmark, NUMS toggle kills
   only the numeric counter. Independent levers for rehearsal vs delivery. */
.hide-nums #slide-counter { display: none; }
.hide-nums .pb-footer__right { visibility: hidden; }

/* ──────────────────────────────────────────────────────────────
   Slide counter
   ────────────────────────────────────────────────────────────── */
#slide-counter {
  position: absolute; bottom: var(--space-10); right: var(--slide-pad-md); z-index: 10;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, var(--alpha-subtle));
  pointer-events: none;
}

/* Block marker — bottom-left corner — used by training decks
   to surface block/timing cue (e.g. "Block 2 · 15–30"). Render from slide.block. */
#block-marker,
.print-slide .ps-block {
  position: absolute; bottom: var(--space-10); left: var(--slide-pad-md); z-index: 10;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, var(--alpha-subtle));
  pointer-events: none;
}
.layout.on-light ~ #block-marker,
body:not(.print-mode) .l-list:not(.on-dark) ~ #block-marker {
  /* fallback for engine-rendered single slide on light bg */
  color: rgba(30, 27, 46, 0.45);
}
.print-slide.on-light .ps-block {
  color: rgba(30, 27, 46, 0.45);
}

/* ──────────────────────────────────────────────────────────────
   Format variants
   ────────────────────────────────────────────────────────────── */
body.fmt-1x1 #stage { width: 1080px; height: 1080px; }
body.fmt-4x5 #stage { width: 1080px; height: 1350px; }

/* ──────────────────────────────────────────────────────────────
   Fullscreen
   ────────────────────────────────────────────────────────────── */
body.fullscreen { cursor: none; }
body.fullscreen #hud { opacity: 0; pointer-events: none; }
body.fullscreen:hover #hud { opacity: 1; pointer-events: all; }

/* ──────────────────────────────────────────────────────────────
   HUD autohide (pin OFF) — default when 📌 not engaged
   Bar slides up off-screen; reveals when cursor enters the top
   band (JS adds .hud-hover-top) OR when cursor is on the bar
   itself. Pin ON disables autohide entirely.
   ────────────────────────────────────────────────────────────── */
body.hud-autohide #hud {
  transform: translateY(-100%);
  transition: transform 180ms ease-out;
  will-change: transform;
}
body.hud-autohide.hud-hover-top #hud,
body.hud-autohide #hud:hover {
  transform: translateY(0);
}
body.hud-autohide #stage-wrapper { top: 0; }
/* Pin button glows when engaged */
.hud-btn#btn-pin.active {
  background: rgba(108, 92, 231, 0.25);
  border-color: rgba(108, 92, 231, 0.5);
}

/* Slide-jump buffered input — HUD counter renders "→ 7" while
   digits are buffering. Subtle highlight tells the trainer the
   buffer is live without breaking the bar's visual rhythm. */
#hud .hud-counter--jump {
  color: var(--accent-violet-light);
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────────
   LAYOUT STYLES
   ────────────────────────────────────────────────────────────── */

/* ── cover ──────────────────────────────────────────────────── */
.l-cover {
  padding: var(--slide-pad-lg) var(--slide-pad-xl);
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%;
}
.l-cover .overtitle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--hl, var(--accent-violet-light));
  margin-bottom: var(--space-6);
}
.l-cover .headline {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--slide-fg);
  max-width: 1200px;
  margin-bottom: var(--space-6);
}
.l-cover .subhead {
  font-size: var(--text-2xl);
  line-height: var(--leading-normal);
  color: var(--slide-fg-sub);
  max-width: 800px;
  margin-bottom: var(--space-12);
}
.l-cover .wells-row { display: flex; gap: var(--space-5); flex-wrap: wrap; margin-top: var(--space-2); }

/* ── intro ──────────────────────────────────────────────────── */
.l-intro {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: var(--space-6); text-align: center;
  padding: var(--slide-pad-md);
}
.l-intro .mark {
  font-family: var(--font-display);
  font-size: var(--text-9xl);
  font-weight: 700;
  background: var(--gradient-mark);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.l-intro .portrait {
  width: 180px; height: 180px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,var(--alpha-subtle));
  flex-shrink: 0;
}
.l-intro .portrait img { width: 100%; height: 100%; object-fit: cover; }
.l-intro .name {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: 700;
  color: var(--slide-fg);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.l-intro .role {
  font-size: var(--text-xl);
  color: var(--slide-fg-muted);
  line-height: var(--leading-normal);
  max-width: 700px;
}
.l-intro .tags { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; margin-top: var(--space-2); }
.l-intro .mantra {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--hl, var(--accent-violet-light));
  margin-top: var(--space-2);
}

/* ── section ────────────────────────────────────────────────── */
/* also used by section-header layout (same HTML) */
.l-section {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: var(--slide-pad-md); text-align: center;
  flex-direction: column; gap: var(--space-5);
  position: relative; overflow: hidden;
}
.l-section .sec-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-11xl);
  position: absolute; opacity: var(--alpha-faint); line-height: 1;
  color: var(--slide-fg);
  pointer-events: none; user-select: none; right: var(--slide-pad-md); bottom: -40px;
}
.l-section .sec-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--hl, var(--accent-violet-light));
}
.l-section .sec-title {
  font-family: var(--font-display);
  font-size: var(--text-8xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  color: var(--slide-fg);
  max-width: 1100px;
}
.l-section .sec-sub {
  font-size: var(--text-2xl);
  color: var(--slide-fg-muted);
  max-width: 800px;
  line-height: var(--leading-normal);
}

/* ── statement ──────────────────────────────────────────────── */
.l-statement {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: var(--slide-pad-lg) 180px; text-align: center;
}
.l-statement .s-text {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--slide-fg);
  max-width: 1300px;
}
.l-statement .s-attr {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  color: var(--slide-fg-muted);
  margin-top: var(--space-8);
}

/* ── question ───────────────────────────────────────────────── */
.l-question {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: var(--slide-pad-lg) 160px; text-align: center;
}
.l-question .q-text {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--slide-fg);
  max-width: 1300px;
}

/* ── activation ─────────────────────────────────────────────── */
.l-activation {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: var(--space-6); text-align: center;
  padding: var(--slide-pad-md);
}
.l-activation .a-emoji { font-size: 100px; line-height: 1; }  /* emoji decorative — exempt */
.l-activation .a-prompt {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--slide-fg);
  line-height: var(--leading-tight);
  max-width: 1100px;
  letter-spacing: var(--tracking-tight);
}
.l-activation .a-sub {
  font-size: var(--text-xl);
  color: var(--slide-fg-muted);
  max-width: 700px;
  line-height: var(--leading-normal);
}

/* ── reframe ────────────────────────────────────────────────── */
.l-reframe {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: var(--slide-pad-lg) var(--slide-pad-xl);
  flex-direction: column; gap: var(--space-8); text-align: center;
}
.l-reframe .rf-fear {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--slide-fg-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 107, 107, 0.6);
  line-height: var(--leading-snug);
}
.l-reframe .rf-divider {
  width: 80px; height: 2px;
  background: var(--hl, var(--accent-violet-light));
  opacity: 0.5;
}
.l-reframe .rf-truth {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: 700;
  color: var(--slide-fg);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 1200px;
}
.l-reframe .rf-sub {
  font-size: var(--text-xl);
  color: var(--slide-fg-muted);
  max-width: 800px;
  line-height: var(--leading-normal);
}

/* ── quote ──────────────────────────────────────────────────── */
.l-quote {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: var(--slide-pad-lg) 160px; text-align: center;
}
.l-quote blockquote { max-width: 1200px; }
.l-quote .q-mark {
  font-family: var(--font-display);
  font-size: 160px;                         /* decorative opening mark glyph — exempt */
  font-weight: 700;
  color: var(--hl, var(--accent-violet-light));
  opacity: 0.18;
  line-height: 0.6;
  margin-bottom: var(--space-5);
  display: block;
}
.l-quote .q-text {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--slide-fg);
  font-style: italic;
  letter-spacing: -0.01em;
}
.l-quote .q-attr {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--slide-fg-muted);
  margin-top: var(--space-6);
  letter-spacing: var(--tracking-wide);
}

/* ── stat ───────────────────────────────────────────────────── */
.l-stat {
  display: flex; align-items: center; justify-content: center;
  height: 100%; flex-direction: column; gap: var(--space-4);
  text-align: center; padding: var(--slide-pad-md);
}
.l-stat .st-number {
  font-family: var(--font-display);
  font-size: var(--text-10xl);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--slide-fg);
}
.l-stat .st-label {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--hl, var(--accent-violet-light));
}
.l-stat .st-sub {
  font-size: var(--text-xl);
  color: var(--slide-fg-muted);
  max-width: 800px;
  line-height: var(--leading-normal);
  margin-top: var(--space-2);
}

/* ── list ───────────────────────────────────────────────────── */
.l-list {
  padding: var(--slide-pad-md) 120px;
  height: 100%; display: flex; flex-direction: column; justify-content: center; gap: var(--space-8);
}
.l-list .list-headline {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--slide-fg);
  line-height: var(--leading-tight);
}
.l-list .list-subhead {
  font-size: var(--text-xl);
  color: var(--slide-fg-muted);
  line-height: var(--leading-normal);
  margin-top: calc(var(--space-4) * -1);
}
.l-list .list-items    { display: flex; flex-direction: column; gap: var(--space-5); }
.l-list .list-item     { display: flex; align-items: flex-start; gap: var(--space-5); }
.l-list .list-marker   {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--hl, var(--accent-violet-light));
  flex-shrink: 0; margin-top: 0.5em;
}
.l-list .list-text {
  font-size: var(--text-2xl);
  line-height: var(--leading-normal);
  color: var(--slide-fg);
}
.l-list .list-text strong { color: var(--slide-fg); font-weight: 600; }

/* ── grid3 ──────────────────────────────────────────────────── */
.l-grid3 {
  padding: var(--space-16) 100px;
  height: 100%; display: flex; flex-direction: column; gap: var(--space-8); justify-content: center;
}
.l-grid3 .g3-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--slide-fg);
  line-height: var(--leading-tight);
}
.l-grid3 .g3-subhead {
  font-size: var(--text-lg);
  color: var(--slide-fg-muted);
  line-height: var(--leading-normal);
  margin-top: calc(var(--space-4) * -1);
}
.l-grid3 .g3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

/* ── timeline ───────────────────────────────────────────────── */
.l-timeline {
  padding: var(--slide-pad-md) 100px;
  height: 100%; display: flex; flex-direction: column; justify-content: center; gap: var(--space-8);
}
.l-timeline .tl-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--slide-fg);
}
.l-timeline .tl-track {
  display: flex; gap: 0; position: relative; align-items: flex-start;
}
.l-timeline .tl-track::before {
  content: ''; position: absolute; top: 20px; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, var(--hl, var(--accent-violet-light)), transparent);
  opacity: 0.35;
}
.l-timeline .tl-node { flex: 1; padding: 0 var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.l-timeline .tl-dot  {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--hl, var(--accent-violet-light));
  box-shadow: 0 0 12px var(--hl, var(--accent-violet-light));
  margin-bottom: var(--space-2); flex-shrink: 0;
}
.l-timeline .tl-era {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--hl, var(--accent-violet-light));
}
.l-timeline .tl-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--slide-fg);
  line-height: var(--leading-snug);
}
.l-timeline .tl-text {
  font-size: 15px;
  color: var(--slide-fg-sub);
  line-height: var(--leading-relaxed);
}

/* ── cta / cta-team ─────────────────────────────────────────── */
/* cta-team renders with the same .l-cta class */
.l-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: var(--space-8); text-align: center;
  padding: var(--slide-pad-md) 160px;
}
.l-cta .cta-pill { margin-bottom: calc(var(--space-2) * -1); }
.l-cta .cta-prompt {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--slide-fg);
  line-height: var(--leading-snug);
  max-width: 1100px;
  letter-spacing: var(--tracking-tight);
}
.l-cta .cta-line {
  width: 600px;
  border-bottom: 2px solid rgba(255, 255, 255, var(--alpha-muted));
  padding-bottom: var(--space-3);
  font-size: var(--text-lg);
  color: var(--slide-fg-muted);
  font-style: italic;
  text-align: center;
}
.l-cta .cta-sub {
  font-size: var(--text-lg);
  color: var(--slide-fg-muted);
  line-height: var(--leading-normal);
}

/* ── recap ──────────────────────────────────────────────────── */
.l-recap { display: flex; height: 100%; }
.l-recap .recap-left {
  flex: 1;
  padding: var(--slide-pad-lg) var(--slide-pad-md);
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-6);
}
.l-recap .recap-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--slide-fg);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}
.l-recap .recap-items { display: flex; flex-direction: column; gap: var(--space-4); }
.l-recap .recap-item {
  display: flex; align-items: flex-start; gap: var(--space-4);
  font-size: var(--text-xl);
  line-height: var(--leading-normal);
  /* Adapt to bg: dark slides keep white; light slides (cool-light, warm-light,
     coral-tinted) read the inherited slide-fg. The .on-dark override below
     re-pins white at high alpha. */
  color: var(--slide-fg);
}
.l-recap.on-dark .recap-item { color: rgba(255, 255, 255, var(--alpha-intense)); }
.l-recap .recap-bullet {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--hl, var(--accent-violet-light));
  flex-shrink: 0; margin-top: 0.45em;
}
.l-recap .recap-right {
  width: 480px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-8);
  border-left: 1px solid var(--border-default);
  padding: var(--slide-pad-md) var(--space-16);
  text-align: center;
}
.l-recap.on-dark .recap-right { border-left-color: rgba(255, 255, 255, var(--alpha-subtle)); }
.l-recap .recap-qr {
  width: 220px; height: 220px; border-radius: var(--radius-md); overflow: hidden;
  background: var(--text-inverse); padding: var(--space-3);
}
.l-recap .recap-qr img { width: 100%; height: 100%; object-fit: contain; }
.l-recap .recap-handle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--slide-fg-muted);
}
.l-recap .recap-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--slide-fg);
}

/* ── close ──────────────────────────────────────────────────── */
.l-close {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: var(--space-6); text-align: center;
  padding: var(--slide-pad-md);
}
.l-close .cl-mark {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: 700;
  background: var(--gradient-mark);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.l-close .cl-heading {
  font-family: var(--font-display);
  font-size: var(--text-8xl);
  font-weight: 700;
  color: var(--slide-fg);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.l-close .cl-sub {
  font-size: var(--text-2xl);
  color: var(--slide-fg-muted);
  max-width: 700px;
  line-height: var(--leading-normal);
}
.l-close .cl-qr {
  width: 200px; height: 200px;
  background: var(--text-inverse); border-radius: var(--radius-md); padding: var(--space-3);
}
.l-close .cl-qr img { width: 100%; height: 100%; object-fit: contain; }
.l-close .cl-handle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--slide-fg-muted);
}

/* ── blank ──────────────────────────────────────────────────── */
.l-blank {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: var(--slide-pad-md); text-align: center;
}
.l-blank .blank-hint {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, var(--alpha-subtle));
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* ── custom (free-form HTML canvas) ──────────────────────── */
.l-custom {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: var(--slide-pad-md);
  gap: var(--space-6);
}
.l-custom .body-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-tight);
}
.l-custom .custom-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

/* ── chat-mock component (used inside .custom-canvas) ────── */
.chat-frame {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 380px;
  padding: var(--space-4) var(--space-3);
  border-radius: 22px;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  font-family: var(--font-body);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.chat-frame .thread-name {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-1);
}
.chat-frame .thread-time {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
  margin: var(--space-2) 0;
}
.chat-bubble {
  max-width: 78%;
  padding: var(--space-2) var(--space-3);
  border-radius: 16px;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  white-space: pre-wrap;
  color: var(--text-primary);
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent-mint-bg);
  border-bottom-right-radius: 4px;
}
.chat-bubble.bot {
  align-self: flex-start;
  background: var(--bg-subtle);
  border-bottom-left-radius: 4px;
}
.chat-bubble .sender {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}
.chat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
  width: 100%;
}

/* ──────────────────────────────────────────────────────────────
   Koro-lineage image layouts
   ────────────────────────────────────────────────────────────── */

/* ── header ─────────────────────────────────────────────────── */
.l-header { height: 100%; display: flex; flex-direction: column; }
.l-header .hdr-img {
  position: relative; overflow: hidden; flex-shrink: 0;
  background: var(--bg-inverse);             /* image placeholder dark — exempt */
}
.l-header .hdr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-header .hdr-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(30, 27, 46, 0.15),     /* matches --bg-inverse rgb at reduced opacity */
    rgba(30, 27, 46, 0.85));
}
.l-header .hdr-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--slide-pad-sm) var(--slide-pad-md);
  z-index: 2; color: var(--slide-fg);
}
.l-header .hdr-headline {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}
.l-header .hdr-subhead {
  font-size: var(--text-xl);
  color: var(--slide-fg-sub);
}
.l-header .hdr-body { flex: 1; overflow: auto; padding: var(--space-10) var(--slide-pad-md); }

/* ── hero-quote ─────────────────────────────────────────────── */
.l-hero-quote { height: 100%; display: flex; flex-direction: column; }
.l-hero-quote .hq-img {
  position: relative; overflow: hidden; flex-shrink: 0;
  background: var(--bg-inverse);
}
.l-hero-quote .hq-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-hero-quote .hq-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
}
.l-hero-quote .hq-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: var(--slide-pad-sm) var(--space-16); z-index: 2;
}
.l-hero-quote .hq-quote-text {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--slide-fg);
  font-style: italic;
  line-height: var(--leading-snug);
  max-width: 1000px;
}
.l-hero-quote .hq-quote-source {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--slide-fg-muted);
  margin-top: var(--space-3);
}
.l-hero-quote .hq-body { flex: 1; padding: var(--space-10) var(--slide-pad-md); overflow: auto; }
.l-hero-quote .hq-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}
.l-hero-quote .hq-subhead { font-size: var(--text-lg); margin-bottom: var(--space-5); line-height: var(--leading-normal); opacity: 0.65; }

/* ── split-left / split-right ───────────────────────────────── */
.l-split { display: flex; height: 100%; }
.l-split.split-right { flex-direction: row-reverse; }
.l-split .sp-img {
  width: 35%; position: relative; overflow: hidden; flex-shrink: 0;
  background: var(--bg-inverse);
}
.l-split .sp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-split .sp-body { flex: 1; min-width: 0; overflow: auto; padding: var(--slide-pad-md); }
.l-split .sp-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}
.l-split .sp-subhead { font-size: var(--text-lg); margin-bottom: var(--space-6); line-height: var(--leading-normal); opacity: 0.65; }

/* ── strip-left / strip-right ───────────────────────────────── */
.l-strip { display: flex; height: 100%; }
.l-strip.strip-right { flex-direction: row-reverse; }
.l-strip .st-img {
  width: 140px; flex-shrink: 0; overflow: hidden;
  background: var(--bg-inverse);
}
.l-strip .st-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-strip .st-body { flex: 1; min-width: 0; overflow: auto; padding: var(--slide-pad-md); }
.l-strip .sp-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}
.l-strip .sp-subhead { font-size: var(--text-lg); margin-bottom: var(--space-6); line-height: var(--leading-normal); opacity: 0.65; }

/* ── magazine ───────────────────────────────────────────────── */
.l-magazine { display: grid; grid-template-columns: 5fr 7fr; height: 100%; }
.l-magazine.img-right { grid-template-columns: 7fr 5fr; }
.l-magazine .mag-img { position: relative; overflow: hidden; background: var(--bg-inverse); }
.l-magazine .mag-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.l-magazine .mag-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, rgba(30, 27, 46, 0.5));
}
.l-magazine.img-right .mag-img::after { background: linear-gradient(to left, transparent, rgba(30, 27, 46, 0.5)); }
.l-magazine .mag-body { padding: var(--slide-pad-md) var(--slide-pad-md); overflow: auto; display: flex; flex-direction: column; justify-content: center; }
.l-magazine.img-right .mag-body { padding: var(--slide-pad-md); }
.l-magazine .mag-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}
.l-magazine .mag-subhead { font-size: var(--text-lg); margin-bottom: var(--space-6); line-height: var(--leading-normal); opacity: 0.65; }
.l-magazine .mag-well-overlay {
  position: absolute; left: 0; right: 0; z-index: 3; padding: var(--space-5);
}
.l-magazine .mag-well-overlay.at-bottom { bottom: 0; }
.l-magazine .mag-well-overlay.at-top    { top: 0; }

/* ── mosaic ─────────────────────────────────────────────────── */
.l-mosaic { height: 100%; display: flex; flex-direction: column; }
.l-mosaic .mosaic-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr; overflow: hidden; flex-shrink: 0;
}
.l-mosaic .mosaic-cell { overflow: hidden; }
.l-mosaic .mosaic-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-mosaic .mosaic-body { flex: 1; padding: var(--space-10) var(--space-16); overflow: auto; }
.l-mosaic .mosaic-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}
.l-mosaic .mosaic-subhead { font-size: var(--text-lg); margin-bottom: var(--space-5); line-height: var(--leading-normal); opacity: 0.65; }

/* ── big-quote ──────────────────────────────────────────────── */
.l-big-quote {
  height: 100%; display: flex; align-items: center; justify-content: center;
  padding: var(--slide-pad-lg) var(--slide-pad-xl);
  text-align: center; position: relative;
}
.l-big-quote.bg-image img.bq-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.l-big-quote.bg-image::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);  /* image scrim — exempt */
}
.l-big-quote .bq-inner { position: relative; z-index: 2; max-width: 1200px; }
.l-big-quote .bq-text {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  font-style: italic;
  color: var(--slide-fg);
  letter-spacing: -0.01em;
}
.l-big-quote .bq-author {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--slide-fg-muted);
  margin-top: var(--space-6);
  letter-spacing: var(--tracking-wide);
}
.l-big-quote .bq-attribution {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--slide-fg-muted);
  margin-top: var(--space-1);
  letter-spacing: var(--tracking-wide);
}

/* ── content-slide ──────────────────────────────────────────── */
.l-content-slide { height: 100%; display: flex; flex-direction: column; }
.l-content-slide .cs-head { padding: var(--slide-pad-sm) var(--slide-pad-md) var(--space-6); flex-shrink: 0; }
.l-content-slide .cs-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}
.l-content-slide .cs-subhead { font-size: var(--text-lg); line-height: var(--leading-normal); opacity: 0.65; margin-bottom: var(--space-3); }
.l-content-slide .cs-narrative { font-size: var(--text-base); line-height: var(--leading-relaxed); opacity: 0.75; margin-top: var(--space-2); }
.l-content-slide .cs-strip { flex-shrink: 0; overflow: hidden; }
.l-content-slide .cs-strip img { width: 100%; object-fit: cover; display: block; }
.l-content-slide .cs-cols { flex: 1; display: grid; gap: var(--space-6); padding: var(--space-6) var(--slide-pad-md); overflow: auto; }
.l-content-slide .cs-cols.cols-1 { grid-template-columns: 1fr; }
.l-content-slide .cs-cols.cols-2 { grid-template-columns: 1fr 1fr; }
.l-content-slide .cs-cols.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.l-content-slide .cs-transition { padding: 0 var(--slide-pad-md) var(--space-6); flex-shrink: 0; }

/* ── gallery ────────────────────────────────────────────────── */
.l-gallery { height: 100%; position: relative; overflow: hidden; }
.l-gallery img.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.l-gallery .gallery-headline {
  position: absolute; top: 0; left: 0; right: 0;
  padding: var(--space-10) var(--space-16); z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--slide-fg);
}
.l-gallery .gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-10) var(--space-16); z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, var(--alpha-intense));
}

/* ──────────────────────────────────────────────────────────────
   Social layouts (1:1 and 4:5 formats)
   ────────────────────────────────────────────────────────────── */

/* ── social-cover ───────────────────────────────────────────── */
.l-social-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: var(--slide-pad-md); text-align: center; gap: var(--space-6);
}
.l-social-cover .sc-mark {
  font-family: var(--font-display);
  font-size: var(--text-9xl);
  font-weight: 700;
  background: var(--gradient-mark);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.l-social-cover .sc-headline {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--slide-fg);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.l-social-cover .sc-sub {
  font-size: var(--text-xl);
  color: var(--slide-fg-muted);
  max-width: 700px;
  line-height: var(--leading-normal);
}
.l-social-cover .sc-handle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  color: var(--slide-fg-muted);
}

/* ── social-stat ────────────────────────────────────────────── */
.l-social-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: var(--slide-pad-md); text-align: center; gap: var(--space-3);
}
.l-social-stat .ss-number {
  font-family: var(--font-display);
  font-size: 160px;             /* social hero stat — intentionally between text-9xl/text-10xl */
  font-weight: 700;
  color: var(--slide-fg);
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.l-social-stat .ss-label {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--hl, var(--accent-violet-light));
}
.l-social-stat .ss-sub {
  font-size: var(--text-xl);
  color: var(--slide-fg-muted);
  max-width: 600px;
  line-height: var(--leading-normal);
  margin-top: var(--space-4);
}
.l-social-stat .ss-handle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  color: var(--slide-fg-muted);
  margin-top: var(--space-6);
}

/* ── social-quote ───────────────────────────────────────────── */
.l-social-quote {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: var(--slide-pad-md); text-align: center; gap: var(--space-6);
}
.l-social-quote .sq-text {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--slide-fg);
  line-height: var(--leading-snug);
  font-style: italic;
  max-width: 800px;
}
.l-social-quote .sq-attr {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--slide-fg-muted);
  letter-spacing: var(--tracking-wide);
}
.l-social-quote .sq-handle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--slide-fg-muted);
  letter-spacing: var(--tracking-wider);
  margin-top: var(--space-2);
}

/* ── social-list ────────────────────────────────────────────── */
.l-social-list {
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; padding: var(--slide-pad-md); gap: var(--space-6);
}
.l-social-list .sl-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--slide-fg);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}
.l-social-list .sl-items { display: flex; flex-direction: column; gap: var(--space-4); }
.l-social-list .sl-item  { display: flex; align-items: flex-start; gap: var(--space-4); }
.l-social-list .sl-num   {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--hl, var(--accent-violet-light));
  line-height: var(--leading-tight);
  flex-shrink: 0; width: 36px;
}
.l-social-list .sl-text {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, var(--alpha-intense));
  line-height: var(--leading-snug);
}
.l-social-list .sl-handle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--slide-fg-muted);
  letter-spacing: var(--tracking-wider);
  margin-top: var(--space-1);
}

/* ──────────────────────────────────────────────────────────────
   Shared body typography (Koro-lineage scroll/content layouts)
   ────────────────────────────────────────────────────────────── */
.body-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--slide-fg);
  margin-bottom: var(--space-2);
}
.body-subhead {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--slide-fg-sub);
  opacity: 0.85;
  margin-bottom: var(--space-5);
}
.body-narrative {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--slide-fg);
  opacity: 0.85;
  margin-bottom: var(--space-5);
}

/* Wells grid */
.wells-grid { display: grid; gap: var(--space-4); }
.wells-grid.cols-1 { grid-template-columns: 1fr; }
.wells-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.wells-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── 2-column split (presentation split layout) ─────────────── */
.l-split-2col { display: flex; flex-direction: column; height: 100%; }
.l-split-2col .split-header {
  padding: var(--space-10) var(--slide-pad-md) var(--space-6);
}
.l-split-2col .split-header .headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--slide-fg);
}
.l-split-2col .split-header .subhead {
  font-size: var(--text-lg);
  color: var(--slide-fg-sub);
  margin-top: var(--space-2);
}
.l-split-2col .split-cols {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr;
}
.l-split-2col .col-body {
  padding: var(--slide-pad-md);
  display: flex; flex-direction: column; justify-content: center;
}
.l-split-2col .col-body:first-child {
  border-right: 1px solid rgba(255, 255, 255, var(--alpha-faint));
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .shape { animation: none !important; }
  * { transition-duration: 0ms !important; }
}

/* ═══════════════════════════════════════════════════════════════
   DESIGN PICKER (Ctrl+K)
   ═══════════════════════════════════════════════════════════════ */
#picker {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(14, 12, 26, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, var(--alpha-subtle));
  padding: var(--space-3) var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  -webkit-font-smoothing: antialiased;
}

#picker-cats {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

#picker-cats-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, var(--alpha-muted));
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-right: var(--space-2);
}

.pk-cat {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, var(--alpha-muted));
  background: rgba(255, 255, 255, var(--alpha-faint));
  border: 1px solid rgba(255, 255, 255, var(--alpha-subtle));
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.pk-cat.active {
  color: var(--accent-violet-light);
  border-color: var(--accent-violet);
  background: rgba(108, 92, 231, 0.18);
}

.pk-cat:hover:not(.active) {
  color: rgba(255, 255, 255, var(--alpha-strong));
  border-color: rgba(255, 255, 255, var(--alpha-subtle));
}

#picker-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-height: 28px;
}

.pk-val {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, var(--alpha-medium));
  background: rgba(255, 255, 255, var(--alpha-faint));
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.pk-val:hover:not(.active) {
  color: rgba(255, 255, 255, var(--alpha-strong));
  border-color: rgba(255, 255, 255, var(--alpha-subtle));
}

.pk-val.active {
  color: var(--accent-violet-light);
  border-color: var(--accent-violet);
  background: rgba(108, 92, 231, 0.22);
  font-weight: 600;
}

#picker-footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

#picker-copy {
  flex: 1;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent-mint-light);
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 210, 160, 0.08);
  border: 1px solid rgba(0, 210, 160, 0.22);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: all;
  transition: background var(--duration-fast), color var(--duration-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#picker-copy.copied {
  color: var(--accent-mint-light);
  background: rgba(0, 210, 160, 0.18);
}

#picker-hint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, var(--alpha-muted));
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PRINT MODE — stacked slides for ⌘P → Save as PDF
   Activated by ?print in URL (engine.js calls renderPrintStack).
   ═══════════════════════════════════════════════════════════════ */
body.print-mode {
  overflow: visible;
  height: auto;
  background: #0a0a0f;
  padding: var(--space-8) 0;
}
body.print-mode #hud,
body.print-mode #stage-wrapper { display: none; }

#print-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  transform: scale(0.5);
  transform-origin: top center;
  width: 1920px;
  margin: 0 auto;
}

.print-slide {
  position: relative;
  overflow: hidden;
  width: 1920px;
  height: 1080px;
  flex-shrink: 0;
}
.print-slide .ps-shapes {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.print-slide .ps-layout {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.print-slide .ps-watermark {
  position: absolute; bottom: var(--space-10); left: 0; right: 0; z-index: 10;
  text-align: center;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.print-slide .ps-counter {
  position: absolute; bottom: var(--space-10); right: var(--slide-pad-md); z-index: 10;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, var(--alpha-subtle));
  pointer-events: none;
}

@media print {
  @page { size: 16in 9in; margin: 0; }
  html, body {
    background: #fff !important;
    overflow: visible !important;
    height: auto !important;
  }
  body.print-mode {
    padding: 0 !important;
    background: #fff !important;
  }
  body.print-mode #hud,
  body.print-mode #stage-wrapper { display: none !important; }
  #print-stack {
    transform: none !important;
    gap: 0 !important;
    width: auto !important;
  }
  .print-slide {
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    margin: 0 !important;
  }
  .print-slide:last-child {
    page-break-after: auto;
    break-after: auto;
  }
}

/* ==========================================================================
   V1 · table layout — header row + body rows; first column is row labels.
   Engine renderer at engine.js → renderLayout layout === 'table'.
   ========================================================================== */
.layout.l-table {
  padding: var(--space-10) var(--slide-pad-md);
  gap: var(--space-3);
}
.layout.l-table .overtitle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slide-fg-sub);
  margin: 0;
}
.layout.l-table .headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--slide-fg);
  margin: 0;
}
.layout.l-table .subhead {
  font-size: var(--text-lg);
  color: var(--slide-fg-sub);
  margin: 0 0 var(--space-4);
}
.layout.l-table .table-wrap {
  flex: 1; min-height: 0; overflow: auto;
}
.layout.l-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 22px;          /* readability floor, matches gallery */
  line-height: 1.4;
}
.layout.l-table thead th {
  text-align: left;
  vertical-align: bottom;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slide-fg-sub);
  border-bottom: 1px solid currentColor;
  padding: 12px 16px;
}
.layout.l-table thead th .t-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slide-fg);
  margin-bottom: 4px;
}
.layout.l-table thead th .t-desc {
  font-size: 14px;
  color: var(--slide-fg-muted);
}
.layout.l-table tbody th[scope="row"] {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--slide-fg);
  padding: 14px 16px;
  vertical-align: top;
}
.layout.l-table tbody td {
  color: var(--slide-fg-sub);
  padding: 14px 16px;
  vertical-align: top;
}
.layout.l-table tbody tr + tr th[scope="row"],
.layout.l-table tbody tr + tr td {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.layout.l-table.on-dark tbody tr + tr th[scope="row"],
.layout.l-table.on-dark tbody tr + tr td {
  border-top-color: rgba(255, 255, 255, 0.10);
}
.layout.l-table code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}
.layout.l-table.on-dark code {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   V1 · code layout — dark code block with language tag.
   Style mirrors the gallery's .slide--code (decks/_gallery/slides.css §code).
   Engine renderer at engine.js → renderLayout layout === 'code'.
   ========================================================================== */
.layout.l-code {
  padding: var(--space-12) var(--space-12) var(--space-10);
  gap: var(--space-4);
}
.layout.l-code .overtitle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slide-fg-sub);
  margin: 0;
}
.layout.l-code .headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--slide-fg);
  margin: 0 0 var(--space-2);
}
.layout.l-code .code-wrap {
  background: #0E1218;
  color: #E4E7EC;
  border-radius: 10px;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.layout.l-code .code-lang {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: #9CA5B0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.layout.l-code .code-text {
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.6;
  margin: 0;
  padding: 36px 40px 56px;
  flex: 1;
  overflow: auto;
  white-space: pre;
  color: inherit;
}

/* ==========================================================================
   V2 · Product Builder brand chrome — .layout.l-pb-*
   Additive: no V1 selectors modified. Same aesthetic as the gallery
   (decks/_gallery/brand-tokens.css + slides.css → .slide--pb-*).
   Tokens, partials, and per-layout rules all live in this single block.
   ========================================================================== */

:root {
  /* ground */
  --pb-bg-slate:   #0E1117;
  --pb-bg-deep:    #0C1F1B;
  --pb-bg-emerald: #103027;
  --pb-ground: radial-gradient(125% 105% at 16% 102%,
    var(--pb-bg-emerald) 0%, var(--pb-bg-deep) 46%, var(--pb-bg-slate) 100%);

  /* ink — alpha-white so muted text reads on violet AND emerald */
  --pb-ink:            #FBFCFB;
  --pb-ink-muted:      rgba(251, 252, 251, 0.72);
  --pb-ink-muted-sage: #9AA39E;
  --pb-ink-faint:      rgba(233, 238, 235, 0.36);
  --pb-hairline:       rgba(233, 238, 235, 0.18);

  /* program accent */
  --pb-mint:     #4FE0A3;
  --pb-mint-dim: rgba(79, 224, 163, 0.55);

  /* type */
  --pb-font-display:    "Space Grotesk", system-ui, sans-serif;
  --pb-font-body:       "Inter", system-ui, sans-serif;
  --pb-font-mono:       "JetBrains Mono", ui-monospace, monospace;
  --pb-fs-eyebrow:      14px;
  --pb-fs-display:      132px;
  --pb-fs-display-min:  96px;
  --pb-fs-subhead:      28px;
  --pb-fs-h2:           52px;
  --pb-fs-body:         24px;
  --pb-fs-foot:         13px;
  --pb-display-clamp:   clamp(var(--pb-fs-display-min), 9vw, var(--pb-fs-display));

  /* spacing */
  --pb-safe:        96px;
  --pb-foot-bottom: 48px;
}

/* base — every .l-pb-* layout */
.layout[class*="l-pb-"] {
  /* fills #layout-container (already absolute inset 0). Padding via safe area. */
  padding: var(--pb-safe);
  color: var(--pb-ink);
  font-family: var(--pb-font-body);
  font-size: var(--pb-fs-body);
  line-height: 1.55;
  display: block;          /* override the V1 base flex-column */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* opt-in emerald ground for pb-* slides via slide.bg = "emerald-ground" */
#stage[data-pb-bg="emerald-ground"] { background: var(--pb-ground) !important; }
#stage[data-pb-bg="emerald-ground"] .layout[class*="l-pb-"] {
  --pb-ink-muted: var(--pb-ink-muted-sage);
}

/* ---------- shared partials ---------- */

.pb-eyebrow {
  font-family: var(--pb-font-mono);
  font-weight: 500;
  font-size: var(--pb-fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pb-mint);
  margin: 0 0 24px;
}
.pb-subhead {
  font-family: var(--pb-font-body);
  font-size: var(--pb-fs-subhead);
  color: var(--pb-ink-muted);
  margin: 0;
}

.pb-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-family: var(--pb-font-display);
  font-weight: 600;
  color: var(--pb-ink);
  letter-spacing: -0.005em;
}
.pb-wordmark--sm { font-size: 18px; }
.pb-wordmark--md { font-size: 28px; }
.pb-wordmark--lg { font-size: 56px; }
.pb-wordmark__mark { color: var(--pb-mint); font-weight: 500; }

.pb-footer {
  position: absolute;
  left: var(--pb-safe);
  right: var(--pb-safe);
  bottom: var(--pb-foot-bottom);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--pb-font-mono);
  font-size: var(--pb-fs-foot);
  letter-spacing: 0.16em;
  color: var(--pb-ink-faint);
  text-transform: uppercase;
}
.pb-footer__left   { justify-self: start; }
.pb-footer__center { justify-self: center; }
.pb-footer__right  { justify-self: end; }
.pb-footer__mark   { color: var(--pb-mint-dim); margin-right: 0.6em; }

.pb-corner-mark {
  position: absolute;
  top: var(--pb-safe);
  right: var(--pb-safe);
  font-family: var(--pb-font-mono);
  font-size: 22px;
  color: var(--pb-mint);
  opacity: 0.55;
  line-height: 1;
}

.pb-slot {
  border: 2px solid var(--pb-hairline);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.pb-slot__caption {
  position: absolute;
  bottom: 16px;
  left: 18px;
  font-family: var(--pb-font-mono);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pb-ink-muted);
}
.pb-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* rung breadcrumb — top of pb-cover */
.pb-rung-breadcrumb {
  position: absolute;
  top: var(--pb-safe);
  left: var(--pb-safe);
  right: var(--pb-safe);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pb-rung-breadcrumb__level {
  font-family: var(--pb-font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pb-ink-faint);
  margin: 0 0 10px;
}
.pb-rung-breadcrumb__bar {
  height: 6px;
  background: var(--pb-hairline);
  border-radius: 3px;
  margin-bottom: 10px;
}
.pb-rung-breadcrumb__role {
  font-family: var(--pb-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pb-ink-faint);
  margin: 0;
}
.pb-rung-breadcrumb__item--current .pb-rung-breadcrumb__level { color: var(--rung-color, var(--pb-mint)); }
.pb-rung-breadcrumb__item--current .pb-rung-breadcrumb__bar   { background: var(--rung-color, var(--pb-mint)); }
.pb-rung-breadcrumb__item--current .pb-rung-breadcrumb__role  { color: var(--pb-ink); }

/* ---------- pb-cover ---------- */
.layout.l-pb-cover .pb-cover__lockup {
  position: absolute;
  left: var(--pb-safe);
  bottom: 200px;
  max-width: 1500px;
}
.layout.l-pb-cover .pb-cover__title {
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: var(--pb-display-clamp);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--pb-ink);
  margin: 0 0 28px;
}
.layout.l-pb-cover .pb-cover__subhead { max-width: 900px; }

/* ---------- pb-section ---------- */
.layout.l-pb-section .pb-section__inner {
  position: absolute;
  left: var(--pb-safe);
  bottom: 220px;
  max-width: 1500px;
}
.layout.l-pb-section .pb-section__title {
  font-family: var(--pb-font-display);
  font-weight: 600;
  font-size: 120px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--pb-ink);
  margin: 0 0 24px;
}
.layout.l-pb-section .pb-section__dek {
  font-family: var(--pb-font-body);
  font-size: var(--pb-fs-subhead);
  color: var(--pb-ink-muted);
  max-width: 900px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- pb-ladder ---------- */
.layout.l-pb-ladder .pb-ladder__inner {
  position: absolute;
  left: var(--pb-safe);
  right: var(--pb-safe);
  top: 220px;
  bottom: 200px;
}
.layout.l-pb-ladder .pb-ladder__head { margin-bottom: 64px; max-width: 1200px; }
.layout.l-pb-ladder .pb-ladder__title {
  font-family: var(--pb-font-display);
  font-weight: 600;
  font-size: var(--pb-fs-h2);
  color: var(--pb-ink);
  margin: 0 0 16px;
  line-height: 1.05;
}
.layout.l-pb-ladder .pb-ladder__rungs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.layout.l-pb-ladder .pb-rung {
  border-top: 4px solid var(--rung-color, var(--pb-mint));
  padding-top: 28px;
  position: relative;
}
.layout.l-pb-ladder .pb-rung__here {
  position: absolute; top: -34px; left: 0;
  font-family: var(--pb-font-mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rung-color, var(--pb-mint));
}
.layout.l-pb-ladder .pb-rung__level {
  font-family: var(--pb-font-mono); font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rung-color, var(--pb-mint));
  margin-bottom: 12px;
}
.layout.l-pb-ladder .pb-rung__role {
  font-family: var(--pb-font-display);
  font-size: 36px; font-weight: 600;
  color: var(--pb-ink); margin: 0 0 14px; line-height: 1.1;
}
.layout.l-pb-ladder .pb-rung__line {
  font-family: var(--pb-font-body); font-size: 22px;
  color: var(--pb-ink-muted); line-height: 1.5; margin: 0;
}

/* ---------- pb-trainer ---------- */
.layout.l-pb-trainer .pb-trainer__inner {
  position: absolute;
  left: var(--pb-safe);
  right: var(--pb-safe);
  top: 200px;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 96px;
}
.layout.l-pb-trainer .pb-trainer__photo { width: 480px; height: 480px; }
.layout.l-pb-trainer .pb-trainer__name {
  font-family: var(--pb-font-display); font-size: 64px; font-weight: 600;
  color: var(--pb-ink); margin: 16px 0 12px; line-height: 1.05;
}
.layout.l-pb-trainer .pb-trainer__role {
  font-family: var(--pb-font-body); font-size: 28px;
  color: var(--pb-ink-muted); margin: 0 0 32px; line-height: 1.5; max-width: 700px;
}
.layout.l-pb-trainer .pb-trainer__chips {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  font-family: var(--pb-font-mono); font-size: 16px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pb-ink-muted);
}
.layout.l-pb-trainer .pb-trainer__chips span::before {
  content: "·"; margin-right: 28px; color: var(--pb-mint-dim);
}
.layout.l-pb-trainer .pb-trainer__chips span:first-child::before { content: none; }

/* ---------- pb-connect ---------- */
.layout.l-pb-connect {
  display: grid !important;
  place-items: center;
  text-align: center;
}
.layout.l-pb-connect .pb-connect__inner {
  display: grid; place-items: center; gap: 36px;
}
.layout.l-pb-connect .pb-connect__name {
  font-family: var(--pb-font-display); font-size: 64px; font-weight: 600;
  color: var(--pb-ink); margin: 8px 0 16px; line-height: 1.05;
}
.layout.l-pb-connect .pb-connect__qr {
  width: 320px; height: 320px;
  background: #ffffff; padding: 12px;
}
.layout.l-pb-connect .pb-connect__qr img { object-fit: contain; }
.layout.l-pb-connect .pb-connect__url {
  font-family: var(--pb-font-mono); font-size: 22px;
  letter-spacing: 0.08em; color: var(--pb-ink); margin: 0;
}

/* ---------- pb-thankyou ---------- */
.layout.l-pb-thankyou .pb-thankyou__inner {
  position: absolute;
  left: var(--pb-safe);
  bottom: 220px;
  max-width: 1500px;
}
.layout.l-pb-thankyou .pb-thankyou__title {
  font-family: var(--pb-font-display); font-weight: 700;
  font-size: var(--pb-display-clamp);
  line-height: 0.98; letter-spacing: -0.02em;
  color: var(--pb-ink); margin: 0 0 36px;
}
.layout.l-pb-thankyou .pb-thankyou__cta {
  font-family: var(--pb-font-body); font-size: 26px;
  color: var(--pb-ink-muted); margin: 24px 0 0;
}
.layout.l-pb-thankyou .pb-thankyou__cta strong { font-weight: 500; }
