/* =========================================================
   Empanelment & Contracts — Revenue
   Built to public/reference/brand-guidelines.md. Loaded after /index.css.

   First page of the Revenue column. It keeps the component vocabulary of
   the Hospital Operations set (tags, field rows, stage rails, tables) so
   the whole Solutions menu reads as one product, and adds what this story
   needs: a payer record, a rate change, a renewal countdown, and the tree
   that shows one record serving several teams.

   The brief's green (#16C542) is not in our palette: --lime carries the
   current/approved state, --lime-ink carries green text.

   NO PHOTOGRAPHY ON THIS PAGE except the AI section. There is no office,
   contract or finance photograph in the library, and the reception desk
   already appears on four pages — a fifth outing, on a commercial page,
   would be worse than none. .em-scene is built to the proportions of the
   photograph the brief asks for, so the panel inside it can be replaced
   by <img> the day that shot exists, with the record card left as overlay.

   Every class is prefixed em- ; the reset weighs nothing (guidelines §14).
   ========================================================= */

.em {
  --pad: calc(67 * var(--u));
  --text: #2a2a2a;
  --faint: #9a9a9a;
  --soft: #f5f8f1;
  --grey: #f7f7f7;
  --lime-tint: #effcb5;
  --lime-ink: #3f5a00;
  --amber: #fff1d2;
  --amber-ink: #8a5600;
  --rose: #ffe8e4;
  --rose-ink: #b23a2c;
  --r-card: calc(18 * var(--u));
  --r: calc(12 * var(--u));
  --r-sm: calc(9 * var(--u));
  --shadow: 0 1px 2px rgba(17, 19, 24, .03), 0 calc(18 * var(--u)) calc(40 * var(--u)) calc(-28 * var(--u)) rgba(17, 19, 24, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  display: block;
  color: var(--ink);
}
.em *, .em *::before, .em *::after { box-sizing: border-box; }
:where(.em) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, table) { margin: 0; }
:where(.em) :where(ul, ol) { padding: 0; list-style: none; }
.em img { display: block; max-width: 100%; }
.em .i { flex: none; width: calc(16 * var(--u)); height: calc(16 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
.em-h1, .em-h2, .em-h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.em-h1 { font-size: calc(64 * var(--u)); line-height: calc(77 * var(--u)); }
.em-h2 { font-size: calc(48 * var(--u)); line-height: calc(57 * var(--u)); }
.em-h3 { font-size: calc(24 * var(--u)); line-height: calc(30 * var(--u)); }
.em .dim { color: var(--muted); }
.em-lede { margin-top: calc(16 * var(--u)); max-width: calc(660 * var(--u)); font-size: calc(25 * var(--u)); line-height: calc(33 * var(--u)); letter-spacing: -.01em; color: var(--muted); text-wrap: pretty; }
.em-sub { margin-top: calc(18 * var(--u)); max-width: calc(520 * var(--u)); font-size: calc(20 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: -.01em; color: var(--muted); text-wrap: pretty; }
.em-k { font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.em-pill { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); padding: calc(5 * var(--u)) calc(13 * var(--u)); border-radius: 999px; background: var(--soft); color: var(--text); font-size: calc(13 * var(--u)); font-weight: 600; line-height: 1.3; }
.em-pill::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: currentColor; opacity: .7; }
.em-pill.problem { background: var(--amber); color: var(--amber-ink); }
.em-pill.solution { background: var(--lime-tint); color: var(--lime-ink); }
.em-pill.ink { background: var(--ink); color: var(--lime); }
.em-pill + .em-h1, .em-pill + .em-h2 { margin-top: calc(22 * var(--u)); }
.em-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: calc(14 * var(--u)); margin-top: calc(44 * var(--u)); }
.em .btn .i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); transition: transform .2s var(--ease); }
.em .btn:hover .i { transform: translateX(calc(3 * var(--u))); }

/* ---------- sections ---------- */
.em-sec { position: relative; padding: calc(128 * var(--u)) var(--pad); }
.em-sec + .em-sec { border-top: 1px solid var(--rule); }
.em-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(96 * var(--u)); align-items: center; }
.em-split.rev > :first-child { order: 2; }
.em-head { max-width: calc(940 * var(--u)); }
.em-head.mid { margin-inline: auto; text-align: center; }
.em-head.mid .em-lede { margin-inline: auto; }
.em-stage { margin-top: calc(72 * var(--u)); }
.em-sec.soft { isolation: isolate; }
.em-sec.soft::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); background: #fafaf8; z-index: -1; }
.em-sec.soft::after { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; right: -1px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); pointer-events: none; }
.em-chap { display: flex; align-items: center; gap: calc(18 * var(--u)); margin-bottom: calc(40 * var(--u)); }
.em-chap b { font-size: calc(13 * var(--u)); font-weight: 600; letter-spacing: .04em; color: var(--faint); font-variant-numeric: tabular-nums; }
.em-chap i { flex: 1; height: 1px; background: var(--rule); }

/* ---------- hero ---------- */
.em-hero { padding: calc(120 * var(--u)) var(--pad) calc(96 * var(--u)); }
.em-hero .em-h1 { max-width: calc(960 * var(--u)); }
.em-hero__stage { position: relative; margin-top: calc(72 * var(--u)); }
/* the frame the photograph will occupy; for now it carries the payer record */
/* Until the photograph exists the frame sizes to the record it holds, so
   the panel reads as intentional rather than as a gap waiting to be
   filled. Restore `aspect-ratio: 16 / 7` when the <img> goes in. */
.em-scene { position: relative; display: grid; place-items: center; padding: calc(64 * var(--u)) calc(40 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--soft); overflow: hidden; }
.em-scene > img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-card) - 1px); }
.em-cap { margin-top: calc(16 * var(--u)); font-size: calc(14 * var(--u)); color: var(--muted); }

/* ---------- the payer record ---------- */
.em-payer { width: 100%; max-width: calc(640 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.em-payer__top { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(20 * var(--u)) calc(24 * var(--u)); border-bottom: 1px solid var(--rule); }
.em-payer__top b { font-family: var(--font-head); font-size: calc(24 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.em-payer__top .em-tag { margin-left: auto; }
.em-rows { display: grid; }
.em-rows li { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(14 * var(--u)) calc(24 * var(--u)); border-bottom: 1px solid var(--rule); font-size: calc(15.5 * var(--u)); }
.em-rows li:last-child { border-bottom: 0; }
.em-rows .lbl { font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); min-width: calc(150 * var(--u)); }
.em-rows .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.em-rows .state { margin-left: auto; display: inline-flex; align-items: center; gap: calc(7 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 600; color: var(--lime-ink); }
.em-rows .state .i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.em-rows .state.wait { color: var(--amber-ink); }
.em-rows .link { margin-left: auto; font-size: calc(14 * var(--u)); font-weight: 600; color: var(--muted); }

/* ---------- shared product UI ---------- */
.em-ui { border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.em-ui__top { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(14 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); background: #fcfcfb; }
.em-ui__top b { font-size: calc(13 * var(--u)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.em-ui__top .em-tag { margin-left: auto; }
.em-ui__body { padding: calc(20 * var(--u)); }
.em-ui + .em-ui { margin-top: calc(16 * var(--u)); }
.em-tag { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: var(--grey); color: var(--text); font-size: calc(12 * var(--u)); font-weight: 600; white-space: nowrap; }
.em-tag.ok { background: var(--lime-tint); color: var(--lime-ink); }
.em-tag.wait { background: var(--amber); color: var(--amber-ink); }
.em-tag.bad { background: var(--rose); color: var(--rose-ink); }
.em-tag .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.em-fields { display: grid; gap: calc(14 * var(--u)); }
.em-fields > div { display: grid; gap: calc(3 * var(--u)); }
.em-fields dt { font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.em-fields dd { font-size: calc(17 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
.em-fields.two { grid-template-columns: 1fr 1fr; column-gap: calc(24 * var(--u)); }
.em-mono { font-variant-numeric: tabular-nums; }

/* ---------- the continuous stage rail ---------- */
.em-rail { display: flex; align-items: flex-start; }
.em-stagepoint { position: relative; flex: 1 1 0; min-width: 0; padding-top: calc(30 * var(--u)); text-align: center; }
.em-stagepoint::before { content: ""; position: absolute; top: calc(8 * var(--u)); left: 50%; width: calc(11 * var(--u)); height: calc(11 * var(--u)); margin-left: calc(-5.5 * var(--u)); border-radius: 50%; background: var(--divider); z-index: 1; }
.em-stagepoint::after { content: ""; position: absolute; top: calc(13 * var(--u)); left: 50%; right: calc(-50%); height: 1px; background: var(--divider); }
.em-stagepoint:last-child::after { display: none; }
.em-stagepoint b { display: block; font-size: calc(14.5 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
.em-stagepoint span { display: block; margin-top: calc(3 * var(--u)); font-size: calc(12.5 * var(--u)); color: var(--muted); }
.em-stagepoint.done::before, .em-stagepoint.done::after { background: var(--lime-ico); }
.em-stagepoint.now::before { background: var(--lime); box-shadow: 0 0 0 calc(5 * var(--u)) rgba(199, 243, 104, .45); }
.em-stagepoint.now b { color: var(--lime-ink); }
.em-stagepoint.wait b { font-weight: 500; color: var(--muted); }

/* the small vertical rail inside a column */
.em-steps { display: grid; justify-items: start; gap: calc(6 * var(--u)); }
.em-step { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(16 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: calc(15 * var(--u)); font-weight: 600; }
.em-step.done { border-color: var(--lime-ico); background: var(--lime-soft); color: var(--lime-ink); }
.em-step.now { border-color: var(--lime-ico); background: var(--lime); color: var(--ink); box-shadow: 0 0 0 calc(4 * var(--u)) rgba(199, 243, 104, .3); }
.em-step.wait { color: var(--muted); }
.em-step .i { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.em-steps i.join { width: 2px; height: calc(14 * var(--u)); margin-left: calc(22 * var(--u)); background: var(--divider); }
.em-steps i.join.on { background: var(--lime-ico); }

/* ---------- the rate change ---------- */
.em-delta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: calc(20 * var(--u)); padding: calc(24 * var(--u)); border-radius: var(--r); background: var(--grey); }
.em-delta > div { display: grid; gap: calc(6 * var(--u)); }
.em-delta .em-k { color: var(--faint); }
.em-delta b { font-family: var(--font-head); font-size: calc(32 * var(--u)); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.em-delta .was b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--divider); }
.em-delta .now b { color: var(--lime-ink); }
.em-delta .arr { display: grid; place-items: center; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; background: var(--lime); color: var(--ink); }
.em-delta .arr .i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.em-done { display: grid; gap: calc(8 * var(--u)); margin-top: calc(18 * var(--u)); }
.em-done li { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: calc(15.5 * var(--u)); font-weight: 600; }
.em-done .i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); color: var(--lime-ink); }

/* ---------- the renewal countdown ---------- */
.em-count { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: #fff; }
.em-count > div { padding: calc(22 * var(--u)) calc(20 * var(--u)); }
.em-count > div + div { border-left: 1px solid var(--rule); }
.em-count b { display: block; font-family: var(--font-head); font-size: calc(26 * var(--u)); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.em-count span { display: block; margin-top: calc(6 * var(--u)); font-size: calc(13.5 * var(--u)); color: var(--muted); }
.em-count > div.past { background: #fcfcfb; }
.em-count > div.past b { color: var(--muted); }
.em-count > div.on { background: var(--lime-soft); }
.em-count > div.on b { color: var(--lime-ink); }
.em-count > div.on span { color: var(--lime-ink); font-weight: 600; }

/* the expiry notice, integrated rather than a pop-up */
.em-alert { display: grid; gap: calc(16 * var(--u)); padding: calc(22 * var(--u)); border: 1px solid #f0dcae; border-radius: var(--r-card); background: #fffaf0; }
.em-alert__t { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--amber-ink); }
.em-alert__big { font-family: var(--font-head); font-size: calc(40 * var(--u)); line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.em-alert__big span { display: block; margin-top: calc(6 * var(--u)); font-family: var(--font-body); font-size: calc(14 * var(--u)); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.em-act { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(13 * var(--u)) calc(16 * var(--u)); border-radius: var(--r); background: var(--ink); color: var(--lime); font-size: calc(15 * var(--u)); font-weight: 600; }
.em-act .i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); margin-left: auto; }

/* ---------- one record, several teams ---------- */
.em-tree { display: grid; justify-items: center; gap: calc(10 * var(--u)); padding: calc(44 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--lime-soft); }
.em-node { padding: calc(13 * var(--u)) calc(24 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; text-align: center; font-size: calc(16 * var(--u)); font-weight: 600; }
.em-node.ink { border-color: var(--ink); background: var(--ink); color: #fff; }
.em-node small { display: block; margin-top: calc(3 * var(--u)); font-size: calc(12.5 * var(--u)); font-weight: 500; color: var(--muted); }
.em-node.ink small { color: rgba(255, 255, 255, .62); }
.em-tree .stem { width: 2px; height: calc(20 * var(--u)); background: var(--lime-ico); }
.em-tree .fan { position: relative; width: 100%; max-width: calc(640 * var(--u)); height: calc(20 * var(--u)); }
.em-tree .fan::before { content: ""; position: absolute; top: 0; left: 16.6%; right: 16.6%; height: 2px; background: var(--lime-ico); }
.em-tree .fan i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime-ico); }
.em-tree .fan i:nth-child(1) { left: 16.6%; }
.em-tree .fan i:nth-child(2) { left: calc(50% - 1px); }
.em-tree .fan i:nth-child(3) { right: 16.6%; }
.em-teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(16 * var(--u)); width: 100%; max-width: calc(640 * var(--u)); }

/* ---------- workspace ---------- */
.em-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: #fff; }
.em-metrics > div { padding: calc(20 * var(--u)); }
.em-metrics > div + div { border-left: 1px solid var(--rule); }
.em-metrics b { display: block; font-family: var(--font-head); font-size: calc(34 * var(--u)); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.em-metrics span { display: block; margin-top: calc(4 * var(--u)); font-size: calc(12.5 * var(--u)); font-weight: 600; color: var(--muted); }
.em-metrics > div.on { background: var(--lime-soft); }
.em-bar { display: flex; align-items: center; gap: calc(10 * var(--u)); flex-wrap: wrap; padding: calc(14 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); }
.em-search { display: flex; align-items: center; gap: calc(9 * var(--u)); flex: 1 1 calc(230 * var(--u)); min-width: calc(170 * var(--u)); padding: calc(9 * var(--u)) calc(13 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-sm); color: var(--faint); font-size: calc(14 * var(--u)); }
.em-table { width: 100%; border-collapse: collapse; }
.em-table th, .em-table td { padding: calc(14 * var(--u)) calc(18 * var(--u)); text-align: left; font-size: calc(14.5 * var(--u)); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.em-table th { font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); background: #fcfcfb; }
.em-table td b { font-weight: 600; }
.em-table tr:last-child td { border-bottom: 0; }
.em-table tr.on td { background: var(--lime-soft); }
.em-table .num { font-variant-numeric: tabular-nums; color: var(--muted); }
.em-work { display: grid; grid-template-columns: minmax(0, 1fr) calc(320 * var(--u)); gap: calc(16 * var(--u)); align-items: start; }

/* activity */
.em-time li { position: relative; display: grid; grid-template-columns: calc(66 * var(--u)) minmax(0, 1fr); column-gap: calc(18 * var(--u)); padding: calc(12 * var(--u)) 0 calc(12 * var(--u)) calc(18 * var(--u)); }
.em-time li::before { content: ""; position: absolute; left: 0; top: calc(19 * var(--u)); width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: var(--divider); }
.em-time li::after { content: ""; position: absolute; left: calc(4 * var(--u)); top: calc(28 * var(--u)); bottom: calc(-4 * var(--u)); width: 1px; background: var(--rule); }
.em-time li:last-child::after { display: none; }
.em-time li.now::before { background: var(--lime-ico); box-shadow: 0 0 0 calc(4 * var(--u)) rgba(199, 243, 104, .35); }
.em-time time { font-size: calc(13 * var(--u)); font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.em-time p { font-size: calc(15.5 * var(--u)); font-weight: 500; }

/* ---------- AI ---------- */
.em-ai { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: calc(64 * var(--u)); align-items: center; }
.em-person { position: relative; display: grid; justify-items: center; padding: calc(28 * var(--u)) 0 0; border-radius: var(--r-card); background: var(--soft); }
.em-person img { width: calc(300 * var(--u)); max-width: 100%; height: auto; }
.em-said { position: absolute; z-index: 2; left: calc(-40 * var(--u)); top: calc(46 * var(--u)); max-width: calc(300 * var(--u)); padding: calc(14 * var(--u)) calc(17 * var(--u)); border: 1px solid var(--rule); border-radius: calc(18 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)) calc(4 * var(--u)); background: #fff; box-shadow: var(--shadow); font-family: var(--font-head); font-size: calc(19 * var(--u)); line-height: calc(26 * var(--u)); font-weight: 500; letter-spacing: -.025em; }
.em-said .em-k { display: block; margin-bottom: calc(7 * var(--u)); color: var(--faint); }
.em-mic { position: absolute; z-index: 3; right: calc(30 * var(--u)); bottom: calc(34 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(16 * var(--u)); border-radius: 999px; background: var(--ink); box-shadow: var(--shadow); }
.em-mic .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); color: var(--lime); }
.em-wave { display: flex; align-items: center; gap: calc(3 * var(--u)); height: calc(24 * var(--u)); }
.em-wave i { width: calc(3 * var(--u)); min-height: calc(4 * var(--u)); border-radius: 999px; background: var(--lime); animation: emWave 1.1s ease-in-out infinite; }
.em-answer { display: grid; gap: calc(16 * var(--u)); padding: calc(26 * var(--u)); border: 1px solid var(--lime-ico); border-radius: var(--r-card); background: var(--lime-soft); }
.em-answer__k { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--lime-ink); }
.em-answer__k i { display: grid; place-items: center; width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: var(--lime); color: var(--ink); }
.em-answer__k i .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.em-answer__t { font-family: var(--font-head); font-size: calc(30 * var(--u)); line-height: calc(38 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.em-breaks { display: grid; gap: calc(7 * var(--u)); }
.em-breaks li { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(11 * var(--u)) calc(14 * var(--u)); border-radius: var(--r-sm); background: #fff; font-size: calc(15 * var(--u)); font-weight: 500; }
.em-breaks b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- outcomes: four blocks, generous space, not cards ---------- */
.em-out { border-top: 1px solid var(--rule); margin-top: calc(64 * var(--u)); }
.em-out > div { display: grid; grid-template-columns: calc(60 * var(--u)) minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: calc(40 * var(--u)); padding: calc(36 * var(--u)) 0; border-bottom: 1px solid var(--rule); }
.em-out .n { font-size: calc(13 * var(--u)); font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: calc(7 * var(--u)); }
.em-out h3 { font-family: var(--font-head); font-size: calc(32 * var(--u)); line-height: calc(40 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.em-out p { align-self: center; font-size: calc(18 * var(--u)); line-height: calc(27 * var(--u)); color: var(--muted); }

/* ---------- FAQ ---------- */
.em-faq { max-width: calc(920 * var(--u)); margin-top: calc(56 * var(--u)); border-top: 1px solid var(--rule); }
.em-faq details { border-bottom: 1px solid var(--rule); }
.em-faq summary { display: flex; align-items: center; gap: calc(18 * var(--u)); padding: calc(24 * var(--u)) 0; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: calc(22 * var(--u)); line-height: calc(29 * var(--u)); font-weight: 500; letter-spacing: -.028em; transition: color .15s ease; }
.em-faq summary::-webkit-details-marker { display: none; }
.em-faq summary:hover { color: var(--lime-ink); }
.em-faq summary::after { content: ""; flex: none; width: calc(11 * var(--u)); height: calc(11 * var(--u)); margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(calc(-2 * var(--u)), calc(-2 * var(--u))); transition: transform .25s var(--ease); }
.em-faq details[open] summary::after { transform: rotate(-135deg); }
.em-faq p { padding: 0 calc(48 * var(--u)) calc(26 * var(--u)) 0; max-width: calc(760 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(27 * var(--u)); color: var(--prose, #4d4d4d); }

/* ---------- final CTA + strip ---------- */
.em-cta { padding: calc(130 * var(--u)) var(--pad); border-top: 1px solid var(--rule); }
.em-cta__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: calc(96 * var(--u)); align-items: center; }
.em-cta .em-payer { max-width: none; }
.em-life { padding: 0 var(--pad) calc(120 * var(--u)); }
.em-life nav { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.em-life a, .em-life span { display: block; padding: calc(18 * var(--u)) calc(16 * var(--u)); font-size: calc(15 * var(--u)); font-weight: 600; color: var(--muted); }
.em-life > nav > * + * { border-left: 1px solid var(--rule); }
.em-life small { display: block; margin-bottom: calc(6 * var(--u)); font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.em-life .here { background: var(--lime-soft); color: var(--ink); }
.em-life .here small { color: var(--lime-ink); }
.em-life a:hover { color: var(--ink); }

/* ---------- motion ---------- */
.em-js .em-rev { opacity: 0; transform: translateY(calc(12 * var(--u))); }
.em-js .em-rev.is-in { opacity: 1; transform: none; transition: opacity .75s ease var(--d, 0ms), transform .75s var(--ease) var(--d, 0ms); }
@keyframes emWave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .em *, .em *::before, .em *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
}

/* =========================================================
   Below 1180 --u is 1px. Stack, don't shrink (guidelines §10).
   ========================================================= */
@media (max-width: 1179px) {
  .em { --pad: 22px; }
  .em .i { width: 16px; height: 16px; }
  .em-h1 { font-size: clamp(32px, 7.2vw, 48px); line-height: 1.08; }
  .em-h2 { font-size: clamp(26px, 5.4vw, 36px); line-height: 1.16; }
  .em-h3 { font-size: 20px; line-height: 27px; }
  .em-lede { font-size: 17px; line-height: 25px; }
  .em-sub { font-size: 16px; line-height: 24px; max-width: none; }
  .em-ctas { margin-top: 28px; flex-direction: column; align-items: stretch; }

  .em-hero { padding: 44px 22px 56px; }
  .em-hero__stage, .em-stage { margin-top: 32px; }
  .em-scene { aspect-ratio: auto; padding: 20px 14px; }

  .em-sec { padding: 56px 22px; }
  .em-chap { margin-bottom: 26px; }
  .em-split { grid-template-columns: 1fr; row-gap: 32px; }
  .em-split.rev > :first-child { order: 0; }

  /* label and value stay on one line; only the payer name may wrap */
  .em-payer__top { flex-wrap: wrap; row-gap: 8px; padding: 16px; }
  .em-payer__top b { font-size: 20px; }
  .em-rows li { padding: 12px 16px; gap: 10px; font-size: 14.5px; }
  .em-rows .lbl { min-width: 0; flex: 0 1 auto; font-size: 11px; }
  .em-rows .val, .em-rows .state, .em-rows .link { margin-left: auto; text-align: right; }
  .em-rows .state { font-size: 13.5px; }

  .em-rail { flex-direction: column; align-items: stretch; }
  .em-stagepoint { padding: 0 0 0 30px; text-align: left; min-height: 52px; }
  .em-stagepoint::before { top: 4px; left: 0; margin-left: 0; }
  .em-stagepoint::after { top: 15px; bottom: -4px; left: 5px; right: auto; width: 1px; height: auto; }

  .em-fields.two { grid-template-columns: 1fr; row-gap: 14px; }
  .em-delta { grid-template-columns: 1fr; justify-items: start; gap: 14px; padding: 18px; }
  .em-delta .arr { transform: rotate(90deg); }
  .em-count { grid-template-columns: 1fr 1fr; }
  .em-count > div:nth-child(odd) { border-left: 0; }
  .em-count > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .em-alert__big { font-size: 32px; }

  .em-tree { padding: 22px 16px; }
  .em-teams { grid-template-columns: 1fr; }
  .em-tree .fan { width: 2px; }
  .em-tree .fan::before { display: none; }
  .em-tree .fan i:nth-child(2), .em-tree .fan i:nth-child(3) { display: none; }
  .em-tree .fan i:nth-child(1) { left: 0; }

  .em-metrics { grid-template-columns: 1fr 1fr; }
  .em-metrics > div:nth-child(odd) { border-left: 0; }
  .em-metrics > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .em-metrics b { font-size: 28px; }
  .em-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .em-table th, .em-table td { padding: 12px 14px; }
  .em-work { grid-template-columns: 1fr; }

  .em-ai { grid-template-columns: 1fr; row-gap: 28px; }
  .em-said { position: static; max-width: none; margin: 0 0 16px; border-radius: 18px 18px 18px 4px; }
  .em-person { padding: 20px 16px 0; }
  .em-person img { width: 230px; }
  .em-mic { position: static; justify-content: center; width: -moz-fit-content; width: fit-content; margin: 0 auto 18px; }
  .em-answer__t { font-size: 22px; line-height: 29px; }

  .em-out > div { grid-template-columns: 1fr; row-gap: 10px; padding: 26px 0; }
  .em-out .n { padding-top: 0; }
  .em-out h3 { font-size: 24px; line-height: 31px; }
  .em-out p { font-size: 16px; line-height: 24px; }

  .em-faq summary { font-size: 19px; line-height: 26px; padding: 20px 0; gap: 14px; }
  .em-faq p { font-size: 16px; line-height: 25px; padding: 0 0 22px; }

  .em-cta { padding: 72px 22px; }
  .em-cta__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .em-life { padding: 0 22px 64px; }
  .em-life nav { grid-template-columns: 1fr 1fr; }
  .em-life > nav > :nth-child(3) { border-left: 0; }
  .em-life > nav > :nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
