/* /migration/ (lab/pages/p_migration.py), motion pass 2026-10-25. Every graphic is the mg kit (mg.css); only the encryption
   strip lives here: five phrases as a Magic UI Marquee, the sentence kept for screen readers. The 2026-10-23 dry-run window
   styles are in lab/backup-2026-10-25-motion/products/migration.css. */
.erp .mx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ================================================================ variety pass 2026-10-25 (Agent B), sources in lab/pages/p_migration.py */
.erp .mi-sec { padding-block: clamp(96px, 14vh, 160px); }
.erp .mi-h { margin: 0; max-width: 20ch; text-wrap: balance; }
.erp .mi-lede { margin: 20px 0 0; max-width: 46ch; }
.erp .mi-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: clamp(40px, 7vw, 120px); }

/* ---------------------------------------------------------------- pipeline: Thoughtbot isometric rows */
.erp .mi-rows { display: grid; gap: clamp(8px, 2vh, 24px); margin: clamp(32px, 5vh, 56px) 0 0; padding: 0; list-style: none; }
.erp .mi-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: clamp(20px, 3vw, 48px); min-height: 300px; opacity: .3; transition: opacity .6s var(--ease); }
.erp .mi-row.on { opacity: 1; }
.erp .mi-row__n { color: #c9b6ff; font: 500 15px/1 var(--sc-font-mono); }
.erp .mi-row__t b { display: block; color: #f4f3ef; font: 500 clamp(36px, 4.6vw, 68px)/1.05 var(--sc-font-display); letter-spacing: -.035em; }
.erp .mi-row__t p { margin: 16px 0 0; max-width: 42ch; color: #bdb6d0; font: 400 17px/1.55 var(--sc-font-text); }
.erp .mi-svg { display: block; width: 100%; height: auto; overflow: visible; }
.erp .mi-svg polygon { stroke: rgb(255 255 255 / .16); stroke-width: .8; stroke-linejoin: round; transition: fill .6s var(--ease); }
.erp .mi-b.pl .t { fill: #221a3d; } .erp .mi-b.pl .l { fill: #181229; } .erp .mi-b.pl .r { fill: #120d21; }
.erp .mi-b.c-g .t { fill: #5a5374; } .erp .mi-b.c-g .l { fill: #433d59; } .erp .mi-b.c-g .r { fill: #342f47; }
.erp .mi-b.c-v .t { fill: #9a6bff; } .erp .mi-b.c-v .l { fill: #6f48d1; } .erp .mi-b.c-v .r { fill: #5736a8; }
.erp .mi-b.c-gr .t { fill: #4ade80; } .erp .mi-b.c-gr .l { fill: #2fa65a; } .erp .mi-b.c-gr .r { fill: #228045; }
.erp .mi-b.c-a .t { fill: #e88122; } .erp .mi-b.c-a .l { fill: #b8630f; } .erp .mi-b.c-a .r { fill: #8f4b0b; }
.erp .mi-b.c-p .t { fill: #e3ddf2; } .erp .mi-b.c-p .l { fill: #b9b2cc; } .erp .mi-b.c-p .r { fill: #9992b0; }
.erp .mi-b.c-ghost polygon { fill: rgb(154 107 255 / .1); stroke: rgb(201 182 255 / .6); stroke-dasharray: 4 3; }
.erp .mi-b.c-t .t { fill: #5a5374; } .erp .mi-b.c-t .l { fill: #433d59; } .erp .mi-b.c-t .r { fill: #342f47; }
.erp .mi-row.on .mi-b.c-t .t { fill: #4ade80; } .erp .mi-row.on .mi-b.c-t .l { fill: #2fa65a; } .erp .mi-row.on .mi-b.c-t .r { fill: #228045; }
.erp .mi-path { fill: none; stroke: #c9b6ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 7; }
.erp .mi-path--d { stroke: #8f88a6; } .erp .mi-path--s { stroke: #2a1f08; stroke-width: 2.5; stroke-dasharray: none; }
.erp .mi-row.on .mi-path:not(.mi-path--s) { animation: mi-flow 1.1s linear infinite; }
@keyframes mi-flow { to { stroke-dashoffset: -14; } }
.erp .mi-js .mi-b:not(.pl), .erp .mi-js .mi-path { opacity: 0; transform: translateY(-18px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k, 0) * 130ms); }
.erp .mi-js .mi-row.on .mi-b:not(.pl), .erp .mi-js .mi-row.on .mi-path { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- encryption: a record masked character by character */
.erp .mi-enc { display: grid; gap: 6px; margin: 28px 0 0; padding: 0; list-style: none; color: #8f88a6; font: 400 15px/1.45 var(--sc-font-text); }
.erp .mi-rec { padding: 24px 26px 24px; border-radius: 22px; background: linear-gradient(180deg, rgb(36 29 62 / .9), rgb(14 11 26 / .96)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 30px 60px -30px rgb(0 0 0 / .95); }
.erp .mi-rec__h { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: #f4f3ef; font: 600 18px/1.2 var(--sc-font-display); }
.erp .mi-rec__h small { margin-left: auto; color: #6f6888; font: 500 11.5px/1 var(--sc-font-mono); }
.erp .mi-lock { width: 22px; height: 22px; fill: none; stroke: #8f88a6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.erp .mi-lock path { transform-origin: 8px 10px; transform: translateY(-3px); transition: transform .5s cubic-bezier(.2, 1.5, .4, 1); }
.erp .mi-rec.is-shut .mi-lock { stroke: #4ade80; } .erp .mi-rec.is-shut .mi-lock path { transform: none; }
.erp .mi-rec ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.erp .mi-rec li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; background: rgb(255 255 255 / .045); }
.erp .mi-rec li span { color: #8f88a6; font: 500 12px/1.2 var(--sc-font-mono); overflow: hidden; text-overflow: ellipsis; }
.erp .mi-rec li code { color: #f4f3ef; font: 500 14.5px/1.2 var(--sc-font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erp .mi-rec li em { min-width: 82px; color: transparent; font: 500 11.5px/1 var(--sc-font-mono); font-style: normal; text-align: right; transition: color .4s; }
.erp .mi-rec li.is-done em { color: #4ade80; } .erp .mi-rec li[data-f="0"].is-done em { color: #8f88a6; }
.erp .mi-rec__f { margin: 18px 0 0; color: #8f88a6; font: 400 13.5px/1.4 var(--sc-font-text); opacity: 0; transition: opacity .5s; } .erp .mi-rec.is-shut .mi-rec__f { opacity: 1; }

/* ---------------------------------------------------------------- why: Linear editorial */
.erp .mi-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 140px); align-items: start; }
.erp .mi-ed .mi-h { position: sticky; top: 22vh; }
.erp .mi-ed__p { display: grid; gap: 26px; padding-top: 10px; }
.erp .mi-ed__p p { margin: 0; max-width: 34ch; color: #cfc8e2; font: 400 clamp(21px, 2vw, 28px)/1.45 var(--sc-font-text); letter-spacing: -.01em; }
.erp .mi-ed__p .mi-ed__s { color: #8f88a6; font-size: 16px; line-height: 1.55; }
.erp .mi-ed mark { color: #f4f3ef; background: linear-gradient(#9a6bff, #9a6bff) 0 100% / 0 .14em no-repeat; padding-bottom: .04em; transition: background-size .9s var(--ease), color .6s; }
.erp .mi-ed mark.on { background-size: 100% .14em; color: #fff; }

@media (max-width: 960px) {
  .erp .mi-split, .erp .mi-ed { grid-template-columns: 1fr; }
  .erp .mi-row { grid-template-columns: 1fr; gap: 6px; min-height: 0; padding-block: 18px; }
  .erp .mi-row__o { max-width: 300px; margin-top: -6px; }
  .erp .mi-ed .mi-h { position: static; }
  .erp .mi-rec li { grid-template-columns: minmax(0, 1fr) auto; } .erp .mi-rec li span { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .erp .mi-row, .erp .mi-rec__f, .erp .mi-ed mark { transition: none; } .erp .mi-js .mi-b, .erp .mi-js .mi-path { transition: none; } .erp .mi-row.on .mi-path { animation: none; }
}
