/* threeAlpha product mockups: the animated diagram in each service's panel.
   Loaded on home and on the service pages. Moved verbatim out of home.css; the per-service
   blocks below follow the shared and wireframe layers. Default CSS is the finished frame:
   anything that animates is hidden only under an .is-armed root (set by JS). */

/* ---------- Mockups: size container ----------
   Whatever page holds a mockup wraps it in .mockup-slot; the @container rules below read its width. */
.mockup-slot { container-type: inline-size; }

/* ---------- Mockups: shared ----------
   Dark product UIs in the hero's language: near-black surfaces, white for emphasis,
   silver tones (tokens primary-1..4) only as small categorical marks, white for "done". */
.mockup {
  --mk-text: var(--color--gray-5);
  --mk-muted: var(--color--gray-3);
  --mk-line: rgba(255, 255, 255, .08);
  --mk-soft: rgba(255, 255, 255, .05);
  --mk-surface: var(--color--gray-1);
  --mk-ink: var(--color--dark);   /* text on white fills */
  --mk-ok: var(--color--gray-5);
  --mk-ok-soft: rgba(255, 255, 255, .12);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1em;
  aspect-ratio: 16 / 10;
  padding: 1.6em;
  overflow: hidden;
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, var(--color--gray-1), var(--color--dark));
  color: var(--mk-text);
  font-family: var(--_typography---font-family--body);
  font-size: clamp(10px, 2cqi, 14px);
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  user-select: none;
}
.mockup ul { margin: 0; padding: 0; list-style: none; }
.mockup p, .mockup li { color: inherit; font-size: inherit; line-height: inherit; letter-spacing: normal; }
.mockup b { font-weight: 600; }
.mockup small { display: block; color: var(--mk-muted); font-size: .85em; }

.mk-window {
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  border-radius: .9em;
  box-shadow: 0 1.2em 2.4em -1.2em rgba(0, 0, 0, .7);
  overflow: hidden;
  min-height: 0;
}
.mk-bar { display: flex; align-items: center; gap: 1em; height: 2.4em; padding: 0 .9em; border-bottom: 1px solid var(--mk-line); background: rgba(255, 255, 255, .02); }
.mk-dots { display: inline-flex; gap: .35em; }
.mk-dots i { width: .6em; height: .6em; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.mk-url { display: inline-flex; align-items: center; gap: .45em; flex: 1; max-width: 22em; margin: 0 auto; padding: .3em .8em; border-radius: .5em; background: var(--mk-soft); color: var(--mk-muted); font-size: .85em; white-space: nowrap; overflow: hidden; }
.mk-label { color: var(--mk-muted); font-size: .85em; }
.mk-num { font-size: 1.6em; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-pill { display: inline-flex; align-items: center; padding: .2em .65em; border-radius: 999px; background: var(--mk-soft); color: var(--mk-muted); font-size: .8em; font-weight: 500; white-space: nowrap; }
.mk-pill--green { background: var(--mk-ok-soft); color: var(--mk-ok); }
.mk-pill--accent { background: rgba(255, 255, 255, .1); color: var(--mk-text); }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; padding: .55em 1em; border-radius: .6em; font-weight: 500; font-size: .9em; white-space: nowrap; }
.mk-btn--primary { background: var(--color--white); color: var(--mk-ink); }
.mk-c1 { --c: var(--color--primary-1); } .mk-c2 { --c: var(--color--primary-3); } .mk-c3 { --c: var(--color--gray-5); } .mk-c4 { --c: var(--color--primary-2); }
.mockup .check { display: block; width: 1em; height: 1em; margin: 0; padding: 0; flex: none; } /* resets base.css .check */

/* skeleton / real pairs: final frame shows the real UI */
.mk-swap { position: relative; min-width: 0; }
.mk-skel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .5em; padding: .2em 0; opacity: 0; }
.mk-skel i { display: block; height: .9em; border-radius: .4em; background: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .11)); }
.mk-skel--text i:first-child { width: 60%; height: 1.3em; }
.mk-skel--text i:last-child { width: 80%; }
.mk-skel--card { padding: .9em; border-radius: .7em; background: var(--mk-soft); }
.mk-skel--card i:first-child { width: 45%; }
.mk-skel--card i:last-child { width: 70%; height: 1.4em; }
.mk-skel--rows i { height: 1.9em; }

/* ---------- Mockup: web-mobile ---------- */
.mockup--web-mobile { padding-right: 1.2em; }
.mockup--web-mobile { --phone-w: calc((62.5cqi - 3.2em) * .4865); }
.mk-browser { width: calc(100% - var(--phone-w) + 2.5em); height: 100%; display: flex; flex-direction: column; }
.mk-browser-body { flex: 1; display: flex; flex-direction: column; gap: 1em; padding: 0 3.7em 1.2em 1.2em; min-height: 0; }
.mk-appnav { display: flex; align-items: center; gap: 1.5em; height: 3em; border-bottom: 1px solid var(--mk-line); margin: 0 -3.7em 0 -1.2em; padding: 0 3.7em 0 1.2em; }
.mk-logo { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; }
.mk-logo i { width: 1.1em; height: 1.1em; border-radius: .3em; background: var(--color--primary-1); }
.mk-appnav-links { display: flex; gap: 1.1em; color: var(--mk-muted); font-size: .9em; }
.mk-appnav-links b { color: var(--mk-text); font-weight: 500; }
.mk-avatar { margin-left: auto; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: rgba(255, 255, 255, .16); color: var(--color--primary-1); font-size: .75em; font-weight: 600; }
.mk-wm-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.mk-wm-head .mk-swap { flex: 1; }
.mk-h { font-size: 1.3em; font-weight: 600; letter-spacing: -.01em; }
.mk-sub { color: var(--mk-muted); font-size: .9em; }
.mk-btn-wrap { position: relative; display: inline-flex; flex: none; }
.mk-tap { position: absolute; left: 50%; top: 50%; width: 3.2em; height: 3.2em; margin: -1.6em 0 0 -1.6em; border-radius: 50%; background: rgba(255, 255, 255, .35); opacity: 0; pointer-events: none; } /* final frame: ripple has faded */
.mk-wm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.mk-card { display: flex; flex-direction: column; gap: .3em; padding: .9em; border: 1px solid var(--mk-line); border-radius: .7em; }
.mk-meter { height: .35em; border-radius: 1em; background: var(--mk-soft); overflow: hidden; margin-top: .2em; }
.mk-meter i { display: block; height: 100%; border-radius: inherit; background: var(--mk-text); }
.mk-meter--green i { background: var(--mk-ok); }
.mk-meter--amber i { background: var(--color--primary-1); }
.mk-list { display: flex; flex-direction: column; }
.mk-list li { display: flex; align-items: center; gap: .7em; padding: .6em 0; border-top: 1px solid var(--mk-line); font-size: .92em; }
.mk-list li:first-child { border-top: 0; }
.mk-list .mk-pill { margin-left: auto; }
.mk-chip-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--c); }

.mk-phone {
  position: absolute;
  right: 1.2em;
  top: 1.6em;
  bottom: 1.6em;
  width: var(--phone-w);
  display: flex;
  flex-direction: column;
  padding: .5em;
  border-radius: 2em;
  background: var(--color--dark);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 1.5em 3em -1em rgba(0, 0, 0, .8);
}
.mk-phone-notch { position: absolute; top: .9em; left: 50%; width: 3.6em; height: 1em; margin-left: -1.8em; border-radius: 1em; background: var(--color--dark); z-index: 2; }
.mk-phone-screen { position: relative; flex: 1; border-radius: 1.55em 1.55em 0 0; background: var(--mk-surface); overflow: hidden; }
.mk-phone-view { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .8em; padding: 2.6em 1em 1em; }
.mk-phone-view[data-anim="phone-screen-a"] { transform: translateX(-100%); }
.mk-phone-title { font-size: 1.1em; font-weight: 600; letter-spacing: -.01em; }
.mk-tasks li { display: flex; align-items: center; gap: .6em; padding: .55em 0; border-bottom: 1px solid var(--mk-line); font-size: .85em; }
.mk-tasks i { width: 1em; height: 1em; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); flex: none; }
.mk-tasks i.is-done { border-color: var(--mk-ok); background: var(--mk-ok); }
.mk-ring { position: relative; width: 62%; margin: .3em auto; }
.mk-ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.mk-ring circle { fill: none; stroke-width: 6; }
.mk-ring-track { stroke: var(--mk-soft); }
.mk-ring-fill { stroke: var(--mk-text); stroke-linecap: round; }
.mk-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.3em; font-weight: 600; }
.mk-phone-meta { display: flex; justify-content: space-between; color: var(--mk-muted); font-size: .75em; }
.mk-btn--block { margin-top: auto; width: 100%; }
.mk-phone-tabs { display: flex; justify-content: space-around; align-items: center; height: 2.4em; border-radius: 0 0 1.55em 1.55em; background: var(--mk-surface); border-top: 1px solid var(--mk-line); }
.mk-phone-tabs i { width: 1em; height: 1em; border-radius: .3em; background: rgba(255, 255, 255, .16); }
.mk-phone-tabs i.is-on { background: var(--mk-text); }

/* ---------- Mockup: ai-rag ---------- */
.mk-chat { height: 100%; display: grid; grid-template-columns: 30% 1fr; }
.mk-chat-side { display: flex; flex-direction: column; gap: .8em; padding: 1.2em 1em; background: rgba(255, 255, 255, .02); border-right: 1px solid var(--mk-line); }
.mk-side-title { color: var(--mk-muted); font-size: .8em; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mk-sources li { display: flex; align-items: center; gap: .6em; padding: .5em .4em; border-radius: .5em; font-size: .9em; }
.mk-sources li:first-child { background: var(--mk-soft); box-shadow: 0 0 0 1px var(--mk-line); }
.mk-file { display: grid; place-items: center; width: 2.6em; height: 1.9em; border-radius: .35em; font-size: max(10px, .65em); font-weight: 700; color: var(--mk-ink); flex: none; }
.mk-file--pdf { background: var(--color--primary-3); } .mk-file--md { background: var(--color--gray-5); } .mk-file--doc { background: var(--color--primary-2); }
.mk-indexed { display: flex; align-items: center; gap: .5em; margin-top: auto; color: var(--mk-muted); font-size: .8em; }
.mk-indexed i, .mk-live { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--mk-ok); }
.mk-chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mk-chat-head { display: flex; align-items: center; gap: .7em; padding: .9em 1.2em; border-bottom: 1px solid var(--mk-line); }
.mk-chat-head small { display: flex; align-items: center; gap: .45em; }
.mk-bot { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .6em; background: var(--color--white); color: var(--mk-ink); }
.mk-bot svg { width: 1.1em; height: 1.1em; }
.mk-chat-log { flex: 1; display: flex; flex-direction: column; gap: .8em; padding: 1.1em 1.2em; min-height: 0; }
.mk-msg { max-width: 86%; padding: .75em 1em; border-radius: 1em; font-size: .95em; line-height: 1.45; }
.mk-msg--user { align-self: flex-end; background: var(--color--white); color: var(--mk-ink); border-bottom-right-radius: .3em; }
.mk-msg--bot { align-self: flex-start; background: var(--mk-soft); border: 1px solid var(--mk-line); border-bottom-left-radius: .3em; }
.mk-answer { margin: 0; }
.mk-search { display: flex; flex-wrap: wrap; align-items: center; gap: .45em; font-size: .82em; }
.mk-search-label { display: inline-flex; align-items: center; gap: .4em; color: var(--mk-muted); margin-right: .2em; }
.mk-search-label svg { width: 1.1em; height: 1.1em; }
.mk-doc { padding: .25em .6em; border-radius: .45em; border: 1px solid rgba(255, 255, 255, .14); background: var(--mk-soft); color: var(--mk-text); font-weight: 500; }
.mk-cites { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .7em; }
.mk-cite { display: inline-flex; align-items: center; gap: .4em; padding: .2em .6em .2em .25em; border-radius: 999px; background: rgba(255, 255, 255, .03); border: 1px solid var(--mk-line); font-size: .8em; color: var(--mk-muted); }
.mk-cite b { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--color--white); color: var(--mk-ink); font-size: max(10px, .85em); }
.mk-composer { display: flex; align-items: center; justify-content: space-between; margin: 0 1.2em 1.1em; padding: .55em .55em .55em 1em; border: 1px solid var(--mk-line); border-radius: .8em; color: var(--mk-muted); font-size: .9em; }
.mk-composer i { display: grid; place-items: center; width: 2em; height: 2em; border-radius: .5em; background: var(--color--white); color: var(--mk-ink); }
.mk-composer svg { width: 1em; height: 1em; }

/* ---------- Mockup: devops ---------- */
.mk-pipe { flex: none; }
.mk-pipe-head { display: flex; align-items: center; gap: 1em; padding: .9em 1.2em; border-bottom: 1px solid var(--mk-line); }
.mk-branch { display: inline-flex; align-items: center; gap: .4em; padding: .25em .6em; border-radius: .45em; background: var(--mk-soft); font-family: var(--_typography---font-family--body-alt); font-size: .8em; }
.mk-branch svg { width: 1.1em; height: 1.1em; }
.mk-commit { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.4em 1.2em 1.2em; }
/* a connector from each stage's circle to the next, edge to edge on the circles' centre line: O - O - O - O */
.mk-link { position: absolute; top: 1.3em; left: calc(50% + 1.3em + .5em); right: calc(-50% + 1.3em + .5em); height: 1px; background: var(--mk-ok); opacity: .55; transform-origin: left center; }
.mk-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15em; text-align: center; font-size: .9em; }
.mk-node-dot { display: grid; place-items: center; width: 2.6em; height: 2.6em; margin-bottom: .4em; border-radius: 50%; background: var(--mk-ok); color: var(--mk-ink); box-shadow: 0 0 0 .35em var(--mk-surface), 0 0 0 calc(.35em + 1px) var(--mk-line); }
.mk-node-dot .check { width: 1.3em; height: 1.3em; }
.mk-term { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: .9em; background: var(--color--dark); border: 1px solid var(--mk-line); box-shadow: 0 1.2em 2.4em -1.2em rgba(0, 0, 0, .7); overflow: hidden; }
.mk-term-bar { display: flex; align-items: center; gap: 1em; height: 2.2em; padding: 0 .9em; color: var(--mk-muted); font-size: .8em; border-bottom: 1px solid var(--mk-line); }
.mk-term-bar .mk-dots i { background: rgba(255, 255, 255, .1); }
.mockup .mk-log { padding: .8em 1.1em; font-family: var(--_typography---font-family--body-alt); font-size: .82em; line-height: 1.75; color: var(--silver); overflow: hidden; }
.mk-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-t { color: var(--color--primary-3); }
.mk-log em { font-style: normal; color: var(--color--primary-1); }
.mk-log em.mk-ok { color: var(--mk-ok); }
.mk-done { position: absolute; right: 2.4em; bottom: 2.4em; display: inline-flex; align-items: center; gap: .5em; padding: .6em 1em; border-radius: .7em; background: var(--mk-surface); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 .8em 2em -.6em rgba(0, 0, 0, .7); font-weight: 600; }
.mk-done .check { color: var(--mk-ink); background: var(--mk-ok); border-radius: 50%; width: 1.4em; height: 1.4em; padding: .2em; }

/* ---------- Mockup: saas ---------- */
.mk-dash { height: 100%; display: flex; }
.mk-rail { display: flex; flex-direction: column; align-items: center; gap: 1em; width: 3.2em; padding: 1em 0; background: rgba(255, 255, 255, .02); border-right: 1px solid var(--mk-line); flex: none; }
.mk-rail-logo { width: 1.5em; height: 1.5em; border-radius: .4em; background: var(--color--primary-1); margin-bottom: .5em; }
.mk-rail i { width: 1.2em; height: 1.2em; border-radius: .35em; background: rgba(255, 255, 255, .1); }
.mk-rail i.is-on { background: var(--mk-text); }
.mk-dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .8em; padding: 1em 1.2em; }
.mk-dash-head { display: flex; align-items: center; justify-content: space-between; }
.mk-seg { display: inline-flex; padding: .2em; border-radius: .5em; background: var(--mk-soft); font-size: .78em; color: var(--mk-muted); }
.mk-seg span { padding: .2em .6em; border-radius: .35em; }
.mk-seg .is-on { background: rgba(255, 255, 255, .12); color: var(--mk-text); }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.mk-kpi { display: flex; flex-direction: column; gap: .1em; padding: .7em .9em; border: 1px solid var(--mk-line); border-radius: .7em; min-width: 0; }
.mk-kpi .mk-num { font-size: 1.45em; }
.mk-delta { color: var(--mk-ok); font-size: .78em; font-weight: 500; }
.mk-charts { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: .7em; }
.mk-panel { display: flex; flex-direction: column; gap: .4em; padding: .7em .9em; border: 1px solid var(--mk-line); border-radius: .7em; min-height: 0; min-width: 0; }
.mk-line { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.mk-grid { stroke: var(--mk-line); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.mk-line-path { fill: none; stroke: var(--mk-text); stroke-width: 2; stroke-linecap: round; }
.mk-bars { flex: 1; min-height: 3em; display: flex; align-items: flex-end; gap: 12%; padding: 0 4%; border-bottom: 1px solid var(--mk-line); }
.mk-bars i { flex: 1; border-radius: .25em .25em 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .25)); transform-origin: bottom; }
.mk-table { display: flex; flex-direction: column; }
.mk-tr { display: grid; grid-template-columns: 1.8em 1.6fr 1fr .8fr auto; align-items: center; gap: .7em; padding: .45em .4em; border-top: 1px solid var(--mk-line); font-size: .85em; }
.mk-tr span:nth-child(3) { color: var(--mk-muted); }
.mk-tr--new { border-top: 0; border-radius: .5em; background: rgba(255, 255, 255, .06); }
.mk-av { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--c); color: var(--mk-ink); font-size: max(10px, .7em); font-weight: 600; }
.mk-td-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Mockup: custom ---------- */
.mockup--custom { justify-content: center; }
.mk-graph { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 100%; margin: auto; }
.mk-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mk-edges path { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.mk-packet { fill: var(--color--white); stroke: var(--mk-surface); stroke-width: 2; }
.mk-sys, .mk-hub { position: absolute; transform: translate(-50%, -50%); }
.mk-sys { display: flex; align-items: center; gap: .6em; padding: .55em .9em .55em .55em; border-radius: .8em; background: var(--mk-surface); border: 1px solid var(--mk-line); box-shadow: 0 .6em 1.4em -.6em rgba(0, 0, 0, .7); white-space: nowrap; }
.mk-sys-ic { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .55em; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.mk-sys-ic svg, .mk-hub-ic svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mk-hub { display: flex; flex-direction: column; align-items: center; gap: .2em; padding: 1em 1.4em; border-radius: 1em; background: var(--color--white); color: var(--mk-ink); box-shadow: 0 0 0 .45em rgba(255, 255, 255, .06), 0 1em 2em -.8em rgba(0, 0, 0, .8); text-align: center; }
.mk-hub small { color: var(--color--primary-3); }
.mk-hub-ic { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: .6em; background: var(--mk-ink); color: var(--color--white); margin-bottom: .2em; }
.mk-status { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .5em; padding: .55em 1em; border-radius: .7em; background: var(--mk-surface); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 .8em 2em -.6em rgba(0, 0, 0, .7); font-weight: 600; white-space: nowrap; }
.mk-status .check { color: var(--mk-ink); background: var(--mk-ok); border-radius: 50%; width: 1.4em; height: 1.4em; padding: .2em; grid-row: span 2; }
.mk-status small { font-weight: 400; }

/* ---------- Mockups: wireframe treatment ----------
   The product screens are drawn as wireframes: no filled surfaces, no shadows, no colour.
   Panels are hairline outlines, solid controls become outlined shapes, and text sits in two
   greys. Layout, content and the animation timelines are unchanged. */
.mockup {
  --wf-line: rgba(255, 255, 255, .16);
  --wf-ink: rgba(255, 255, 255, .62);
  --mk-text: rgba(255, 255, 255, .82);
  --mk-muted: rgba(255, 255, 255, .42);
  --mk-line: var(--wf-line);
  --mk-soft: transparent;
  --mk-surface: transparent;
  --mk-ok: var(--wf-ink);
  --mk-ok-soft: transparent;
  background: transparent;
  border-color: rgba(255, 255, 255, .1);
}
.mockup .mk-window,
.mockup .mk-term,
.mockup .mk-card,
.mockup .mk-kpi,
.mockup .mk-panel,
.mockup .mk-sys,
.mockup .mk-done,
.mockup .mk-status,
.mockup .mk-msg,
.mockup .mk-composer,
.mockup .mk-cite,
.mockup .mk-doc,
.mockup .mk-url,
.mockup .mk-seg,
.mockup .mk-branch,
.mockup .mk-sources li:first-child,
.mockup .mk-tr--new {
  background: none;
  box-shadow: none;
  border: 1px solid var(--wf-line);
}
.mockup .mk-bar,
.mockup .mk-chat-side,
.mockup .mk-rail,
.mockup .mk-phone-screen,
.mockup .mk-phone-tabs { background: none; }

/* solid controls and marks become outlines */
.mockup .mk-btn--primary,
.mockup .mk-msg--user,
.mockup .mk-bot,
.mockup .mk-cite b,
.mockup .mk-composer i,
.mockup .mk-node-dot,
.mockup .mk-av,
.mockup .mk-avatar,
.mockup .mk-file,
.mockup .mk-hub-ic,
.mockup .mk-seg .is-on,
.mockup .mk-pill {
  background: none;
  box-shadow: none;
  border: 1px solid var(--wf-ink);
  color: var(--mk-text);
}
.mockup .mk-msg--user { color: var(--mk-text); }
.mockup .mk-hub { background: none; color: var(--mk-text); border: 1px solid var(--wf-ink); box-shadow: none; }
.mockup .mk-hub small { color: var(--mk-muted); }
.mockup .mk-logo i,
.mockup .mk-rail-logo,
.mockup .mk-rail i,
.mockup .mk-phone-tabs i,
.mockup .mk-tasks i,
.mockup .mk-chip-dot,
.mockup .mk-dots i,
.mockup .mk-sys-ic { background: none; border: 1px solid var(--wf-ink); color: var(--mk-text); }
.mockup .mk-rail i.is-on,
.mockup .mk-phone-tabs i.is-on,
.mockup .mk-tasks i.is-done { background: var(--wf-ink); }
.mockup .mk-meter { background: none; border: 1px solid var(--wf-line); }
.mockup .mk-meter i { background: var(--wf-ink); }
.mockup .mk-bars i { background: none; border: 1px solid var(--wf-ink); border-bottom: 0; }
.mockup .mk-mark,
.mockup .mk-done .check,
.mockup .mk-status .check { background: none; color: var(--mk-text); border: 1px solid var(--wf-ink); }
.mockup .mk-indexed i,
.mockup .mk-live,
.mockup .mk-link { background: var(--wf-line); opacity: 1; }
.mockup .mk-skel i { background: none; border: 1px dashed var(--wf-line); }
.mockup .mk-skel--card { background: none; border: 1px dashed var(--wf-line); }

/* the phone is an outline device, not a black slab */
.mockup .mk-phone { background: var(--color--dark); box-shadow: none; border: 1px solid var(--wf-ink); }
/* pieces that sit on top of another screen keep the page black so the lines beneath don't show */
.mockup .mk-done, .mockup .mk-status, .mockup .mk-sys, .mockup .mk-hub { background: var(--color--dark); }
.mockup .mk-phone-notch { background: var(--color--dark); border: 1px solid var(--wf-ink); }

/* charts and graph lines in the same white stroke */
.mockup .mk-line-path,
.mockup .mk-ring-fill { stroke: var(--wf-ink); stroke-width: 1.5; }
.mockup .mk-ring-track { stroke: var(--wf-line); }
.mockup .mk-line path[fill^="url"] { fill: none; }   /* no area wash under the revenue line */
.mockup .mk-edges path { stroke: var(--wf-line); stroke-width: 1; stroke-dasharray: 4 4; }
.mockup .mk-packet { fill: var(--color--dark); stroke: var(--wf-ink); stroke-width: 1.5; }
.mockup .mk-log em, .mockup .mk-log em.mk-ok, .mockup .mk-delta { color: var(--mk-text); }

/* one quiet accent: the white signal marks the "live" part of each screen - the primary action,
   the active state, the thing that just happened - and nothing else */
.mockup { --wf-accent: rgba(255, 255, 255, .82); --wf-accent-soft: rgba(255, 255, 255, .08); }
.mockup .mk-btn--primary { border-color: var(--wf-accent); color: var(--color--white); }
.mockup .mk-tap { background: var(--wf-accent-soft); }
.mockup .mk-rail i.is-on,
.mockup .mk-phone-tabs i.is-on,
.mockup .mk-tasks i.is-done { background: var(--wf-accent); border-color: var(--wf-accent); }
.mockup .mk-seg .is-on { border-color: var(--wf-accent); }
.mockup .mk-logo i, .mockup .mk-rail-logo { border-color: var(--wf-accent); }
.mockup .mk-meter--green i { background: var(--wf-accent); }
.mockup .mk-line-path, .mockup .mk-ring-fill { stroke: var(--wf-accent); }
.mockup .mk-cite b { border-color: var(--wf-accent); color: var(--color--white); }
.mockup .mk-doc { border-color: rgba(255, 255, 255, .35); background: var(--wf-accent-soft); }
.mockup .mk-node-dot { border-color: var(--wf-accent); color: var(--color--white); }
.mockup .mk-link { background: rgba(255, 255, 255, .45); }
.mockup .mk-log em.mk-ok { color: var(--color--white); }
.mockup .mk-done .check, .mockup .mk-status .check { border-color: var(--wf-accent); color: var(--color--white); }
.mockup .mk-tr--new { border-color: rgba(255, 255, 255, .35); background: var(--wf-accent-soft); }
.mockup .mk-pill--accent { border-color: var(--wf-accent); color: var(--color--white); }

/* ---------- Mockups: silver accents ----------
   The wireframe keeps one white accent for "the live part of the screen"; this layer sets the
   status / data / category marks from the silver steps in colour.css (--mk-pass near-white down to
   --mk-warn mid silver). No hue: marks are told apart by lightness, shape and label, so each screen
   stays inside the black/white/silver system. Mockups sit on dark bands, so these are the on-black values. */

/* each screen's primary accent is its brightest silver, marking the live/primary thing */
.mockup--devops,
.mockup--support,
.mockup--legacy-modernization { --wf-accent: var(--mk-pass); }
.mockup--saas,
.mockup--web-mobile,
.mockup--custom,
.mockup--discovery-mvp { --wf-accent: var(--mk-ref); }
.mockup--ai-rag,
.mockup--ai-pilot,
.mockup--ui-ux,
.mockup--3d { --wf-accent: var(--mk-cat); }
.mockup { --wf-accent-soft: color-mix(in srgb, var(--wf-accent) 14%, transparent); }

/* status marks keep their job on every screen, read by lightness and label, not hue */
.mockup .mk-pill--green { border-color: color-mix(in srgb, var(--mk-pass) 55%, transparent); color: var(--mk-pass); }
.mockup .mk-pill--accent { border-color: color-mix(in srgb, var(--mk-ref) 55%, transparent); color: var(--mk-ref); }
.mockup .mk-meter--green i { background: var(--mk-pass); }
.mockup .mk-meter--amber i { background: var(--mk-warn); }
.mockup .mk-delta { color: var(--mk-pass); }
.mockup .mk-tasks i.is-done { background: var(--mk-pass); border-color: var(--mk-pass); }
/* the green/amber status meters are coloured in colour.css, which paints meters last */

/* category marks take the four silver steps */
.mockup .mk-c1 { --c: var(--mk-ref); }
.mockup .mk-c2 { --c: var(--mk-cat); }
.mockup .mk-c3 { --c: var(--mk-warn); }
.mockup .mk-c4 { --c: var(--mk-pass); }
.mockup .mk-chip-dot { background: var(--c); border-color: transparent; }
.mockup .mk-av,
.mockup .mk-sys-ic { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: color-mix(in srgb, var(--c) 42%, transparent); color: var(--c); }

/* devops: a passing pipeline takes the accent (via --wf-accent); its branch and build id the quieter data mark */
.mockup--devops .mk-node-dot { border-color: var(--wf-accent); color: var(--wf-accent); }
.mockup--devops .mk-link { background: var(--wf-accent); opacity: .85; }
.mockup--devops .mk-done .check { border-color: var(--wf-accent); color: var(--wf-accent); }
.mockup--devops .mk-branch { color: var(--mk-ref); border-color: color-mix(in srgb, var(--mk-ref) 40%, transparent); }
.mockup--devops .mk-log em { color: var(--mk-ref); }
.mockup--devops .mk-log em.mk-ok { color: var(--mk-pass); }

/* support: uptime runs in the accent, the blip in the attention mark, releases as data points */
.mockup--support .mk-up-line { stroke: var(--mk-pass); }
.mockup--support .mk-up-notch { stroke: var(--mk-warn); }
.mockup--support .mk-up-release circle { fill: var(--mk-ref); stroke: var(--mk-ref); }

/* 3d: two glaze swatches, drawn as silver steps */
.mockup--3d .mk-sw--saffron { background: var(--mk-warn); }
.mockup--3d .mk-sw--slate { background: var(--mk-ref); }

/* ai-rag: the assistant and its citations take the category mark, retrieval/health the accent */
.mockup--ai-rag .mk-bot,
.mockup--ai-rag .mk-cite b { color: var(--mk-cat); border-color: color-mix(in srgb, var(--mk-cat) 50%, transparent); }
.mockup--ai-rag .mk-live,
.mockup--ai-rag .mk-indexed i { background: var(--mk-pass); }
.mockup .mk-hub { border-color: var(--wf-accent); }
.mockup .mk-packet { stroke: var(--wf-accent); fill: var(--color--dark); }
.mockup .mk-indexed i, .mockup .mk-live { background: var(--wf-accent); }

/* ---------- Mockup: ui-ux ----------
   Drawn wireframe-first (the treatment above already applies): a design tool with a component
   library, two screens on a dotted canvas and an inspector. */
.mk-studio { height: 100%; display: flex; flex-direction: column; }
.mk-tools { display: inline-flex; gap: .45em; }
.mk-tools i { width: 1.1em; height: 1.1em; border-radius: .3em; border: 1px solid var(--wf-line); }
.mk-tools i.is-on { border-color: var(--wf-accent); }
.mk-file-name { flex: 1; text-align: center; font-size: .85em; white-space: nowrap; overflow: hidden; }
.mockup .mk-file-name small { display: inline; margin-left: .3em; }
.mk-studio-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 9em; }
.mk-layers, .mk-inspect { display: flex; flex-direction: column; gap: .6em; min-width: 0; padding: .9em .8em; }
.mk-layers { border-right: 1px solid var(--wf-line); }
.mk-inspect { border-left: 1px solid var(--wf-line); }
.mk-layers ul { display: flex; flex-direction: column; gap: .25em; }
.mk-comp { display: flex; align-items: center; gap: .5em; padding: .3em .45em; border: 1px solid transparent; border-radius: .4em; color: var(--mk-muted); font-size: .85em; }
.mk-comp--on { border-color: var(--wf-line); color: var(--mk-text); }
.mk-comp-ic { flex: none; width: 1.05em; height: .8em; border: 1px solid var(--wf-ink); border-radius: .2em; }
.mk-comp-ic--btn { height: .6em; border-radius: .3em; border-color: var(--wf-accent); }
.mk-comp-ic--card { height: 1.05em; }
.mk-comp-ic--round { width: .95em; height: .95em; border-radius: 50%; }
.mk-canvas { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 1.8em 1em 1em; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px); background-size: 1.2em 1.2em; }
.mk-frame { position: relative; flex: none; width: 9em; aspect-ratio: 9 / 16; max-height: 100%; }
.mk-frame-name { position: absolute; left: 0; bottom: 100%; margin-bottom: .35em; color: var(--mk-muted); font-size: .75em; }
.mk-frame-body { height: 100%; display: flex; flex-direction: column; gap: .6em; padding: .9em .7em .7em; border: 1px solid var(--wf-ink); border-radius: .7em; }
.mk-proto { flex: none; width: 2.6em; height: 1.3em; margin: 0 .5em; overflow: visible; }
.mk-proto path { fill: none; stroke: var(--wf-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mk-ln { display: block; width: 85%; height: .45em; border-radius: .3em; background: rgba(255, 255, 255, .14); }
.mk-ln--h { width: 55%; height: .7em; background: rgba(255, 255, 255, .3); }
.mk-ln--short { width: 50%; }
.mk-row { display: flex; align-items: center; gap: .5em; }
.mk-row > span { flex: 1; display: flex; flex-direction: column; gap: .3em; }
.mk-thumb { flex: none; width: 2em; height: 2em; border: 1px solid var(--wf-line); border-radius: .4em; }
.mk-ghost-btn, .mk-drop { margin-top: auto; }
.mk-ghost-btn { display: block; height: 1.9em; border: 1px solid var(--wf-ink); border-radius: .5em; }
.mk-field { display: block; height: 1.7em; border: 1px solid var(--wf-line); border-radius: .4em; }
.mk-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; }
.mk-drop { position: relative; }
.mk-drop .mk-btn { width: 100%; padding: .5em; font-size: .8em; }
.mk-handles { position: absolute; inset: -.3em; border: 1px solid var(--wf-accent); pointer-events: none; }
.mk-handles i { position: absolute; width: .45em; height: .45em; border: 1px solid var(--wf-accent); background: var(--color--dark); }
.mk-handles i:nth-child(1) { left: -.25em; top: -.25em; }
.mk-handles i:nth-child(2) { right: -.25em; top: -.25em; }
.mk-handles i:nth-child(3) { left: -.25em; bottom: -.25em; }
.mk-handles i:nth-child(4) { right: -.25em; bottom: -.25em; }
.mk-cursor { position: absolute; left: 68%; top: 55%; z-index: 2; width: 1.2em; height: 1.2em; color: var(--color--white); }
.mk-cursor svg { display: block; width: 100%; height: 100%; fill: var(--color--dark); stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.mk-drag-ghost { position: absolute; right: 70%; bottom: 70%; padding: .3em .7em; border: 1px dashed var(--wf-accent); border-radius: .4em; background: var(--color--dark); color: var(--color--white); font-size: .75em; white-space: nowrap; opacity: 0; }
.mk-inspect dl { display: flex; flex-direction: column; gap: .35em; margin: 0; font-size: .82em; }
.mk-inspect dl div { display: flex; justify-content: space-between; gap: .5em; padding: .3em .5em; border: 1px solid var(--wf-line); border-radius: .35em; }
.mk-inspect dt { color: var(--mk-muted); font-weight: 400; }
.mk-inspect dd { display: inline-flex; align-items: center; gap: .35em; margin: 0; }
.mk-chip-swatch { width: .8em; height: .8em; border-radius: .2em; background: var(--wf-accent); }
.mk-inspect .mk-pill { align-self: flex-start; }

/* ---------- Mockup: 3d ----------
   The vase is a lathe: rings are static ellipses, the meridians are redrawn as it turns
   (showcase.js, vaseMeridian). Server markup is the same drawing at its final angle. */
.mk-viewer { height: 100%; display: flex; flex-direction: column; }
.mk-viewer-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 10em; }
.mk-viewport { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; }
.mk-vp-tag, .mk-vp-stats { position: absolute; top: .8em; color: var(--mk-muted); font-size: .78em; }
.mk-vp-tag { left: .9em; }
.mk-vp-stats { right: .9em; color: var(--mk-text); text-align: right; font-variant-numeric: tabular-nums; }
.mk-model { width: auto; height: 94%; max-width: 100%; aspect-ratio: 1; overflow: visible; color: var(--wf-accent); }
.mk-model path, .mk-model ellipse { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mk-model-back path { opacity: .22; }
.mk-model-front path { opacity: .85; }
.mk-model .mk-model-edge { opacity: 1; }
.mk-model .mk-model-floor { stroke: var(--wf-line); stroke-dasharray: 3 4; }
.mk-gizmo { position: absolute; left: 1.2em; bottom: 1.2em; width: 2.2em; height: 2.2em; }
.mk-gizmo i { position: absolute; left: 0; bottom: 0; width: 2em; height: 1px; background: var(--wf-ink); transform-origin: left center; }
.mk-gizmo .mk-gizmo-x { background: var(--wf-accent); }
.mk-gizmo-y { transform: rotate(-90deg); }
.mk-gizmo-z { transform: rotate(145deg) scaleX(.6); }
.mk-material { display: flex; flex-direction: column; gap: .55em; min-width: 0; padding: .9em; border-left: 1px solid var(--wf-line); }
.mk-swatches { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.mk-sw { justify-self: center; width: 68%; aspect-ratio: 1; border: 1px solid var(--wf-ink); border-radius: 50%; }
.mk-sw--bone { background: rgba(255, 255, 255, .55); }
.mk-sw--slate { background: rgba(255, 255, 255, .2); }
.mk-sw--saffron { border-color: var(--wf-accent); background: var(--wf-accent); }
.mk-sw-ring { position: absolute; top: 50%; left: 50%; width: 25%; aspect-ratio: 1; transform: translateY(-50%); }
.mk-sw-ring::after { content: ""; position: absolute; inset: 4%; border: 1px solid var(--wf-accent); border-radius: 50%; }
.mk-mat-name { display: grid; margin-bottom: .3em; }
.mk-mat-name b { grid-area: 1 / 1; }
.mk-mat-name b:first-child { opacity: 0; }
.mk-slider { display: block; height: .4em; border: 1px solid var(--wf-line); border-radius: 1em; }
.mk-slider i { display: block; height: 100%; border-radius: inherit; background: var(--wf-ink); }
.mk-material .mk-btn { margin-top: auto; }

/* ---------- Mockups: narrow containers ---------- */
@container (max-width: 560px) {
  .mockup { aspect-ratio: auto; padding: 1.2em; font-size: 12px; }
  /* legibility floor: no mockup text below 10px on narrow screens */
  .mockup small, .mk-label, .mk-pill, .mk-delta, .mk-tr, .mk-av, .mk-avatar, .mk-seg,
  .mk-url, .mk-branch, .mk-term-bar, .mockup .mk-log, .mk-search, .mk-cite, .mk-cite b { font-size: 10px; }
  .mockup--web-mobile { min-height: 24em; padding-right: 1em; }
  .mockup--web-mobile { --phone-w: 9.5em; }
  .mk-browser { width: calc(100% - var(--phone-w) + 1.5em); }
  .mk-browser-body { padding-right: 2.2em; }
  .mk-appnav { margin-right: -2.2em; padding-right: 2.2em; }
  .mk-h { font-size: 1.15em; }
  .mk-list .mk-pill { display: none; }
  .mk-phone-view { padding: 2.4em .8em .8em; gap: .6em; }
  .mk-phone-title { font-size: 1em; }
  .mk-phone-meta { display: none; }
  .mk-appnav-links, .mk-wm-cards .mk-swap:nth-child(3) { display: none; }
  .mk-wm-cards { grid-template-columns: repeat(2, 1fr); }
  .mk-wm-head { flex-direction: column; align-items: flex-start; }
  .mk-phone { top: auto; bottom: 1.2em; right: 1em; aspect-ratio: 9 / 18.5; }
  .mk-chat { grid-template-columns: 1fr; }
  .mk-chat-side { display: none; }
  .mk-chat-log { padding: 1em; }
  .mk-msg { max-width: 94%; }
  .mk-term { min-height: 11em; }
  .mk-done { position: static; align-self: flex-start; }
  .mk-pipe-head .mk-pill { display: none; }
  .mk-rail { display: none; }
  .mk-dash-main { padding: .9em; }
  .mk-charts { min-height: 9em; }
  .mk-tr { grid-template-columns: 1.8em 1.6fr .9fr auto; }
  .mk-tr span:nth-child(3) { display: none; }
  .mk-graph { margin-bottom: 4.2em; }
  .mk-status { top: 100%; bottom: auto; margin-top: .9em; }
  .mk-sys { padding: .45em .7em .45em .45em; }
  .mk-sys small, .mk-hub small { display: none; }
  .mk-comp, .mk-inspect dl, .mk-frame-name, .mk-file-name, .mk-vp-tag, .mk-vp-stats, .mk-drag-ghost { font-size: 10px; }
  .mockup--ui-ux, .mockup--3d { aspect-ratio: 4 / 3; }
  .mk-tools { display: none; }
  .mk-studio-body { grid-template-columns: 6.6em minmax(0, 1fr) 7.6em; }
  .mk-layers, .mk-inspect { padding: .7em .55em; }
  .mk-canvas { padding: 1.6em .6em .7em; }
  .mk-frame { width: 6.8em; }
  .mk-proto { width: 1.8em; margin: 0 .3em; }
  .mk-viewer-body { grid-template-columns: minmax(0, 1fr) 8.4em; }
  .mk-material { padding: .7em; }
}
/* phones: side panels go, the main picture keeps the width */
@container (max-width: 420px) {
  .mockup--ui-ux, .mockup--3d { aspect-ratio: auto; }
  .mk-studio-body { grid-template-columns: minmax(0, 1fr); }
  .mk-layers, .mk-inspect { display: none; }
  .mk-canvas { min-height: 19em; }
  .mk-frame { width: 8em; }
  .mk-proto { width: 2.4em; }
  .mk-viewer-body { grid-template-columns: minmax(0, 1fr); }
  .mk-viewport { height: 15em; }
  .mk-material { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6em .8em; border-left: 0; border-top: 1px solid var(--wf-line); }
  .mk-material > .mk-label ~ .mk-label, .mk-slider { display: none; }
  .mk-swatches { width: 7.5em; }
  .mk-mat-name { margin: 0; }
  .mk-material .mk-btn { margin: 0 0 0 auto; }
}

/* ---------- New mockups: shared resets ----------
   site.css gives every li a bottom margin; the newer mockups lay out their own lists. */
.mockup--ai-pilot li, .mockup--discovery-mvp li, .mockup--legacy-modernization li, .mockup--support li { margin: 0; }
.mockup ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Mockup: ai-pilot ----------
   Five eval scores against a dashed pass mark, then the release gate opens. */
.mk-evals { flex: 1; display: flex; flex-direction: column; }
.mk-evals-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mk-ev-chart { display: flex; flex-direction: column; gap: .7em; min-width: 0; padding: 1em 1.2em; }
.mk-ev-head { display: flex; align-items: center; justify-content: space-between; gap: .8em; white-space: nowrap; }
.mk-ev-key { display: inline-flex; align-items: center; gap: .45em; color: var(--mk-text); font-size: .8em; }
.mk-ev-key i { width: 1.6em; border-top: 1px dashed var(--wf-accent); }
.mk-ev-plot { position: relative; flex: 1; min-height: 7em; display: flex; align-items: flex-end; gap: 6%; padding: 0 5%; border-bottom: 1px solid var(--wf-line); }
.mk-ev-pass { position: absolute; left: 0; right: 0; bottom: var(--at); border-top: 1px dashed var(--wf-accent); z-index: 1; }
.mk-ev-bar { flex: 1; height: var(--h); border: 1px solid var(--wf-ink); border-bottom: 0; border-radius: .25em .25em 0 0; transform-origin: bottom; }
.mk-ev-names { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6%; padding: 0 5%; color: var(--mk-muted); font-size: .78em; text-align: center; }
.mk-ev-names li { display: flex; flex-direction: column; min-width: 0; white-space: nowrap; overflow: hidden; }
.mk-ev-names b { color: var(--mk-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.mk-gate-side { display: flex; flex-direction: column; gap: .7em; min-width: 0; padding: 1em 1.1em; border-left: 1px solid var(--wf-line); }
.mk-gate-checks { display: flex; flex-direction: column; gap: .45em; font-size: .85em; }
.mk-gate-checks li { display: flex; align-items: center; gap: .5em; white-space: nowrap; }
.mockup .mk-gate-checks .check, .mockup .mk-cut-new .check, .mockup .mk-dm-agreed .check, .mockup .mk-up-resolved .check { width: 1.2em; height: 1.2em; color: var(--color--white); }
.mockup .mk-gate-checks .check path, .mockup .mk-cut-new .check path, .mockup .mk-dm-agreed .check path, .mockup .mk-up-resolved .check path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mk-ev-trend { display: flex; flex-direction: column; gap: .35em; margin-top: auto; }
.mk-ev-trend svg { display: block; width: 100%; height: 3.6em; overflow: visible; }
.mk-ev-trend path { fill: none; vector-effect: non-scaling-stroke; }
.mk-ev-trend-mark { stroke: var(--wf-accent); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.mk-ev-trend-line { stroke: var(--wf-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mk-ev-runs { display: flex; justify-content: space-between; }
.mk-gate { position: relative; display: grid; place-items: center; height: 3.4em; margin-top: .3em; border: 1px solid var(--wf-ink); border-radius: .6em; overflow: hidden; }
.mk-gate-label { display: inline-flex; align-items: center; gap: .45em; padding: .35em .85em; border: 1px solid var(--wf-accent); border-radius: 999px; color: var(--color--white); font-size: .85em; font-weight: 500; white-space: nowrap; }
.mk-gate-label svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* the two leaves of the gate: drawn open (the finished frame), closed only while armed */
.mk-gate-door { position: absolute; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(135deg, transparent 0 .45em, rgba(255, 255, 255, .08) .45em calc(.45em + 1px)), var(--color--dark); }
.mk-gate-door--l { left: 0; border-right: 1px solid var(--wf-ink); transform: translateX(-94%); }
.mk-gate-door--r { right: 0; border-left: 1px solid var(--wf-ink); transform: translateX(94%); }

/* ---------- Mockup: discovery-mvp ----------
   Scope cards settled into three phases, Now, Next and Later, with the first card opened up as a
   phone screen on the left; while armed the cards start scattered. A grid, not a fixed board, so
   it reflows: under 420px the phone goes and the three phases take the full width. */
.mockup--discovery-mvp { justify-content: center; }
.mk-dm-board {
  --dm-gap: 2.2;   /* phone to plan, in ems; the live card's link spans it */
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 25fr) minmax(0, 69fr);
  column-gap: calc(var(--dm-gap) * 1em);
}
.mk-dm-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.1em .8em;
  min-width: 0;
}
.mk-dm-col { display: flex; flex-direction: column; gap: .7em; min-width: 0; }
.mk-dm-head { display: flex; flex-direction: column; padding-left: .2em; color: var(--mk-text); font-size: .85em; font-weight: 600; }
.mk-dm-lane { position: relative; flex: 1; display: flex; flex-direction: column; gap: 1.4em; padding: .55em; }
/* the phase's outline is its own layer, so it can draw without clipping the cards inside */
.mk-dm-lane::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--wf-line); border-radius: .9em; pointer-events: none; }
.mk-dm-card { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .15em; min-width: 0; padding: .55em .6em; border: 1px solid var(--wf-line); border-radius: .6em; background: var(--color--dark); font-size: .85em; white-space: nowrap; }
.mk-dm-card b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.mk-dm-card small { overflow: hidden; text-overflow: ellipsis; }
.mk-dm-card.is-live { border-color: var(--wf-accent); }
/* the live card's link back to the phone: across the gap and the lane's padding, in the card's own ems */
.mk-dm-card.is-live::before { content: ""; position: absolute; top: 50%; right: calc(100% + 1px); width: calc((var(--dm-gap) + .55) * 1em / .85); border-top: 1.5px solid var(--wf-accent); transform-origin: 0 50%; }
.mk-dm-agreed { grid-column: 1 / -1; justify-self: center; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .5em; padding: .5em .9em; border: 1px solid var(--wf-line); border-radius: .7em; background: var(--color--dark); font-weight: 600; white-space: nowrap; }
.mk-dm-agreed .check { grid-row: span 2; }
.mk-dm-agreed small { font-weight: 400; }
.mk-dm-phone { position: relative; display: flex; flex-direction: column; min-width: 0; padding: .4em; border: 1px solid var(--wf-ink); border-radius: 1.6em; background: var(--color--dark); transform-origin: 100% 28%; }
.mk-dm-notch { position: absolute; top: .8em; left: 50%; width: 3em; height: .85em; margin-left: -1.5em; border: 1px solid var(--wf-ink); border-radius: 1em; }
.mk-dm-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .7em; padding: 2.3em .75em .8em; border: 1px solid var(--wf-line); border-radius: 1.25em; overflow: hidden; }
.mk-dm-title { font-size: 1.05em; letter-spacing: -.01em; }
.mk-dm-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35em; }
.mk-dm-days span { display: flex; flex-direction: column; align-items: center; padding: .35em 0; border: 1px solid var(--wf-line); border-radius: .5em; color: var(--mk-muted); font-size: .72em; }
.mk-dm-days b { color: var(--mk-text); font-size: 1.25em; font-weight: 500; }
.mk-dm-times { display: flex; flex-direction: column; gap: .35em; }
.mk-dm-times li { padding: .35em .6em; border: 1px solid var(--wf-line); border-radius: .45em; font-size: .8em; font-variant-numeric: tabular-nums; }
.mk-dm-days .is-on, .mk-dm-times .is-on { border-color: var(--wf-accent); color: var(--color--white); }
.mk-dm-sum { margin-top: auto; text-align: center; }
.mk-dm-cta { display: block; padding: .5em; border: 1px solid var(--wf-accent); border-radius: .55em; color: var(--color--white); font-size: .78em; font-weight: 500; text-align: center; white-space: nowrap; }

/* ---------- Mockup: legacy-modernization ----------
   Four modules cross from the old system to the new one, one at a time, and traffic moves with
   them. The finished frame has everything on the new side and the old system retired. */
.mk-cut { flex: 1; display: flex; flex-direction: column; }
.mockup .mk-cut-count { margin-left: auto; border-color: var(--wf-accent); color: var(--color--white); white-space: nowrap; }
.mk-cut-cols, .mk-cut-rows li { display: grid; grid-template-columns: minmax(0, 1fr) 4.5em minmax(0, 1fr); align-items: center; }
.mk-cut-cols { padding: .9em 1.2em .5em; }
.mk-cut-cols .mk-label:last-child { grid-column: 3; }
.mockup .mk-cut-rows { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .5em; min-height: 0; padding: 0 1.2em; }
.mk-cut-old, .mk-cut-new { display: flex; align-items: center; justify-content: space-between; gap: .5em; min-width: 0; padding: .45em .7em; border: 1px solid var(--wf-line); border-radius: .5em; font-size: .85em; white-space: nowrap; }
.mk-cut-old { border-style: dashed; color: var(--mk-muted); opacity: .55; }  /* finished frame: this side is retired */
.mk-cut-new { border-color: var(--wf-accent); color: var(--color--white); }
.mk-cut-link { display: block; width: 100%; height: auto; overflow: visible; }
.mk-cut-link path { fill: none; stroke: var(--wf-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mk-cut-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .45em 1em; margin-top: .8em; padding: .7em 1.2em .9em; border-top: 1px solid var(--wf-line); }
.mockup .mk-cut-retired { border-color: var(--wf-accent); color: var(--color--white); white-space: nowrap; }
.mk-cut-meter { display: block; grid-column: 1 / -1; }

/* ---------- Mockup: support ----------
   A 30-day uptime line with four releases; the incident notch closes and is left as a
   dashed silver trace under its resolution label. */
.mk-uptime { flex: none; display: flex; flex-direction: column; }
.mk-up-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .9em 1.2em 0; }
.mk-up-ok { gap: .45em; }
.mockup .mk-up-ok { border-color: var(--wf-accent); color: var(--color--white); }
.mk-up-ok i { width: .5em; height: .5em; border-radius: 50%; background: var(--color--white); }
.mk-up-chart { position: relative; margin: .4em 1.2em .9em; }
.mk-up-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mk-up-svg path, .mk-up-svg circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mk-up-line { stroke: var(--wf-accent); stroke-width: 1.5; }
.mk-up-notch { stroke: var(--color--primary-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.mk-up-leader { stroke: var(--wf-line); stroke-width: 1; }
.mk-up-release path { stroke: var(--wf-ink); stroke-width: 1; }
.mk-up-release circle { fill: var(--color--dark); stroke: var(--wf-accent); stroke-width: 1.5; }
.mk-up-tag { position: absolute; top: 66%; transform: translateX(-50%); color: var(--mk-muted); font-family: var(--_typography---font-family--body-alt); font-size: .75em; }
.mk-up-resolved { position: absolute; top: 0; transform: translate(-50%, -35%); display: inline-flex; align-items: center; gap: .45em; padding: .3em .75em; border: 1px solid var(--wf-accent); border-radius: 999px; background: var(--color--dark); color: var(--color--white); font-size: .82em; font-weight: 500; white-space: nowrap; }
.mockup--support .mk-term { flex: 1; }
.mockup .mk-log em.mk-up-fixed { color: var(--color--white); }

/* ---------- Mockups: draw on view ----------
   Contract with system.js: the root carries data-draw-root. With no JS, and until .is-armed is
   set, every mockup shows its finished frame. JS sets .is-armed (start frame), then .is-drawn
   when the mockup enters view, and the rules below play it to the finished frame.
   [data-draw] strokes need pathLength="1"; --d on an element delays its step. */
/* Start frames only apply while motion is allowed: under reduced motion, or once the visitor
   presses the motion toggle (html.motion-paused), every mockup shows its finished frame. */
@media screen and (prefers-reduced-motion: no-preference) {
  /* dash 1, gap 2: no stray round cap shows at the far end while a stroke draws; it stays hidden
     until its step starts so the cap at its start doesn't show either */
  html:not(.motion-paused) [data-draw-root].is-armed [data-draw] { stroke-dasharray: 1 2; stroke-dashoffset: 1; visibility: hidden; }
  html:not(.motion-paused) [data-draw-root].is-armed [data-rise] { opacity: 0; transform: translateY(.6em); }
  html:not(.motion-paused) [data-draw-root].is-armed.is-drawn [data-draw] { stroke-dashoffset: 0; visibility: visible; transition: stroke-dashoffset .9s var(--ease-out) var(--d, 0s), visibility 0s linear var(--d, 0s); }
  html:not(.motion-paused) [data-draw-root].is-armed.is-drawn [data-rise] { opacity: 1; transform: none; transition: opacity .6s var(--ease-out) var(--d, 0s), transform .6s var(--ease-out) var(--d, 0s); }

  /* ai-pilot: bars grow from the axis, the gate starts shut and slides open after the checks */
  html:not(.motion-paused) .mockup--ai-pilot.is-armed .mk-ev-bar[data-rise] { opacity: 1; transform: scaleY(0); }
  html:not(.motion-paused) .mockup--ai-pilot.is-armed.is-drawn .mk-ev-bar[data-rise] { transform: none; transition: transform 1s var(--ease-out) var(--d, 0s); }
  html:not(.motion-paused) .mockup--ai-pilot.is-armed .mk-gate-door { transform: none; }
  html:not(.motion-paused) .mockup--ai-pilot.is-armed.is-drawn .mk-gate-door { transition: transform .9s var(--ease-out) 1.9s; }
  html:not(.motion-paused) .mockup--ai-pilot.is-armed.is-drawn .mk-gate-door--l { transform: translateX(-94%); }
  html:not(.motion-paused) .mockup--ai-pilot.is-armed.is-drawn .mk-gate-door--r { transform: translateX(94%); }

  /* discovery-mvp: cards start scattered and settle, each phase's outline draws down, then the live
     card's link reaches out and the card opens into the phone */
  html:not(.motion-paused) .mockup--discovery-mvp.is-armed .mk-dm-card { transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--sr, 0deg)); }
  html:not(.motion-paused) .mockup--discovery-mvp.is-armed.is-drawn .mk-dm-card { transform: none; transition: transform 1.1s var(--ease-out) var(--d, 0s); }
  html:not(.motion-paused) .mockup--discovery-mvp.is-armed .mk-dm-lane::before { clip-path: inset(0 0 100% 0); }
  html:not(.motion-paused) .mockup--discovery-mvp.is-armed.is-drawn .mk-dm-lane::before { clip-path: inset(0); transition: clip-path .9s var(--ease-out) var(--d, 0s); }
  html:not(.motion-paused) .mockup--discovery-mvp.is-armed .mk-dm-card.is-live::before { transform: scaleX(0); }
  html:not(.motion-paused) .mockup--discovery-mvp.is-armed.is-drawn .mk-dm-card.is-live::before { transform: none; transition: transform .5s var(--ease-out) 1.7s; }
  html:not(.motion-paused) .mockup--discovery-mvp.is-armed .mk-dm-phone[data-rise] { transform: translateX(45%) scale(.3); }
  html:not(.motion-paused) .mockup--discovery-mvp.is-armed.is-drawn .mk-dm-phone[data-rise] { transform: none; }

  /* legacy-modernization: the old side stays lit until its module lands, and traffic follows */
  html:not(.motion-paused) .mockup--legacy-modernization.is-armed .mk-cut-old { opacity: 1; }
  html:not(.motion-paused) .mockup--legacy-modernization.is-armed.is-drawn .mk-cut-old { opacity: .55; transition: opacity .5s var(--ease-out) calc(var(--d, 0s) + .5s); }
  html:not(.motion-paused) .mockup--legacy-modernization.is-armed .mk-cut-meter i { transform: scaleX(0); transform-origin: left; }
  html:not(.motion-paused) .mockup--legacy-modernization.is-armed.is-drawn .mk-cut-meter i { transform: none; transition: transform 2.6s linear .3s; }

  /* support: the notch shows while the line is open, then fades to a trace as the bridge closes it */
  html:not(.motion-paused) .mockup--support.is-armed .mk-up-notch { opacity: 0; }
  html:not(.motion-paused) .mockup--support.is-armed.is-drawn .mk-up-notch { animation: mk-up-notch 2.4s var(--ease-out) .5s both; }
  html:not(.motion-paused) .mockup--support.is-armed .mk-up-resolved[data-rise] { transform: translate(-50%, 0); }
  html:not(.motion-paused) .mockup--support.is-armed.is-drawn .mk-up-resolved[data-rise] { transform: translate(-50%, -35%); }
}
@keyframes mk-up-notch { 0% { opacity: 0; } 25%, 70% { opacity: 1; stroke-dasharray: none; } 100% { opacity: .7; } }

/* ---------- New mockups: narrow containers ---------- */
@container (max-width: 560px) {
  .mk-ev-names, .mk-ev-key, .mk-gate-checks, .mk-dm-head, .mk-dm-card, .mk-dm-days span, .mk-dm-times li, .mk-dm-cta,
  .mk-cut-cols .mk-label, .mk-cut-foot .mk-label, .mk-cut-old, .mk-cut-new, .mk-up-tag, .mk-up-resolved { font-size: 10px; }
  .mk-dm-card small, .mk-dm-head small, .mockup .mk-dm-sum { display: none; }
  .mk-dm-cta { margin-top: auto; }
  .mk-dm-card { padding: .45em .5em; }
  .mk-up-head { padding: .8em 1em 0; }
  .mk-up-chart { margin: 1.4em 1em .8em; }
  /* the height follows the content, so the phone never clips: three times, and the button may wrap */
  .mockup--discovery-mvp { aspect-ratio: auto; }
  .mk-dm-times li:nth-child(4) { display: none; }
  .mk-dm-cta { white-space: normal; }
  .mk-dm-lane { gap: 1em; }
}
@container (max-width: 420px) {
  .mk-evals-body { grid-template-columns: minmax(0, 1fr); }
  .mk-gate-side { border-left: 0; border-top: 1px solid var(--wf-line); }
  .mk-gate { margin-top: .2em; }
  /* no room for the phone beside three phases: the phases take the full width, labels wrap whole */
  .mk-dm-phone { display: none; }
  .mk-dm-board { grid-template-columns: minmax(0, 1fr); }
  .mk-dm-plan { gap: 1em .5em; }
  .mk-dm-lane { gap: .6em; padding: .45em; }
  .mk-dm-card { white-space: normal; overflow-wrap: break-word; }
  .mk-dm-card b, .mk-dm-card small { overflow: visible; }
  .mk-dm-card.is-live::before { display: none; }
}

/* ---------- Mockups: very narrow containers ----------
   A 320-375px phone leaves a mockup 240-340px wide. Each keeps its main picture and drops a detail. */
@container (max-width: 340px) {
  /* saas: two figures, not three, so the numbers never run together */
  .mk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-kpi:nth-child(3) { display: none; }
  .mk-kpi { padding: .6em .65em; }
  /* web & mobile: the browser takes the width and the phone sits smaller over its lower corner */
  .mockup--web-mobile { --phone-w: 8.8em; }
  .mk-browser { width: 100%; }
  .mk-wm-cards { display: none; }
  .mockup--web-mobile .mk-phone-title { font-size: .9em; }
  .mockup--web-mobile .mk-phone .mk-btn { padding-inline: .4em; font-size: 10px; white-space: nowrap; }
  /* discovery: tighter phases so a whole word fits on each card */
  .mockup--discovery-mvp { padding: .9em; }
  .mk-dm-plan { column-gap: .35em; }
  .mk-dm-lane { padding: .3em; }
  .mk-dm-card { padding: .4em; overflow-wrap: normal; }
  /* custom: the systems keep their names, not their icons, so they clear the hub */
  .mk-sys-ic { display: none; }
  .mk-sys { padding: .45em .65em; }
  .mk-hub { padding: .7em .9em; }
  /* ui-ux: narrower screens and a shorter arrow, so both screens fit */
  .mk-frame { width: 6.4em; }
  .mk-proto { width: 1.4em; margin: 0 .2em; }
  /* devops and support: the messages, not their timestamps, and a long one wraps whole */
  .mk-log .mk-t { display: none; }
  .mk-log li { white-space: normal; }
  /* support: three version labels, so they don't crowd */
  .mk-up-tag:nth-of-type(2) { display: none; }
  /* legacy: a shorter arrow between old and new */
  .mk-cut-cols, .mk-cut-rows li { grid-template-columns: minmax(0, 1fr) 2.6em minmax(0, 1fr); }
  .mk-cut-old, .mk-cut-new { padding: .4em .5em; }
  /* ai-pilot: the bar labels take the room the padding had */
  .mk-ev-names { gap: 2%; padding: 0 2%; }
  .mk-ev-names li { overflow: visible; letter-spacing: -.02em; }
}
