:root {
  --background: #e0ddd7;
  --text: #111;
  --orange: #ff3e00;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  line-height: 20px;
}
img { border: 0; max-width: 100%; vertical-align: middle; display: inline-block; }
a { color: #000; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
[hidden] { display: none !important; }
h1 { margin: 20px 0 10px; }
h2, p, ul { margin-bottom: 0; }
ul { padding: 0; list-style: none; }
.container { width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; }
.container::before, .container::after, .columns::before, .columns::after { content: ' '; display: table; grid-area: 1 / 1 / 2 / 2; }
.container::after, .columns::after { clear: both; }
.grid { display: grid; grid-row-gap: 16px; grid-column-gap: 7px; grid-template-rows: auto; grid-template-columns: 280px 1fr 120px; grid-auto-columns: 1fr; align-items: start; max-width: 1400px; }
.header { position: relative; }
.logo-vertical { margin: 12px; position: absolute; }
.brand-line { grid-area: 1 / 2 / 2 / 3; display: flex; flex-direction: row; align-items: center; margin-left: -10px; }
.wordmark { margin: 17px 10px; }
.header-line { border-top: 2px solid var(--orange); flex: 1; align-self: flex-start; height: 1px; margin: 29px 5px 0; }
.language-toggle {
  grid-area: 1 / 3 / 2 / 4;
  display: block;
  border: 2px solid var(--orange);
  color: var(--orange);
  text-align: center;
  background: transparent;
  border-radius: 20px;
  width: 73px;
  margin: 13px 0 0;
  padding: 4px 9px;
  font-family: 'Noto Serif TC', serif;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease-in-out, background-color .2s ease-in-out;
}
.language-toggle:hover { background: var(--orange); color: var(--background); }
html[lang='zh-Hant'] .language-toggle { font-family: Poppins, sans-serif; font-weight: 500; }
.introduction { margin-top: 150px; display: flex; }
.logo-round { margin: 40px 17px 13px; position: absolute; }
.intro-content { grid-area: 1 / 2 / 2 / 3; }
.body-text { font-size: 50px; font-weight: 400; line-height: 69px; }
[data-language='zh-Hant'] { font-family: 'Noto Serif TC', serif; }
.services { margin-top: 75px; }
.services-grid { grid-template-columns: 280px 3fr 1fr 80px; justify-items: start; margin-top: 75px; margin-bottom: 114px; }
.columns { margin: 0 -10px; grid-area: 1 / 2 / 2 / 3; justify-self: stretch; }
.column { float: left; width: 50%; min-height: 1px; padding: 0 10px; position: relative; }
.column:first-child { display: flex; }
.section-content { margin: 11px 0; padding: 0 8px; font-size: 18px; }
.section-heading { letter-spacing: .3px; text-transform: uppercase; cursor: default; border-bottom: 1px solid #000; padding-bottom: 4px; font-size: 14px; font-weight: 400; display: inline; }
.services-detail { margin-top: 23px; font-family: Poppins, sans-serif; font-size: 16px; font-weight: 300; line-height: 32px; cursor: default; }
.services-detail[data-language='zh-Hant'] { font-family: 'Noto Serif TC', serif; }
.email-link { margin: 5px 0 20px; font-family: Poppins, sans-serif; font-size: 16px; font-weight: 300; display: block; }
.footer { padding: 30px 0; }
.footer-text { color: #111c; text-transform: uppercase; margin-left: -4px; font-size: 10px; }
.copyright { grid-area: 1 / 3 / 2 / 4; }
.footer-email { grid-area: 1 / 2 / 2 / 3; }
@media (min-width: 1440px) {
  .columns { display: flex; flex-direction: row; }
  .column { flex: 1; display: block; }
  .column:first-child { display: block; }
}
@media (max-width: 991px) {
  .introduction { margin-top: 224px; }
  .grid { grid-template-columns: 130px 1fr 100px; }
  .services-grid { grid-template-columns: 130px 3fr 1fr 80px; }
  .logo-round { margin-top: 28px; }
  .body-text { font-size: 45px; line-height: 50px; }
  .columns { grid-column-end: 4; }
  .footer-text { margin-left: 0; }
}
@media (max-width: 767px) {
  .introduction { margin-top: 120px; }
  .body-text { padding-right: 20px; font-size: 37px; line-height: 40px; }
  .services { margin-top: 50px; }
  .services-grid { margin-top: 50px; }
  .columns { margin-left: 0; margin-right: 0; }
  .column { width: 100%; }
  .section-content { margin-left: -20px; margin-right: -20px; }
  .contact-column { margin-top: 40px; }
}
@media (max-width: 479px) {
  .container { max-width: none; }
  .header { min-height: 114px; }
  .introduction { margin-top: 140px; }
  .logo-vertical { height: 90px; }
  .brand-line { display: none; }
  .logo-round { width: 40px; height: 40px; margin-left: 12px; display: block; inset: 150px auto auto 0; }
  .intro-content { grid-column: 1 / 4; }
  .body-text { padding: 0 20px; font-size: 28px; line-height: 35px; }
  .columns { margin: 0; grid-area: 1 / 1 / 2 / 4; min-width: 0; }
  .section-content { margin-left: 0; margin-right: 0; }
  .services-detail { font-size: 16px; line-height: 28px; }
  .footer-text { margin-left: 14px; }
  .footer-email { grid-area: 1 / 1 / 2 / 2; }
}
/* Keep the original composition while allowing long text to fit small screens. */
@media (max-width: 767px) {
  .grid { min-width: 0; }
  .intro-content, .column, .section-content { min-width: 0; }
  .services-detail { white-space: normal; overflow-wrap: break-word; }
}
@media (max-width: 373px) {
  .grid { grid-template-columns: 110px minmax(0, 1fr) 90px; }
  .services-grid { grid-template-columns: 110px minmax(0, 3fr) minmax(0, 1fr) 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .language-toggle { transition: none; }
}
