/* ───────────────────────────────────────────────────────────────────────────
   feeling-perky-vc.css — page-specific additions for the VC ad landing (/pitch).
   Loads ON TOP of the shared perky sheets (feeling-perky.css + feeling-perky-surfaces.css);
   only the deltas the VC scenes need live here (verified absent from the shared sheets
   2026-07-18). Earthtone + agent-color motif only, flat surfaces (CLAUDE.md #11).
   Canonical visual spec: perky-vc-prototype.html (Jul 18). The real Playground cinematic
   reuses the shared #pg-stage / .pk-play-art / .pg-replay from feeling-perky.css — the
   prototype's static .pg-still is intentionally NOT ported.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Emphasis system (§1 cross-cutting): .pk-em = weight 600, UPRIGHT (never italic),
      terracotta; brightened on the dark close. Exactly the eight instances in the markup. ── */
.pk-hero em { font-style: italic; color: var(--accent-terracotta); }
.pk-h .hl { color: var(--accent-terracotta); }
.pk-em { font-style: normal; font-weight: 600; color: var(--accent-terracotta); }
.pk-close .pk-em { color: #EC6F45; }
.pk-open .pk-hero-sub { max-width: 46ch; }
@media (max-width: 640px) { .sub-br { display: none; } }

/* ── Mobile width guards (2026-07-18), riding the shared .pk-real cap in feeling-perky.css.
      Inline-width'd cards (300/280/420px) cap at the container on narrow phones; the scene-05
      greenlight→mutual arrow rotates downward once the two cards stack. Kanban sideways scroll
      itself comes from the shared fix (board overflow-x:auto now engages). ── */
.fitwrap .gl-card, .fitwrap .fitpanel { max-width: 100%; }
@media (max-width: 640px) { .fit-arrow { transform: rotate(90deg); } }

/* Global headline gap (§1) */
.pk-copy .pk-h { margin-bottom: 18px; }

/* §2 sub line-count fixes. ROOT CAUSE: the shared `.pk-show .pk-copy` PARENT clamps at 640px (feeling-perky.css),
   so widening only the .pk-say paragraph was a silent no-op — the parent must widen too. Per-scene targets
   mirror the prototype: 01/02 → parent 780px + paragraph 66ch (4 lines each); playground 06 → parent 990px +
   paragraph 86ch (2 lines), split OUT of the shared 58ch rule; board 03 keeps 58ch (4 lines). */
.pk-scene[data-track="03"] .pk-say { max-width: 58ch; }
.pk-scene[data-track="01"] .pk-copy, .pk-scene[data-track="02"] .pk-copy { max-width: 780px; }
.pk-scene[data-track="01"] .pk-say,  .pk-scene[data-track="02"] .pk-say  { max-width: 66ch; }
.pk-scene[data-track="06"] .pk-copy { max-width: 990px; }
.pk-scene[data-track="06"] .pk-say  { max-width: 86ch; }
/* Scene 07 hero must land on ONE line at desktop — the shared 640px copy clamp + 50px .pk-h wrapped "you."
   to its own line. Widen the copy and size the heading down for this scene; keep the paragraph measure sane.
   nowrap guarantees the single line at desktop only (the font clamp keeps it inside the copy); on mobile the
   heading may wrap, and "like&nbsp;you." in the markup keeps the single-word orphan from ever happening. */
.pk-scene[data-track="07"] .pk-copy { max-width: 820px; }
.pk-scene[data-track="07"] .pk-say  { max-width: 60ch; }
.pk-scene[data-track="07"] .pk-h    { font-size: clamp(30px, 3.4vw, 36px); }
@media (min-width: 760px) { .pk-scene[data-track="07"] .pk-h { white-space: nowrap; } }

/* ── Persistent corner CTA — gold pill top-right (mirrors the AdPerch pill top-left).
      The ask never waits. ── */
.pk-cta-fixed { position: fixed; top: 18px; right: 22px; z-index: 50; text-decoration: none; font-family: var(--font-sans); font-weight: 600; font-size: 13.5px;
  color: #17130f; background: var(--accent-gold, #d9a441); padding: 9px 16px; border-radius: 999px; box-shadow: 0 2px 12px rgba(0,0,0,.18); cursor: pointer; border: none; }
@media (max-width: 640px) { .pk-cta-fixed { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); right: 14px; font-size: 12.5px; padding: 8px 13px; } }

/* ── Scene 01 · the noise stack ── */
.pk-noise { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 7px; }
.pk-noise-row { background: var(--surface, #fff); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--text-tertiary); display: flex; gap: 10px; align-items: baseline; }
.pk-noise-row .from { font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.pk-noise-row.dim1 { opacity: .75 } .pk-noise-row.dim2 { opacity: .55 } .pk-noise-row.dim3 { opacity: .4 } .pk-noise-row.dim4 { opacity: .28 }
.pk-noise-row.buried { opacity: 1; border-left: 3px solid var(--accent-gold); }
.pk-count-chip { text-align: center; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); }

/* ── Scenes 02 / 04 · fit-analysis + "what Percy screens for" panel ── */
.fitwrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.fitpanel { width: 330px; max-width: 100%; background: var(--surface, #fff); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 18px; text-align: left; }
.fitpanel h4 { font-family: var(--font-serif); font-size: 16px; margin: 0 0 4px; }
.fitpanel .fit-sub { font-size: 11.5px; color: var(--text-tertiary); margin: 0 0 12px; }
.fitrow { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-secondary); }
.fitrow .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); width: 78px; flex: 0 0 78px; }
.fitrow .ok { color: var(--accent-sage); font-weight: 700; margin-right: 4px; }

/* ── Scene 06 · the "why" panel below the playground canvas (§1). Carries all FIVE match dimensions for the
      focal pair, REASONING-FIRST: thesis overlap + portfolio adjacency lead (emphasised), then sector / stage
      / check confirmations (sage ✓). Self-contained — the panel alone conveys the full why. Call-site rendered
      (feeling-perky-vc.js → #pg-why); engine untouched. The shared .pk-art is a flex ROW, so stack it here. ── */
.pk-scene[data-track="06"] .pk-art { flex-direction: column; align-items: center; }
.pg-why { width: 100%; max-width: 560px; margin: 24px auto 0; text-align: left; background: var(--surface, #fff);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 18px 14px; }
.pg-why:empty { display: none; }
.pg-why-head { font-family: var(--font-serif); font-size: 15px; color: var(--text-primary); margin-bottom: 10px; }
.pg-why-head b { font-weight: 600; color: var(--accent-terracotta); }
.pg-why-row { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--border-subtle); font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.pg-why-row:first-of-type { border-top: none; padding-top: 0; }
.pg-why-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-tertiary); width: 74px; flex: 0 0 74px; padding-top: 2px; }
.pg-why-lead .pg-why-v { color: var(--text-primary); }
.pg-why .pg-ok { color: var(--accent-sage); font-weight: 700; margin-right: 2px; }

/* ── Scene 03 · CRM chrome ON TOP — mirrors the app Inbound topbar (pipe-switch + pipe-search)
      followed by the card-colour key, then the board. Note + caption sit below. ── */
.crm-topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.crm-switch { display: inline-flex; border: 1px solid var(--border-subtle); border-radius: 999px; overflow: hidden; background: var(--bg-secondary); }
.crm-switch .crm-chip { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-secondary); background: none; border: none; padding: 5px 14px; cursor: pointer; transition: background .12s, color .12s; }
.crm-switch .crm-chip[aria-pressed="true"] { background: var(--accent-charcoal); color: var(--text-on-dark); }
.crm-switch .crm-chip[aria-pressed="false"]:hover { color: var(--accent-terracotta); }
.crm-search { margin-left: auto; font: inherit; font-size: 13px; color: var(--text-primary); background: var(--surface, #fff); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 6px 11px; width: 45%; min-width: 200px; max-width: 340px; transition: border-color .12s; }
.crm-search:focus { outline: none; border-color: var(--accent-sage); }
.crm-search::placeholder { color: var(--text-tertiary); }

/* card-colour key — same dot system as the pitch cards (resting/pending/greenlit) */
.crm-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11px; color: var(--text-tertiary); margin: 0 0 12px; }
.crm-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.crm-legend-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.crm-legend-dot.lg-resting { background: var(--accent-maroon); }
.crm-legend-dot.lg-pending { background: var(--accent-gold, #d9a441); }
.crm-legend-dot.lg-mutual { background: var(--accent-sage); }

/* live-filter empty state (per view) */
.crm-empty { display: none; padding: 22px 12px; text-align: center; font-size: 12.5px; font-style: italic; color: var(--text-tertiary); }
.crm-hide { display: none !important; }

/* note — quiet register, below the board (storytelling beat, not UI chrome) */
.crm-note { margin-top: 14px; border-left: 2px solid var(--border-emphasis); padding: 2px 0 2px 12px; font-size: 12px; font-style: italic; color: var(--text-tertiary); }
.crm-note-k { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); font-style: normal; margin-right: 8px; }
.crm-cap { margin-top: 12px; font-size: 12px; font-style: italic; color: var(--text-tertiary); }
@media (max-width: 640px) { .crm-search { margin-left: 0; width: 100%; min-width: 0; max-width: none; order: 3; flex: 1 1 100%; } }
.crm-view { display: none; } .crm-view.on { display: block; }
.crm-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr 1.4fr; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-secondary); background: var(--surface, #fff); }
.crm-row-head { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); background: transparent; }
.crm-nm { font-weight: 600; color: var(--text-primary); }
.crm-st { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); }
.crm-mut { color: var(--accent-sage); }
@media (max-width: 640px) { .crm-row { grid-template-columns: 1fr 1fr; } .crm-row span:nth-child(n+3) { display: none; } .crm-row-head span:nth-child(n+3) { display: none; } }

/* real timeline view (mirrors the app Timeline surface) */
.tl-wrap { position: relative; padding-left: 26px; }
.tl-wrap::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-emphasis); }
.tl-day { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); margin: 14px 0 6px; position: relative; }
.tl-day:first-child { margin-top: 0; }
.tl-ev { position: relative; display: flex; gap: 10px; padding: 7px 0; }
.tl-dot { position: absolute; left: -26px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface, #fff); border: 2.5px solid var(--border-emphasis); box-sizing: border-box; }
.tl-sage  { border-color: var(--accent-sage); background: var(--accent-sage); }
.tl-terra { border-color: var(--accent-terracotta); background: var(--accent-terracotta); }
.tl-gold  { border-color: var(--accent-gold, #d9a441); background: var(--accent-gold, #d9a441); }
.tl-body { background: var(--surface, #fff); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tl-t { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.tl-sub { font-size: 11px; color: var(--text-tertiary); }

/* ── Scene 07 · Similar Funds — FLAT horizontal constellation (§3, re-ruled 2026-07-18; supersedes the
      3/center/2 vertical scatter). A horizontal BAND around the center, not a stack: the whole scene fits
      one desktop viewport (~150px tall). The five-across MAIN axis carries the weight (Fundalot second-from-
      left — Bret-ruled off-center for an organic constellation feel); two sparse pills flank ABOVE split wide
      toward the edges, one sits BELOW-left. FLEX only. Pills unchanged (name + one terra similarity badge).
      Mobile: offsets zero out, rows wrap. ── */
.orbit { width: 100%; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.orbit-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; width: 100%; }
.orbit-top  { gap: clamp(150px, 30%, 320px); }   /* sparse: Foundry Row / Northfield split wide to the flanks */
.orbit-main { gap: clamp(14px, 2.6%, 34px); }     /* the five-across weight */
.star { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: var(--surface, #fff);
  border: 1px solid var(--border-subtle); border-radius: 999px; padding: 8px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.star b { font-size: 12.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.star i { font-family: var(--font-mono); font-style: normal; font-size: 8.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-terracotta); }
/* organic offsets — vertical ±6px on the main axis, ±56px lateral flank push on the sparse top pair */
.o-fl { transform: translate(-56px, -4px); }   /* Foundry Row — upper-left flank */
.o-fr { transform: translate(56px, 4px); }      /* Northfield — upper-right flank */
.o-u  { transform: translateY(-6px); }
.o-d  { transform: translateY(6px); }
.o-ql { transform: translate(-92px, 4px); }      /* Quorum — below the axis, offset left */
@media (max-width: 560px) { .o-fl, .o-fr, .o-u, .o-d, .o-ql { transform: none; } .orbit-top, .orbit-main, .orbit-bot { gap: 10px; } }
.const-you-g { background: #1d1a17; color: #f5efe6; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px;
  box-shadow: 0 4px 22px rgba(198,90,54,.4); border: 1.5px solid var(--accent-terracotta); text-align: center; }
.const-you-g span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: #EC6F45; }
