/* Museum Plus — case study module
   Paper-first editorial treatment; ink band for the decision, black band for dark mode. */

:root {
  --mp-paper: #f4f1e8;
  --mp-paper-2: #ece8dc;
  --mp-ink: #121410;
  --mp-muted: #6a6d63;
  --mp-line: rgba(18, 20, 16, 0.16);
  --mp-green: #0f6355;
  --mp-green-soft: #dfe9e3;
  --mp-clay: #b04a2f;
  --mp-serif: "Playfair Display", Georgia, serif;
  --mp-sans: "Instrument Sans", sans-serif;
}

html { scroll-behavior: smooth; }

body.mp-case {
  /* 默认：跟随站点深色主题 */
  --mp-paper: #06080c;
  --mp-paper-2: #0b0f16;
  --mp-ink: #c2cfe0;
  --mp-body: #9aa7b8;
  --mp-muted: #8794a6;
  --mp-line: rgba(255, 255, 255, 0.14);
  --mp-green: #8fcaa8;
  --mp-green-soft: rgba(143, 202, 168, 0.14);
  --mp-clay: #d97a5f;
  --mp-card: #0b0f16;
  --mp-nav: rgba(6, 8, 12, 0.86);
  background: var(--mp-paper);
  color: var(--mp-ink);
  font-family: var(--mp-sans);
  transition: background-color .3s ease, color .3s ease;
}

body.mp-case.mode-arch {
  /* 浅色（Architecture 模式） */
  --mp-paper: #f7f6f2;
  --mp-paper-2: #ece8dc;
  --mp-ink: #2c2c2c;
  --mp-body: #4a4d44;
  --mp-muted: #6a6d63;
  --mp-line: rgba(18, 20, 16, 0.16);
  --mp-green: #0f6355;
  --mp-green-soft: #dfe9e3;
  --mp-clay: #b04a2f;
  --mp-card: #ffffff;
  --mp-nav: rgba(247, 246, 242, 0.92);
}

.mp-case nav {
  background: var(--mp-nav);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--mp-line);
}

.mp-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.mp-kicker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 148px;
  color: var(--mp-muted);
  font-size: 13px;
  letter-spacing: 0.14em;
}

/* ---------- hero ---------- */
.mp-hero { border-bottom: 1px solid var(--mp-line); }

.mp-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0 48px;
}

.mp-eyebrow,
.mp-section-label {
  color: var(--mp-green);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mp-hero h1 {
  margin: 18px 0 26px;
  font-size: clamp(56px, 7.6vw, 112px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.mp-hero h1 em,
.mp-section h2 em,
.mp-manifesto blockquote em {
  font-family: var(--mp-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--mp-green);
}

.mp-deck {
  max-width: 560px;
  margin: 0;
  color: #3d4038;
  font-size: 19px;
  line-height: 1.6;
}

.mp-actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 38px; }

.mp-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--mp-ink);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--mp-line);
}

.mp-actions .mp-primary {
  padding: 0 18px;
  border: 1px solid var(--mp-ink);
  background: var(--mp-ink);
  color: var(--mp-paper);
}

/* stacked phones */
.mp-phone { margin: 0; justify-self: center; width: min(330px, 78%); }
.mp-phone video {
  display: block;
  width: 100%;
  height: auto;
  border: 9px solid #111315;
  border-radius: 46px;
  background: #0b0c0a;
  box-shadow: 0 34px 80px rgba(18, 20, 16, 0.22);
}
.mp-phone figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--mp-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.mp-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--mp-line);
}
.mp-facts div { padding: 22px 20px 30px 0; border-right: 1px solid var(--mp-line); }
.mp-facts div + div { padding-left: 20px; }
.mp-facts div:last-child { border-right: 0; }
.mp-facts dt { margin-bottom: 8px; color: var(--mp-muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.mp-facts dd { margin: 0; font-size: 14px; line-height: 1.5; }

/* ---------- generic section ---------- */
.mp-section { padding: 120px 0; border-bottom: 1px solid var(--mp-line); }
.mp-section-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }

.mp-section h2 {
  margin: -12px 0 0;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.mp-intro { max-width: 780px; margin: 22px 0 0; color: var(--mp-body); font-size: 17px; line-height: 1.72; }

.mp-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; max-width: 820px; margin-top: 30px; }
.mp-columns p { margin: 0; color: var(--mp-body); font-size: 16px; line-height: 1.72; }

/* problem trio */
.mp-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 66px;
  background: var(--mp-line);
  border: 1px solid var(--mp-line);
}
.mp-trio article { min-height: 240px; padding: 26px; background: var(--mp-paper); }
.mp-trio span { color: var(--mp-green); font-size: 12px; letter-spacing: 0.13em; }
.mp-trio h3 { margin: 64px 0 10px; font-size: 21px; font-weight: 500; line-height: 1.25; }
.mp-trio p { margin: 0; color: var(--mp-muted); font-size: 14px; line-height: 1.65; }

/* ---------- ink band ---------- */
.mp-manifesto {
  padding: 104px 0;
  background: var(--mp-ink);
  color: var(--mp-paper);
  border-bottom: 1px solid var(--mp-line);
}
.mp-manifesto span { font-size: 12px; letter-spacing: 0.16em; color: #a9b3a9; }
.mp-manifesto blockquote {
  max-width: 1040px;
  margin: 26px 0 0;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.mp-manifesto blockquote em { color: #8fcaa8; }

/* ---------- decision ---------- */
.mp-decision { padding-top: 110px; }

.mp-option {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 44px 0;
  border-top: 1px solid var(--mp-line);
}
.mp-option:first-of-type { border-top: 0; }
.mp-option h3 { margin: 0 0 12px; font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.mp-option p { margin: 0 0 12px; color: var(--mp-body); font-size: 15px; line-height: 1.7; }
.mp-option figure { margin: 22px 0 0; }
.mp-option img { display: block; width: 100%; max-width: 700px; height: auto; margin-inline: auto; }
.mp-option figcaption { margin-top: 14px; color: var(--mp-muted); font-size: 12px; line-height: 1.6; text-align: center; }

.mp-verdict {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--mp-line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mp-verdict.cut { color: var(--mp-clay); border-color: rgba(176, 74, 47, 0.4); }
.mp-verdict.ship { color: var(--mp-green); border-color: rgba(15, 99, 85, 0.4); background: var(--mp-green-soft); }

/* ---------- screens ---------- */
.mp-screens { padding: 110px 0 96px; }
.mp-screen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 18px;
  margin-top: 56px;
}
.mp-screen { margin: 0; }
.mp-shot {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.mp-screen:hover .mp-shot { transform: translateY(-6px); }
.mp-screen figcaption { margin-top: 12px; }
.mp-screen strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.mp-screen span { display: block; margin-top: 3px; color: var(--mp-muted); font-size: 12px; line-height: 1.45; }


/* ---------- 03 / dark gallery ---------- */
.mp-screens--dark {
  background: #0b0c0a;
  color: #f0eee6;
  padding-bottom: 24px;
}
.mp-screens--dark .mp-section-label { color: #8fcaa8; }
.mp-screens--dark h2 { color: #f0eee6; }
.mp-screens--dark h2 em { color: #8fcaa8; }
.mp-screens--dark .mp-intro { color: #b9bdb2; }
.mp-screens--dark .mp-screen strong { color: #f0eee6; }
.mp-screens--dark .mp-screen span { color: #9a9f94; }
.mp-screens--dark .mp-gloss { color: #7f8a80; }

.mp-gloss {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* ---------- dark ---------- */
.mp-dark {
  padding: 64px 0 110px;
  background: #0b0c0a;
  color: #f0eee6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mp-dark .mp-section-label { color: #8fcaa8; }
.mp-dark h2 { color: #f0eee6; }
.mp-dark h2 em { color: #8fcaa8; }
.mp-dark .mp-intro { color: #b9bdb2; }
.mp-dark .mp-screen-grid { margin-top: 44px; grid-template-columns: repeat(3, 1fr); max-width: 1180px; }

.mp-dark .mp-screen span { color: #9a9f94; }

.mp-contrast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.mp-contrast div { padding: 20px 22px; background: #0b0c0a; }
.mp-contrast b { display: block; font-family: var(--mp-serif); font-size: 34px; font-weight: 400; color: #8fcaa8; }
.mp-contrast span { display: block; margin-top: 6px; color: #9a9f94; font-size: 12px; letter-spacing: 0.06em; }

/* ---------- build ---------- */
.mp-spec { margin-top: 52px; border-top: 1px solid var(--mp-line); }
.mp-spec div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 18px 0;
  border-bottom: 1px solid var(--mp-line);
}
.mp-spec dt { color: var(--mp-muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.mp-spec dd { margin: 0; font-size: 15px; line-height: 1.6; }
.mp-spec code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* ---------- limits ---------- */
.mp-limits { margin-top: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--mp-line); border: 1px solid var(--mp-line); }
.mp-limits article { padding: 24px; background: var(--mp-paper); }
.mp-limits strong { display: block; margin-bottom: 8px; font-size: 14px; }
.mp-limits p { margin: 0; color: var(--mp-muted); font-size: 13px; line-height: 1.65; }

/* ---------- cta + next ---------- */
.mp-cta { padding: 96px 0; background: var(--mp-green); color: #f2f5ee; }
.mp-cta span { font-size: 12px; letter-spacing: 0.16em; }
.mp-cta h2 { margin: 18px 0 12px; font-size: clamp(32px, 4.2vw, 54px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.mp-cta p { max-width: 620px; margin: 0 0 26px; color: #d6e4d9; font-size: 16px; line-height: 1.65; }
.mp-cta a { display: inline-flex; min-height: 46px; align-items: center; padding: 0 20px; border: 1px solid #f2f5ee; color: #f2f5ee; font-size: 13px; text-decoration: none; }

.mp-next { padding: 54px 0; border-bottom: 1px solid var(--mp-line); }
.mp-next .mp-shell { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; justify-content: space-between; }
.mp-next span { color: var(--mp-muted); font-size: 12px; letter-spacing: 0.14em; }
.mp-next a { color: var(--mp-ink); font-size: 22px; text-decoration: none; border-bottom: 1px solid var(--mp-line); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .mp-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .mp-stack { height: 520px; }
  .mp-section-grid, .mp-option, .mp-spec div { grid-template-columns: 1fr; gap: 20px; }
  .mp-section h2 { margin-top: 0; }
  .mp-screen-grid { grid-template-columns: repeat(3, 1fr); }
  .mp-trio { grid-template-columns: 1fr; }
  .mp-trio h3 { margin-top: 34px; }
}

@media (max-width: 720px) {
  .mp-shell { width: min(100% - 36px, 1180px); }
  .mp-kicker { padding-top: 112px; font-size: 11px; }
  .mp-hero-grid { padding-top: 40px; }
  .mp-stack { height: 480px; }
  .mp-stack .s1, .mp-stack .s3 { display: none; }
  .mp-stack .s2 { left: 50%; transform: translateX(-50%); width: 62%; top: 0; }
  .mp-deck { font-size: 17px; }
  .mp-facts { grid-template-columns: 1fr 1fr; }
  .mp-facts div { border-right: 0; padding: 18px 0; }
  .mp-facts div + div { padding-left: 0; }
  .mp-section, .mp-screens, .mp-dark, .mp-decision { padding: 72px 0; }
  .mp-screen-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .mp-contrast, .mp-limits { grid-template-columns: 1fr; }
  .mp-columns { grid-template-columns: 1fr; gap: 20px; }
  .mp-manifesto { padding: 72px 0; }
}

/* scroll reveal + hover lift */
.mp-screen {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.mp-screen.is-in { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  .mp-screen { opacity: 1; transform: none; transition: none; }
  .mp-screen .frame { transition: none; }
  .mp-phone video { /* keep the loop; it is the content */ }
}

.mp-lang { padding-top: 36px; }
.mp-lang .mp-contrast { margin-top: 40px; }

.mp-lang .mp-screen-grid { grid-template-columns: repeat(3, 1fr); max-width: 1180px; }
@media (max-width: 720px) { .mp-lang .mp-screen-grid, .mp-dark .mp-screen-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 03 / sticky stage ---------- */
.mp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(40px, 6vw, 96px);
  margin-top: 64px;
  align-items: start;
}
.mp-stage-steps { display: flex; flex-direction: column; }
.mp-step {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0 56px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 26px;
  position: relative;
}
.mp-step::before {
  content: "";
  position: absolute;
  left: -1px; top: 50%;
  width: 2px; height: 0;
  background: #8fcaa8;
  transition: height .4s ease;
}
.mp-step.is-active::before { height: 44px; transform: translateY(-50%); top: 50%; }
.mp-step-num {
  font-size: 12px;
  letter-spacing: .16em;
  color: #8fcaa8;
}
.mp-step h3 { margin: 10px 0 8px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.02em; color: #f0eee6; }
.mp-step p { margin: 0; max-width: 34ch; color: #9a9f94; font-size: 15px; line-height: 1.65; }
.mp-step { opacity: .34; transition: opacity .4s ease; }
.mp-step.is-active { opacity: 1; }
.mp-step.is-active h3 { color: #fff; }

.mp-stage-device { position: sticky; top: 92px; }
.mp-stage-stack { position: relative; width: 100%; max-width: 380px; margin-inline: auto; }
.mp-stage-img {
  position: absolute; inset: 0;
  width: 100%; height: auto;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.mp-stage-img.is-active { position: relative; opacity: 1; }
.mp-stage-meta {
  display: flex; justify-content: space-between; gap: 16px;
  max-width: 380px; margin: 18px auto 0;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #7f8a80;
}
.mp-grid { margin-top: 40px; }

@media (max-width: 900px) {
  .mp-stage { display: none; }
}
@media (min-width: 901px) {
  .mp-grid { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mp-stage-img { transition: none; }
  .mp-step::before { transition: none; }
}
