/* ============================================================================
   Me Paincare — case study theme. Navy + light-blue clinical, magazine editorial
   (kokuyo.com/magazine reference). Numbered chapters, generous whitespace.
   Scoped to .mpcase.
   ============================================================================ */
.mpcase {
  --mp-navy: #1f3a63;        /* deep clinical navy */
  --mp-navy-deep: #16294a;
  --mp-blue: #4a78b0;        /* mid blue */
  --mp-sky: #cfe0f0;         /* light blue */
  --mp-sky-soft: #eaf2fa;    /* paper light blue */
  --mp-ink: #1b2a44;
  --mp-text: #51607a;
  --mp-cream: #f7f5f1;
  --mp-line: rgba(31,58,99,.12);
  position: relative; overflow: hidden; background: #fff;
  font-family: var(--font-sans); color: var(--mp-text);
}
.mpcase .wrap { position: relative; z-index: 1; }

/* ---- shared type ---- */
.mpcase .mpchapter { display: flex; align-items: baseline; gap: 16px; margin: 0 0 22px; }
.mpcase .mpchapter__no { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem,1.4rem + 2vw,3.2rem);
  line-height: 0.9; color: var(--mp-sky); letter-spacing: -0.02em; }
.mpsec--navy .mpchapter__no { color: rgba(255,255,255,.28); }
.mpcase .mpeyebrow { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mp-blue); margin: 0; padding-top: 8px; }
.mpsec--navy .mpeyebrow { color: var(--mp-sky); }
.mpcase .mph2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem,1.2rem + 2vw,2.8rem);
  line-height: 1.22; letter-spacing: -0.02em; color: var(--mp-navy); margin: 0 0 26px; text-wrap: balance; }
.mph2--on { color: #fff; }
.mpcase__p { font-size: clamp(15.5px,1vw,17px); line-height: 2; color: var(--mp-text); margin: 0 0 20px; }
.mpcase__p:last-child { margin-bottom: 0; }
.mpsec--navy .mpcase__p { color: rgba(255,255,255,.8); }
.mpcase .mpcenter { text-align: center; max-width: 720px; margin: 0 auto; }

/* sections + spacing */
.mpsec { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }
.mpcase .pb-gap { padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.mpcase .mt-gap { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.mpcase .mpshot, .mpcase [class*="__fig"], .mpcase [class*="__media"] { margin-block: 1rem; }
.mpsec--paper { background: var(--mp-sky-soft); }
.mpsec--cream { background: var(--mp-cream); }
.mpsec--navy { background: var(--mp-navy); }
.mpcol { max-width: 760px; }

/* ---- Hero (magazine cover) ---- */
.mphero { position: relative; background: linear-gradient(180deg, var(--mp-sky-soft) 0%, #fff 100%); overflow: hidden;
  padding-block: clamp(1.5rem,1rem + 2vw,2.5rem) clamp(3rem,2rem + 4vw,5rem); }
.mphero__logo { position: relative; z-index: 1; display: block; height: clamp(84px, 10vw, 116px); width: auto; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.mpback { appearance: none; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--mp-text); margin-bottom: calc(34px + 1.6rem); transition: color var(--dur-fast); }
.mpback:hover { color: var(--mp-navy); }
.mpback [data-lucide] { width: 16px; height: 16px; }
.mphero__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.mpchip { display: inline-flex; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px; color: #fff; background: var(--mp-navy); }
.mphero__cat { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mp-blue); }
.mphero__year { font-family: var(--font-mono); font-size: 13px; color: var(--mp-text); }
.mphero__lede { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem,1.3rem + 3vw,3.8rem);
  line-height: 1.16; letter-spacing: -0.03em; color: var(--mp-navy); margin: 0; max-width: 1000px; text-wrap: balance; }
.mphero__sub { font-size: clamp(15.5px,1vw,17.5px); line-height: 1.75; color: var(--mp-text); margin: 28px 0 0; max-width: 720px; font-style: italic; }
.mphero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.mptag { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--mp-navy);
  background: #fff; border: 1px solid var(--mp-line); border-radius: 999px; padding: 6px 12px; }

/* headline stat band */
.mpheadstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(2.5rem,2rem + 3vw,4rem);
  background: var(--mp-line); border: 1px solid var(--mp-line); border-radius: var(--radius-xl); overflow: hidden; }
.mpheadstat { background: #fff; padding: clamp(22px,2.4vw,34px) 20px; text-align: center; }
.mpheadstat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem,1.3rem + 2vw,3rem);
  line-height: 1; letter-spacing: -0.02em; color: var(--mp-navy); }
.mpheadstat__label { display: block; font-size: 12.5px; color: var(--mp-text); margin-top: 10px; font-family: var(--font-mono); letter-spacing: .04em; }

/* ---- generic figure ---- */
.mpshot { border-radius: var(--radius-xl); overflow: hidden; background: #fff;
  box-shadow: 0 28px 60px -34px rgba(31,58,99,.42); border: 1px solid var(--mp-line); }
.mpshot img { width: 100%; height: auto; display: block; }
.mpshot__cap { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--mp-text);
  padding: 14px 18px; background: var(--mp-sky-soft); border-top: 1px solid var(--mp-line); }
.mpshot__cap::before { content: ""; width: 22px; height: 1px; background: var(--mp-blue); flex: none; }

/* ---- Challenge question ---- */
.mpquestion { margin-top: clamp(2rem,1.5rem + 2vw,3rem); padding: clamp(28px,3vw,48px); background: var(--mp-navy);
  border-radius: var(--radius-2xl); position: relative; overflow: hidden; }
.mpquestion__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mp-sky); margin: 0 0 16px; }
.mpquestion__text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem,1.1rem + 1.8vw,2.4rem);
  line-height: 1.34; color: #fff; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }

/* ---- HRS framework ---- */
.mphrs { display: flex; flex-direction: column; gap: 18px; margin-top: clamp(2.5rem,2rem + 3vw,4rem); }
.mphrslayer { display: grid; grid-template-columns: 110px 1fr; gap: clamp(18px,2.5vw,40px); align-items: center;
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--radius-2xl); padding: clamp(24px,2.6vw,40px);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.mphrslayer:hover { box-shadow: 0 30px 60px -34px rgba(31,58,99,.4); transform: translateY(-3px); }
.mphrslayer__key { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem,2.5rem + 4vw,6rem); line-height: 0.8;
  color: var(--mp-sky); letter-spacing: -0.04em; text-align: center; }
.mphrslayer__word { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem,1rem + 1.2vw,1.8rem); color: var(--mp-navy); margin: 0; }
.mphrslayer__sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--mp-blue); margin: 4px 0 12px; }
.mphrslayer__d { font-size: 14.5px; line-height: 1.8; color: var(--mp-text); margin: 0; }
.mphrs__quote { margin-top: clamp(2rem,1.5rem + 2vw,3rem); padding-left: clamp(20px,3vw,40px); border-left: 3px solid var(--mp-blue);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem,1rem + 1.4vw,1.9rem); line-height: 1.42;
  color: var(--mp-navy); letter-spacing: -0.01em; text-wrap: balance; }

/* ---- SEO categories ---- */
.mpcats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(1.5rem,1rem + 2vw,2.5rem); }
.mpcat { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--mp-navy);
  background: var(--mp-sky-soft); border: 1px solid var(--mp-line); border-radius: 999px; padding: 10px 18px; }
.mpcat [data-lucide] { width: 16px; height: 16px; color: var(--mp-blue); }

/* ---- Stat band (SEM / social) ---- */
.mpstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.mpstat { text-align: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-xl); padding: 30px 18px; }
.mpsec--paper .mpstat { background: #fff; border-color: var(--mp-line); }
.mpstat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem,1.3rem + 1.8vw,2.7rem);
  line-height: 1; letter-spacing: -0.02em; color: #fff; }
.mpsec--paper .mpstat__num { color: var(--mp-navy); }
.mpstat__label { display: block; font-size: 12px; color: rgba(255,255,255,.7); margin-top: 10px; font-family: var(--font-mono); letter-spacing: .03em; }
.mpsec--paper .mpstat__label { color: var(--mp-text); }
.mpnote { font-family: var(--font-mono); font-size: 12.5px; color: var(--mp-text); margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.mpsec--navy .mpnote { color: rgba(255,255,255,.7); }
.mpnote [data-lucide] { width: 16px; height: 16px; color: var(--mp-blue); flex: none; }

/* gallery */
.mpgallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.mpgallery .mpshot { margin: 0; }

/* content types + reach */
.mpsocialgrid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,1rem + 3vw,4rem); align-items: start; }
.mplist { list-style: none; margin: clamp(1rem,1vw,1.5rem) 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.mplist li { display: flex; gap: 13px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; }
.mpsec--navy .mplist li { color: rgba(255,255,255,.82); }
.mplist li [data-lucide] { width: 18px; height: 18px; flex: none; color: var(--mp-sky); margin-top: 2px; }
.mpreach { display: flex; flex-direction: column; gap: 14px; }
.mpreachcard { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: 22px 24px; }
.mpreachcard__plat { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; margin: 0 0 14px; }
.mpreachcard__rows { display: flex; gap: 26px; }
.mpreachcard__rows div span { display: block; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.mpreachcard__rows div b { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--mp-sky); }

/* ---- Deliverables ---- */
.mpdeliver { list-style: none; margin: clamp(1.5rem,1rem + 2vw,2.5rem) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.mpdeliver li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--mp-text); }
.mpdeliver li [data-lucide] { width: 18px; height: 18px; flex: none; color: var(--mp-blue); margin-top: 1px; }

/* ---- Awards ---- */
.mpawards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.mpaward { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--mp-line);
  border-radius: var(--radius-xl); padding: 24px 26px; border-left: 3px solid var(--mp-blue); }
.mpaward [data-lucide] { width: 24px; height: 24px; color: var(--mp-blue); flex: none; margin-top: 2px; }
.mpaward span { font-size: 14.5px; line-height: 1.6; color: var(--mp-navy); font-weight: 500; }

/* ---- Insight quote ---- */
.mpinsight { max-width: 880px; margin: 0 auto; text-align: center; }
.mpinsight__mark { font-family: var(--font-display); font-size: 80px; line-height: .5; color: var(--mp-sky); }
.mpinsight__quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem,1.2rem + 2vw,2.6rem);
  line-height: 1.34; color: #fff; margin: 8px 0 28px; letter-spacing: -0.02em; text-wrap: balance; }
.mpinsight__body { font-size: clamp(14.5px,1vw,16px); line-height: 1.9; color: rgba(255,255,255,.78); margin: 0 auto; max-width: 680px; text-align: left; }
.mpinsight__body p { margin: 0 0 16px; } .mpinsight__body p:last-child { margin: 0; }

/* ---- CTA ---- */
.mpcta { position: relative; background: linear-gradient(160deg, var(--mp-blue) 0%, var(--mp-navy) 100%); padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); text-align: center; overflow: hidden; }
.mpcta__inner { position: relative; z-index: 1; }
.mpcta__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem,1.2rem + 2vw,2.7rem); color: #fff; margin: 0 0 28px; text-wrap: balance; }
.mpbtn { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans);
  font-weight: 600; font-size: 16px; color: var(--mp-navy); background: #fff; border: 0; height: 56px; padding: 0 30px;
  border-radius: 999px; box-shadow: 0 16px 32px -14px rgba(0,0,0,.4); transition: all var(--dur-base) var(--ease-out); }
.mpbtn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(0,0,0,.5); }
.mpbtn [data-lucide] { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .mpheadstats { grid-template-columns: 1fr 1fr; }
  .mpstats { grid-template-columns: 1fr 1fr; }
  .mphrslayer { grid-template-columns: 70px 1fr; gap: 18px; }
  .mpgallery { grid-template-columns: 1fr; }
  .mpsocialgrid { grid-template-columns: 1fr; }
  .mpdeliver { grid-template-columns: 1fr; }
  .mpawards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .mpheadstats, .mpstats { grid-template-columns: 1fr; } }
