/* Small language control; leave existing page layout untouched. */
.site-language { display:inline-flex;align-items:center;gap:5px;position:relative;z-index:301;white-space:nowrap;font:400 10px 'DM Mono',monospace;letter-spacing:.05em;color:#e8e0d0;mix-blend-mode:normal; }
.site-language button {border:1px solid rgba(232,224,208,.45);background:rgba(10,10,8,.65);color:#e8e0d0;padding:7px 8px;font:inherit;cursor:pointer;min-width:34px;}
.site-language button[aria-pressed="true"] {background:#e8e0d0;color:#0a0a08;border-color:#e8e0d0;}
.site-language button:focus-visible {outline:2px solid #c0392b;outline-offset:2px;}
@media(max-width:560px){nav{gap:.5rem;padding:1.2rem .85rem!important;}nav .nav-links{gap:.65rem!important;}nav .nav-links a{font-size:.53rem!important;letter-spacing:.05em!important;} .site-language{gap:2px;font-size:9px}.site-language button{padding:6px 5px;min-width:25px}}

/* Keep the original navigation grouped with the new language switch. */
nav .nav-links{margin-left:auto;}
nav .site-language{margin-left:1.1rem;flex-shrink:0;}
@media(max-width:560px){nav .site-language{margin-left:.3rem;}}

/* Quiet social links, integrated into the existing footer. */
footer .footer-social { display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.6rem 1.2rem; }
footer .footer-social-label {font-family:var(--mono,'DM Mono',monospace);font-size:.56rem;letter-spacing:.12em;text-transform:uppercase;color:#9e9488;}
footer .footer-social a {font-family:var(--mono,'DM Mono',monospace);font-size:.62rem;letter-spacing:.06em;color:#e8e0d0;text-decoration:none;border-bottom:1px solid rgba(232,224,208,.35);padding:.3rem 0;transition:color .2s,border-color .2s;}
footer .footer-social a:hover,footer .footer-social a:focus-visible{color:#e87469;border-color:#e87469;}
footer .footer-social a span{margin-left:.25rem;}
@media(max-width:700px){footer .footer-social{width:100%;order:-1;justify-content:flex-start;}footer{gap:1.2rem;}}

/* Homepage contact links: align all channels with the existing IG / Email rows. */
.contact-heading-zh{display:none;}
html[lang="zh-Hant"] .contact-heading-en{display:none;}
html[lang="zh-Hant"] .contact-heading-zh{display:block;font-style:normal;line-height:1.12;letter-spacing:.02em;}
html[lang="zh-Hant"] .contact-heading-zh em{font-style:normal;color:#c0392b;}
/* Prevent Chinese '無限' from being split across lines. */
html[lang="zh-Hant"] .about-text h2{font-size:clamp(2rem,3.2vw,3.55rem);}
html[lang="zh-Hant"] .about-text h2 em{white-space:nowrap;display:inline-block;}
@media(max-width:560px){html[lang="zh-Hant"] .about-text h2{font-size:clamp(1.75rem,7vw,2.5rem);}}

/* 首頁主視覺：中英版採用獨立標題，避免中文被英文斷行拆開 */
.hero-heading-zh { display: none; }
html[lang="zh-Hant"] .hero-heading-en { display: none; }
html[lang="zh-Hant"] .hero-heading-zh {
  display: block;
  font-style: normal;
  font-size: clamp(3.1rem, 8.2vw, 8rem);
  line-height: 1.08;
  letter-spacing: .02em;
}
html[lang="zh-Hant"] .hero-heading-zh em {
  color: var(--red-bright);
  font-style: normal;
  white-space: nowrap;
}
@media (max-width: 560px) {
  html[lang="zh-Hant"] .hero-heading-zh {
    font-size: clamp(2.65rem, 10vw, 4rem);
    line-height: 1.2;
  }
}

/* Keep every navigation action reachable on narrow phones. */
@media(max-width:380px){
  nav{flex-wrap:wrap;}
  nav .nav-links{order:3;flex-basis:100%;justify-content:flex-end;}
  nav .site-language{margin-left:auto;}
}
