/* Maturity Model staircase (Version 8, Nov 10 2026) */
.ms-wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 2.4rem; align-items: center; margin-top: 2.4rem; }
.ms-stage { position: relative; }
.ms-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 520px; padding-top: 40px; border-bottom: 2px solid #cbd5d1; }
.ms-step { position: relative; height: var(--h); border-radius: 10px 10px 0 0; padding: 14px 12px; cursor: pointer; display: flex; flex-direction: column;
  transform-origin: bottom; transition: transform .45s cubic-bezier(.3,1.4,.5,1), box-shadow .45s, opacity .45s, filter .45s; outline: none; }
.ms-step:focus-visible { box-shadow: 0 0 0 3px #f5b942; }
.ms-k { font: 800 .66rem Inter, sans-serif; letter-spacing: .14em; opacity: .8; }
.ms-step h3 { font-size: 1.18rem; letter-spacing: -.02em; margin: .25rem 0 .35rem; line-height: 1.1; color: inherit; }
.ms-step p { font-size: .84rem; line-height: 1.4; margin: 0; color: inherit; opacity: .92; }
.ms-step h3 { color: inherit; }
.ms-s1 { --h: 42%; color: #1f2937; border-radius: 0; padding-top: 26px; background: transparent; }
.ms-s1::before, .ms-s1::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(0 12px, 12% 0, 24% 12px, 36% 0, 48% 12px, 60% 0, 72% 12px, 84% 0, 100% 12px, 100% 100%, 0 100%); }
.ms-s1::before { inset: 0; background: #b6bcc6; }
.ms-s1::after { inset: 2px 2px 0 2px; background: #e6e8ec; }
.ms-s1 > *:not(.ms-pin) { position: relative; }
.ms-steps .ms-step { isolation: isolate; }
.ms-s2 { --h: 54%; background: #e8f5ee; color: #14532d; border: 1.5px solid #a7e8c8; border-bottom: 0; }
.ms-s3 { --h: 66%; background: #a7e8c8; color: #0d3d22; }
.ms-s4 { --h: 78%; background: #238a5e; color: #fff; }
.ms-s5 { --h: 90%; background: #0d3d22; color: #fff; }
.ms-s1 .ms-k, .ms-s2 .ms-k, .ms-s3 .ms-k { color: #238a5e; }
.ms-s4 .ms-k, .ms-s5 .ms-k { color: #a7e8c8; }
.ms-loop { margin: auto auto 10px; width: 74px; height: 74px; }
.ms-loop .ms-spin { transform-origin: 37px 37px; animation: msspin 9s linear infinite; }
@keyframes msspin { to { transform: rotate(360deg); } }
.ms-loop text { font: 800 9.5px Inter, sans-serif; fill: #fff; }
/* active / inactive */
.ms-wrap.live .ms-step { opacity: .72; }
.ms-wrap.live .ms-step.on { opacity: 1; filter: none; transform: translateY(-10px); box-shadow: 0 18px 34px rgba(13,61,34,.28); }
.ms-wrap.live .ms-step.done { opacity: .9; }
.ms-wrap.live .ms-step.on.ms-s1 { box-shadow: none; filter: drop-shadow(0 16px 20px rgba(13,61,34,.25)); }
.ms-pin { position: absolute; left: 50%; top: -26px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #4eca8a; box-shadow: 0 0 0 0 rgba(78,202,138,.6); opacity: 0; transition: opacity .3s; }
.ms-step.on .ms-pin { opacity: 1; animation: mspulse 1.6s ease-out infinite; }
@keyframes mspulse { 0% { box-shadow: 0 0 0 0 rgba(78,202,138,.6); } 100% { box-shadow: 0 0 0 14px rgba(78,202,138,0); } }
/* grow in */
.ms-wrap.pre .ms-step { transform: scaleY(0); }
.ms-wrap.grow .ms-step { animation: msgrow .8s cubic-bezier(.3,1.3,.5,1) both; animation-delay: calc(var(--i) * .12s); }
@keyframes msgrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* service bars */
.ms-svc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.ms-bar { position: relative; background: #1a5c38; color: #fff; border-radius: 12px; padding: .65rem .6rem; text-align: center; transition: background .4s, transform .4s, box-shadow .4s; }
.ms-bar::before { content: ""; position: absolute; left: 6px; right: 6px; top: -9px; height: 7px; border: 1.5px solid #1a5c38; border-bottom: 0; }
.ms-bar b { display: block; font-size: .86rem; }
.ms-bar span { font-size: .7rem; color: #a7e8c8; }
.ms-b1 { grid-column: 1 / 3; } .ms-b2 { grid-column: 3 / 5; } .ms-b3 { grid-column: 5 / 6; background: #0d3d22; }
.ms-bar.on { background: #238a5e; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(35,138,94,.35); }
/* detail panel */
.ms-panel { display: grid; background: #fff; border: 1px solid #dfe7e2; border-radius: 18px; padding: 1.6rem 1.7rem; box-shadow: 0 20px 44px rgba(13,61,34,.08); }
.ms-card { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; pointer-events: none; }
.ms-card.on { opacity: 1; transform: none; pointer-events: auto; }
.ms-card .mc-k { font: 800 .72rem Inter, sans-serif; letter-spacing: .16em; color: #238a5e; }
.ms-card h3 { font-size: 2rem; letter-spacing: -.03em; color: #111827; margin: .2rem 0 .4rem; }
.ms-card .ms-tagl { font-size: 1.08rem; color: #1f2937; font-weight: 600; margin-bottom: .8rem; }
.ms-card p { font-size: .95rem; color: #374151; line-height: 1.55; }
.ms-card h4 { font: 800 .72rem Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; margin: 1rem 0 .4rem; padding-top: .8rem; border-top: 1px solid #e5ebe7; }
.ms-card ul { margin: 0; padding-left: 1.2rem; list-style: disc; }
.ms-card li { display: list-item; list-style: disc; font-size: .92rem; color: #374151; margin-bottom: .3rem; line-height: 1.45; }
.ms-card .mc-trap { margin-top: 1rem; background: #fff4e0; border-left: 3px solid #f5b942; border-radius: 0 10px 10px 0; padding: .7rem .95rem; color: #4b5563; font-size: .92rem; }
.ms-card .mc-trap b { color: #9a6510; }
.ms-next { margin-top: .9rem; font-size: .92rem; color: #14532d; background: #e8f5ee; border-radius: 10px; padding: .7rem .95rem; }
.ms-next b { color: #0d3d22; }
.ms-hint { font-size: .78rem; color: #6b7280; margin-top: .9rem; text-align: center; }
@media (max-width: 1024px) { .ms-wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ms-steps { height: 320px; gap: 6px; } .ms-step { padding: 10px 7px; } .ms-step p, .ms-loop { display: none; }
  .ms-step h3 { font-size: .86rem; } .ms-svc { gap: 6px; } .ms-bar b { font-size: .72rem; } .ms-bar span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ms-wrap *, .ms-wrap { animation: none !important; transition: none !important; } }
.ms-wrap > * { min-width: 0; }
.ms-steps > *, .ms-svc > * { min-width: 0; }
@media (max-width: 640px) { .ms-bar { padding: .5rem .3rem; } .ms-bar::before { left: 3px; right: 3px; } .ms-panel { padding: 1.2rem 1.1rem; } .ms-k { font-size: .56rem; letter-spacing: .08em; } }
@media (max-width: 640px) { .ms-step h3 { font-size: .6rem; letter-spacing: -.02em; } .ms-step { padding: 9px 3px; } .ms-bar b { font-size: .6rem; letter-spacing: -.01em; } }
