/* MML uses the portfolio's shared typography, language and navigation. */
.mml-page { --accent: #51534e; --accent-dark: var(--ink); }
.mml-page figure { margin: 0; min-width: 0; }
.mml-page img { display: block; width: 100%; height: auto; object-fit: contain; }
.mml-page figcaption { margin-top: .65rem; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.mml-page [id] { scroll-margin-top: 6rem; }
.mml-page :focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.mml-page .mml-hero { padding-top: clamp(2.8rem, 5vw, 4.5rem); }
.mml-hero .case-hero-copy { grid-template-columns: 1.2fr .8fr; gap: 1.2rem 4rem; margin-bottom: 2.3rem; }
.mml-hero .case-kicker { margin-bottom: .6rem; }
.mml-page .mml-hero h1 { font-family: var(--sans); font-size: clamp(2.9rem, 5.8vw, 5.6rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.05; max-width: 48rem; text-wrap: balance; }
.mml-identifier { margin: .9rem 0 0; font-size: .8rem; letter-spacing: .15em; color: var(--muted); }
.mml-hero .case-deck { font-size: clamp(1.12rem, 1.7vw, 1.45rem); line-height: 1.45; }
.mml-status { margin-bottom: .1rem; font-size: .82rem; color: var(--muted); }
.mml-hero-visual { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1rem, 3vw, 2.5rem); background: var(--paper-deep); }
.mml-screen img { border: 1px solid #d4d1ca; background: white; border-radius: 3px; }
.mml-screen > a { display: block; cursor: zoom-in; }
.mml-hero-site { max-width: 16rem; justify-self: center; }
.mml-hero-site img { border-radius: 2px; }
.mml-overview { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: 1.8rem 2rem; border-bottom: 1px solid var(--rule); }
.mml-overview p { font-size: .94rem; line-height: 1.65; margin-bottom: 0; }
.mml-overview .mml-role { font-size: .7rem; line-height: 1.7; margin-bottom: .85rem; color: var(--muted); }
.mml-overview > div:last-child { align-self: end; }
.mml-section { padding-block: clamp(3.2rem, 5vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.mml-page .section-heading { grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1.4rem; margin-bottom: 1.8rem; }
.mml-page .section-heading h2 { font-family: var(--sans); font-size: clamp(2rem, 3.4vw, 3.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; text-wrap: balance; max-width: 50rem; }
.mml-page .section-number { padding-top: .5rem; }
.mml-intro { max-width: 48rem; color: var(--muted); line-height: 1.65; margin: 1rem 0 0; }
.mml-page h3 { margin-bottom: .65rem; font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.25; }
.mml-page .mini-label { margin-bottom: .7rem; font-size: .67rem; color: var(--muted); letter-spacing: .065em; }
.mml-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.mml-mode-mark { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .8rem; color: var(--ink); }
.mml-mode-mark svg { width: 1.4rem; height: 1.4rem; }
.mml-mode-mark.museum { background: #ffe500; }
.mml-mode-mark.library { background: #ed181b; }
.mml-mode-mark.school { background: #174aac; }
.mml-mode h3 { font-size: 1.3rem; }
.mml-mode p { margin: 0; font-size: .83rem; color: var(--muted); line-height: 1.5; }
.mml-application { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 2rem; }
.mml-application figure { max-width: none; }
.mml-application > div { min-width: 0; }
.mml-application p { font-size: .94rem; line-height: 1.65; }
.mml-digital-structure { padding-block: 1.4rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.mml-structure-label { font-size: .94rem; margin-bottom: 1.3rem; }
.mml-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; padding: 0; list-style: none; margin: 0; }
.mml-paths li { display: grid; grid-template-columns: 1fr auto; }
.mml-paths strong { font-size: 1rem; font-weight: 600; }
.mml-paths li > span { color: var(--muted); }
.mml-paths p { grid-column: 1 / -1; margin: .6rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.mml-supporting-paths { margin: 1.4rem 0 0; font-size: .75rem; color: var(--muted); }
.mml-supporting-paths > span + span { margin-left: .6rem; }
.mml-anchor { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-block: 2.7rem; }
.mml-anchor figure { max-width: 768px; justify-self: end; }
.mml-anchor-copy p:not(.mini-label) { color: var(--muted); line-height: 1.65; font-size: .94rem; }
.mml-screen-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; align-items: start; }
.mml-puzzle { border: 1px solid var(--rule); padding: clamp(1.2rem, 2.7vw, 2rem); background: #ebe8e0; }
.mml-puzzle h3 { margin-bottom: 1.5rem; }
.mml-puzzle-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; list-style: none; padding: 0 0 1.5rem; margin: 0; border-bottom: 1px solid var(--rule); }
.mml-puzzle-flow li { position: relative; }
.mml-puzzle-flow li:not(:last-child)::after { content: '→'; position: absolute; top: 0; right: -.95rem; color: var(--muted); }
.mml-step-number { display: block; color: var(--muted); font-size: .65rem; margin-bottom: .9rem; }
.mml-puzzle-flow strong { display: block; font-size: .94rem; font-weight: 550; line-height: 1.4; }
.mml-puzzle-flow p { margin: .6rem 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.mml-puzzle-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: 1.8rem; }
.mml-story > p:not(.mini-label) { max-width: 27rem; font-size: .87rem; line-height: 1.65; }
.mml-object-references { display: flex; gap: 1.6rem; align-items: end; margin-top: 1rem; }
.mml-object-references img { width: auto; height: clamp(6rem, 30vw, 9rem); max-width: none; }
.mml-upload { max-width: 32rem; justify-self: end; }
.mml-puzzle-insight { margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.6; max-width: 100%; }
.mml-cross-channel { margin-top: 2.5rem; }
.mml-extension-copy { max-width: 46rem; color: var(--muted); font-size: .91rem; line-height: 1.65; margin-bottom: 1.3rem; }
.mml-touchpoint-collage { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.mml-physical-touchpoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.mml-touchpoint-collage figure { min-width: 0; }
.mml-closing { padding-block: 2.5rem 1rem; }
.mml-closing > p { max-width: 47rem; color: var(--muted); font-size: .97rem; line-height: 1.7; }
.mml-closing .back-to-work { margin-top: 1.8rem; border-color: var(--rule); font-size: clamp(1.15rem, 2vw, 1.6rem); }
.mml-closing .back-to-work i { color: var(--muted); }
.mml-project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.mml-project-nav a { display: flex; flex-direction: column; align-items: start; }
.mml-project-nav a:last-child { align-items: end; text-align: right; }
.mml-project-nav strong { font-weight: 500; font-size: 1.05rem; }
.mml-project-nav a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
html[lang="zh-CN"] .mml-page .mml-hero h1 { letter-spacing: -.025em; line-height: 1.2; }
html[lang="zh-CN"] .mml-page .section-heading h2 { letter-spacing: -.015em; line-height: 1.3; }
@media (max-width: 900px) {
  .mml-hero .case-hero-copy { grid-template-columns: 1fr; gap: 1.2rem; }
  .mml-hero .case-deck { max-width: 40rem; }
  .mml-hero-visual { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1.1rem; }
  .mml-overview { gap: 2rem; }
  .mml-application { gap: 2rem; }
  .mml-anchor { grid-template-columns: 1fr; gap: 1rem; }
  .mml-anchor-copy { max-width: 38rem; }
  .mml-anchor figure { width: min(100%, 768px); justify-self: center; }
  .mml-screen-pair { grid-template-columns: 1fr; max-width: 768px; margin-inline: auto; gap: 1.6rem; }
  .mml-puzzle-flow { gap: 1.1rem; }
  .mml-puzzle-evidence { gap: 1.8rem; }
  .mml-touchpoint-collage { grid-template-columns: 1fr; }
  .mml-social-touchpoint { width: min(100%, 20rem); justify-self: center; }
}
@media (max-width: 600px) {
  .mml-page .mml-hero h1 { font-size: clamp(2.6rem, 10.5vw, 3.8rem); }
  .mml-hero .case-hero-copy { margin-bottom: 1.6rem; }
  .mml-hero-visual { grid-template-columns: 1fr; padding: .8rem; }
  .mml-hero-site { width: min(100%, 12rem); margin-top: .5rem; }
  .mml-overview { grid-template-columns: 1fr; gap: 1rem; }
  .mml-page .section-heading { grid-template-columns: 1fr; gap: .7rem; }
  .mml-page .section-number { padding-top: 0; }
  .mml-page .section-heading h2 { font-size: 2rem; }
  .mml-modes { grid-template-columns: 1fr; gap: 1.3rem; }
  .mml-mode { display: grid; grid-template-columns: 2rem 1fr; gap: 0 .8rem; }
  .mml-mode-mark { margin-top: 0; }
  .mml-mode h3 { margin-bottom: .5rem; }
  .mml-mode p { grid-column: 2; }
  .mml-application { grid-template-columns: 1fr; gap: 1rem; }
  .mml-application > div { max-width: none; }
  .mml-application > div p { margin-bottom: .5rem; }
  .mml-paths { grid-template-columns: 1fr; gap: 1.2rem; }
  .mml-paths p { margin-top: .35rem; }
  .mml-anchor { margin-block: 1.8rem; }
  .mml-puzzle-flow { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2rem; }
  .mml-puzzle-flow li { display: grid; grid-template-columns: 1.8rem 1fr; gap: 0 .5rem; }
  .mml-step-number { margin-top: .3rem; }
  .mml-puzzle-flow p { grid-column: 2; margin-top: .35rem; }
  .mml-puzzle-flow li:not(:last-child)::after { content: '↓'; top: auto; bottom: -1.3rem; left: 2.3rem; right: auto; }
  .mml-puzzle-evidence { grid-template-columns: 1fr; gap: 1.3rem; }
  .mml-upload { width: 100%; }
  .mml-touchpoint-collage { grid-template-columns: 1fr; gap: 1.5rem; }
  .mml-physical-touchpoints { grid-template-columns: 1fr; gap: 1.5rem; }
  .mml-social-touchpoint { width: min(100%, 18rem); }
  .mml-project-nav { gap: 1.3rem; }
  .mml-project-nav .mini-label { font-size: .62rem; }
  .mml-project-nav strong { font-size: .95rem; }
}

/* Site evidence and spatial concepts remain inside the existing first section. */
.mml-site-findings { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-bottom: 1.8rem; }
.mml-site-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.mml-findings-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.mml-findings-list h3 { font-size: 1rem; margin-bottom: .35rem; letter-spacing: -.015em; }
.mml-findings-list p { color: var(--muted); font-size: .86rem; line-height: 1.6; margin: 0; }
.mml-mode-intro { max-width: 52rem; font-size: .91rem; line-height: 1.65; margin-bottom: 1.2rem; color: var(--muted); }
.mml-application .mml-display-copy { font-size: .86rem; line-height: 1.6; color: var(--muted); margin: .75rem 0 0; max-width: 34rem; }
.mml-puzzle .mml-puzzle-status { margin-bottom: .55rem; }
@media (max-width: 900px) {
  .mml-site-findings { grid-template-columns: 1fr; gap: 1.4rem; }
  .mml-findings-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
  .mml-site-evidence { max-width: 44rem; }
}
@media (max-width: 600px) {
  .mml-findings-list { grid-template-columns: 1fr; gap: .95rem; }
  .mml-site-evidence { gap: .8rem; }
  .mml-mode { align-items: start; }
}

/* Final MML-only caption and auxiliary-copy polish. */
.mml-mode-note { margin: 1.1rem 0 0; max-width: 58rem; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.mml-page .mml-puzzle-status, .mml-page .mml-story .mini-label { font-size: .75rem; line-height: 1.6; }
