/* ---------------------------------------------------------------------------
   Paira depth draft.
   Contribution, impact, and growth, shown early and read in under a minute.
   Draft only: nothing in this file is referenced by paira/index.html.
   Reuses the page tokens from style.css (.paira-case-page) and paira-case.css.
--------------------------------------------------------------------------- */

.pd-draftbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--case-accent-deep); color: #fff;
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .8rem; line-height: 1.5;
}
.pd-draftbar .container { display: flex; gap: .9rem; align-items: baseline; flex-wrap: wrap; padding-top: .55rem; padding-bottom: .55rem; }
.pd-draftbar b { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; }
.pd-draftbar span { opacity: .82; }

/* A note that marks what a block is, and what still needs her confirmation. */
.pd-note {
  max-width: 68ch; margin: 0 0 1.5rem; padding: .85rem 1.05rem;
  border-left: 3px solid var(--case-accent);
  background: rgba(255,255,255,.72);
  color: var(--ink-soft); font-size: .9rem; line-height: 1.55;
}
.pd-tag {
  display: inline-block; margin-right: .4rem; padding: .15rem .55rem; border-radius: 999px;
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle;
}
.pd-tag-new { color: #fff; background: var(--case-accent-deep); }
.pd-tag-alt { color: var(--case-accent-deep); background: var(--case-accent-soft); border: 1px solid var(--case-line); }
.pd-tag-ask { color: #7a4a00; background: #fff1d6; border: 1px solid #f0d9a8; }

/* A fact this page is waiting on. Inline, so it is impossible to miss. */
.pd-slot {
  display: inline-block; padding: .05rem .45rem; border-radius: .3rem;
  background: #fff1d6; border: 1px dashed #e0bd7c; color: #7a4a00;
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .86em; font-weight: 600;
}

/* ---------- A. The opening block: three calls, read in fifteen seconds ----- */

.pd-ledger {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--sp-block);
  padding: clamp(.4rem, 1vw, .8rem) 0 clamp(.6rem, 1.4vw, 1.1rem);
  border-radius: 1.6rem;
  background:
    radial-gradient(100% 68% at 50% -16%, rgba(96, 92, 255, .20), rgba(96, 92, 255, 0) 62%),
    var(--paira-ink);
  box-shadow: inset 0 1px 0 rgba(150, 147, 255, .5);
  color: #fff;
}

/* a faint lattice, fading out downward: the app's own instrument surface */
.pd-ledger::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 2.25rem 2.25rem;
  -webkit-mask-image: radial-gradient(130% 105% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(130% 105% at 50% 0%, #000 30%, transparent 80%);
}

.pd-ledger-item {
  position: relative; z-index: 1;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr);
  padding: clamp(1.5rem, 2.8vw, 2.3rem) clamp(1.4rem, 2.6vw, 2.1rem) clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  text-decoration: none;
  transition: background .45s cubic-bezier(.22, .61, .36, 1);
}

.pd-ledger-item + .pd-ledger-item { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .11); }
.pd-ledger-item:hover { background: rgba(255, 255, 255, .045); }

/* the violet rail draws itself across the top of the column you are reading */
.pd-ledger-item::after {
  content: "";
  position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--paira-violet), #b8b6ff);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s cubic-bezier(.19, 1, .22, 1);
}
.pd-ledger-item:hover::after,
.pd-ledger-item:focus-visible::after { transform: scaleX(1); }

/* 01 · a dot, a tabular number, a hairline running to the edge */
.pd-ledger-num {
  display: grid; grid-template-columns: auto auto 1fr;
  align-items: center; gap: .65rem;
  width: auto; height: auto;
  border: 0; border-radius: 0; background: none;
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
  color: var(--paira-lilac, #e5e5ff);
}
.pd-ledger-num::before {
  content: "";
  width: .4rem; height: .4rem; border-radius: 50%;
  background: var(--paira-violet);
  box-shadow: 0 0 0 3px rgba(96, 92, 255, .22);
  transition: box-shadow .45s ease;
}
.pd-ledger-num::after { content: ""; height: 1px; background: rgba(255, 255, 255, .15); }
.pd-ledger-item:hover .pd-ledger-num::before { box-shadow: 0 0 0 6px rgba(96, 92, 255, .3); }

.pd-ledger-item h3 {
  margin: 1.1rem 0 1.4rem;
  font-family: var(--paira-font-display, "Playfair Display", serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.7vw, 1.56rem);
  line-height: 1.2; letter-spacing: -.012em;
  text-wrap: balance;
  color: #fff;
}

.pd-rows { display: flex; flex-direction: column; gap: 1.15rem; margin: 0; }
.pd-row { display: grid; gap: .38rem; }
.pd-row dt {
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(229, 229, 255, .52);
}
.pd-row dd {
  margin: 0;
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .86rem; line-height: 1.58;
  color: rgba(255, 255, 255, .7);
}
.pd-row dd strong { color: #fff; font-weight: 600; }

/* what I took away is the line that matters: pinned to the foot of every
   column so the three read on one baseline, and given the violet margin */
.pd-row:last-child {
  margin-top: auto; padding-left: .9rem;
  border-left: 1px solid rgba(96, 92, 255, .6);
}
.pd-row:last-child dt { color: #b8b6ff; }

@media (prefers-reduced-motion: reduce) {
  .pd-ledger-item,
  .pd-ledger-item::after,
  .pd-ledger-num::before { transition: none; }
}

/* ---------- A2. The alternative opening: one band, owned and changed ------- */

.pd-glance {
  margin-top: var(--sp-block);
  border-top: 1px solid var(--case-line); border-bottom: 1px solid var(--case-line);
  padding: clamp(1.2rem, 2.4vw, 1.9rem) 0;
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.5fr);
  gap: clamp(1.4rem, 3vw, 3rem);
}
.pd-glance-head { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--case-accent-deep); margin: 0 0 .7rem; }
.pd-owned { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pd-owned li { font-size: .95rem; line-height: 1.5; color: var(--ink); }
.pd-owned li span { color: var(--merlin-muted); }
.pd-changed { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 2vw, 1.8rem); }
.pd-changed p { margin: 0; font-size: .89rem; line-height: 1.5; color: var(--ink-soft); }
.pd-changed b { display: block; margin-bottom: .25rem; color: var(--ink); font-weight: 600; font-size: .95rem; }

/* ---------- B. Story 1: what an idea arrives with --------------------------- */

.pd-anatomy {
  display: grid; grid-template-columns: minmax(0,.78fr) 2.4rem minmax(0,1.55fr);
  gap: clamp(.9rem, 2vw, 1.6rem); align-items: start;
  margin-top: var(--sp-block);
}
.pd-anatomy-col > figcaption {
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--merlin-muted); margin-bottom: .7rem;
}
.pd-anatomy-after > figcaption { color: var(--case-accent-deep); }
.pd-idea {
  border: 1px solid var(--case-line); background: #fff; border-radius: .85rem;
  padding: .95rem 1.1rem;
  font-family: var(--font-display); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.2; color: var(--ink);
}
.pd-anatomy-after .pd-idea { box-shadow: 0 0 0 2px var(--case-accent-soft); border-color: rgba(96,92,255,.4); }
.pd-anatomy-arrow { align-self: start; text-align: center; color: var(--case-accent-deep); font-size: 1.25rem; padding-top: 3.15rem; }
.pd-attach {
  list-style: none; margin: 0; padding: .9rem 0 0 1.5rem;
  border-left: 1px solid var(--case-line); margin-left: 1.3rem;
  display: grid; gap: .95rem;
}
.pd-attach li {
  position: relative; font-size: .91rem; line-height: 1.55; color: var(--ink-soft);
  opacity: 0; transform: translateY(.55rem);
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * .14s);
}
.is-shown .pd-attach li { opacity: 1; transform: none; }
.pd-attach li::before { content: ""; position: absolute; left: -1.5rem; top: .62rem; width: 1.05rem; height: 1px; background: var(--case-line); }
.pd-attach b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- C. Story 2: two directions, one test, one decision ------------- */

.pd-ways {
  display: grid; grid-template-columns: minmax(0,1fr) 2rem minmax(0,1fr);
  gap: .9rem clamp(.8rem, 1.6vw, 1.2rem); align-items: end;
  margin-top: var(--sp-block);
}
/* Both groups stand on one ground line, so the shorter one does not leave a
   hole above its caption; the slack goes to the top where nothing reads it. */
.pd-ways-set { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; align-items: end; align-self: end; }
.pd-ways-arrow { align-self: center; text-align: center; color: var(--case-accent-deep); font-size: 1.3rem; }
.pd-way { margin: 0; min-width: 0; }
.pd-way img { display: block; width: 100%; height: auto; border-radius: .7rem; background: var(--paira-ink); box-shadow: 0 10px 26px rgba(19,19,19,.12); opacity: .8; filter: saturate(.85); }
.pd-ways-shipped .pd-way img { opacity: 1; filter: none; box-shadow: 0 0 0 2px rgba(96,92,255,.55), 0 10px 26px rgba(19,19,19,.14); }
.pd-way figcaption { margin-top: .45rem; font-size: .75rem; text-align: center; color: var(--merlin-muted); }
.pd-ways-shipped .pd-way figcaption { color: var(--case-accent-deep); font-weight: 600; }
.pd-ways-label { grid-row: 2; margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); align-self: start; }
.pd-ways-label b { display: block; color: var(--ink); font-weight: 600; margin-bottom: .15rem; }
.pd-ways-label-tried { grid-column: 1; }
.pd-ways-label-shipped { grid-column: 3; }
.pd-ways-label-shipped b { color: var(--case-accent-deep); }

.pd-evidence {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
  margin-top: var(--sp-block); padding-top: 1.15rem; border-top: 1px solid var(--case-line);
}
.pd-evidence h4 { margin: 0 0 .45rem; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--case-accent-deep); }
.pd-evidence p { margin: 0; font-size: .91rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- D. Story 3: three lanes, and the checks that align them -------- */

.pd-lanes {
  margin-top: var(--sp-block);
  background: #fff; border: 1px solid var(--case-line); border-radius: 1rem;
  padding: clamp(1rem, 2.2vw, 1.6rem);
}
.pd-lanes svg { display: block; width: 100%; height: auto; }
.pd-lane-label { font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif); font-size: 13px; font-weight: 600; fill: var(--ink); }
.pd-lane-line { stroke: var(--case-line); stroke-width: 1; }
.pd-lane-node {
  fill: #cfcde8;
  transform: translateX(var(--dx, 0px));
  transition: transform 1.1s cubic-bezier(.22,1,.36,1), fill 1.1s ease;
  transition-delay: calc(var(--i, 0) * .06s);
}
.is-aligned .pd-lane-node { transform: translateX(0); fill: var(--case-accent); }
.pd-check-line { stroke: var(--case-accent-deep); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity .7s ease .55s; }
.is-aligned .pd-check-line { opacity: .75; }
.pd-check-text { font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif); font-size: 11.5px; font-weight: 600; fill: var(--case-accent-deep); opacity: 0; transition: opacity .7s ease .7s; }
.is-aligned .pd-check-text { opacity: 1; }
.pd-lanes-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.pd-lanes-foot p { margin: 0; font-size: .85rem; color: var(--merlin-muted); }
.pd-replay {
  border: 1px solid var(--case-line); background: transparent; border-radius: 999px;
  padding: .32rem .85rem; cursor: pointer; color: var(--case-accent-deep);
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .76rem; font-weight: 600;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.pd-replay:hover { background: var(--case-accent-deep); border-color: transparent; color: #fff; }

/* ---------- The carried-forward line that closes each story ---------------- */

.pd-carry {
  margin-top: var(--sp-block); padding-left: 1.1rem;
  border-left: 2px solid var(--case-accent);
  max-width: 62ch;
}
.pd-carry span { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--case-accent-deep); margin-bottom: .35rem; }
.pd-carry p { margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.32; color: var(--ink); }

/* ---------- The open questions list at the foot of the draft --------------- */

.pd-confirm { list-style: none; margin: var(--sp-block) 0 0; padding: 0; display: grid; gap: .85rem; max-width: 74ch; }
.pd-confirm li { padding-left: 1.3rem; position: relative; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
.pd-confirm li::before { content: ""; position: absolute; left: 0; top: .55rem; width: .42rem; height: .42rem; border-radius: 50%; background: #e0bd7c; }
.pd-confirm b { color: var(--ink); font-weight: 600; }

/* ---------- Narrow screens ------------------------------------------------- */

@media (max-width: 1024px) {
  .pd-ledger { grid-template-columns: 1fr; gap: 0; }
  .pd-ledger-item + .pd-ledger-item { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11); }
  .pd-glance { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pd-anatomy { grid-template-columns: 1fr; }
  .pd-anatomy-arrow { padding-top: .2rem; transform: rotate(90deg); }
  .pd-ways { grid-template-columns: 1fr; }
  .pd-ways-arrow { transform: rotate(90deg); }
  .pd-ways-label-tried, .pd-ways-label-shipped { grid-column: 1; grid-row: auto; }
  .pd-evidence { grid-template-columns: 1fr; }
  .pd-changed { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-attach li { opacity: 1; transform: none; transition: none; }
  .pd-lane-node { transform: translateX(0); fill: var(--case-accent); transition: none; }
  .pd-check-line { opacity: .75; transition: none; }
  .pd-check-text { opacity: 1; transition: none; }
}

/* ---------- C, revised: one point, two surfaces, two kinds of proof ------- */

.pd-method { margin-top: var(--sp-stage); }
.pd-method:first-of-type { margin-top: var(--sp-block); }
.pd-method-head {
  margin: 0 0 .3rem; font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--case-accent-deep);
}
.pd-method h3 {
  margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.72rem); line-height: 1.14; text-wrap: balance;
}
.pd-method > p { margin: 0; max-width: 64ch; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.pd-method .pd-ways { margin-top: var(--sp-tight); }
.pd-method .pd-evidence { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* ---------- Signals: what came back, grouped under three headings --------- */

.pd-signals {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
  margin-top: var(--sp-block); padding-top: 1.2rem; border-top: 1px solid var(--case-line);
}
.pd-signal-head { margin: 0 0 .25rem; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--case-accent-deep); }
.pd-signal h4 { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.38rem); line-height: 1.18; color: var(--ink); text-wrap: balance; }
.pd-signal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pd-signal li { position: relative; padding-left: 1rem; font-size: .89rem; line-height: 1.5; color: var(--ink-soft); }
.pd-signal li::before { content: ""; position: absolute; left: 0; top: .52rem; width: .38rem; height: .38rem; border-radius: 50%; background: var(--case-accent); }
.pd-signal li b { color: var(--ink); font-weight: 600; }

/* The call that followed, and the thing we kept for later. */
.pd-called {
  margin-top: var(--sp-block); display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1.2rem, 2.6vw, 2.4rem);
}
.pd-called > div { padding-top: 1rem; border-top: 1px solid var(--case-line); }
.pd-called > div:last-child { border-top-color: rgba(63,60,199,.35); }
.pd-called h4 { margin: 0 0 .45rem; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--case-accent-deep); }
.pd-called p { margin: 0; font-size: .93rem; line-height: 1.58; color: var(--ink-soft); }
.pd-called strong { color: var(--ink); font-weight: 600; }

/* Still open, written as the next question rather than as a gap. */
.pd-next { margin-top: var(--sp-block); }
.pd-next h4 { margin: 0 0 .6rem; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--case-accent-deep); }
.pd-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; counter-reset: nx; max-width: 72ch; }
.pd-next li { position: relative; padding-left: 1.7rem; font-size: .91rem; line-height: 1.52; color: var(--ink-soft); counter-increment: nx; }
.pd-next li::before {
  content: counter(nx); position: absolute; left: 0; top: .02rem;
  width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 1px solid var(--case-line);
  display: grid; place-items: center;
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .64rem; font-weight: 600; color: var(--case-accent-deep); font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) { .pd-signals { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .pd-called { grid-template-columns: 1fr; } }

/* A credit line: team research, named plainly, no disclaimer tone. */
.pd-credit {
  margin-top: var(--sp-tight); max-width: 70ch;
  font-size: .82rem; line-height: 1.55; color: var(--merlin-muted);
}
.pd-credit b { color: var(--ink-soft); font-weight: 600; }

/* ---------- D: the status system, rebuilt as the board it really is ------ */

.pd-board {
  margin-top: var(--sp-block);
  border-radius: 1rem; overflow: hidden;
  background: #1f1f1f; box-shadow: 0 18px 44px rgba(19,19,19,.22);
}
.pd-board-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .7rem .95rem; background: #2a2a2a; border-bottom: 1px solid rgba(255,255,255,.07);
}
.pd-board-title {
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.52);
}
.pd-board-toggle { display: flex; gap: .3rem; }
.pd-board-toggle button {
  border: 1px solid rgba(255,255,255,.16); background: transparent; color: rgba(255,255,255,.62);
  border-radius: 999px; padding: .3rem .8rem; cursor: pointer;
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .74rem; font-weight: 600;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.pd-board-toggle button:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.pd-board-toggle button.is-on { background: #a6a0ff; border-color: transparent; color: #17162b; }

.pd-board-canvas { padding: clamp(.9rem, 2vw, 1.5rem); }

.pd-board-legend { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .6rem; margin-bottom: 1.1rem; }
.pd-state {
  display: block; border-radius: .5rem; padding: .6rem .7rem;
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .76rem; line-height: 1.4; color: #fff;
  transition: background .5s ease, color .5s ease, opacity .5s ease;
}
.pd-state b { display: block; font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .22rem; opacity: .75; }
.pd-state-1 { background: #a6a0ff; color: #17162b; }
.pd-state-2 { background: #6d6d20; }
.pd-state-3 { background: #4a4a4a; }

.pd-board-sections { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; align-items: start; }
.pd-board-group { background: #333; border-radius: .6rem; padding: .7rem; }
.pd-board-group > p {
  margin: 0 0 .55rem; font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.8);
}
.pd-tiles { display: grid; gap: .45rem; }
.pd-tile {
  border-radius: .4rem; padding: .52rem .6rem;
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .74rem; line-height: 1.35; color: #fff;
  transition: background .5s ease, color .5s ease;
}
.pd-tile span { display: block; font-size: .64rem; opacity: .7; margin-top: .12rem; font-variant-numeric: tabular-nums; }
.pd-tile-1 { background: #a6a0ff; color: #17162b; }
.pd-tile-2 { background: #6d6d20; }
.pd-tile-3 { background: #4a4a4a; }

/* Before the system: the same file, with nothing telling you where anything is. */
.pd-board.is-before .pd-state { background: #3a3a3a; color: rgba(255,255,255,.3); }
.pd-board.is-before .pd-tile { background: #4a4a4a; color: rgba(255,255,255,.62); }
.pd-board-caption {
  margin: .9rem 0 0; font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .78rem; line-height: 1.5; color: rgba(255,255,255,.5);
}
.pd-board.is-before .pd-board-caption-after,
.pd-board:not(.is-before) .pd-board-caption-before { display: none; }

@media (max-width: 1024px) {
  .pd-board-legend { grid-template-columns: 1fr; }
  .pd-board-sections { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Breathing pass. Her note: too much text, too little picture, crowded,
   does not read. Scaffolding goes behind a switch, every signal drops to one
   line, the shipped screen gets to be big, and the blocks get air.
   =========================================================================== */

/* Draft scaffolding is off by default, so the page reads as it would ship. */
.pd-draftonly { display: none; }
body.show-notes .pd-draftonly { display: block; }
body.show-notes section.pd-draftonly { display: block; }
.pd-notes-toggle {
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  border-radius: 999px; padding: .22rem .75rem; cursor: pointer; margin-left: auto;
  font-family: var(--paira-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .7rem; font-weight: 600; white-space: nowrap;
  transition: background .3s ease, color .3s ease;
}
.pd-notes-toggle:hover { background: #fff; color: var(--case-accent-deep); }

/* Air between the blocks of one section. */
.pd-method { margin-top: var(--sp-act); }
.pd-method:first-of-type { margin-top: var(--sp-stage); }
.pd-method > p { margin-top: .6rem; }

/* Two tried, one shipped, and the shipped one is visibly the outcome. */
.pd-ways { grid-template-columns: minmax(0,1fr) 1.9rem minmax(0,.66fr); margin-top: var(--sp-rest); }
.pd-ways-shipped.is-single,
.pd-ways-tried.is-single { grid-template-columns: minmax(0,1fr); }

/* One screen against one screen: give them the same width, or the comparison
   reads as a change in size rather than a change in the screen. */
.pd-ways:has(.pd-ways-tried.is-single) {
  grid-template-columns: minmax(0, 1fr) 1.9rem minmax(0, 1fr);
}

/* One line per signal: the claim, nothing propping it up. */
.pd-signals { margin-top: var(--sp-stage); padding-top: 1.3rem; }
.pd-signal h4 { margin-bottom: .45rem; }
.pd-signal p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }
.pd-signal p b { color: var(--ink); font-weight: 600; }

/* The call, as one sentence on a rule rather than a pair of panels. */
.pd-callline {
  margin-top: var(--sp-stage); padding-top: 1.1rem; border-top: 1px solid var(--case-line);
  max-width: 76ch; font-size: .95rem; line-height: 1.6; color: var(--ink-soft);
}
.pd-callline b { color: var(--ink); font-weight: 600; }

/* Still open, as a row of pills rather than a numbered list. */
.pd-pills { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: var(--sp-block); }
.pd-pills > em {
  font-style: normal; font-size: .66rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--case-accent-deep); margin-right: .3rem;
}
.pd-pills span {
  border: 1px solid var(--case-line); border-radius: 999px; padding: .3rem .7rem;
  font-size: .78rem; color: var(--ink-soft); background: rgba(255,255,255,.5);
}

.pd-credit { margin-top: var(--sp-block); }
.pd-carry { margin-top: var(--sp-act); }
.pd-evidence { margin-top: var(--sp-stage); }
.pd-board { margin-top: var(--sp-rest); }

@media (max-width: 760px) {
  .pd-ways { grid-template-columns: 1fr; }
  .pd-ways-shipped.is-single { grid-template-columns: minmax(0,.6fr); }
}

/* ===========================================================================
   More air. Her note: 还要再空. This stylesheet is loaded by the draft page
   only, so the scale here does not reach the live case study.
   =========================================================================== */

body.paira-case-page {
  --sp-tight: clamp(1.4rem, 2.4vw, 2rem);
  --sp-block: clamp(2.8rem, 4.6vw, 3.8rem);
  --sp-stage: clamp(5.2rem, 8.6vw, 7.6rem);
  --sp-rest:  clamp(3.2rem, 5.4vw, 4.6rem);
  --sp-part:  clamp(5.6rem, 10vw, 8.6rem);
  --sp-act:   clamp(9rem, 15vw, 15rem);
  --sp-join:  clamp(3.8rem, 6.2vw, 5.4rem);
}

/* A lede should sit alone for a beat before anything answers it. */
.pd-ledger { margin-top: var(--sp-stage); }
.pd-signals { gap: clamp(1.8rem, 3.6vw, 3.2rem); }
.pd-anatomy { gap: clamp(1.2rem, 2.6vw, 2.2rem); margin-top: var(--sp-stage); }
.pd-attach { gap: 1.25rem; }
.pd-method > h3 { margin-bottom: .7rem; }
.pd-ways { margin-top: var(--sp-stage); gap: 1.3rem clamp(.9rem, 1.8vw, 1.4rem); }
.pd-evidence { gap: clamp(1.6rem, 3.2vw, 2.8rem); }
.pd-board-sections { gap: .9rem; }
.pd-board-canvas { padding: clamp(1.1rem, 2.4vw, 1.9rem); }

/* ===========================================================================
   THE SCREEN STANDARD
   One device, one proportion, one rounding, at every size on every project.

   Proportion: 393 x 852, the ratio 37 of the 39 Paira exports already use.
   Anything off-ratio is cropped to it rather than squashed.

   Rounding: expressed in cqw, so it scales with the screen's displayed width.
   A fixed rem radius makes a small screen look rounder than a large one,
   which is the inconsistency this is here to remove. 6.4cqw matches what the
   large phones look like today, and now the small ones match them.

   Size is still free: a feature worth a closer look can be shown larger and
   it will still read as the same device.
   =========================================================================== */

.screen { container-type: inline-size; display: block; margin: 0; min-width: 0; }
.screen > img,
.screen > video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 393 / 852;
  object-fit: cover; object-position: center top;
  border-radius: var(--screen-radius);
  background: var(--paira-ink, #131313);
}

/* The draft page's own phones adopt it. */
.pd-way { container-type: inline-size; }
.pd-way img {
  aspect-ratio: 393 / 852;
  object-fit: cover; object-position: center top;
  border-radius: var(--screen-radius);
}
.pd-ways-shipped .pd-way img { border-radius: var(--screen-radius); }

/* ===========================================================================
   Room inside the growth sections.

   These carry more per section than the rest of the page: a lede, a row of
   screens, a findings block and two notes. At the page's own rhythm they run
   together. The air here is theirs alone, so nothing else on the page moves.
   =========================================================================== */

/* ===========================================================================
   THE GROWTH SECTIONS' RHYTHM

   The page already has a scale, and these sections now speak it rather than
   one of their own. Nothing here invents a distance:

     --sp-tight  27px   a heading and the first thing under it
     --sp-block  45px   one component and the next
     --sp-stage  90px   the sentence that closes a part
     --sp-part  104px   one decision and the next

   An earlier pass built a second scale beside the page's, which is why these
   three sections opened up to roughly twice everything around them.
   =========================================================================== */

.pd-growth .merlin-report-lede p { margin-top: 1rem; }

/* one component, and the next: the default distance */
.pd-growth .pd-ways,
.pd-growth .paira-findings,
.pd-growth .pd-anatomy,
.pd-growth .pd-board,
.pd-growth .pd-evidence { margin-top: var(--sp-block); }

/* The section's own opening, and the first thing that answers it, at the same
   distance every other section on the page uses. The second selector steps
   over a hidden draft note, which the preview build strips but the draft page
   still carries as a sibling. */
.pd-growth .merlin-report-lede + :is(.pd-method, .pd-ways, .paira-findings, .pd-anatomy, .pd-board),
.pd-growth .merlin-report-lede + .pd-draftonly + :is(.pd-method, .pd-ways, .paira-findings, .pd-anatomy, .pd-board) { margin-top: var(--sp-tight); }

/* each study is a part of its own */
.pd-growth .pd-method { margin-top: var(--sp-part); }
.pd-growth .pd-method > h3 { margin: .45rem 0 .9rem; }
.pd-growth .pd-method > p { margin-top: .75rem; max-width: 64ch; }

/* a study's heading, and the first thing under it, read as one unit */
.pd-growth .pd-method > p + .pd-ways,
.pd-growth .pd-method > p + .paira-findings,
.pd-growth .pd-method > p + .pd-anatomy,
.pd-growth .pd-method > p + .pd-board,
.pd-growth .pd-method > p + .pd-evidence { margin-top: var(--sp-tight); }

.pd-growth .pd-evidence { gap: clamp(1.8rem, 3.4vw, 3.2rem); }
.pd-growth .paira-signals3 { gap: 0 clamp(1.8rem, 3.4vw, 3.2rem); margin-top: 1.5rem; }
.pd-growth .paira-signals3 article { padding-top: 1.3rem; }
.pd-growth .paira-signals3-evidence ul { gap: .8rem; margin-top: .7rem; }

/* a component, and the sentence that says what it means */
.pd-growth .paira-findings-note,
.pd-growth .pd-method > .paira-surface-note { margin-top: var(--sp-tight); }
.pd-growth .pd-method > .paira-surface-note + .paira-surface-note { margin-top: 1rem; }

/* what I carry forward closes the part */
.pd-growth .pd-carry { margin-top: var(--sp-stage); }

/* A round of research announces itself — who, how many, when — and the
   evidence follows directly under it. */
/* Who, how many, when — a sentence, not a label. Fourteen uppercase
   letterspaced labels in one act is a page shouting at the reader; this act
   now has one, and it is the line that closes it. */
.pd-growth .pd-method > .pd-round {
  margin-top: var(--sp-stage);
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--paira-font-body, "Instrument Sans", sans-serif);
  font-size: .92rem; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--case-accent-deep);
}
.pd-growth .pd-method > .pd-round::after {
  content: ""; flex: 1; height: 1px;
  background: color-mix(in srgb, var(--case-accent) 28%, transparent);
}
.pd-growth .pd-round + .pd-ways,
.pd-growth .pd-round + .paira-findings { margin-top: var(--sp-tight); }
.pd-growth .pd-ways + .paira-findings { margin-top: var(--sp-block); }

/* ---------- what moved after launch --------------------------------------- */

/* Three figures from PostHog, set in the page's display face so they read as
   a result rather than as a readout. */
.pd-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.8rem);
  margin-top: 1.1rem;
}
.pd-metric {
  display: flex; align-items: baseline; gap: .1em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.3rem);
  font-weight: 600; letter-spacing: -.02em; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pd-metric span { font-size: .34em; font-weight: 600; letter-spacing: 0; }
.pd-metrics-row article > p + p {
  margin-top: .55rem;
  font-size: .95rem; line-height: 1.5;
  color: var(--ink-soft);
}
.pd-growth .pd-metrics { margin-top: var(--sp-stage); }

@media (max-width: 760px) {
  .pd-metrics-row { grid-template-columns: 1fr; gap: 1.3rem; }
}


/* ---------- a finding, and what it changed -------------------------------- */

/* The label said FINDING seven times. The heading is the finding, and the
   arrow says the rest. */
.pd-growth .paira-signals3-evidence h3 { margin: 0; }
.pd-change {
  display: flex; gap: .45em;
  margin: .55rem 0 0;
  font-size: .93rem; line-height: 1.5;
  color: var(--case-accent-deep);
}
.pd-change span { opacity: .75; }

/* The decision's number, as a numeral rather than a shout. */
.pd-growth .pd-method-head {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em;
  text-transform: none; color: var(--case-accent-deep);
  line-height: 1;
}

/* ---------- the figures get a bar ---------------------------------------- */

/* Three numbers on their own are a readout. The bars are to one scale, each
   from zero, so the three can be compared by eye before they are read. */
.pd-metrics-row article > i {
  display: block;
  height: .42rem;
  margin: .85rem 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg,
    var(--case-accent) 0 calc(var(--v, 50) * 1%),
    color-mix(in srgb, var(--case-accent) 13%, transparent) calc(var(--v, 50) * 1%) 100%);
}
.pd-metrics-row article > i + p { margin-top: .6rem; }

/* ---------- the rest of the shouting ------------------------------------- */

/* Three uppercase labels remain in this act: the rail, the three states on the
   board, and the line that closes it. Everything else that was set in caps is
   a sentence, and a sentence in caps is slower to read than the same sentence
   in sentence case. */
.pd-growth .pd-anatomy figcaption,
.pd-growth .pd-board-title,
.pd-growth .pd-evidence h4 {
  text-transform: none;
  letter-spacing: 0;
}
.pd-growth .pd-anatomy figcaption,
.pd-growth .pd-board-title {
  font-size: .9rem;
  font-weight: 600;
}
.pd-growth .pd-evidence h4 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.12;
}

/* ---------- a few screens, shown rather than compared ---------------------- */

/* The mentor round has no before to show: the version it replaced only ever
   existed in Figma. So it shows what shipped, in the page's own screen grid,
   three up instead of five. */
.pd-growth .pd-screens {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.6rem);
  margin-top: var(--sp-tight);
}
@media (max-width: 760px) {
  .pd-growth .pd-screens { grid-template-columns: 1fr; }
}
