/* One type system across both languages. Fonts are served locally. */
@font-face {
  font-family: "Manrope";
  src: url('/assets/fonts/Manrope-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bp-font-body: "Manrope", "MC TC", sans-serif;
  --bp-font-mono: "MC Mono", "MC TC", monospace;
  --sans: var(--bp-font-body);
  --mono: var(--bp-font-mono);
}
html body, html #app, html #app :where(*), #dialog-root, #toast, #chat-root {
  font-family: var(--bp-font-body) !important;
  font-synthesis: none;
}
html #app :is(code,pre,kbd,samp,.eyebrow,.mk-eyebrow,.section-index,.mc-kicker,.mc-art-label,.mc-dimension,.mc-scroll-note,.mc-progress,.op-art-index,.bf-workflow-meta,.bf-step-number) {
  font-family: var(--bp-font-mono) !important;
}
html #app :is(input,textarea,select,button) { font-family: var(--bp-font-body) !important; }
html #app :is(h1,h2,h3,h4,p,li) { text-wrap: pretty; }
html:lang(zh-Hant) #app :is(h1,h2) { font-weight: 600; letter-spacing: -.01em; }
html:lang(zh-Hant) #app :is(p,li,label) { letter-spacing: .01em; }
html:lang(en) #app :is(h1,h2) { font-weight: 650; letter-spacing: -.035em; }
html:lang(en) #app :is(p,li,label) { letter-spacing: 0; }
html:lang(en) .mc-site .mc-copy h1,
html:lang(en) .mc-site .mc-copy h2 {
  font-size: clamp(44px, 5.25vw, 88px);
  line-height: 1.08;
  white-space: normal;
}
html:lang(en) .mc-copy { width: 49%; max-width: 700px; }
html:lang(en) .mc-subtitle { letter-spacing: 0; line-height: 1.65; }
html:lang(en) .mc-inner :is(h1,h2,h3) { overflow-wrap: normal; word-break: normal; }
html:lang(en) .bf-stage { min-width: 0; }
html #app .site-language-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-height: 0 !important; flex: 0 0 38px; padding: 0;
  border: 1px solid rgba(203,167,106,.36); border-radius: 50%;
  background: rgba(203,167,106,.055); color: inherit;
  font-size: 11px; font-weight: 550; line-height: 1; letter-spacing: .02em;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
html #app .site-language-toggle::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
html #app .site-language-toggle:hover { background: rgba(203,167,106,.16); border-color: #cba76a; transform: translateY(-1px); }
html #app .site-language-toggle:focus-visible { outline: 2px solid #cba76a; outline-offset: 4px; }
html #app .mc-light .site-language-toggle { color: #645845; border-color: #d4c7b0; background: rgba(255,254,251,.35); }
.nav-links .site-language-toggle { color: inherit; }
@media (max-width: 800px) {
  html:lang(en) .mc-header .mc-nav { gap: 19px; }
}
@media (max-width: 680px) {
  html .mc-header .mc-nav { gap: 10px; }
  html:lang(en) .mc-header .mc-nav { gap: 10px; font-size: 10px; }
  html #app .mc-header .site-language-toggle { width: 32px; height: 32px; min-height: 32px; flex-basis: 32px; font-size: 10px; }
  html:lang(en) .mc-site .mc-copy { width: 100%; }
  html:lang(en) .mc-site .mc-copy h1,
  html:lang(en) .mc-site .mc-copy h2 { font-size: clamp(38px, 8.8vw, 54px); max-width: 440px; }
  html:lang(en) .mc-site .mc-copy em { display: inline; }
}
@media (max-width: 480px) {
  html:lang(en) .mc-header .mc-brand.brand { font-size: 15px; gap: .5em; }
  html:lang(en) .mc-header .mc-nav { gap: 8px; font-size: 9.5px; }
  html:lang(en).is-motion-site .mc-site .mc-header { padding-inline: 12px; }
  html:lang(en).is-motion-site .mc-site .mc-contact { padding-inline: 9px; font-size: 10px; }
  html:lang(zh-Hant) .mc-header .mc-brand.brand { font-size: 16px; }
}
@media (max-width: 360px) {
  html:lang(en) .mc-header .mc-brand.brand { font-size: 12px; }
  html:lang(en) .mc-header .mc-nav { gap: 5px; font-size: 9px; }
  html:lang(en).is-motion-site .mc-site .mc-contact { padding-inline: 6px; font-size: 9px; }
  html #app .mc-header .site-language-toggle { width: 28px; height: 28px; min-height: 28px; flex-basis: 28px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .site-language-toggle { transition: none; } }

/* Typography refinement only: keep the existing layouts, colours and motion. */
html #app :is(h1,h2,h3,h4) em { font-weight: inherit; }
html #app :is(h3,h4,.op-art-title) { font-weight: 600; }
html:lang(zh-Hant) #app :is(h3,h4,.op-art-title) { letter-spacing: -.005em; }
html:lang(en) #app :is(h3,h4,.op-art-title) { letter-spacing: -.025em; }
html #app :is(.mc-nav,.nav-links,.mc-contact,.btn,.site-language-toggle) { font-weight: 600; }
html #app .mc-nav { font-size: 14px; }
html #app :is(.mc-subtitle,.bf-flow-head p,.bf-step-desc,.bf-ending p,.op-designer-copy>p,.op-section-head>p,.op-process-list p,.op-fee>p:not(.op-fee-note),.op-closing p,.contact-intro p,.bpd-lead,.bpd-main p:not(.caption),.studio-page-hero p,.studio-prose p) {
  font-size: 16px; font-weight: 400; line-height: 1.8;
}
html #app :is(.bf-flow-summary p,.bf-io dd,.bf-sheet-lines li,.op-art-caption,.op-fee li,.op-designer-output li,.contact-art p:not(.caption),.contact-process p) {
  font-size: 14px; font-weight: 400; line-height: 1.85;
}
html #app :is(.bf-stage strong,.contact-form .field label) { font-weight: 600; }
html #app .contact-form .field label { font-size: 13px; }
/* The original wordmark is a brand asset, with its own carefully placed i dot. */
html #app .brand, html #app .brand * { font-family: "MC Sans", "MC TC", sans-serif !important; }
@media (max-width: 680px) {
  html #app :is(.mc-subtitle,.bf-flow-head p,.bf-step-desc,.bf-ending p,.op-designer-copy>p,.op-section-head>p,.op-process-list p,.op-fee>p:not(.op-fee-note),.op-closing p,.contact-intro p,.bpd-lead,.bpd-main p:not(.caption),.studio-page-hero p,.studio-prose p) { font-size: 14px; }
  html #app .mc-nav { font-size: 11px; font-weight: 550; }
  html:lang(en) #app .mc-nav { font-size: 10px; }
}
@media (max-width: 480px) {
  html:lang(en) #app .mc-nav { font-size: 9.5px; }
}
@media (max-width: 360px) {
  html:lang(en) #app .mc-nav { font-size: 8.5px; letter-spacing: -.015em; }
  html:lang(en) #app .mc-nav>.mc-contact { font-size: 8.5px; }
  html:lang(zh-Hant) .mc-header .mc-brand.brand { font-size:14px; gap:.5em; }
  html:lang(zh-Hant) #app .mc-nav { font-size:10px; gap:6px; }
  html:lang(zh-Hant) .mc-header .mc-nav>a { white-space:nowrap; }
  html:lang(zh-Hant).is-motion-site .mc-site .mc-contact { padding-inline:9px; }
}

/* All homepage scenes share the same responsive heading scale. */
html.is-motion-home .mc-copy :is(h1,h2){white-space:normal}
html.is-motion-home .mc-mini-flow{gap:12px;letter-spacing:.04em;flex-wrap:wrap}
html.is-motion-home .mc-mini-flow i{width:20px;flex-shrink:0}
/* Keep each Chinese clause on its own line, using the explicit break. */
html:lang(zh-Hant).is-motion-home #mc-title-1 {
  width:max-content;
  max-width:none;
  white-space:nowrap;
}
@media (max-width:680px) {
  html:lang(zh-Hant).is-motion-home #app .mc-copy :is(h1,h2) {
    font-size:clamp(28px,8.5vw,48px);
  }
}
