/* ═══════════════════════════════════════════════════════════════
   04 Debrief · 05 Next Steps
   ═══════════════════════════════════════════════════════════════ */

.db {
  position: relative; z-index: 2;
  max-width: var(--measure); margin: 0 auto;
  padding: clamp(28px, 4.4vh, 60px) var(--gutter) clamp(40px, 6vh, 80px);
}
.db__eyebrow {
  font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--step-deploy); margin-bottom: 14px;
}
.db__h {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 58px); line-height: 1.04;
  letter-spacing: -.018em; margin: 0; max-width: 20ch;
}
.db__lede { margin-top: 14px; font-size: var(--t-400); color: var(--stone); max-width: 52ch; }

/* ── 04 synthesis ────────────────────────────────────────────── */

.ws-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.3vw, 22px); margin-top: clamp(24px, 3.4vh, 44px);
}
.ws-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(18px, 2.4vh, 26px) clamp(16px, 1.6vw, 24px);
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--ink-03); position: relative; overflow: hidden;
}
.ws-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--tone);
}
.ws-card--1 { --tone: var(--step-deploy); }
.ws-card--2 { --tone: var(--step-invent); }
.ws-card--3 { --tone: var(--step-reshape); }

.ws-card__hd { display: flex; align-items: center; gap: 10px; }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); flex: none; }
.ws-card__t { font-size: var(--t-200); font-weight: 700; line-height: 1.3; }

.ws-empty { font-size: var(--t-200); color: var(--grey-2); font-style: italic; }
.ws-notes { display: flex; flex-direction: column; gap: 12px; }
.ws-note__q { font-size: var(--t-100); color: var(--stone); line-height: 1.4; }
.ws-note__a {
  font-family: var(--font-serif); font-size: var(--t-300);
  color: var(--ink); line-height: 1.4; margin-top: 4px;
  padding-left: 12px; border-left: 2px solid var(--tone);
}
.ws-card__metrics {
  display: flex; flex-direction: column; gap: 6px; margin-top: auto;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.ws-metric { font-size: var(--t-200); font-weight: 600; color: var(--tone); line-height: 1.35; }

/* ── 05 roadmap cards ────────────────────────────────────────── */

.ns-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.3vw, 22px); margin-top: clamp(24px, 3.4vh, 44px);
}
.ns-card {
  display: flex; flex-direction: column; gap: 12px; text-align: left;
  padding: clamp(20px, 2.6vh, 30px) clamp(18px, 1.7vw, 26px);
  background: var(--ink-03); border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink);
  transition: border-color var(--d-ui) var(--ease),
              transform var(--d-ui) var(--ease),
              background var(--d-ui) var(--ease);
}
.ns-card:hover {
  border-color: var(--step-deploy); transform: translateY(-3px);
  background: var(--ink-06, var(--ink-03));
}
.ns-card__n {
  font-family: var(--font-display); font-size: var(--t-050);
  font-weight: 800; letter-spacing: var(--tr-wide);
  color: var(--step-deploy); font-variant-numeric: tabular-nums;
}
.ns-card__t {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(20px, 1.9vw, 30px); line-height: 1.1; letter-spacing: -.012em;
}
.ns-card__s { font-size: var(--t-200); color: var(--stone); line-height: 1.5; }

.ns-card__phases {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.ns-phase { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
/* The bar fills on entry — the phases are a sequence, and a static
   bar doesn't say that. Width is the only animated property. */
.ns-phase__bar {
  grid-column: 1 / -1; height: 2px; background: var(--line-firm);
  position: relative; overflow: hidden; border-radius: 2px;
}
.ns-phase__bar i {
  position: absolute; inset: 0 auto 0 0; display: block;
  background: var(--step-deploy); width: var(--w);
  transform-origin: left; animation: nsFill 1.1s var(--ease) both;
  animation-delay: calc(var(--i, 0) * .12s);
}
@keyframes nsFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .ns-phase__bar i { animation: none; } }

.ns-phase__l { font-size: var(--t-100); font-weight: 700; }
.ns-phase__t { font-size: var(--t-050); color: var(--stone); text-align: right; }

.ns-card__cta {
  margin-top: auto; padding-top: 14px;
  font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--step-deploy);
}

/* ── Roadmap modal ───────────────────────────────────────────── */

.ns-ov {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: var(--veil-foot);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: clamp(20px, 5vh, 60px) var(--gutter); overflow-y: auto;
}
.ns-ov.is-open { display: block; }
.ns-ov__panel {
  max-width: 820px; margin: 0 auto;
  background: var(--base-raise); border: 1px solid var(--line-firm);
  border-radius: 14px; overflow: hidden;
}
.ns-ov__hd {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(18px, 2.4vh, 26px) clamp(20px, 2vw, 32px);
  border-bottom: 1px solid var(--line);
}
.ns-ov__hd h3 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(19px, 1.9vw, 28px); letter-spacing: -.012em;
}
.ns-ov__x {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: none; border: 1px solid var(--line-firm); color: var(--ink);
  font-size: 20px; line-height: 1;
  transition: background var(--d-micro) var(--ease);
}
.ns-ov__x:hover { background: var(--ink-03); }
.ns-ov__body { padding: clamp(20px, 2.8vh, 32px) clamp(20px, 2vw, 32px) clamp(24px, 3.4vh, 40px); }

.rm__intro { font-size: var(--t-300); color: var(--stone); line-height: 1.55; max-width: 62ch; }
.rm { list-style: none; padding: 0; margin: clamp(20px, 2.8vh, 30px) 0 0; }
.rm__step {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.rm__n {
  font-family: var(--font-display); font-size: var(--t-200);
  font-weight: 800; color: var(--step-deploy); font-variant-numeric: tabular-nums;
}
.rm__body { display: flex; flex-direction: column; gap: 5px; }
.rm__l { font-size: var(--t-400); font-weight: 700; }
.rm__t {
  font-size: var(--t-050); letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--step-deploy);
}
.rm__ul { margin: 8px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 5px; }
.rm__ul li { font-size: var(--t-200); color: var(--stone); line-height: 1.45; }
.rm__scale {
  margin-top: 18px; padding: 16px 18px;
  border: 1px dashed var(--line-firm); border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px;
}

@media (max-width: 1100px) {
  .ws-grid, .ns-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   NEXT STEPS — finish pass, 22 Sep
   Three framed cards floating above a half-empty screen became three
   ruled columns that own the page. Same ledger logic as the theme
   pages, so the closing screen reads as part of the same document.
   ═══════════════════════════════════════════════════════════════ */

.view[data-view="nextsteps"] .sec-head h2,
#nextsteps h2 { max-width: min(92vw, 20ch); }

.ns-grid {
  gap: 0; border-top: 1px solid var(--ink);
  margin-top: clamp(18px, 2.6vh, 34px);
}
.ns-card {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  border-right: 1px solid var(--line);
  padding: clamp(20px, 2.8vh, 32px) clamp(20px, 2vw, 36px) clamp(20px, 2.8vh, 32px) 0;
  display: flex; flex-direction: column;
  transition: background .16s ease;
}
.ns-card:last-child { border-right: 0; padding-right: 0; }
.ns-card + .ns-card { padding-left: clamp(20px, 2vw, 36px); }
/* A whole-column wash on hover, rather than a lifting card — the
   columns share edges, so nothing can lift without breaking the rule. */
.ns-card:hover { background: var(--ink-03); transform: none; box-shadow: none; }

.ns-card__n {
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 800;
  letter-spacing: var(--tr-wide); color: var(--sec-5); margin-bottom: 14px;
}
.ns-card__t { font-size: clamp(22px, 2.1vw, 33px); line-height: 1.1; }
.ns-card__s { max-width: 34ch; }

/* The three roadmaps share identical timings, so the numbers are not
   the differentiator — the phase names are. Timings drop to the quiet
   end of the ramp rather than competing with them. */
.ns-card__phases { margin-top: auto; padding-top: clamp(18px, 2.6vh, 30px); }
.ns-phase { border-top: 1px solid var(--line); padding: 11px 0 0; }
.ns-phase + .ns-phase { margin-top: 11px; }
.ns-card__cta {
  margin-top: clamp(18px, 2.6vh, 28px);
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--sec-5);
}
.ns-card:hover .ns-card__cta { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════
   NEXT STEPS — finish, 23 Sep
   The three roadmaps share identical phase timings, so the page was
   three columns repeating the same numbers. The phases become a
   proportional timeline instead: the bar lengths carry the duration,
   the names carry the difference, and the numbers stop shouting.
   ═══════════════════════════════════════════════════════════════ */

.ns-card__n {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 3vw, 46px); line-height: 1;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ink) 9%, transparent);
  display: block; margin-bottom: 6px;
}
.ns-card__t {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(21px, 2vw, 31px); line-height: 1.1; letter-spacing: -.015em;
  display: block; margin-bottom: 9px;
}
.ns-card__s {
  display: block; font-size: var(--t-200); color: var(--stone);
  line-height: 1.5; max-width: 32ch; min-height: 4.4em;
}

/* Each phase is a row: a proportional bar, its name, its duration. */
.ns-card__phases {
  display: flex; flex-direction: column; gap: 0;
  margin-top: clamp(16px, 2.2vh, 26px);
  border-top: 1px solid var(--line);
}
.ns-phase {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "bar bar" "label time";
  gap: 6px 14px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.ns-phase__bar {
  grid-area: bar; display: block; height: 2px;
  background: var(--grid-line); border-radius: 2px; overflow: hidden;
}
.ns-phase__bar i {
  display: block; height: 100%; width: var(--w, 40%);
  background: var(--sec-5); border-radius: 2px;
  transform-origin: left; transform: scaleX(0);
  animation: nsBar .7s cubic-bezier(.22,.61,.36,1) forwards;
}
/* Staggered so the three phases read as a sequence, not a bar chart. */
.ns-phase:nth-child(1) .ns-phase__bar i { animation-delay: .05s; }
.ns-phase:nth-child(2) .ns-phase__bar i { animation-delay: .17s; }
.ns-phase:nth-child(3) .ns-phase__bar i { animation-delay: .29s; }
@keyframes nsBar { to { transform: scaleX(1); } }

.ns-phase__l {
  grid-area: label; font-size: var(--t-200); font-weight: 600; color: var(--ink);
}
.ns-phase__t {
  grid-area: time; font-size: var(--t-100); color: var(--grey-2);
  text-align: right; font-variant-numeric: tabular-nums;
}

/* ── Roadmap dialog ────────────────────────────────────────────
   Presented as a numbered sequence rather than a wall of paragraphs. */
#nsOv {
  position: fixed; inset: 0; z-index: 400; display: none;
  align-items: center; justify-content: center;
  padding: clamp(18px, 4vh, 48px);
  background: color-mix(in srgb, var(--ink) 40%, transparent);
  backdrop-filter: blur(3px);
}
#nsOv.open { display: flex; }
#nsOv > * {
  width: min(880px, 94vw); max-height: 86vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--base-raise); border-radius: 12px;
  box-shadow: 0 18px 60px color-mix(in srgb, var(--ink) 22%, transparent);
  animation: nsModalIn .26s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes nsModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.nsov-bar {
  display: flex; align-items: center; gap: 14px; flex: none;
  padding: 15px 20px 13px; border-bottom: 1px solid var(--line);
  background: var(--base);
}
.nsov-bar-title {
  flex: 1; font-family: var(--font-display); font-size: var(--t-050);
  font-weight: 700; letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--ink);
}
.nsov-close {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: none; border: 1px solid var(--line-firm); color: var(--stone);
  display: flex; align-items: center; justify-content: center;
}
.nsov-close:hover { border-color: var(--ink); color: var(--ink); }
.nsov-body {
  padding: clamp(18px, 2.6vh, 28px) clamp(20px, 2.2vw, 32px);
  overflow-y: auto; font-size: var(--t-200); line-height: 1.55; color: var(--stone);
}
/* debrief.js toggles `is-open`; the client's own sheet used `open`.
   Both are honoured so the dialog works whichever wires it. */
#nsOv.is-open { display: flex; }

/* ═══════════════════════════════════════════════════════════════
   NEXT STEPS — aesthetic pass
   The reference for this is a Gantt strip, not a feature table: three
   parallel tracks running left to right, each phase a segment whose
   width is its duration. It reads as time passing, which is what the
   page is actually about, and it gives the three identical timings
   somewhere useful to live.
   ═══════════════════════════════════════════════════════════════ */

.ns-card { position: relative; }

/* Segments butt against each other on one rail rather than stacking as
   three separate rows — the phases are consecutive, not parallel. */
.ns-card__phases {
  display: flex; flex-direction: row; align-items: stretch;
  gap: 3px; border: 0; margin-top: clamp(18px, 2.4vh, 28px);
}
.ns-phase {
  display: flex; flex-direction: column; gap: 0;
  padding: 0; border: 0; position: relative;
  flex: var(--seg, 1) 1 0; min-width: 0;
}
/* Duration drives the segment width: 6–8 weeks, 4–6, then 2–3. */
.ns-phase:nth-child(1) { --seg: 7; }
.ns-phase:nth-child(2) { --seg: 5; }
.ns-phase:nth-child(3) { --seg: 3; }

.ns-phase__bar {
  display: block; height: 5px; border-radius: 3px; overflow: hidden;
  background: var(--grid-line); margin-bottom: 11px;
}
.ns-phase__bar i {
  display: block; height: 100%; width: 100% !important;
  border-radius: 3px; background: var(--sec-5);
  transform-origin: left; transform: scaleX(0);
  animation: nsBar .62s cubic-bezier(.22,.61,.36,1) forwards;
}
/* Later phases are lighter, so the rail reads as it recedes in time. */
.ns-phase:nth-child(2) .ns-phase__bar i { background: color-mix(in srgb, var(--sec-5) 68%, var(--base)); }
.ns-phase:nth-child(3) .ns-phase__bar i { background: color-mix(in srgb, var(--sec-5) 40%, var(--base)); }

.ns-phase__l {
  font-size: var(--t-100); font-weight: 700; color: var(--ink);
  line-height: 1.25; margin-bottom: 3px;
}
.ns-phase__t {
  font-size: 10px; color: var(--grey-2); line-height: 1.35;
  text-align: left; font-variant-numeric: tabular-nums;
}

/* A hairline ticks the boundary between phases. */
.ns-phase + .ns-phase::before {
  content: ""; position: absolute; left: -3px; top: 0; bottom: 0;
  width: 1px; background: var(--line);
}

/* ── Roadmap dialog: a stepped sequence ────────────────────────
   Numbered markers on a connecting rail, so the modal reads as a
   path through time rather than a stack of headings. */
.nsov-body ol, .nsov-body ul { padding-left: 0; list-style: none; }
.nsov-body h4, .nsov-body .rm-phase-t {
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--sec-5); margin: 0 0 8px;
}
.nsov-body > * + * { margin-top: clamp(16px, 2.2vh, 24px); }
.nsov-body li {
  position: relative; padding-left: 20px; margin-bottom: 7px;
  font-size: var(--t-200); line-height: 1.5; color: var(--stone);
}
.nsov-body li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 1px; background: var(--sec-5);
}

/* ═══════════════════════════════════════════════════════════════
   ROADMAP DIALOG — a timeline, not a list
   The content is a sequence of dated phases, so it is drawn as one:
   a rail down the left, a numbered marker per phase, and each step
   arriving in order. Colour walks the same ramp as the card segments,
   so the dialog and the card it came from read as one object.
   ═══════════════════════════════════════════════════════════════ */

.rm__intro {
  font-size: var(--t-300); line-height: 1.55; color: var(--ink);
  max-width: 58ch; margin: 0 0 clamp(20px, 2.6vh, 30px);
  padding-bottom: clamp(16px, 2.2vh, 22px); border-bottom: 1px solid var(--line);
}

.rm { list-style: none; margin: 0; padding: 0; position: relative; }
/* The rail. Sits under the markers and stops at the last one. */
.rm::before {
  content: ""; position: absolute; left: 15px; top: 14px; bottom: 26px;
  width: 1px; background: var(--line);
}

.rm__step {
  position: relative; display: grid;
  grid-template-columns: 32px 1fr; gap: 0 16px;
  padding: 0 0 clamp(20px, 2.6vh, 28px);
  /* Steps arrive in order — the point of a roadmap is sequence. */
  opacity: 0; transform: translateY(8px);
  animation: rmStep .5s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(var(--i, 0) * .09s + .08s);
}
@keyframes rmStep { to { opacity: 1; transform: none; } }

.rm__n {
  grid-column: 1; width: 31px; height: 31px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: 0;
  background: var(--base-raise); color: var(--rm-tone, var(--sec-5));
  border: 1.5px solid var(--rm-tone, var(--sec-5));
  position: relative; z-index: 1;
}
/* Colour recedes as the phases move further out in time — the same
   ramp the card segments use. */
.rm__step:nth-child(1) { --rm-tone: var(--sec-5); }
.rm__step:nth-child(2) { --rm-tone: color-mix(in srgb, var(--sec-5) 72%, var(--stone)); }
.rm__step:nth-child(3) { --rm-tone: color-mix(in srgb, var(--sec-5) 46%, var(--stone)); }

.rm__body { grid-column: 2; padding-top: 4px; min-width: 0; }
.rm__l {
  display: block; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(16px, 1.5vw, 21px); line-height: 1.2;
  letter-spacing: -.01em; color: var(--ink);
}
.rm__t {
  display: inline-block; margin-top: 7px;
  padding: 3px 9px; border-radius: 3px;
  background: color-mix(in srgb, var(--rm-tone, var(--sec-5)) 12%, transparent);
  color: color-mix(in srgb, var(--rm-tone, var(--sec-5)) 80%, var(--ink));
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.rm__ul { list-style: none; margin: 11px 0 0; padding: 0; }
.rm__ul li {
  position: relative; padding-left: 18px; margin-bottom: 6px;
  font-size: var(--t-200); line-height: 1.5; color: var(--stone);
}
.rm__ul li::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: 9px; height: 1px; background: var(--rm-tone, var(--sec-5));
}

/* The terminal state — deliberately not numbered; it is what happens
   after the roadmap rather than a step within it. */
.rm__scale {
  display: grid; grid-template-columns: 32px 1fr; gap: 0 16px;
  align-items: baseline; padding-top: clamp(16px, 2.2vh, 22px);
  border-top: 1px solid var(--line);
  opacity: 0; animation: rmStep .5s cubic-bezier(.22,.61,.36,1) .42s forwards;
}
.rm__scale::before {
  content: ""; grid-column: 1; justify-self: center;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sec-5); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sec-5) 16%, transparent);
}
.rm__scale .rm__l { grid-column: 2; font-size: clamp(15px, 1.35vw, 19px); }
.rm__scale .rm__t { grid-column: 2; }

/* ═══════════════════════════════════════════════════════════════
   NEXT STEPS CARD — the three phases carry more weight
   ═══════════════════════════════════════════════════════════════ */
.ns-phase {
  padding-top: 0;
  opacity: 0; transform: translateY(6px);
  animation: nsSeg .5s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(var(--s, 0) * .08s + .12s);
}
.ns-phase:nth-child(1) { --s: 0; }
.ns-phase:nth-child(2) { --s: 1; }
.ns-phase:nth-child(3) { --s: 2; }
@keyframes nsSeg { to { opacity: 1; transform: none; } }

/* A small index above each segment, so the three read as 1-2-3. */
.ns-phase::after {
  content: counter(nsseg); counter-increment: nsseg;
  display: block; order: -1; margin-bottom: 7px;
  font-family: var(--font-display); font-size: 9px; font-weight: 800;
  letter-spacing: .1em; color: var(--seg-tone, var(--sec-5));
  font-variant-numeric: tabular-nums;
}
.ns-card__phases { counter-reset: nsseg; }
.ns-phase:nth-child(1) { --seg-tone: var(--sec-5); }
.ns-phase:nth-child(2) { --seg-tone: color-mix(in srgb, var(--sec-5) 72%, var(--stone)); }
.ns-phase:nth-child(3) { --seg-tone: color-mix(in srgb, var(--sec-5) 46%, var(--stone)); }
.ns-phase__bar i { background: var(--seg-tone) !important; }

/* Reading one segment dims the others, so the eye lands on one phase
   at a time rather than three competing blocks. */
.ns-card__phases:hover .ns-phase { opacity: .45; transition: opacity .2s ease; }
.ns-card__phases:hover .ns-phase:hover { opacity: 1; }
.ns-phase:hover .ns-phase__bar { height: 7px; transition: height .2s ease; }
.ns-phase__bar { transition: height .2s ease; }
/* The timing pill was inheriting a block display and stretching the
   full column, which read as a progress bar rather than a label. */
.rm__t { display: inline-block !important; width: fit-content; max-width: 100%; }
.rm__scale .rm__t { margin-top: 5px; }

/* ═══════════════════════════════════════════════════════════════
   04 DEBRIEF — two kinds of content, told apart
   The value figures are what BCG brought in; the notes are what BPTP
   said on the day. They were stacked in one undifferentiated column.
   ═══════════════════════════════════════════════════════════════ */

.ws-lbl {
  display: block; font-family: var(--font-display);
  font-size: 9px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; margin-bottom: 9px;
}
.ws-lbl--said  { color: var(--tone, var(--sec-4)); }
.ws-lbl--proof { color: var(--grey-2); }

/* The room's own words get a quote rule; the priors do not. */
.ws-notes {
  border-left: 2px solid var(--tone, var(--sec-4));
  padding-left: 14px; margin-bottom: clamp(14px, 2vh, 20px);
}
.ws-note__a { font-family: var(--font-serif); font-size: var(--t-300); color: var(--ink); }

/* Priors sit on a tinted shelf, visually behind the live input. */
.ws-card__metrics {
  background: var(--ink-03); border-radius: 8px;
  padding: 12px 14px; margin-top: auto;
}
.ws-metric { color: var(--stone); font-weight: 500; }
.ws-metric strong, .ws-metric b { color: var(--tone); }

/* ── Waiting state ─────────────────────────────────────────────
   Not an error and not empty space: a live indicator that this part
   of the card fills up during the session. The dots breathe so the
   card reads as ready rather than broken. */
.ws-await {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 0 16px; margin-bottom: clamp(12px, 1.8vh, 18px);
  border-bottom: 1px dashed var(--line-firm);
}
.ws-await__t {
  font-family: var(--font-serif); font-style: italic;
  font-size: var(--t-200); color: var(--grey-2);
}
.ws-await__dots { display: inline-flex; gap: 4px; flex: none; }
.ws-await__dots i {
  width: 5px; height: 5px; border-radius: 50%; display: block;
  background: var(--tone, var(--sec-4)); opacity: .3;
  animation: wsBreathe 1.8s ease-in-out infinite;
}
.ws-await__dots i:nth-child(2) { animation-delay: .22s; }
.ws-await__dots i:nth-child(3) { animation-delay: .44s; }
@keyframes wsBreathe {
  0%, 100% { opacity: .25; transform: scale(1); }
  50%      { opacity: .85; transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .ws-await__dots i { animation: none; opacity: .5; }
}
.ws-card { display: flex; flex-direction: column; }

/* ═══════════════════════════════════════════════════════════════
   05 NEXT STEPS — phases as blocks, not hairlines
   The Gantt strip was too thin to carry the page: three 5px rules
   reading as a chart axis rather than as the substance of the plan.
   Each phase becomes a tinted block instead — a small process flow,
   which is what a three-step rollout actually is. Width still tracks
   duration, so the proportions survive.
   ═══════════════════════════════════════════════════════════════ */

.ns-card__phases {
  display: flex; align-items: stretch; gap: 0;
  margin-top: clamp(20px, 2.6vh, 30px);
  counter-reset: nsseg;
}

.ns-phase {
  position: relative; display: flex; flex-direction: column;
  justify-content: flex-start;
  padding: 13px 14px 14px; min-width: 0;
  background: color-mix(in srgb, var(--seg-tone) 9%, transparent);
  border-top: 2px solid var(--seg-tone);
  transition: background .22s cubic-bezier(.22,.61,.36,1);
}
.ns-phase:first-child { border-radius: 8px 0 0 8px; }
.ns-phase:last-child  { border-radius: 0 8px 8px 0; }

/* A notch between blocks reads as one flow rather than three tiles. */
.ns-phase + .ns-phase::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: var(--base-raise); z-index: 2;
}

/* The index sits as a watermark behind its phase. */
.ns-phase::after {
  content: counter(nsseg, decimal-leading-zero); counter-increment: nsseg;
  position: absolute; right: 8px; bottom: 2px; order: 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: 30px; line-height: 1; letter-spacing: -.04em;
  color: color-mix(in srgb, var(--seg-tone) 20%, transparent);
  font-variant-numeric: tabular-nums; pointer-events: none;
  margin: 0;
}

/* The old bar becomes a short accent tick, not a chart element. */
.ns-phase__bar { display: none; }

.ns-phase__l {
  position: relative; z-index: 1;
  font-size: var(--t-100); font-weight: 700; color: var(--ink);
  line-height: 1.25; margin-bottom: 5px;
}
.ns-phase__t {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 9.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--seg-tone) 78%, var(--ink));
  line-height: 1.4; text-align: left; font-variant-numeric: tabular-nums;
}

/* Reading one phase recedes the others. */
.ns-card__phases:hover .ns-phase { background: color-mix(in srgb, var(--seg-tone) 4%, transparent); }
.ns-card__phases:hover .ns-phase:hover {
  background: color-mix(in srgb, var(--seg-tone) 16%, transparent);
}

/* The rollout runs left to right, so the blocks arrive that way. */
.ns-phase {
  opacity: 0; transform: translateX(-6px);
  animation: nsBlock .46s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(var(--s, 0) * .09s + .14s);
}
@keyframes nsBlock { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ns-phase { animation: none; opacity: 1; transform: none; }
}

/* ── Roadmap dialog: give the rail a direction ─────────────────
   A flat grey rail said "list". A rail that starts solid and fades as
   it descends says "this is a journey with a beginning", and the cap
   at the top gives it somewhere to start from. */
.rm::before {
  background: linear-gradient(180deg,
    var(--sec-5) 0%,
    color-mix(in srgb, var(--sec-5) 45%, var(--line)) 55%,
    var(--line) 100%);
  width: 2px; left: 15px;
}
/* Origin marker — today. */
.rm::after {
  content: ""; position: absolute; left: 11px; top: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sec-5);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sec-5) 18%, transparent);
}
.rm { padding-top: 14px; }

/* Markers lift off the rail on hover, so a facilitator can point at
   one phase and have it answer. */
.rm__step { transition: transform .2s cubic-bezier(.22,.61,.36,1); }
.rm__step:hover { transform: translateX(3px); }
.rm__step .rm__n { transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.rm__step:hover .rm__n {
  background: var(--rm-tone); color: var(--base-raise);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--rm-tone) 14%, transparent);
}

/* Each phase's bullets sit on a faint shelf, so the "what happens"
   is visibly nested inside the "when". */
.rm__ul {
  background: var(--ink-03); border-radius: 7px;
  padding: 11px 13px; margin-top: 12px;
}
.rm__ul li:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════
   05 NEXT STEPS — equal phases, and colour carried through
   Weighting the blocks by duration made the third phase a sliver you
   could not read. The three phases are equal steps in a rollout, so
   they get equal width; the duration is stated in words inside each
   block, which is where it belongs. This also removes the hard-coded
   7/5/3 proportions, so the page survives a change of timings.
   ═══════════════════════════════════════════════════════════════ */
.ns-phase { flex: 1 1 0 !important; }

/* Each priority path takes its own hue, so the three columns are
   distinguishable at a glance and the dialog that opens from one
   inherits the same identity. */
.ns-card:nth-child(1) { --seg-base: var(--step-deploy); }
.ns-card:nth-child(2) { --seg-base: var(--step-invent); }
.ns-card:nth-child(3) { --seg-base: var(--step-reshape); }
.ns-card { --seg-base: var(--sec-5); }
.ns-card:nth-child(1) { --seg-base: var(--step-deploy); }

/* Within a card, the three phases step down the same hue rather than
   each being a different colour — progression, not variety. */
.ns-phase:nth-child(1) { --seg-tone: var(--seg-base); }
.ns-phase:nth-child(2) { --seg-tone: color-mix(in srgb, var(--seg-base) 68%, var(--stone)); }
.ns-phase:nth-child(3) { --seg-tone: color-mix(in srgb, var(--seg-base) 40%, var(--stone)); }

.ns-card__n    { color: color-mix(in srgb, var(--seg-base) 22%, transparent); }
.ns-card__cta  { color: var(--seg-base); }
.ns-card:hover .ns-card__cta { color: var(--ink); }
.ns-card:hover { background: color-mix(in srgb, var(--seg-base) 4%, transparent); }

/* A tinted rule under the heading ties the column to its hue. */
.ns-card__s { border-bottom: 1px solid color-mix(in srgb, var(--seg-base) 22%, transparent);
              padding-bottom: clamp(14px, 1.8vh, 20px); }

/* ── Roadmap dialog inherits the path's hue ────────────────────
   Set from JS when the dialog opens, so the modal reads as an
   extension of the card rather than a generic panel. */
#nsOv > * { --sec-5: var(--rm-base, var(--sec-5)); }
.nsov-bar {
  background: color-mix(in srgb, var(--rm-base, var(--sec-5)) 8%, var(--base));
  border-bottom-color: color-mix(in srgb, var(--rm-base, var(--sec-5)) 24%, transparent);
}
.nsov-bar-title { color: color-mix(in srgb, var(--rm-base, var(--sec-5)) 70%, var(--ink)); }

/* ═══════════════════════════════════════════════════════════════
   05 — phases: no numerals, and boxes that actually match
   The watermark digits repeated information the order already gave.
   The blocks also sized to their own copy, so "Scale" overspilled
   while its neighbours sat short. Equal widths were only half the
   job: they need equal HEIGHTS too, set by the longest phase.
   ═══════════════════════════════════════════════════════════════ */

/* The numeral goes. Sequence is carried by position and by the
   colour stepping down the hue. */
.ns-phase::after { content: none; }

/* A short tick marks each phase instead — quieter than a digit. */
.ns-phase::before {
  content: ""; position: absolute; left: 14px; top: 0;
  width: 22px; height: 2px; background: var(--seg-tone);
  z-index: 2;
}
.ns-phase { border-top-color: color-mix(in srgb, var(--seg-tone) 28%, transparent); }

/* One row, equal columns, equal heights — the row stretches every
   block to the tallest, so no phase can overspill its neighbours. */
.ns-card__phases { align-items: stretch; }
.ns-phase {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 15px 14px 16px; min-height: 104px;
}
.ns-phase__l {
  margin-bottom: 6px; min-height: 2.5em;
  display: flex; align-items: flex-start;
}
.ns-phase__t { margin-top: auto; }
/* Flex stretch was not resolving here — the blocks kept their own
   content heights. A three-column grid puts them on one row track, so
   every block is exactly as tall as the tallest, by construction. */
.ns-card__phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.ns-phase { height: 100%; }
/* Equal within a card was not enough — the three cards still differed
   from each other, so the row of blocks stepped across the page. One
   floor for all nine, set by the tallest (Procurement, 129px). */
.ns-phase { min-height: 130px; }
/* Next Steps paths follow the same three tones as the themes. */
.ns-card:nth-child(1) { --seg-base: var(--tone-1); }
.ns-card:nth-child(2) { --seg-base: var(--tone-2); }
.ns-card:nth-child(3) { --seg-base: var(--tone-3); }

/* ═══════════════════════════════════════════════════════════════
   05 — phase blocks, final finish
   The short tick I used instead of a numeral read as a stray mark
   sitting on the border rather than as a deliberate element. Dropped.
   The block is centred, the accent lives in the top edge, and the
   duration sits in a pill so it is clearly a different kind of fact
   from the phase name.
   ═══════════════════════════════════════════════════════════════ */

.ns-phase::before { content: none; }

.ns-phase {
  align-items: center; text-align: center;
  padding: clamp(14px, 1.9vh, 19px) clamp(10px, 1vw, 15px);
  border-top: 3px solid var(--seg-tone);
  background: color-mix(in srgb, var(--seg-tone) 7%, transparent);
  gap: 8px;
}
.ns-phase__l {
  text-align: center; justify-content: center; align-items: center;
  margin: 0; min-height: 2.6em;
  font-size: var(--t-200); font-weight: 700; letter-spacing: -.005em;
}
.ns-phase__t {
  margin: 0 auto; text-align: center;
  padding: 3px 9px; border-radius: 100px;
  background: color-mix(in srgb, var(--seg-tone) 14%, transparent);
  color: color-mix(in srgb, var(--seg-tone) 82%, var(--ink));
  font-size: 9px; letter-spacing: .07em; line-height: 1.45;
  max-width: 100%;
}

/* A thin connector between blocks, so the three read as a sequence
   rather than three separate tiles sitting next to each other. */
.ns-card__phases { position: relative; gap: 4px; }
.ns-phase { border-radius: 8px; }
.ns-phase + .ns-phase::after {
  content: ""; position: absolute; top: 50%; left: -7px;
  width: 6px; height: 1px; background: var(--line-firm);
  transform: translateY(-50%);
}
.ns-phase { position: relative; }

/* The card's own copy centres with them. */
.ns-card { text-align: center; align-items: center; }
.ns-card__s { margin-inline: auto; text-align: center; }
.ns-card__t, .ns-card__n { text-align: center; width: 100%; }
.ns-card__cta { margin-inline: auto; }

/* ═══════════════════════════════════════════════════════════════
   ROADMAP DIALOG — overview track, then the detail
   A reader arriving in this dialog needs the shape of the whole path
   before the specifics of each phase. The track gives that in one
   line: four stops on a rail, the last one being what happens after
   the roadmap ends. The stepped detail below then reads as a
   zoom-in rather than as the only content.
   ═══════════════════════════════════════════════════════════════ */

.rm__track {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 0; margin: 0 0 clamp(22px, 3vh, 32px);
  padding-top: 15px;
}
/* The rail the stops sit on. */
.rm__track::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 19px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg,
    var(--rm-base, var(--sec-5)) 0%,
    color-mix(in srgb, var(--rm-base, var(--sec-5)) 40%, var(--line)) 72%,
    var(--line) 100%);
  transform: scaleX(0); transform-origin: left;
  animation: rmRail .7s cubic-bezier(.22,.61,.36,1) .1s forwards;
}
@keyframes rmRail { to { transform: scaleX(1); } }

.rm__tick {
  position: relative; display: flex; flex-direction: column;
  align-items: center; text-align: center; padding: 0 6px;
  opacity: 0; animation: rmTick .42s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(var(--i, 0) * .11s + .28s);
}
.rm__tick--end { --i: 3; }
@keyframes rmTick { to { opacity: 1; } }

.rm__tick-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--base-raise);
  border: 2px solid var(--rm-base, var(--sec-5));
  margin-bottom: 9px; position: relative; z-index: 1;
}
.rm__tick:nth-child(2) .rm__tick-dot { border-color: color-mix(in srgb, var(--rm-base, var(--sec-5)) 72%, var(--stone)); }
.rm__tick:nth-child(3) .rm__tick-dot { border-color: color-mix(in srgb, var(--rm-base, var(--sec-5)) 46%, var(--stone)); }
/* The terminal stop is filled — it is an outcome, not a step. */
.rm__tick--end .rm__tick-dot {
  background: var(--rm-base, var(--sec-5));
  border-color: var(--rm-base, var(--sec-5));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rm-base, var(--sec-5)) 15%, transparent);
}

.rm__tick-l {
  font-size: 10.5px; font-weight: 700; color: var(--ink);
  line-height: 1.3; margin-bottom: 2px;
}
.rm__tick-t {
  font-size: 9px; color: var(--grey-2); line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.rm__tick--end .rm__tick-l { color: var(--rm-base, var(--sec-5)); }

@media (prefers-reduced-motion: reduce) {
  .rm__track::before { animation: none; transform: none; }
  .rm__tick { animation: none; opacity: 1; }
}

/* ── Next Steps phase segments: one baseline ────────────  23 Sep
   The three segments were width-weighted by duration (7 / 5 / 3), so
   "Build & Launch" got a wide column and set on one line while
   "Run & Prove" and "Scale" got narrow ones and wrapped to two. The
   labels then sat at four different heights across the three cards
   — which is the crooked look.

   Equal segments, and the label block reserves two lines whether it
   needs them or not. The duration pill under it still says how long
   each phase takes, so nothing is lost by dropping the width
   encoding — and the row finally reads as a straight line. */
.ns-phase:nth-child(1),
.ns-phase:nth-child(2),
.ns-phase:nth-child(3) { --seg: 1; }

.ns-phase__l {
  min-height: 2.6em; line-height: 1.3;
  display: flex; align-items: flex-start; justify-content: center;
  text-align: center;
}
.ns-phase__t { text-align: center; }

/* Two leftovers from the earlier stacked layout, both still firing
   in the row layout:

   1. `.ns-phase + .ns-phase { margin-top: 11px }` was written when
      the phases sat one above the other. In a row it pushes segments
      2 and 3 down by 11px against segment 1 — the 10px stagger.
   2. The phase block lost `margin-top: auto`, so it started
      immediately under a summary whose length varies per card,
      leaving the three blocks 18px out of line with each other.

   Bottom-anchored and flush, so all nine segments share one line. */
.ns-phase + .ns-phase { margin-top: 0; }
.ns-card__phases { margin-top: auto; width: 100%; align-self: stretch; }

/* Card 1 was given no left padding (the divider-rail layout put it
   flush to the edge) while 2 and 3 got a left inset from
   `.ns-card + .ns-card`. Their content boxes therefore differed by
   31px and the phase segments came out 147 / 137 / 147. Symmetric
   padding on all three; the border-right still separates them. */
.ns-card,
.ns-card + .ns-card {
  padding: clamp(20px, 2.8vh, 32px) clamp(18px, 1.6vw, 28px);
}
