:root {
  --case-ink: #111827;
  --case-muted: #6b7280;
  --case-soft: #f5f7f8;
  --case-line: rgba(17, 24, 39, 0.1);
  --case-panel: #ffffff;
  --case-green: #16a34a;
  --case-cyan: #0891b2;
  --case-gold: #a16207;
  --case-r: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body.mj-cases {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, sans-serif;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #f8fafc 55%, #eef2f7);
  background-size: 44px 44px, auto;
  color: var(--case-ink);
}
body.modal-open {
  overflow: hidden;
}
.mj-cases .mj-v2-top {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--case-line);
}
.mj-cases .mj-v2-top-inner {
  padding: 0.5rem 1.25rem;
}
.mj-cases .mj-v2-brand-mj {
  color: #111827;
}
.mj-cases .mj-v2-shopify-logo-link {
  background: #030712;
  border-radius: 8px;
  padding: 0.18rem 0.35rem;
}
.mj-cases .mj-v2-shopify-logo-link img {
  height: 22px;
}
.case-nav-cta {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px !important;
  background: #111827;
  color: #fff !important;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}
.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: clamp(1.4rem, 4vw, 3rem) 0 0.9rem;
}
.case-eyebrow {
  color: var(--case-green);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.case-hero h1 {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(3.2rem, 10vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}
.case-hero p {
  margin: 0.85rem 0 0;
  color: var(--case-muted);
  font-size: 1rem;
}
.case-hero-mark {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 300px;
}
.case-hero-mark span {
  border: 1px solid var(--case-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #374151;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 850;
}
.case-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.3rem 0 0.75rem;
}
.case-section-head h2,
.case-close h2 {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.05;
}
.case-filters {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 0 0.85rem;
}
.case-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.case-filter-label {
  flex: 0 0 auto;
  min-width: 2.5rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--case-muted);
}
.case-filter-chips {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  flex: 1 1 200px;
  scrollbar-width: none;
  padding-bottom: 0.1rem;
}
.case-filter-chips::-webkit-scrollbar {
  display: none;
}
.case-filter-chip {
  flex: 0 0 auto;
  min-height: 2.15rem;
  border: 1px solid var(--case-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #4b5563;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}
.case-filter-chip.is-active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.case-card {
  text-align: left;
  border: 1px solid var(--case-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  color: inherit;
  padding: 0.55rem;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.11);
}
.case-card-shot {
  position: relative;
  min-height: 168px;
  max-height: 260px;
  background: #eef2f7;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}
.case-card-shot img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
}
.case-card-shot em {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 850;
}
.case-card-copy {
  padding: 0.8rem 0.35rem 0.25rem;
}
.case-card-copy .case-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.case-card-pill {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: none;
}
.case-card-pill--sales {
  background: rgba(79, 70, 229, 0.12);
  color: #4338ca;
}
.case-card-pill--industry {
  background: rgba(5, 150, 105, 0.1);
  color: var(--case-green);
}
.case-card-copy h3 {
  margin: 0.28rem 0;
  font-size: 1.04rem;
  line-height: 1.22;
}
.case-card-copy p {
  margin: 0 0 0.7rem;
  color: var(--case-muted);
  line-height: 1.45;
  font-size: 0.9rem;
}
.case-card-copy strong {
  color: var(--case-gold);
  font-size: 0.78rem;
  font-weight: 900;
}
.case-card-fallback {
  height: 100%;
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
}
.case-card-fallback--1 {
  background: linear-gradient(135deg, #fef3c7, #e0f2fe);
}
.case-card-fallback--2 {
  background: linear-gradient(135deg, #fce7f3, #dcfce7);
}
.case-card-shot .case-card-fallback {
  width: 100%;
  min-height: 150px;
  height: auto;
  align-self: stretch;
}
.case-card-shot .case-card-fallback span {
  height: 72px;
}
.case-card-shot .case-card-fallback b,
.case-card-shot .case-card-fallback i {
  height: 22px;
}
.case-card-fallback span,
.case-card-fallback b,
.case-card-fallback i {
  display: block;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.12);
}
.case-card-fallback span {
  height: 46%;
}
.case-card-fallback b,
.case-card-fallback i {
  height: 18%;
}
.case-empty {
  grid-column: 1 / -1;
  padding: 1rem;
  border: 1px dashed rgba(17, 24, 39, 0.18);
  border-radius: var(--case-r);
  color: var(--case-muted);
  background: #fff;
}
.case-empty--boot {
  text-align: center;
  padding: 2.25rem 1rem;
}
.case-empty--boot p {
  margin: 0;
}
.case-retry-boot {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 0;
  font-weight: 750;
  cursor: pointer;
  color: #fff;
  background: #111827;
}
.case-retry-boot:hover {
  filter: brightness(1.06);
}
.case-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1rem;
  border: 1px solid var(--case-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.07);
}
.case-close span {
  color: var(--case-green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.case-close a,
.modal-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  background: #111827;
}
.modal-cta-primary {
  margin-top: 0.35rem;
  width: 100%;
  box-sizing: border-box;
}
.modal-copy-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.modal-copy-head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}
.modal-shopify-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  padding: 0.32rem 0.55rem 0.32rem 0.45rem;
  border-radius: 10px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-shopify-badge img {
  display: block;
  height: 22px;
  width: auto;
}
.modal-shopify-txt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}
.modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.modal-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.modal-pill--sales {
  background: rgba(79, 70, 229, 0.12);
  color: #3730a3;
}
.modal-pill--industry {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}
.modal-ref-link {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 850;
  color: #0e7490;
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 116, 144, 0.35);
  padding-bottom: 0.08rem;
}
.modal-ref-link:hover {
  color: #155e75;
  border-bottom-color: rgba(21, 94, 117, 0.55);
}
.modal-ref-link--cta {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 0.55rem 0 0.25rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff !important;
  background: #0e7490;
  border: none;
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.32);
}
.modal-ref-link--cta:hover {
  background: #155e75;
  color: #fff !important;
}
.modal-ref-link--cta[hidden] {
  display: none !important;
}
.modal-lede {
  margin: 0.5rem 0 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: #374151;
}
.modal-outcome {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0 12px 12px 0;
  border-left: 3px solid var(--case-green);
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.08), rgba(240, 253, 244, 0.9));
  color: #166534;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.5;
}
.modal-story {
  margin-top: 1rem;
}
.modal-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.modal-story-card {
  border: 1px solid var(--case-line);
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  background: #fafafa;
}
.modal-story-card--accent {
  background: linear-gradient(145deg, #f8fafc, #eef2ff);
  border-color: rgba(99, 102, 241, 0.2);
}
.modal-story-card h4 {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--case-muted);
}
.modal-story-card--accent h4 {
  color: #4338ca;
}
.modal-story-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #4b5563;
}
.modal-page-tags {
  margin: 1rem 0 0.25rem;
}
.modal-page-tags-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--case-muted);
  margin-bottom: 0.45rem;
}
.modal-page-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.modal-page-tag {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--case-line);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  color: #374151;
}
@media (max-width: 640px) {
  .modal-story-grid {
    grid-template-columns: 1fr;
  }
}
.case-modal[aria-hidden='true'] {
  display: none;
}
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 0.5rem;
}
.case-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.34);
  backdrop-filter: blur(16px);
}
.case-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100vw - 1rem));
  max-height: min(900px, calc(100vh - 1rem));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
}
.case-modal-panel > .modal-gallery,
.case-modal-panel > .modal-copy {
  min-height: 0;
}
.case-modal[aria-hidden='false'] .case-modal-panel {
  animation: caseModalIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes caseModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-modal[aria-hidden='false'] .case-modal-panel {
    animation: none;
  }
}
.case-modal-close {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--case-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
  font-size: 1.4rem;
  cursor: pointer;
}
.modal-gallery {
  position: relative;
  min-width: 0;
  padding: 1rem;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(90% 60% at 100% 30%, rgba(52, 211, 153, 0.1), transparent 50%),
    #f3f5f7;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal-mj-watermark {
  position: absolute;
  top: 0.48rem;
  right: 0.48rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  padding: 0.32rem 0.48rem;
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.52);
  backdrop-filter: blur(8px);
  pointer-events: none;
  line-height: 1.05;
}
.modal-mj-watermark__brand {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: #fff;
}
.modal-mj-watermark__shop {
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #95bf47;
}
.modal-mj-watermark__sub {
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.76);
}
.modal-shot-stack {
  position: relative;
  flex: 1;
  min-height: 0;
}
.modal-main-shot {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  max-height: min(78vh, 820px);
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 24px 60px rgba(15, 23, 42, 0.12);
}
.modal-main-shot.modal-main-shot--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, #e8eaed 0%, #f4f5f7 42%, #e8eaed 78%);
  background-size: 220% 100%;
  animation: modalShotShimmer 1.05s ease-in-out infinite;
}
.modal-main-shot.modal-main-shot--loading .modal-main-img {
  opacity: 0.12;
}
@keyframes modalShotShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.modal-main-shot img,
.modal-main-shot .case-card-fallback {
  display: block;
}
.modal-main-shot .case-card-fallback {
  width: 100%;
  min-height: 200px;
}
.modal-main-shot img {
  touch-action: pan-y;
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
}
.modal-shot-ribbon {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.72));
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.modal-shot-ribbon.has-caption {
  opacity: 1;
  transform: translateY(0);
}
.modal-shot-count {
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.2rem;
}
.modal-shot-caption {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 650;
  color: #f8fafc;
}
.modal-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--case-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #111827;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.modal-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}
.modal-arrow--prev {
  left: 1.6rem;
}
.modal-arrow--next {
  right: 1.6rem;
}
.modal-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-top: 0.75rem;
  scroll-snap-type: x proximity;
}
.modal-thumbs button {
  flex: 0 0 auto;
  height: 58px;
  min-width: 44px;
  max-width: 120px;
  border: 1px solid var(--case-line);
  border-radius: 10px;
  overflow: hidden;
  padding: 2px;
  opacity: 0.55;
  background: #e5e7eb;
  cursor: pointer;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-thumbs button.is-active {
  opacity: 1;
  border-color: #111827;
}
.modal-thumbs img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.modal-copy {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1rem, 3vw, 1.5rem);
}
.modal-copy > span {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #fef3c7;
  color: var(--case-gold);
  font-weight: 900;
  font-size: 0.78rem;
}
.modal-copy h3 {
  margin: 1rem 0 0.65rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.05;
}
.modal-copy p,
.modal-copy dd {
  color: #4b5563;
  line-height: 1.65;
}
.modal-copy dl,
.modal-copy .modal-meta-dl {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}
.modal-copy dt {
  color: var(--case-green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.modal-copy dd {
  margin: 0.15rem 0 0;
}
.modal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.modal-metrics span {
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  background: #f8fafc;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  main {
    padding: 0 1rem 3rem;
  }
  .case-hero {
    grid-template-columns: 1fr;
    padding: 1.15rem 0 0.65rem;
  }
  .case-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
    line-height: 0.98;
  }
  .case-hero-mark {
    display: none;
  }
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .case-modal {
    padding: 0;
    align-items: end;
  }
  .case-modal-panel {
    width: 100%;
    max-height: 94vh;
    height: 94vh;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 22px 22px 0 0;
  }
  .modal-main-shot {
    min-height: 36vh;
    max-height: min(52vh, 520px);
  }
  .modal-main-shot img {
    max-height: min(52vh, 520px);
  }
}
@media (max-width: 560px) {
  .mj-cases .mj-v2-top-inner {
    flex-wrap: nowrap;
    gap: 0.55rem;
    padding: 0.5rem 0.9rem;
  }
  .mj-cases .mj-v2-brand-row {
    gap: 0.45rem;
    flex: 0 0 auto;
  }
  .mj-cases .mj-v2-brand-mj {
    font-size: 0.9rem;
  }
  .mj-cases .mj-v2-shopify-logo-link img {
    height: 20px;
  }
  .mj-v2-navtx {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.45rem;
    font-size: 0.72rem;
    flex-wrap: nowrap;
  }
  .case-nav-cta {
    min-height: 1.9rem;
    padding: 0.28rem 0.55rem;
  }
  .case-eyebrow {
    margin-bottom: 0.4rem;
  }
  .case-hero p {
    font-size: 0.9rem;
    margin-top: 0.55rem;
  }
  .case-section-head {
    margin-top: 0.1rem;
  }
  .case-filters {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }
  .case-card {
    border-radius: 14px;
    padding: 0.35rem;
  }
  .case-card-shot {
    min-height: 120px;
    max-height: 200px;
    border-radius: 11px;
    padding: 0.25rem;
  }
  .case-card-shot img {
    max-height: 180px;
  }
  .case-card-copy {
    padding: 0.55rem 0.15rem 0.1rem;
  }
  .case-card-copy .case-card-badges,
  .case-card-copy p {
    display: none;
  }
  .case-card-copy h3 {
    font-size: 0.82rem;
    line-height: 1.2;
    margin: 0 0 0.35rem;
  }
  .case-card-copy strong {
    font-size: 0.68rem;
  }
  .case-card-shot em {
    font-size: 0.65rem;
    right: 0.4rem;
    bottom: 0.4rem;
  }
  .case-close {
    margin-top: 2rem;
  }
  .modal-gallery {
    padding: 0.75rem;
  }
  .modal-main-shot {
    height: 42vh;
  }
  .modal-arrow {
    display: none;
  }
}

/* —— MAGNEO 秀场案例（caseTheme / tone: magneo）—— */
.case-card[data-case-theme='magneo'] {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(155deg, #ffffff 0%, #fafafa 52%, #fff1f2 100%);
  box-shadow:
    0 16px 45px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(220, 38, 38, 0.06) inset;
}
.case-card[data-case-theme='magneo']:hover {
  box-shadow:
    0 24px 65px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(220, 38, 38, 0.12) inset;
}
.case-card-spotlight {
  position: absolute;
  z-index: 2;
  top: 0.45rem;
  left: 0.45rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}
.case-card[data-case-theme='magneo'] .case-card-shot em {
  background: rgba(12, 12, 12, 0.88);
}

.modal-kpis {
  margin: 0.5rem 0 0.15rem;
}
.modal-kpis[hidden] {
  display: none !important;
}
.modal-kpis-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}
.modal-kpi {
  flex: 1 1 4.75rem;
  min-width: 4.25rem;
  padding: 0.45rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--case-line);
  background: #fafafa;
  text-align: center;
}
.modal-kpi strong {
  display: block;
  font-size: 1.22rem;
  font-weight: 900;
  color: #ea580c;
  line-height: 1.05;
}
.modal-kpi span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  color: var(--case-muted);
  font-weight: 750;
  line-height: 1.25;
}

.case-modal--magneo .case-modal-backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(22px);
}

.case-modal-panel--magneo {
  background: #0c0c0c;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.case-modal-panel--magneo .modal-gallery {
  background:
    radial-gradient(ellipse 85% 55% at 18% 8%, rgba(220, 38, 38, 0.14), transparent 52%),
    linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
}

.case-modal-panel--magneo .modal-ref-link--cta {
  background: linear-gradient(180deg, #ef4444, #991b1b);
  box-shadow: 0 14px 40px rgba(220, 38, 38, 0.38);
}
.case-modal-panel--magneo .modal-ref-link--cta:hover {
  background: linear-gradient(180deg, #f87171, #b91c1c);
  color: #fff !important;
}

.case-modal-panel--magneo .modal-main-shot {
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 80px rgba(0, 0, 0, 0.55);
}

.case-modal-panel--magneo .modal-main-shot.modal-main-shot--loading::after {
  background: linear-gradient(110deg, #1f1f1f 0%, #353535 45%, #1f1f1f 80%);
  background-size: 220% 100%;
}

.case-modal-panel--magneo .modal-shot-ribbon {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.case-modal-panel--magneo .modal-thumbs button {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.12);
}
.case-modal-panel--magneo .modal-thumbs button.is-active {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.45);
}

.case-modal-panel--magneo .modal-arrow {
  background: rgba(12, 12, 12, 0.82);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.case-modal-panel--magneo .modal-copy {
  background: linear-gradient(180deg, #101010, #070707);
  color: #e5e5e5;
}

.case-modal-panel--magneo .modal-copy-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
}

.case-modal-panel--magneo .modal-shopify-badge {
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.1);
}

.case-modal-panel--magneo .modal-pill--sales {
  background: rgba(220, 38, 38, 0.18);
  color: #fecaca;
}
.case-modal-panel--magneo .modal-pill--industry {
  background: rgba(250, 250, 250, 0.07);
  color: #d4d4d4;
}

.case-modal-panel--magneo #modal-tier {
  background: rgba(220, 38, 38, 0.22);
  color: #fecaca;
}

.case-modal-panel--magneo #modal-title {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(2.45rem, 6vw, 4rem);
  letter-spacing: 0.05em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #fafafa;
  margin-top: 0.45rem;
}

.case-modal-panel--magneo .modal-lede {
  color: #a3a3a3;
}

.case-modal-panel--magneo .modal-outcome {
  border-left-color: #dc2626;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.14), rgba(23, 23, 23, 0.92));
  color: #fecaca;
}

.case-modal-panel--magneo .modal-story-card {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.08);
}
.case-modal-panel--magneo .modal-story-card p {
  color: #d4d4d4;
}
.case-modal-panel--magneo .modal-story-card--accent {
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.12), #171717);
  border-color: rgba(220, 38, 38, 0.28);
}
.case-modal-panel--magneo .modal-story-card--accent h4 {
  color: #fca5a5;
}

.case-modal-panel--magneo .modal-page-tag {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

.case-modal-panel--magneo .modal-copy dl {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.65rem;
}
.case-modal-panel--magneo .modal-copy dd,
.case-modal-panel--magneo .modal-copy p {
  color: #a3a3a3;
}

.case-modal-panel--magneo .modal-metrics span {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

.case-modal-panel--magneo .modal-cta-primary {
  background: linear-gradient(180deg, #ef4444, #991b1b);
  box-shadow: 0 14px 44px rgba(220, 38, 38, 0.38);
}

.case-modal-panel--magneo .case-modal-close {
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.case-modal-panel--magneo .modal-kpi {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.08);
}
.case-modal-panel--magneo .modal-kpi strong {
  color: #fb923c;
}
.case-modal-panel--magneo .modal-kpi span {
  color: #737373;
}

@media (max-width: 900px) {
  .case-modal-panel--magneo .modal-kpis-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .case-modal-panel--magneo .modal-kpi {
    flex: 0 0 38%;
    scroll-snap-align: start;
  }
}
