/* Homepage only: the copy stays still; motion lives inside the supporting visual. */
.ms-home .ms-carousel { width: 100%; max-width: 480px; justify-self: end; min-width: 0; background: #fffef9; box-shadow: 12px 14px 0 #e7e94f66, 0 24px 65px #0b294414; }
.ms-home .ms-carousel-viewport { display: grid; overflow: hidden; touch-action: pan-y pinch-zoom; }
.ms-home .ms-scene { grid-area: 1 / 1; min-width: 0; position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 26px 30px 30px; color: #183d37; background: #eff0cc; opacity: 0; visibility: hidden; transition: opacity 750ms ease, visibility 750ms; }
.ms-home .ms-scene.is-active { opacity: 1; visibility: visible; z-index: 1; }
.ms-home .ms-scene-direction { color: #f9f7df; background: #284c3c; }
.ms-home .ms-scene-personal { color: #163c57; background: #e0ebed; }
.ms-home .ms-scene-eyebrow { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0; font-size: .67rem; font-weight: 750; letter-spacing: .07em; }
.ms-home .ms-scene-eyebrow > span { font-weight: 500; }
.ms-home .ms-scene-art { position: relative; display: grid; place-items: center; height: 260px; margin: 10px -12px 22px; overflow: hidden; }
.ms-home .ms-scene-halo { position: absolute; width: 220px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffbeaba, #e8e95980 50%, #e8e95900 72%); transform: translate(35px, -10px); }
.ms-home .ms-scene-direction .ms-scene-halo { opacity: .4; }
.ms-home .ms-scene-personal .ms-scene-halo { background: radial-gradient(circle at 35% 30%, #ffffffd9, #8bb8c04d 60%, #8bb8c000 72%); }
.ms-home .ms-scene-drawing { width: 100%; max-width: 400px; height: 230px; overflow: visible; }
.ms-home .ms-art-orbit { stroke: currentColor; stroke-width: .8; opacity: .2; }
.ms-home .ms-art-grid { stroke: currentColor; stroke-width: 1; opacity: .16; }
.ms-home .ms-art-plane { fill: currentColor; opacity: .09; }
.ms-home .ms-art-line { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ms-home .ms-art-point { fill: currentColor; }
.ms-home .ms-scene-drawing text { fill: currentColor; font: italic 20px Georgia, serif; }
.ms-home .ms-art-formula { position: absolute; bottom: 0; padding: 7px 12px; background: #fffef9; color: #183d37; font: italic .86rem Georgia, serif; box-shadow: 0 5px 20px #0b29440a; }
.ms-home .ms-scene-copy { margin-top: auto; }
.ms-home .ms-scene-copy h2 { margin: 0 0 14px; color: inherit; font-size: clamp(1.9rem, 2.7vw, 2.65rem); line-height: 1.08; letter-spacing: -.04em; }
.ms-home .ms-scene-copy h2 em { font-weight: 400; }
.ms-home .ms-scene-copy p { margin: 0; max-width: 39ch; font-size: .9rem; line-height: 1.7; }
.ms-home .ms-carousel-controls { display: flex; align-items: center; gap: 3px; padding: 12px 16px; border: 1px solid #0b294417; border-top: 0; }
.ms-home .ms-carousel-controls[hidden] { display: none; }
.ms-home .ms-carousel-controls button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #0b2944; box-shadow: none; cursor: pointer; transition: background 180ms ease, border-color 180ms ease; }
.ms-home .ms-carousel-controls button:hover { background: #eff0cc; border-color: #284c3c33; }
.ms-home .ms-carousel-controls button:focus-visible { outline: 3px solid #536d43; outline-offset: 2px; }
.ms-home .ms-carousel-controls button svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.5; }
.ms-home .ms-carousel-rotation { font-size: 1rem; border-color: #0b294426 !important; }
.ms-home .ms-carousel-controls button[hidden] { display: none; }
.ms-home .ms-carousel-positions { display: flex; }
.ms-home .ms-carousel-positions button span { width: 6px; height: 6px; border-radius: 10px; background: #0b29444d; transition: width 200ms ease, background 200ms ease; }
.ms-home .ms-carousel-positions button[aria-current] span { width: 24px; background: #284c3c; }
.ms-home .ms-carousel-count { margin-left: auto; margin-right: 10px; white-space: nowrap; font-size: .68rem; font-variant-numeric: tabular-nums; color: #506473; }
.ms-home .ms-carousel-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .ms-home .ms-carousel.is-enhanced .ms-scene.is-active .ms-scene-drawing { animation: ms-scene-drift 12s ease-in-out infinite alternate; }
  .ms-home .ms-carousel.is-enhanced .ms-scene.is-active .ms-scene-halo { animation: ms-scene-light 12s ease-in-out infinite alternate; }
  .ms-home .ms-carousel:not(.is-playing) .ms-scene.is-active .ms-scene-drawing,
  .ms-home .ms-carousel:not(.is-playing) .ms-scene.is-active .ms-scene-halo { animation-play-state: paused; }
}
@keyframes ms-scene-drift { from { transform: translateY(3px) scale(.98); } to { transform: translateY(-3px) scale(1.02); } }
@keyframes ms-scene-light { from { transform: translate(35px, -10px) scale(.94); } to { transform: translate(12px, 12px) scale(1.12); } }
/* The four steps remain visible together on wide screens, with a tactile banner treatment. */
.ms-home .ms-process-list { gap: 14px; border-top: 0; }
.ms-home .ms-process-list li,
.ms-home .ms-process-list li + li { position: relative; overflow: hidden; padding: 28px 24px 32px; border: 1px solid #284c3c20; background: #fffef9; transition: transform 220ms ease, box-shadow 220ms ease; }
.ms-home .ms-process-list li:nth-child(2) { background: #edf1e8; }
.ms-home .ms-process-list li:nth-child(3) { background: #edf2f4; }
.ms-home .ms-process-list li:nth-child(4) { background: #eff0cc; }
.ms-home .ms-process-list li::before,
.ms-home .ms-process-list li + li::before { display: block; top: -40px; right: -32px; left: auto; width: 130px; height: 130px; border: 1px solid #284c3c26; border-radius: 50%; background: none; box-shadow: none; pointer-events: none; }
.ms-home .ms-process-list h3 { position: relative; font-size: 1.6rem; margin-top: 55px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ms-home .ms-process-list li:hover { transform: translateY(-4px); box-shadow: 0 15px 35px #0b29440b; }
}
@media (max-width: 1020px) {
  .ms-home .ms-carousel { justify-self: center; max-width: 560px; }
  .ms-home .ms-scene-copy h2 { font-size: 2.6rem; }
}
@media (max-width: 560px) {
  .ms-home .ms-carousel { width: calc(100% - 8px); justify-self: start; box-shadow: 8px 10px 0 #e7e94f66, 0 20px 45px #0b29440a; }
  .ms-home .ms-scene { padding: 22px 22px 26px; }
  .ms-home .ms-scene-art { height: 222px; margin-top: 5px; }
  .ms-home .ms-scene-drawing { height: 205px; }
  .ms-home .ms-scene-copy h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .ms-home .ms-carousel-controls { gap: 0; padding: 10px 6px; }
  .ms-home .ms-carousel-count { display: none; }
  .ms-home .ms-carousel-positions { margin: 0 auto; }
  .ms-home .ms-process-list { gap: 12px; }
  .ms-home .ms-process-list li,
  .ms-home .ms-process-list li + li { padding: 24px; border: 1px solid #284c3c20; }
  .ms-home .ms-process-list h3 { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-home .ms-carousel *, .ms-home .ms-process-list li { animation: none !important; transition: none !important; }
}

/* Keep the primary action and the complete desktop carousel inside common first-screen heights. */
@media (min-width: 1021px) {
  .ms-home .ms-home-hero { padding-top: clamp(48px, 5vw, 72px); }
  .ms-home .ms-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: clamp(42px, 4.8vw, 70px); }
  .ms-home .ms-hero-copy { padding-bottom: 10px; }
  .ms-home .ms-hero-copy h1 { margin-bottom: 20px; font-size: clamp(3.55rem, 4.65vw, 4.8rem); line-height: .92; }
  .ms-home .ms-hero-lead { max-width: 590px; font-size: clamp(.98rem, 1.15vw, 1.08rem); line-height: 1.65; }
  .ms-home .ms-hero-actions { margin-top: 25px; }
  .ms-home .ms-carousel { max-width: 440px; }
  .ms-home .ms-scene { padding: 21px 26px 24px; }
  .ms-home .ms-scene-art { height: 198px; margin: 5px -10px 15px; }
  .ms-home .ms-scene-drawing { height: 185px; }
  .ms-home .ms-scene-copy h2 { margin-bottom: 10px; font-size: clamp(1.8rem, 2.25vw, 2.2rem); }
  .ms-home .ms-scene-copy p { font-size: .82rem; line-height: 1.55; }
  .ms-home .ms-carousel-controls { padding-block: 6px; }
  .ms-home .ms-trust-line { margin-top: clamp(42px, 4.5vw, 62px); }
}

@media (max-width: 1020px) {
  .ms-home .ms-home-hero { padding-top: 46px; }
  .ms-home .ms-hero-grid { gap: 42px; }
  .ms-home .ms-hero-copy h1 { margin-bottom: 22px; }
  .ms-home .ms-hero-actions { margin-top: 26px; }
}

@media (max-width: 560px) {
  .ms-home .ms-home-hero { padding-top: 34px; }
  .ms-home .ms-hero-grid { gap: 34px; }
  .ms-home .ms-hero-copy h1 { margin-bottom: 18px; font-size: clamp(2.72rem, 12vw, 3.45rem); line-height: .94; }
  .ms-home .ms-hero-lead { font-size: .93rem; line-height: 1.62; }
  .ms-home .ms-hero-actions { margin-top: 22px; }
  .ms-home .ms-carousel { width: calc(100% - 6px); }
  .ms-home .ms-scene-art { height: 202px; }
  .ms-home .ms-scene-drawing { height: 188px; }
  .ms-home .ms-trust-line { margin-top: 48px; }
}
