/* Mobile Design System — scroll-directed case story */

html:has(body.editorial-case[data-page="mobile-design-system"]) {
  overflow-x: clip;
  background: #eef2ea;
}

body.editorial-case[data-page="mobile-design-system"] {
  --ms-ink: #10211b;
  --ms-paper: #eef2ea;
  --ms-paper-bright: #f8faf4;
  --ms-green: #20b878;
  --ms-green-dark: #14543f;
  --ms-violet: #8b55e8;
  --ms-lilac: #d8c7ff;
  --ms-coral: #ff765f;
  --ms-line: rgba(16, 33, 27, 0.15);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ms-ink);
  background:
    linear-gradient(rgba(16, 33, 27, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 27, 0.035) 1px, transparent 1px),
    var(--ms-paper);
  background-size: 72px 72px;
}

body.editorial-case[data-page="mobile-design-system"] .mobile-story {
  width: 100%;
  max-width: none;
  overflow: clip;
}

body.editorial-case[data-page="mobile-design-system"] .case-section,
body.editorial-case[data-page="mobile-design-system"] .case-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  color: inherit;
  background: transparent;
}

body.editorial-case[data-page="mobile-design-system"] .case-section::before,
body.editorial-case[data-page="mobile-design-system"] .case-section::after,
body.editorial-case[data-page="mobile-design-system"] .case-hero::before {
  display: none;
}

body.editorial-case[data-page="mobile-design-system"] .ms-chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ms-green-dark);
  font-size: 0.75rem;
  font-weight: 650;
  font-variation-settings: "wdth" 92;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

body.editorial-case[data-page="mobile-design-system"] .ms-chapter span {
  display: grid;
  min-width: 29px;
  height: 29px;
  padding: 0 7px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 0.65rem;
}

/* Hero — the product looks singular until its languages separate. */
body.editorial-case[data-page="mobile-design-system"] .ms-hero {
  position: relative;
  display: block;
  align-content: start;
  min-height: 210svh;
  padding: 0;
  overflow: clip;
  border-bottom: 1px solid var(--ms-line);
}

body.editorial-case[data-page="mobile-design-system"] .ms-hero-stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding: clamp(108px, 12vh, 150px) clamp(20px, 4.8vw, 76px) 32px;
  overflow: hidden;
}

body.editorial-case[data-page="mobile-design-system"] .ms-hero-stage::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 69% 48%, rgba(139, 85, 232, 0.12), transparent 27%),
    radial-gradient(circle at 35% 30%, rgba(32, 184, 120, 0.09), transparent 24%);
  content: "";
  opacity: calc(1 - var(--ms-progress, 0) * 0.75);
}

body.editorial-case[data-page="mobile-design-system"] .ms-meta {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--ms-line);
  border-bottom: 1px solid var(--ms-line);
  color: var(--ms-green-dark);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.editorial-case[data-page="mobile-design-system"] .ms-hero-copy {
  position: absolute;
  z-index: 4;
  top: 24%;
  left: clamp(20px, 4.8vw, 76px);
  width: min(64vw, 880px);
  transform: translate3d(0, calc(var(--ms-progress, 0) * -7vh), 0);
}

body.editorial-case[data-page="mobile-design-system"] .ms-hero-copy .ms-chapter {
  margin-bottom: 25px;
}

body.editorial-case[data-page="mobile-design-system"] .case-title {
  display: block;
  margin: 0;
  max-width: none;
  font-size: clamp(4.6rem, 9.8vw, 10.5rem);
  font-weight: 575;
  font-variation-settings: "wdth" 91;
  letter-spacing: -0.075em;
  line-height: 0.81;
}

body.editorial-case[data-page="mobile-design-system"] .case-title :is(span, b) {
  display: block;
  color: var(--ms-ink);
  font: inherit;
  white-space: nowrap;
}

body.editorial-case[data-page="mobile-design-system"] .case-title :is(span, b):last-child {
  position: relative;
  z-index: 2;
  color: var(--ms-green);
  font: inherit;
  transform: translate3d(calc(var(--ms-progress, 0) * 8vw), 0, 0);
}

body.editorial-case[data-page="mobile-design-system"] .case-thesis {
  width: min(32rem, 52vw);
  margin: 32px 0 0;
  color: rgba(16, 33, 27, 0.7);
  font-family: inherit;
  font-style: normal;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 440;
  line-height: 1.35;
}

body.editorial-case[data-page="mobile-design-system"] .ms-hero-orbit {
  position: absolute;
  z-index: 2;
  top: 19%;
  right: -5vw;
  width: min(48vw, 710px);
  aspect-ratio: 1;
  transform: translate3d(calc(var(--ms-progress, 0) * -5vw), calc(var(--ms-progress, 0) * 4vh), 0)
    rotate(calc(var(--ms-progress, 0) * 9deg));
}

body.editorial-case[data-page="mobile-design-system"] .ms-orbit-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(20, 84, 63, 0.25);
  border-radius: 50%;
}

body.editorial-case[data-page="mobile-design-system"] .ms-orbit-ring-a {
  transform: scale(calc(0.88 + var(--ms-progress, 0) * 0.32));
}

body.editorial-case[data-page="mobile-design-system"] .ms-orbit-ring-b {
  inset: 22%;
  border-style: dashed;
  transform: rotate(calc(var(--ms-progress, 0) * -70deg));
}

body.editorial-case[data-page="mobile-design-system"] .ms-orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 134px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  color: white;
  background: var(--ms-green-dark);
  box-shadow: 0 30px 80px rgba(20, 84, 63, 0.22);
  transform: translate(-50%, -50%);
  text-align: center;
}

body.editorial-case[data-page="mobile-design-system"] .ms-orbit-core span {
  color: #a7f4d0;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

body.editorial-case[data-page="mobile-design-system"] .ms-orbit-core b {
  font-size: 1rem;
  font-weight: 500;
}

body.editorial-case[data-page="mobile-design-system"] .ms-app-card {
  position: absolute;
  width: clamp(110px, 10vw, 155px);
  aspect-ratio: 0.56;
  padding: 17px 12px;
  overflow: hidden;
  border: 1px solid rgba(16, 33, 27, 0.1);
  border-radius: 22px;
  background: rgba(248, 250, 244, 0.92);
  box-shadow: 0 20px 55px rgba(16, 33, 27, 0.12);
  backdrop-filter: blur(16px);
}

body.editorial-case[data-page="mobile-design-system"] .ms-app-card span {
  display: block;
  margin-bottom: 19px;
  font-size: 0.62rem;
  font-weight: 650;
}

body.editorial-case[data-page="mobile-design-system"] .ms-app-card i {
  display: block;
  height: 26px;
  margin: 8px 0;
  border-radius: 8px;
  background: rgba(16, 33, 27, 0.09);
}

body.editorial-case[data-page="mobile-design-system"] .ms-app-card i:nth-of-type(2) { width: 78%; background: rgba(139, 85, 232, 0.18); }
body.editorial-case[data-page="mobile-design-system"] .ms-app-card i:nth-of-type(3) { width: 88%; background: rgba(32, 184, 120, 0.18); }
body.editorial-case[data-page="mobile-design-system"] .ms-app-card-a { top: 2%; left: 39%; transform: rotate(calc(-15deg - var(--ms-progress, 0) * 12deg)) translateY(calc(var(--ms-progress, 0) * -5vh)); }
body.editorial-case[data-page="mobile-design-system"] .ms-app-card-b { right: 2%; bottom: 20%; transform: rotate(calc(17deg + var(--ms-progress, 0) * 15deg)) translateX(calc(var(--ms-progress, 0) * 3vw)); }
body.editorial-case[data-page="mobile-design-system"] .ms-app-card-c { bottom: 0; left: 12%; transform: rotate(calc(-4deg - var(--ms-progress, 0) * 8deg)) translateX(calc(var(--ms-progress, 0) * -3vw)); }

body.editorial-case[data-page="mobile-design-system"] .ms-hero-summary {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 4.8vw, 76px);
  bottom: clamp(34px, 7vh, 72px);
  width: min(28rem, 32vw);
  margin: 0;
  opacity: clamp(0, calc((var(--ms-progress, 0) - 0.35) * 2.5), 1);
  transform: translateY(calc((1 - var(--ms-progress, 0)) * 45px));
}

body.editorial-case[data-page="mobile-design-system"] .ms-hero-summary p {
  margin: 0 0 22px;
  font-size: clamp(0.9rem, 1.15vw, 1.06rem);
  line-height: 1.5;
}

body.editorial-case[data-page="mobile-design-system"] .ms-hero-summary .primary-link {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid var(--ms-green-dark);
  border-radius: 99px;
  color: var(--ms-green-dark);
  background: transparent;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.editorial-case[data-page="mobile-design-system"] .ms-hero-source {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.editorial-case[data-page="mobile-design-system"] .ms-scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 35px;
  left: clamp(20px, 4.8vw, 76px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(16, 33, 27, 0.55);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: calc(1 - var(--ms-progress, 0) * 2);
}

body.editorial-case[data-page="mobile-design-system"] .ms-scroll-cue span {
  display: block;
  width: 34px;
  height: 1px;
  overflow: hidden;
  background: var(--ms-line);
}

body.editorial-case[data-page="mobile-design-system"] .ms-scroll-cue span::after {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--ms-green);
  animation: ms-cue 1.8s ease-in-out infinite;
  content: "";
}

@keyframes ms-cue { 50% { transform: translateX(100%); } }

/* Shared cinematic scene frame */
body.editorial-case[data-page="mobile-design-system"] .ms-scene {
  position: relative;
  padding: 0;
  overflow: clip;
}

body.editorial-case[data-page="mobile-design-system"] .ms-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding: clamp(110px, 13vh, 148px) clamp(20px, 4.8vw, 76px) 38px;
  overflow: hidden;
}

body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading {
  position: relative;
  z-index: 5;
  width: min(41vw, 620px);
}

body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading h2,
body.editorial-case[data-page="mobile-design-system"] .ms-inventory-intro h2,
body.editorial-case[data-page="mobile-design-system"] .ms-role-heading h2,
body.editorial-case[data-page="mobile-design-system"] .ms-future h2 {
  margin: 22px 0 20px;
  font-size: clamp(3.2rem, 6.2vw, 7rem);
  font-weight: 540;
  font-variation-settings: "wdth" 90;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading > p:last-child,
body.editorial-case[data-page="mobile-design-system"] .ms-inventory-intro > p:last-child {
  max-width: 37rem;
  color: rgba(16, 33, 27, 0.66);
  font-size: clamp(0.94rem, 1.25vw, 1.12rem);
  line-height: 1.55;
}

/* Fracture */
body.editorial-case[data-page="mobile-design-system"] .ms-fracture {
  min-height: 230svh;
  background: #e6e9e1;
  border-bottom: 1px solid var(--ms-line);
}

body.editorial-case[data-page="mobile-design-system"] .ms-fracture::selection { background: var(--ms-coral); }

body.editorial-case[data-page="mobile-design-system"] .ms-fragment-field {
  position: absolute;
  z-index: 2;
  top: 13%;
  right: 3vw;
  width: min(52vw, 760px);
  height: 70%;
}

body.editorial-case[data-page="mobile-design-system"] .ms-phone {
  position: absolute;
  top: 18%;
  left: 42%;
  width: clamp(135px, 13vw, 205px);
  aspect-ratio: 0.52;
  padding: 18px 12px;
  border: 1px solid rgba(16, 33, 27, 0.15);
  border-radius: 28px;
  background: var(--ms-paper-bright);
  box-shadow: 0 26px 70px rgba(16, 33, 27, 0.13);
}

body.editorial-case[data-page="mobile-design-system"] .ms-phone-top {
  display: block;
  width: 28%;
  height: 5px;
  margin: 0 auto 28px;
  border-radius: 99px;
  background: var(--ms-ink);
  opacity: 0.15;
}

body.editorial-case[data-page="mobile-design-system"] .ms-phone strong {
  display: block;
  margin-bottom: 20px;
  font-size: 0.68rem;
}

body.editorial-case[data-page="mobile-design-system"] .ms-phone i {
  display: block;
  width: 100%;
  height: 34px;
  margin: 8px 0;
  border-radius: 7px;
  background: rgba(16, 33, 27, 0.09);
}

body.editorial-case[data-page="mobile-design-system"] .ms-phone-one {
  transform: translate3d(calc((var(--ms-progress, 0) - 0.1) * -24vw), calc(var(--ms-progress, 0) * 8vh), 0) rotate(calc(-4deg - var(--ms-progress, 0) * 9deg));
}

body.editorial-case[data-page="mobile-design-system"] .ms-phone-one i:nth-of-type(2) { background: #e9dbff; border-radius: 18px; }
body.editorial-case[data-page="mobile-design-system"] .ms-phone-two { z-index: 2; transform: translate3d(0, calc(var(--ms-progress, 0) * -7vh), 0) rotate(calc(var(--ms-progress, 0) * 3deg)); }
body.editorial-case[data-page="mobile-design-system"] .ms-phone-two i { border-radius: 2px; }
body.editorial-case[data-page="mobile-design-system"] .ms-phone-two i:nth-of-type(2) { width: 66%; background: rgba(255, 118, 95, 0.24); }
body.editorial-case[data-page="mobile-design-system"] .ms-phone-three { transform: translate3d(calc(var(--ms-progress, 0) * 21vw), calc(var(--ms-progress, 0) * 10vh), 0) rotate(calc(4deg + var(--ms-progress, 0) * 10deg)); }
body.editorial-case[data-page="mobile-design-system"] .ms-phone-three i { border-radius: 13px; }
body.editorial-case[data-page="mobile-design-system"] .ms-phone-three i:nth-of-type(3) { width: 47%; background: rgba(32, 184, 120, 0.26); }

body.editorial-case[data-page="mobile-design-system"] .ms-break-line {
  position: absolute;
  height: 1px;
  background: var(--ms-coral);
  transform: scaleX(clamp(0, calc((var(--ms-progress, 0) - 0.18) * 3), 1));
  transform-origin: left;
}

body.editorial-case[data-page="mobile-design-system"] .ms-break-line::after {
  position: absolute;
  top: -4px;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ms-coral);
  content: "";
}

body.editorial-case[data-page="mobile-design-system"] .ms-break-a { top: 19%; left: 11%; width: 25%; transform: rotate(-11deg) scaleX(clamp(0, calc((var(--ms-progress, 0) - 0.18) * 3), 1)); }
body.editorial-case[data-page="mobile-design-system"] .ms-break-b { top: 46%; right: 3%; width: 31%; transform: rotate(13deg) scaleX(clamp(0, calc((var(--ms-progress, 0) - 0.25) * 3), 1)); }
body.editorial-case[data-page="mobile-design-system"] .ms-break-c { bottom: 12%; left: 17%; width: 27%; transform: rotate(6deg) scaleX(clamp(0, calc((var(--ms-progress, 0) - 0.32) * 3), 1)); }

/* Use the actual product screens as the evidence. The deck opens just enough
   to reveal each journey without turning the visual into three isolated cards. */
body.editorial-case[data-page="mobile-design-system"] .ms-break-line {
  display: none;
}

body.editorial-case[data-page="mobile-design-system"] .ms-screen-card {
  position: absolute;
  top: 7%;
  left: 50%;
  width: clamp(180px, 13vw, 238px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 33, 27, 0.14);
  border-radius: clamp(24px, 2vw, 34px);
  background: #fff;
  box-shadow: 0 30px 80px rgba(16, 33, 27, 0.18);
  will-change: transform;
}

body.editorial-case[data-page="mobile-design-system"] .ms-screen-card img {
  display: block;
  width: 100%;
  height: auto;
}

body.editorial-case[data-page="mobile-design-system"] .ms-screen-appointments {
  z-index: 1;
  transform: translate3d(calc(-50% - 70px - var(--ms-progress, 0) * 95px), calc(22px + var(--ms-progress, 0) * 20px), 0) rotate(-4deg);
}

body.editorial-case[data-page="mobile-design-system"] .ms-screen-care-plan {
  z-index: 3;
  transform: translate3d(-50%, 0, 0) scale(1.015);
}

body.editorial-case[data-page="mobile-design-system"] .ms-screen-reports {
  z-index: 2;
  transform: translate3d(calc(-50% + 70px + var(--ms-progress, 0) * 95px), calc(24px + var(--ms-progress, 0) * 14px), 0) rotate(4deg);
}

body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis {
  position: absolute;
  z-index: 6;
  right: clamp(20px, 4.8vw, 76px);
  bottom: 4vh;
  left: clamp(20px, 4.8vw, 76px);
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) 1.1fr;
  align-items: end;
  gap: 7vw;
  opacity: clamp(0, calc((var(--ms-progress, 0) - 0.53) * 3), 1);
  transform: translateY(calc((1 - var(--ms-progress, 0)) * 25px));
}

body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-number {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 20px;
}

body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-number strong {
  color: var(--ms-coral);
  font-size: clamp(5rem, 11vw, 10rem);
  font-weight: 560;
  letter-spacing: -0.08em;
  line-height: 0.7;
}

body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-number span {
  max-width: 13rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-notes {
  border-top: 1px solid var(--ms-line);
}

body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-notes p {
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--ms-line);
  font-size: 0.78rem;
}

body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-notes span { color: var(--ms-coral); }

/* Inventory */
body.editorial-case[data-page="mobile-design-system"] .ms-inventory {
  min-height: 205svh;
  padding: clamp(110px, 14vh, 160px) clamp(20px, 4.8vw, 76px) 15vh;
  background: var(--ms-paper-bright);
}

body.editorial-case[data-page="mobile-design-system"] .ms-inventory-intro {
  width: min(70rem, 92vw);
  margin: 0 auto 17vh;
}

body.editorial-case[data-page="mobile-design-system"] .ms-inventory-intro > p:last-child { width: min(38rem, 58vw); margin-left: 50%; }

body.editorial-case[data-page="mobile-design-system"] .ms-foundation-board {
  position: sticky;
  top: 11vh;
  width: min(1180px, 92vw);
  height: min(78vh, 720px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: 32px;
  background: #e9eee7;
}

body.editorial-case[data-page="mobile-design-system"] .ms-board-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(16, 33, 27, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 27, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, black 20%, transparent 80%);
}

body.editorial-case[data-page="mobile-design-system"] .ms-foundation {
  position: absolute;
  z-index: 3;
  width: min(30%, 300px);
  min-height: 155px;
  padding: 18px;
  border: 1px solid rgba(16, 33, 27, 0.12);
  border-radius: 18px;
  background: rgba(248, 250, 244, 0.87);
  box-shadow: 0 18px 45px rgba(16, 33, 27, 0.08);
  backdrop-filter: blur(14px);
  opacity: clamp(0, calc((var(--ms-progress, 0) - var(--ms-delay)) * 4), 1);
}

body.editorial-case[data-page="mobile-design-system"] .ms-foundation-color { --ms-delay: 0.05; top: 6%; left: 5%; transform: translate3d(calc((1 - var(--ms-progress, 0)) * -90px), calc((1 - var(--ms-progress, 0)) * -40px), 0); }
body.editorial-case[data-page="mobile-design-system"] .ms-foundation-space { --ms-delay: 0.17; top: 6%; right: 5%; transform: translate3d(calc((1 - var(--ms-progress, 0)) * 90px), calc((1 - var(--ms-progress, 0)) * -40px), 0); }
body.editorial-case[data-page="mobile-design-system"] .ms-foundation-type { --ms-delay: 0.29; bottom: 6%; left: 5%; transform: translate3d(calc((1 - var(--ms-progress, 0)) * -90px), calc((1 - var(--ms-progress, 0)) * 40px), 0); }
body.editorial-case[data-page="mobile-design-system"] .ms-foundation-access { --ms-delay: 0.41; right: 5%; bottom: 6%; transform: translate3d(calc((1 - var(--ms-progress, 0)) * 90px), calc((1 - var(--ms-progress, 0)) * 40px), 0); }

body.editorial-case[data-page="mobile-design-system"] .ms-node-label {
  display: block;
  margin-bottom: 16px;
  color: var(--ms-green-dark);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.editorial-case[data-page="mobile-design-system"] .ms-foundation > strong { display: block; margin-top: 13px; font-size: 2rem; font-weight: 550; line-height: 1; }
body.editorial-case[data-page="mobile-design-system"] .ms-foundation > small { color: rgba(16, 33, 27, 0.58); font-size: 0.7rem; }
body.editorial-case[data-page="mobile-design-system"] .ms-swatch-set { display: flex; gap: 5px; }
body.editorial-case[data-page="mobile-design-system"] .ms-swatch-set i { width: 33px; height: 33px; border-radius: 9px; background: #164e3b; }
body.editorial-case[data-page="mobile-design-system"] .ms-swatch-set i:nth-child(2) { background: var(--ms-green); }
body.editorial-case[data-page="mobile-design-system"] .ms-swatch-set i:nth-child(3) { background: #a7f4d0; }
body.editorial-case[data-page="mobile-design-system"] .ms-swatch-set i:nth-child(4) { background: var(--ms-violet); }
body.editorial-case[data-page="mobile-design-system"] .ms-swatch-set i:nth-child(5) { background: var(--ms-lilac); }
body.editorial-case[data-page="mobile-design-system"] .ms-space-set { display: flex; align-items: end; gap: 10px; height: 50px; }
body.editorial-case[data-page="mobile-design-system"] .ms-space-set i { width: 23px; height: 23px; border: 1px solid var(--ms-green-dark); border-radius: 2px; }
body.editorial-case[data-page="mobile-design-system"] .ms-space-set i:nth-child(2) { width: 34px; height: 34px; border-radius: 7px; }
body.editorial-case[data-page="mobile-design-system"] .ms-space-set i:nth-child(3) { width: 43px; height: 43px; border-radius: 14px; }
body.editorial-case[data-page="mobile-design-system"] .ms-space-set i:nth-child(4) { width: 50px; height: 50px; border-radius: 50%; background: var(--ms-green); }
body.editorial-case[data-page="mobile-design-system"] .ms-type-set { display: flex; align-items: baseline; gap: 13px; }
body.editorial-case[data-page="mobile-design-system"] .ms-type-set b { font-size: 2.2rem; font-weight: 520; }
body.editorial-case[data-page="mobile-design-system"] .ms-type-set b:nth-child(2) { font-size: 1.4rem; }
body.editorial-case[data-page="mobile-design-system"] .ms-type-set b:nth-child(3) { font-size: 0.9rem; }
body.editorial-case[data-page="mobile-design-system"] .ms-contrast-dial { position: relative; display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid var(--ms-ink); border-radius: 50%; }
body.editorial-case[data-page="mobile-design-system"] .ms-contrast-dial i { position: absolute; inset: 5px 50% 5px 5px; border-radius: 99px 0 0 99px; background: var(--ms-ink); }
body.editorial-case[data-page="mobile-design-system"] .ms-contrast-dial b { z-index: 2; color: var(--ms-green); font-size: 0.7rem; }

body.editorial-case[data-page="mobile-design-system"] .ms-connector-map {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.editorial-case[data-page="mobile-design-system"] .ms-connector-map path {
  fill: none;
  stroke: var(--ms-green);
  stroke-width: 1.4;
  stroke-dasharray: 440;
  stroke-dashoffset: calc(440 - 440 * clamp(0, calc((var(--ms-progress, 0) - 0.34) * 2), 1));
}

body.editorial-case[data-page="mobile-design-system"] .ms-foundation-core {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  color: white;
  background: var(--ms-green-dark);
  box-shadow: 0 25px 70px rgba(20, 84, 63, 0.2);
  opacity: clamp(0, calc((var(--ms-progress, 0) - 0.5) * 3), 1);
  transform: translate(-50%, -50%) scale(clamp(0.6, var(--ms-progress, 0), 1));
  text-align: center;
}

body.editorial-case[data-page="mobile-design-system"] .ms-foundation-core i { position: absolute; inset: -10px; border: 1px solid rgba(32, 184, 120, 0.5); border-radius: 50%; }
body.editorial-case[data-page="mobile-design-system"] .ms-foundation-core span { font-size: 0.85rem; line-height: 1.15; }

/* Assembly */
body.editorial-case[data-page="mobile-design-system"] .ms-assembly {
  min-height: 270svh;
  color: #f6fbf6;
  background: #10211b;
}

body.editorial-case[data-page="mobile-design-system"] #system.ms-assembly {
  padding: 0;
  color: #f6fbf6;
  background: #10211b;
}

body.editorial-case[data-page="mobile-design-system"] .ms-assembly .ms-chapter { color: #8aebbd; }
body.editorial-case[data-page="mobile-design-system"] .ms-assembly .ms-scene-heading > p:last-child { color: rgba(246, 251, 246, 0.64); }

body.editorial-case[data-page="mobile-design-system"] .ms-assembly-stage {
  position: absolute;
  top: 9%;
  right: 5vw;
  width: min(48vw, 670px);
  height: 78%;
  perspective: 1200px;
}

body.editorial-case[data-page="mobile-design-system"] .ms-assembly-screen {
  position: absolute;
  z-index: 7;
  top: 2%;
  left: 50%;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(24px, 2vw, 34px);
  background: #f8f6ff;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.48);
  opacity: clamp(0, calc((var(--ms-progress, 0) - 0.18) * 3.4), 1);
  transform: translate3d(-50%, calc((1 - var(--ms-progress, 0)) * 70px), 0) scale(clamp(0.82, var(--ms-progress, 0), 1));
  will-change: transform, opacity;
}

body.editorial-case[data-page="mobile-design-system"] .ms-assembly-screen img {
  display: block;
  width: auto;
  height: min(72vh, 720px);
}

body.editorial-case[data-page="mobile-design-system"] .ms-system-phone {
  position: absolute;
  z-index: 7;
  top: 5%;
  left: 50%;
  width: clamp(210px, 21vw, 315px);
  aspect-ratio: 0.52;
  padding: 24px 17px;
  overflow: hidden;
  border: 5px solid #293b34;
  border-radius: 42px;
  color: var(--ms-ink);
  background: var(--ms-paper-bright);
  box-shadow: 0 45px 110px rgba(0, 0, 0, 0.45);
  opacity: clamp(0, calc((var(--ms-progress, 0) - 0.48) * 3.5), 1);
  transform: translateX(-50%) rotateY(calc((1 - var(--ms-progress, 0)) * -18deg)) scale(clamp(0.74, var(--ms-progress, 0), 1));
}

body.editorial-case[data-page="mobile-design-system"] .ms-system-status { display: flex; justify-content: space-between; font-size: 0.55rem; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-status i { width: 24px; height: 6px; border-radius: 4px; background: var(--ms-ink); }
body.editorial-case[data-page="mobile-design-system"] .ms-system-greeting { display: grid; gap: 3px; margin: 34px 0 24px; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-greeting small { color: rgba(16, 33, 27, 0.48); font-size: 0.58rem; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-greeting strong { font-size: 1.25rem; font-weight: 550; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-progress { height: 6px; margin-bottom: 28px; overflow: hidden; border-radius: 99px; background: rgba(16, 33, 27, 0.09); }
body.editorial-case[data-page="mobile-design-system"] .ms-system-progress span { display: block; width: calc(var(--ms-progress, 0) * 84%); height: 100%; border-radius: inherit; background: var(--ms-green); }
body.editorial-case[data-page="mobile-design-system"] .ms-system-card { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 10px; margin: 9px 0; padding: 12px 10px; border: 1px solid rgba(16, 33, 27, 0.09); border-radius: 14px; background: white; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-card > i { width: 34px; height: 34px; border-radius: 11px; background: #e5d7ff; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-card:nth-of-type(2) > i { background: #b8f2d6; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-card span { display: grid; gap: 3px; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-card b { font-size: 0.68rem; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-card small { color: rgba(16, 33, 27, 0.46); font-size: 0.5rem; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-card em { padding: 6px 8px; border-radius: 99px; color: var(--ms-green-dark); background: #d5f6e5; font-size: 0.48rem; font-style: normal; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-nav { position: absolute; right: 14px; bottom: 16px; left: 14px; display: flex; justify-content: space-around; padding: 14px; border-radius: 17px; background: #ecf0e9; }
body.editorial-case[data-page="mobile-design-system"] .ms-system-nav i { width: 13px; height: 13px; border-radius: 4px; background: rgba(16, 33, 27, 0.24); }
body.editorial-case[data-page="mobile-design-system"] .ms-system-nav i:first-child { background: var(--ms-green); }

body.editorial-case[data-page="mobile-design-system"] .ms-layer {
  position: absolute;
  z-index: 2;
  left: 50%;
  width: clamp(220px, 25vw, 360px);
  aspect-ratio: 0.72;
  padding: 16px;
  border: 1px solid rgba(138, 235, 189, 0.38);
  border-radius: 30px;
  transform-style: preserve-3d;
}

body.editorial-case[data-page="mobile-design-system"] .ms-layer > span { color: #8aebbd; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
body.editorial-case[data-page="mobile-design-system"] .ms-layer-token { top: 11%; transform: translate3d(calc(-50% - (1 - var(--ms-progress, 0)) * 250px), calc((1 - var(--ms-progress, 0)) * -100px), -180px) rotateY(22deg); opacity: clamp(0, calc(var(--ms-progress, 0) * 4), 1); }
body.editorial-case[data-page="mobile-design-system"] .ms-layer-component { top: 15%; transform: translate3d(calc(-50% + (1 - var(--ms-progress, 0)) * 260px), 0, -100px) rotateY(-20deg); opacity: clamp(0, calc((var(--ms-progress, 0) - 0.15) * 4), 1); }
body.editorial-case[data-page="mobile-design-system"] .ms-layer-pattern { top: 19%; transform: translate3d(-50%, calc((1 - var(--ms-progress, 0)) * 230px), -40px) rotateX(14deg); opacity: clamp(0, calc((var(--ms-progress, 0) - 0.3) * 4), 1); }
body.editorial-case[data-page="mobile-design-system"] .ms-layer-token i { display: inline-block; width: 38px; height: 38px; margin: 28px 4px 0 0; border-radius: 10px; background: #8aebbd; }
body.editorial-case[data-page="mobile-design-system"] .ms-layer-token i:nth-of-type(2) { background: var(--ms-violet); }
body.editorial-case[data-page="mobile-design-system"] .ms-layer-token i:nth-of-type(3) { background: var(--ms-coral); }
body.editorial-case[data-page="mobile-design-system"] .ms-layer-token i:nth-of-type(4) { border: 1px solid #8aebbd; background: transparent; }
body.editorial-case[data-page="mobile-design-system"] .ms-layer-component b { display: block; width: 90%; height: 45px; margin: 23px auto 0; border: 1px solid rgba(138, 235, 189, 0.5); border-radius: 14px; }
body.editorial-case[data-page="mobile-design-system"] .ms-layer-pattern i { display: block; height: 52px; margin: 17px 0; border: 1px solid rgba(138, 235, 189, 0.44); border-radius: 16px; }

body.editorial-case[data-page="mobile-design-system"] .ms-state-switch {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(138, 235, 189, 0.36);
  border-radius: 99px;
  color: rgba(246, 251, 246, 0.7);
  font-size: 0.55rem;
  opacity: clamp(0, calc((var(--ms-progress, 0) - 0.62) * 4), 1);
}
body.editorial-case[data-page="mobile-design-system"] .ms-state-switch i { position: relative; width: 34px; height: 18px; border-radius: 99px; background: var(--ms-green); }
body.editorial-case[data-page="mobile-design-system"] .ms-state-switch i::after { position: absolute; top: 3px; left: calc(3px + var(--ms-progress, 0) * 16px); width: 12px; height: 12px; border-radius: 50%; background: white; content: ""; }

body.editorial-case[data-page="mobile-design-system"] .ms-build-steps {
  position: absolute;
  z-index: 8;
  right: clamp(20px, 4.8vw, 76px);
  bottom: 3vh;
  left: clamp(20px, 4.8vw, 76px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

body.editorial-case[data-page="mobile-design-system"] .ms-build-steps li { display: grid; gap: 4px; padding: 13px 15px; border-top: 1px solid rgba(246, 251, 246, 0.2); opacity: clamp(0.25, calc((var(--ms-progress, 0) - var(--ms-step)) * 5), 1); }
body.editorial-case[data-page="mobile-design-system"] .ms-build-steps li:nth-child(1) { --ms-step: 0; }
body.editorial-case[data-page="mobile-design-system"] .ms-build-steps li:nth-child(2) { --ms-step: 0.2; }
body.editorial-case[data-page="mobile-design-system"] .ms-build-steps li:nth-child(3) { --ms-step: 0.4; }
body.editorial-case[data-page="mobile-design-system"] .ms-build-steps li:nth-child(4) { --ms-step: 0.6; }
body.editorial-case[data-page="mobile-design-system"] .ms-build-steps span { color: #8aebbd; font-size: 0.58rem; }
body.editorial-case[data-page="mobile-design-system"] .ms-build-steps b { font-size: 0.78rem; font-weight: 570; }
body.editorial-case[data-page="mobile-design-system"] .ms-build-steps small { color: rgba(246, 251, 246, 0.46); font-size: 0.6rem; }

/* Operating model */
body.editorial-case[data-page="mobile-design-system"] .ms-role {
  padding: 15vh clamp(20px, 4.8vw, 76px);
  background: #dfe9df;
}

body.editorial-case[data-page="mobile-design-system"] .ms-role-heading { max-width: 980px; }
body.editorial-case[data-page="mobile-design-system"] .ms-role-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 13vh; border-top: 1px solid var(--ms-line); border-left: 1px solid var(--ms-line); }
body.editorial-case[data-page="mobile-design-system"] .ms-role-track article { min-height: 300px; padding: 20px; border-right: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); transform: translateY(calc((1 - var(--ms-progress, 0)) * var(--ms-lift))); }
body.editorial-case[data-page="mobile-design-system"] .ms-role-track article:nth-child(odd) { --ms-lift: 45px; }
body.editorial-case[data-page="mobile-design-system"] .ms-role-track article:nth-child(even) { --ms-lift: -35px; }
body.editorial-case[data-page="mobile-design-system"] .ms-role-track span { display: block; margin-bottom: 125px; color: var(--ms-green-dark); font-size: 0.67rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
body.editorial-case[data-page="mobile-design-system"] .ms-role-track p { margin: 0; font-size: 0.85rem; line-height: 1.45; }

/* Proof */
body.editorial-case[data-page="mobile-design-system"] .ms-proof {
  min-height: 165svh;
  padding: 0;
  color: #f8fff9;
  background: var(--ms-green-dark);
}

body.editorial-case[data-page="mobile-design-system"] .ms-proof-field {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  padding: clamp(110px, 13vh, 145px) clamp(20px, 4.8vw, 76px) 44px;
  align-content: space-between;
  overflow: hidden;
}

body.editorial-case[data-page="mobile-design-system"] .ms-proof .ms-chapter { color: #a7f4d0; }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-lead { position: absolute; top: 16%; right: 5vw; width: min(26rem, 32vw); color: rgba(248, 255, 249, 0.62); font-size: 1rem; line-height: 1.4; }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-number { position: relative; z-index: 3; display: flex; align-items: start; width: max-content; margin: 3vh auto -4vh; transform: scale(clamp(0.75, calc(0.75 + var(--ms-progress, 0) * 0.25), 1)); }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-number strong { font-size: clamp(10rem, 27vw, 28rem); font-weight: 510; letter-spacing: -0.1em; line-height: 0.68; }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-number span { margin-top: 0.5vw; color: #a7f4d0; font-size: clamp(3rem, 7vw, 7rem); }
body.editorial-case[data-page="mobile-design-system"] .ms-proof h2 { position: relative; z-index: 3; width: min(78rem, 92vw); margin: 0 auto; font-size: clamp(3.2rem, 7vw, 8rem); font-weight: 500; font-variation-settings: "wdth" 88; letter-spacing: -0.065em; line-height: 0.85; text-align: center; }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-orbit { position: absolute; top: 50%; left: 50%; width: min(66vw, 850px); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(calc(var(--ms-progress, 0) * 80deg)); }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-orbit i { position: absolute; inset: 0; border: 1px solid rgba(167, 244, 208, 0.19); border-radius: 50%; }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-orbit i:nth-child(2) { inset: 13%; border-style: dashed; transform: rotate(-19deg); }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-orbit i:nth-child(3) { inset: 27%; }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-meta { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 5vh; border-top: 1px solid rgba(248, 255, 249, 0.2); }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-meta p { display: flex; align-items: baseline; gap: 11px; margin: 0; padding: 15px 0; border-right: 1px solid rgba(248, 255, 249, 0.2); }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-meta p:last-child { border-right: 0; padding-left: 16px; }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-meta strong { color: #a7f4d0; font-size: 1.1rem; font-weight: 550; }
body.editorial-case[data-page="mobile-design-system"] .ms-proof-meta span { color: rgba(248, 255, 249, 0.55); font-size: 0.67rem; }

/* Case archive */
body.editorial-case[data-page="mobile-design-system"] .ms-archive {
  padding: 15vh clamp(20px, 4.8vw, 76px);
  background: var(--ms-paper-bright);
}

body.editorial-case[data-page="mobile-design-system"] .ms-archive-heading { display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 6vw; align-items: end; margin-bottom: 10vh; }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-heading .ms-chapter { grid-column: 1 / -1; margin-bottom: 32px; }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-heading h2 { margin: 0; font-size: clamp(4rem, 8vw, 9rem); font-weight: 530; font-variation-settings: "wdth" 88; letter-spacing: -0.075em; line-height: 0.82; }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-heading > p:last-child { max-width: 30rem; margin: 0 0 8px; color: rgba(16, 33, 27, 0.62); line-height: 1.45; }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 7vw 1.2vw; }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid figure { grid-column: span 5; margin: 0; padding: 0; border: 0; background: transparent; transform: translateY(calc((1 - var(--ms-progress, 0)) * 25px)); }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid figure:nth-child(4n + 2),
body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid figure:nth-child(4n + 3) { grid-column: 7 / span 6; }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid figure:nth-child(3n) { margin-top: 8vw; }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; filter: saturate(0.84) contrast(0.97); transition: filter 260ms ease, transform 600ms cubic-bezier(.2,.8,.2,1); }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid figure:hover img { filter: saturate(1) contrast(1); transform: scale(0.985); }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid figcaption { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--ms-line); color: var(--ms-ink); font-size: 0.67rem; letter-spacing: 0.04em; text-transform: uppercase; }
body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid figcaption span { color: var(--ms-green-dark); }

/* Future */
body.editorial-case[data-page="mobile-design-system"] .ms-future {
  padding: 16vh clamp(20px, 4.8vw, 76px);
  background: #e5e9e1;
}

body.editorial-case[data-page="mobile-design-system"] .ms-future h2 { width: min(78rem, 94vw); }
body.editorial-case[data-page="mobile-design-system"] .ms-future-track { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12vh; border-top: 1px solid var(--ms-line); }
body.editorial-case[data-page="mobile-design-system"] .ms-future-track article { min-height: 180px; padding: 16px; border-right: 1px solid var(--ms-line); }
body.editorial-case[data-page="mobile-design-system"] .ms-future-track article:last-child { border-right: 0; }
body.editorial-case[data-page="mobile-design-system"] .ms-future-track span { display: block; margin-bottom: 65px; color: var(--ms-green); font-size: 0.67rem; }
body.editorial-case[data-page="mobile-design-system"] .ms-future-track p { margin: 0; font-size: 0.8rem; line-height: 1.45; }

body.editorial-case[data-page="mobile-design-system"] .case-section-nav :is(a, button),
body.editorial-case[data-page="mobile-design-system"] .case-section-nav a::after { font-family: inherit; }

/* Keep the case index available at the same compact size used elsewhere. */
@media (max-width: 1000px) {
  body.editorial-case[data-page="mobile-design-system"] .case-section-nav {
    display: grid;
    right: 10px;
  }
}

@media (max-width: 900px) {
  body.editorial-case[data-page="mobile-design-system"] .ms-hero { min-height: 175svh; }
  body.editorial-case[data-page="mobile-design-system"] .ms-hero-stage { padding-top: 108px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-meta span:nth-child(2) { display: none; }
  body.editorial-case[data-page="mobile-design-system"] .ms-hero-copy { top: 20%; width: calc(100% - 40px); }
  body.editorial-case[data-page="mobile-design-system"] .case-title { font-size: clamp(3.8rem, 16vw, 7.5rem); line-height: 0.84; }
  body.editorial-case[data-page="mobile-design-system"] .case-title :is(span, b) { white-space: normal; }
  body.editorial-case[data-page="mobile-design-system"] .case-title :is(span, b):last-child { max-width: 7ch; }
  body.editorial-case[data-page="mobile-design-system"] .case-thesis { width: min(23rem, 75vw); }
  body.editorial-case[data-page="mobile-design-system"] .ms-hero-orbit { top: 47%; right: -23vw; width: 82vw; }
  body.editorial-case[data-page="mobile-design-system"] .ms-hero-summary { right: auto; bottom: 8vh; left: 20px; width: min(28rem, calc(100vw - 40px)); }
  body.editorial-case[data-page="mobile-design-system"] .ms-scroll-cue { display: none; }

  body.editorial-case[data-page="mobile-design-system"] .ms-fracture { min-height: 205svh; }
  body.editorial-case[data-page="mobile-design-system"] .ms-sticky { padding-top: 105px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading { width: min(92vw, 650px); }
  body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading h2,
  body.editorial-case[data-page="mobile-design-system"] .ms-inventory-intro h2,
  body.editorial-case[data-page="mobile-design-system"] .ms-role-heading h2,
  body.editorial-case[data-page="mobile-design-system"] .ms-future h2 { font-size: clamp(3rem, 11vw, 5.5rem); }
  body.editorial-case[data-page="mobile-design-system"] .ms-fragment-field { top: 38%; right: -10vw; width: 105vw; height: 42%; }
  body.editorial-case[data-page="mobile-design-system"] .ms-phone { width: clamp(118px, 26vw, 180px); }
  body.editorial-case[data-page="mobile-design-system"] .ms-phone-one { transform: translate3d(calc(var(--ms-progress, 0) * -21vw), calc(var(--ms-progress, 0) * 5vh), 0) rotate(calc(-4deg - var(--ms-progress, 0) * 9deg)); }
  body.editorial-case[data-page="mobile-design-system"] .ms-phone-three { transform: translate3d(calc(var(--ms-progress, 0) * 23vw), calc(var(--ms-progress, 0) * 6vh), 0) rotate(calc(4deg + var(--ms-progress, 0) * 10deg)); }
  body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis { grid-template-columns: 1fr; gap: 20px; bottom: 2vh; }

  body.editorial-case[data-page="mobile-design-system"] .ms-inventory { min-height: 185svh; padding-top: 110px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-inventory-intro > p:last-child { width: min(38rem, 90vw); margin-left: 0; }
  body.editorial-case[data-page="mobile-design-system"] .ms-foundation-board { height: 72vh; }
  body.editorial-case[data-page="mobile-design-system"] .ms-foundation { width: 36%; min-height: 140px; padding: 13px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-foundation-color,
  body.editorial-case[data-page="mobile-design-system"] .ms-foundation-type { left: 3%; }
  body.editorial-case[data-page="mobile-design-system"] .ms-foundation-space,
  body.editorial-case[data-page="mobile-design-system"] .ms-foundation-access { right: 3%; }
  body.editorial-case[data-page="mobile-design-system"] .ms-foundation-core { width: 120px; }

  body.editorial-case[data-page="mobile-design-system"] .ms-assembly { min-height: 250svh; }
  body.editorial-case[data-page="mobile-design-system"] .ms-assembly-stage { top: 36%; right: 0; width: 100%; height: 49%; }
  body.editorial-case[data-page="mobile-design-system"] .ms-system-phone { width: clamp(190px, 35vw, 270px); }
  body.editorial-case[data-page="mobile-design-system"] .ms-layer { width: clamp(210px, 43vw, 330px); }
  body.editorial-case[data-page="mobile-design-system"] .ms-build-steps { grid-template-columns: repeat(2, 1fr); bottom: 1vh; }

  body.editorial-case[data-page="mobile-design-system"] .ms-role-track { grid-template-columns: repeat(2, 1fr); }
  body.editorial-case[data-page="mobile-design-system"] .ms-role-track article:last-child { grid-column: 1 / -1; }
  body.editorial-case[data-page="mobile-design-system"] .ms-proof-lead { top: 17%; width: 40vw; }
}

@media (max-width: 600px) {
  body.editorial-case[data-page="mobile-design-system"] { background-size: 42px 42px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-meta { font-size: 0.58rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-hero-copy { top: 18%; }
  body.editorial-case[data-page="mobile-design-system"] .case-title { font-size: clamp(3.65rem, 18.2vw, 6.2rem); }
  body.editorial-case[data-page="mobile-design-system"] .case-thesis { margin-top: 20px; font-size: 0.9rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-hero-orbit { top: 50%; right: -31vw; width: 103vw; }
  body.editorial-case[data-page="mobile-design-system"] .ms-app-card { width: 100px; padding: 12px 9px; border-radius: 18px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-app-card-a { display: none; }
  body.editorial-case[data-page="mobile-design-system"] .ms-app-card i { height: 22px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-orbit-core { width: 105px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-hero-summary { bottom: 4vh; }

  body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading h2,
  body.editorial-case[data-page="mobile-design-system"] .ms-inventory-intro h2,
  body.editorial-case[data-page="mobile-design-system"] .ms-role-heading h2,
  body.editorial-case[data-page="mobile-design-system"] .ms-future h2 { margin-top: 17px; font-size: clamp(2.8rem, 13vw, 4.2rem); }
  body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading > p:last-child { font-size: 0.83rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-fragment-field { top: 43%; right: -18vw; width: 119vw; }
  body.editorial-case[data-page="mobile-design-system"] .ms-phone { width: 112px; min-width: 0; padding: 13px 8px; border-radius: 21px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-phone-top { margin-bottom: 18px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-phone i { height: 25px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-number { gap: 13px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-number strong { font-size: 4.7rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-number span { font-size: 0.68rem; }

  body.editorial-case[data-page="mobile-design-system"] .ms-inventory { min-height: auto; padding-bottom: 100px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-inventory-intro { margin-bottom: 70px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-foundation-board { position: relative; top: auto; display: grid; height: auto; min-height: 690px; padding: 18px 18px 136px; grid-template-columns: 1fr 1fr; gap: 10px; border-radius: 22px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-foundation { position: relative; inset: auto; width: auto; min-width: 0; min-height: 180px; transform: translateY(calc((1 - var(--ms-progress, 0)) * 25px)); }
  body.editorial-case[data-page="mobile-design-system"] .ms-swatch-set { flex-wrap: wrap; }
  body.editorial-case[data-page="mobile-design-system"] .ms-swatch-set i { width: 26px; height: 26px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-space-set { gap: 5px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-space-set i { max-width: 34px; max-height: 34px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-type-set { flex-wrap: wrap; }
  body.editorial-case[data-page="mobile-design-system"] .ms-foundation-core { bottom: 18px; top: auto; width: 96px; transform: translateX(-50%) scale(clamp(0.75, var(--ms-progress, 0), 1)); }
  body.editorial-case[data-page="mobile-design-system"] .ms-connector-map { display: none; }

  body.editorial-case[data-page="mobile-design-system"] .ms-assembly { min-height: 230svh; }
  body.editorial-case[data-page="mobile-design-system"] .ms-assembly .ms-scene-heading h2 { font-size: 2.8rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-assembly .ms-scene-heading > p:last-child { max-width: 92%; font-size: 0.76rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-assembly-stage { top: 40%; height: 43%; }
  body.editorial-case[data-page="mobile-design-system"] .ms-system-phone { width: 190px; border-radius: 31px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-layer { width: 205px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-state-switch { right: 12px; bottom: 2%; }
  body.editorial-case[data-page="mobile-design-system"] .ms-build-steps { right: 20px; left: 20px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-build-steps li { padding: 8px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-build-steps small { display: none; }

  body.editorial-case[data-page="mobile-design-system"] .ms-role { padding-top: 100px; padding-bottom: 100px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-role-track { grid-template-columns: 1fr; margin-top: 70px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-role-track article,
  body.editorial-case[data-page="mobile-design-system"] .ms-role-track article:last-child { grid-column: auto; min-height: 190px; transform: none; }
  body.editorial-case[data-page="mobile-design-system"] .ms-role-track span { margin-bottom: 64px; }

  body.editorial-case[data-page="mobile-design-system"] .ms-proof { min-height: 145svh; }
  body.editorial-case[data-page="mobile-design-system"] .ms-proof-lead { position: relative; top: auto; right: auto; width: 90%; margin: 26px 0 0; font-size: 0.82rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-proof-number { margin-top: 8vh; }
  body.editorial-case[data-page="mobile-design-system"] .ms-proof-number strong { font-size: 10rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-proof-number span { font-size: 3.4rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-proof h2 { font-size: 3rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-proof-meta { grid-template-columns: 1fr; }
  body.editorial-case[data-page="mobile-design-system"] .ms-proof-meta p,
  body.editorial-case[data-page="mobile-design-system"] .ms-proof-meta p:last-child { padding: 9px 0; border-right: 0; border-bottom: 1px solid rgba(248,255,249,0.16); }

  body.editorial-case[data-page="mobile-design-system"] .ms-archive { padding-top: 100px; padding-bottom: 100px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-archive-heading { grid-template-columns: 1fr; }
  body.editorial-case[data-page="mobile-design-system"] .ms-archive-heading h2 { font-size: 4rem; }
  body.editorial-case[data-page="mobile-design-system"] .ms-archive-heading > p:last-child { margin-top: 25px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid figure,
  body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid figure:nth-child(4n + 2),
  body.editorial-case[data-page="mobile-design-system"] .ms-archive-grid figure:nth-child(4n + 3) { grid-column: auto; margin-top: 0; }

  body.editorial-case[data-page="mobile-design-system"] .ms-future { padding-top: 100px; padding-bottom: 100px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-future-track { grid-template-columns: 1fr 1fr; }
  body.editorial-case[data-page="mobile-design-system"] .ms-future-track article { min-height: 165px; border-bottom: 1px solid var(--ms-line); }
}

/* Small screens give copy, moving objects, and evidence separate rows. */
@media (max-width: 760px) {
  body.editorial-case[data-page="mobile-design-system"] .ms-hero.case-hero {
    display: block;
    min-height: 0;
    padding: 0;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-stage {
    position: relative;
    min-height: 0;
    padding: 112px 20px 56px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-meta {
    gap: 12px;
    background: transparent;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-meta span {
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-copy {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 48px;
    transform: none;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero .case-title b {
    max-width: 100%;
    transform: none;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero .case-thesis {
    width: 100%;
    max-width: 30ch;
    margin: 28px 0 0;
    font-size: 1rem;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-orbit {
    position: relative;
    inset: auto;
    width: 100%;
    height: 360px;
    margin-top: 38px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-summary {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 44px;
    opacity: 1;
    transform: none;
  }

  body.editorial-case[data-page="mobile-design-system"] :is(.ms-fracture, .ms-assembly) {
    min-height: auto;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-sticky {
    position: relative;
    top: auto;
    min-height: 0;
    padding: 104px 20px 40px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading {
    width: 100%;
    max-width: 100%;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading h2 {
    font-size: clamp(2.3rem, 10.8vw, 3.5rem);
    overflow-wrap: break-word;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading > p:last-child {
    max-width: 100%;
    font-size: 0.94rem;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-fragment-field {
    position: relative;
    inset: auto;
    width: 100%;
    height: 345px;
    margin-top: 30px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-screen-card {
    top: 3%;
    width: 124px;
    border-radius: 19px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-screen-appointments {
    transform: translate3d(calc(-50% - 50px - var(--ms-progress, 0) * 68px), calc(18px + var(--ms-progress, 0) * 10px), 0) rotate(-3deg);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-screen-reports {
    transform: translate3d(calc(-50% + 50px + var(--ms-progress, 0) * 68px), calc(18px + var(--ms-progress, 0) * 10px), 0) rotate(3deg);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-phone {
    top: 16%;
    left: calc(50% - 56px);
    width: 112px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis,
  body.editorial-case[data-page="mobile-design-system"] .ms-build-steps {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 24px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis {
    opacity: 1;
    transform: none;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-number strong {
    color: #ad3526;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-assembly-stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: 460px;
    margin-top: 44px;
    overflow: clip;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-assembly-screen {
    top: 0;
    border-radius: 19px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-assembly-screen img {
    height: 440px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-build-steps {
    padding: 0;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-system-card {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 10px 7px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-system-card > i {
    width: 20px;
    height: 24px;
    border-radius: 7px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-system-card b {
    font-size: 0.55rem;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-system-card em {
    padding: 4px;
    font-size: 0.42rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.editorial-case[data-page="mobile-design-system"] *,
  body.editorial-case[data-page="mobile-design-system"] *::before,
  body.editorial-case[data-page="mobile-design-system"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body.editorial-case[data-page="mobile-design-system"] [data-ms-scene] { --ms-progress: 1 !important; }

  /* The completed scenes remain readable without long, motion-only scroll runs. */
  body.editorial-case[data-page="mobile-design-system"] :is(.ms-hero, .ms-fracture, .ms-inventory, .ms-assembly, .ms-proof) {
    min-height: auto;
  }

  body.editorial-case[data-page="mobile-design-system"] :is(.ms-hero-stage, .ms-sticky, .ms-proof-field, .ms-foundation-board) {
    position: relative;
    top: auto;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-inventory-intro { margin-bottom: 60px; }
  body.editorial-case[data-page="mobile-design-system"] .ms-scroll-cue { display: none; }
}

/*
 * Viewport-safe desktop scenes
 *
 * The story runs underneath a fixed header, so 100svh is not the same as
 * 100svh of usable composition space. These constraints create a consistent
 * top and bottom safe area and keep moving layers in their own visual zones.
 */
@media (min-width: 901px) and (max-height: 1100px) {
  body.editorial-case[data-page="mobile-design-system"] :is(
    .ms-role,
    .ms-archive,
    .ms-future
  ) {
    scroll-margin-top: 82px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-stage {
    padding-top: clamp(104px, 11vh, 118px);
    padding-bottom: clamp(48px, 5.5vh, 60px);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-copy {
    top: 21.5%;
    width: min(59vw, 840px);
    transform: translate3d(0, calc(var(--ms-progress, 0) * -4.5vh), 0);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-copy .ms-chapter {
    margin-bottom: 18px;
  }

  body.editorial-case[data-page="mobile-design-system"] .case-title {
    font-size: clamp(4.6rem, 8.45vw, 9.15rem);
    line-height: 0.82;
  }

  body.editorial-case[data-page="mobile-design-system"] .case-thesis {
    width: min(28rem, 42vw);
    margin-top: 24px;
    font-size: clamp(0.96rem, 1.15vw, 1.16rem);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-orbit {
    top: 11.5%;
    right: -1vw;
    width: min(38vw, 570px);
    transform: translate3d(calc(var(--ms-progress, 0) * -2vw), calc(var(--ms-progress, 0) * -1.5vh), 0)
      rotate(calc(var(--ms-progress, 0) * 9deg));
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-summary {
    right: clamp(28px, 4.8vw, 76px);
    bottom: clamp(46px, 5.5vh, 58px);
    width: min(27rem, 29vw);
    padding: 18px 0 0 20px;
    border-top: 1px solid var(--ms-line);
    border-left: 1px solid var(--ms-line);
    background: linear-gradient(135deg, rgba(238, 242, 234, 0.94), rgba(238, 242, 234, 0.78));
    backdrop-filter: blur(14px);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-summary p {
    margin-bottom: 16px;
    font-size: clamp(0.86rem, 0.96vw, 1rem);
    line-height: 1.42;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-hero-summary .primary-link {
    gap: 24px;
    padding: 11px 16px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-sticky,
  body.editorial-case[data-page="mobile-design-system"] .ms-proof-field {
    padding-top: clamp(104px, 11vh, 118px);
    padding-bottom: clamp(48px, 5.5vh, 60px);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-scene-heading h2,
  body.editorial-case[data-page="mobile-design-system"] .ms-inventory-intro h2,
  body.editorial-case[data-page="mobile-design-system"] .ms-role-heading h2,
  body.editorial-case[data-page="mobile-design-system"] .ms-future h2 {
    font-size: clamp(3.2rem, 5.6vw, 6.3rem);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-fragment-field {
    top: 11%;
    height: 67%;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis {
    bottom: clamp(46px, 5.5vh, 58px);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-diagnosis-number strong {
    font-size: clamp(5rem, 9.5vw, 9rem);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-assembly-stage {
    top: 8%;
    height: 72%;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-build-steps {
    bottom: clamp(42px, 5vh, 54px);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-role {
    padding-top: clamp(104px, 11vh, 118px);
    padding-bottom: clamp(72px, 8vh, 90px);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-role-track {
    margin-top: clamp(58px, 7vh, 72px);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-role-track article {
    min-height: 250px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-role-track span {
    margin-bottom: 88px;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-proof {
    min-height: 180svh;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-proof-number {
    margin-top: 1.5vh;
    margin-bottom: -2.5vh;
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-proof-number strong {
    font-size: clamp(10rem, 24vw, 25rem);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-proof h2 {
    font-size: clamp(3.2rem, 6.4vw, 7.2rem);
  }

  body.editorial-case[data-page="mobile-design-system"] .ms-proof-meta {
    margin-top: 3vh;
  }
}
