/* ═══ Solutions ═════════════════════════════════════════════ */
.sol-hero { padding-bottom: 64px; }

.sol-hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: center;
}
.sol-hero .h-page { max-width: 19ch; }
.sol-hero .hero-figure img { height: 280px; }
/* Nudges the pair up-left off the column centre — a margin, so the blend
   wrapper stays free of opacity and z-index. */
.sol-hero .hero-blend { margin: 0 20px 20px 0; }

/* No lede here: the chips are the subtitle, naming the motions the page
   goes on to show. */

/* ─── Who we serve ──────────────────────────────────────── */
/* The four segments are one object, so a box holds them — but the label
   names the box from outside it rather than sitting in the corner. */
.sol-who { padding: 64px 0 48px; }

.who-serve-label {
  display: block;
  text-align: center;
  font-size: 15px;
  color: var(--cm-ink-secondary);
  margin-bottom: 28px;
}
.who-serve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--cm-border-strong);
  border-radius: var(--cm-radius);
  padding: 20px 0;
}

.who-serve-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 0;
  font-size: 16px;
  border-left: 1px solid var(--cm-border-strong);
}
.who-serve-grid > div:first-child { border-left: 0; }

.who-icon { color: var(--cm-ink-secondary); flex-shrink: 0; }

.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }

.pill {
  padding: 9px 18px;
  font-size: 14px;
  color: var(--cm-ink-primary);
  background: var(--cm-bg-primary);
  border: 1px solid var(--cm-border-strong);
  border-radius: var(--cm-radius-pill);
  box-shadow: var(--cm-shadow-soft);
  transition: color 120ms ease, border-color 120ms ease;
}
/* Tapestry is not shipped, so its chip is dashed and cream rather than
   a white card like the others. */
.pill.is-ghost {
  color: var(--cm-ink-secondary);
  background: var(--cm-bg-tertiary);
  border-style: dashed;
  box-shadow: none;
}
.pill:hover { color: var(--cm-accent); border-color: var(--cm-accent); }

/* Hangs under the chips, indented to the first chip's text. */
.pills-more {
  font-size: 14px;
  color: var(--cm-ink-tertiary);
  margin: 14px 0 0;
  padding-left: 18px;
}

/* Five solutions down one white field, copy and mock swapping sides.
   Each owns half of the 96px gap it shares with its neighbour. */
.sol { padding: 48px 0; }

.sol .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.sol .h-sec { max-width: 20ch; }
.sol .body-copy { max-width: 50ch; }

.sol.is-flipped .sol-copy { order: 2; }
.sol.is-flipped .mock-frame { order: 1; }

/* Mock interiors. The shared shapes live in site.css (.mock, .tag,
   .avatar, .bar); these are the pieces only these five cards use.
   `.is-target` is the page's one accent convention — whatever Cashmere
   is pointing at wears copper, on a bar, an axis tick, a column heading
   or a node. */
.is-target { color: #a9622f; }
.is-faint { color: var(--cm-ink-tertiary); }

.mock-list { display: flex; flex-direction: column; }
.mock-list.is-spaced { margin-top: 12px; }

/* A row whose value sits out at the right edge rather than beside its
   label. */
.mock-row.is-split {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
}

.mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--cm-border);
  font-size: 12.5px;
  color: var(--cm-ink-secondary);
}

/* The copper ribbon across a card's foot is this page's "next best
   action" grammar: every graphic that ends in a recommendation ends
   in one of these. It bleeds to the card's edges, so the card it sits
   in gives up its own bottom padding. */
.mock.has-ribbon { padding-bottom: 0; }

.mock-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px -20px 0;
  padding: 12px 20px;
  background: rgba(212, 145, 91, 0.1);
  border-top: 1px solid rgba(212, 145, 91, 0.35);
  border-radius: 0 0 var(--cm-radius-md) var(--cm-radius-md);
  font-size: 13px;
  color: #a9622f;
}
.mock-ribbon svg { flex-shrink: 0; }

/* ─── Segmentation: the net-worth histogram ─────────────── */
.seg-total { display: inline-flex; align-items: baseline; gap: 8px; }
.seg-total-n { font-family: var(--cm-font-serif); font-size: 30px; letter-spacing: -0.02em; }
.seg-total-sub { font-size: 13px; color: var(--cm-ink-secondary); }

.seg-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--cm-accent);
}
.seg-swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--cm-accent); }

/* Each column is a full-height track the bar grows up inside, so the
   percentage on the bar is the only number that carries data. */
.hist { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-top: 16px; }
.hist-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.hist-bar { background: var(--cm-blue-soft); border-radius: 2px 2px 0 0; }
.hist-bar.is-target { background: var(--cm-accent); }

.hist-axis {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--cm-border);
}
.hist-axis span { flex: 1; font-size: 10.5px; color: var(--cm-ink-tertiary); text-align: center; }
.hist-axis span.is-target { color: #a9622f; }

.seg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cm-border);
}
.seg-actions .mock-btn { white-space: nowrap; }

/* ─── Cross-sell: the two partial views ─────────────────── */
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 16px; }

.view-label {
  font-size: 12.5px;
  color: var(--cm-ink-secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cm-border);
}
.view-label.is-target { color: #a9622f; border-bottom-color: rgba(212, 145, 91, 0.4); }

.view-list { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; font-size: 13px; }

/* ─── Institutional: the org chart ──────────────────────── */
.org { display: flex; flex-direction: column; margin-top: 18px; }

.org-node { display: flex; align-items: center; gap: 12px; }
.org .avatar { width: 30px; height: 30px; }

/* Each level hangs off a rule dropped from its parent. */
.org-branch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 0 14px;
  padding-left: 26px;
  border-left: 1px solid var(--cm-border-strong);
}
.org-branch .org-branch { margin: 0 0 0 14px; }

.org-node.is-target {
  padding: 10px 12px;
  margin-left: -12px;
  border: 1px solid rgba(212, 145, 91, 0.45);
  border-radius: var(--cm-radius-md);
  background: rgba(212, 145, 91, 0.06);
}
.org-node.is-ghost { opacity: 0.55; }
.org-node.is-ghost .avatar {
  background: var(--cm-bg-tertiary);
  border: 1px solid var(--cm-border-strong);
}

/* ─── Pre-meeting: the dossier ──────────────────────────── */
/* Two sheets, the back one turned a degree off true, so the briefing
   reads as paper rather than another panel. */
.dossier { position: relative; width: 100%; max-width: 400px; }

.dossier-sheet {
  position: absolute;
  inset: 10px -8px -8px 8px;
  background: var(--cm-bg-primary);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-md);
  transform: rotate(1.2deg);
}

.mock.is-paper { position: relative; width: auto; max-width: none; padding: 28px; }

.dossier-title {
  font-family: var(--cm-font-serif);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: var(--cm-tracking-snug);
}

.dossier-label {
  font-size: 12.5px;
  color: var(--cm-accent);
  margin-top: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--cm-border);
}
.dossier-copy + .dossier-label { margin-top: 18px; }

.dossier-copy { font-size: 13.5px; line-height: 1.55; margin: 8px 0 0; }

.dossier-points { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.dossier-points div { display: flex; gap: 10px; font-size: 13.5px; }
.dossier-points span:first-child { color: var(--cm-accent); }

/* ─── Ontology band ─────────────────────────────────────── */
/* Tapestry is a frontier idea, not a foundation claim, so it sits on the
   cream bookend wash rather than the page's one dark moment. */
.onto {
  background: var(--cm-bg-tertiary);
  padding: 96px 0;
}

.onto .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.onto-eyebrow {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cm-accent);
  margin: 0 0 14px;
}
.onto .h-sec { max-width: 24ch; }
.onto .body-copy { max-width: 50ch; }

.onto-card {
  background: var(--cm-bg-primary);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-lg);
  box-shadow: var(--cm-shadow-soft);
  padding: 24px;
  display: flex;
  justify-content: center;
}

.onto-graph { width: 100%; max-width: 520px; height: auto; display: block; }

/* The faint outer structure. It is drawn past the viewBox and clipped by
   it on purpose: the model continues past the card. */
.onto-ghost line { stroke: #f0efee; stroke-width: 1; }
.onto-ghost circle { fill: var(--cm-bg-tertiary); stroke: #f0efee; stroke-width: 1; }

.onto-edge path { fill: none; stroke: #dcdada; stroke-width: 1; }

/* Each relationship is named on its own edge, on a plate that knocks the
   edge out behind the word. */
.onto-verb rect { fill: var(--cm-bg-primary); }
.onto-verb text { font-size: 10px; fill: #a9622f; text-anchor: middle; }

.onto-node circle { fill: var(--cm-bg-tertiary); stroke: #dcdada; stroke-width: 1; }
.onto-node text { font-size: 11px; fill: var(--cm-ink-primary); text-anchor: middle; }
.onto-node .is-subject circle { fill: var(--cm-accent-pale); stroke: none; }
.onto-node .is-subject text { font-size: 12px; }
.onto-node .is-actor circle { fill: var(--cm-blue-soft); stroke: none; }
@media (max-width: 940px) {
  .sol .wrap,
  .onto .wrap { grid-template-columns: 1fr; gap: 32px; }
  .sol-hero .wrap { grid-template-columns: 1fr; gap: 40px; }

  .hero-figure { height: auto; }
  .sol-hero .hero-figure img { height: auto; width: 100%; max-width: 420px; }

  .sol.is-flipped .sol-copy,
  .sol.is-flipped .mock-frame { order: 0; }
}

@media (max-width: 767px) {
  .sol-hero { padding-bottom: 32px; }
  .sol-hero .wrap { gap: 12px; }

  /* Goat sits this width out; the wash shrinks to hug the headline alone. */
  .sol-hero .hero-figure { display: none; }
  .sol-hero .hero-copy .hero-wash { inset: -16px -20px auto -20px; height: 130px; }

  .pills { flex-direction: column; align-items: flex-start; }

  /* Four labelled cells become a hairlined list — the 2×2 could not
     survive "Asset Management" wrapping. */
  .who-serve-grid { grid-template-columns: 1fr; row-gap: 0; padding: 6px 0; }
  .who-serve-grid > div {
    justify-content: flex-start;
    padding: 14px 22px;
    border-left: 0;
  }
  .who-serve-grid > div + div { border-top: 1px solid var(--cm-border); }

  .sol .mock-frame { padding: 24px; }

  /* Card heads stack: numeral row first, legend on its own line below. */
  .sol .mock-head.is-baseline {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .seg-total-sub { white-space: nowrap; }

  /* Referral card: the two partial views stack. */
  .views { grid-template-columns: 1fr; gap: 18px 0; }

  /* Zoom the tapestry graph: oversize the SVG and let the card crop the
     decorative fringe, rather than redrawing the viewBox. */
  .onto { padding: 64px 0; }
  .onto-card { overflow: hidden; padding: 12px; }
  .onto-graph { width: 122%; max-width: none; margin: -6% -11%; }
}
