:root {
  --paper: #f7f8f5;
  --paper-strong: #ffffff;
  --ink: #18211c;
  --ink-muted: #59625d;
  --line: #cfd5d0;
  --green: #176b4e;
  --red: #c4543f;
  --blue: #315f85;
  --header-height: 76px;
  --page-padding: clamp(20px, 4vw, 64px);
  --content-width: 1440px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Noto Sans SC", "PingFang SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--paper-strong);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: min(100%, var(--content-width));
  height: var(--header-height);
  padding: 0 var(--page-padding);
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--paper-strong);
  background: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 1rem;
  font-weight: 700;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(48px, auto));
  height: 36px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.language-option {
  min-width: 0;
  padding: 0 10px;
  border: 0;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.language-option.is-active {
  color: var(--paper-strong);
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, 92vh);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  align-items: end;
}

.focus-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 160px var(--page-padding) clamp(68px, 10vh, 112px);
}

.eyebrow,
.section-label,
.section-number,
.hero-index,
.principle-index {
  margin: 0;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  width: min(650px, 49vw);
  margin: 26px 0 0;
  flex-direction: column;
  font-family: "Iowan Old Style", "Songti SC", "Noto Serif SC", serif;
  font-weight: 500;
  line-height: 1.04;
}

.company-name-zh,
.company-name-en {
  display: block;
}

html[lang="zh-CN"] .company-name-zh {
  order: 1;
  font-size: clamp(2.65rem, 6vw, 6.7rem);
}

html[lang="zh-CN"] .company-name-en {
  order: 2;
  max-width: 760px;
  margin-top: 24px;
  color: var(--ink-muted);
  font-family: "Avenir Next", "Noto Sans SC", sans-serif;
  font-size: clamp(0.92rem, 1.4vw, 1.28rem);
  font-weight: 500;
  line-height: 1.5;
}

html[lang="en"] .company-name-en {
  order: 1;
  max-width: 900px;
  color: var(--ink);
  font-family: "Iowan Old Style", "Noto Serif", serif;
  font-size: clamp(2.35rem, 4.6vw, 5.1rem);
  font-weight: 500;
  line-height: 1.02;
}

html[lang="en"] .company-name-zh {
  order: 2;
  margin-top: 24px;
  color: var(--ink-muted);
  font-family: "Avenir Next", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(0.92rem, 1.4vw, 1.28rem);
  font-weight: 500;
  line-height: 1.5;
}

.hero-statement {
  max-width: 610px;
  margin: 32px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.72;
}

.contact-link {
  display: inline-flex;
  min-height: 46px;
  margin-top: 34px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  align-items: center;
  gap: 18px;
  color: var(--paper-strong);
  background: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.contact-link:hover {
  color: var(--ink);
  background: var(--paper-strong);
}

.hero-index {
  position: absolute;
  z-index: 2;
  right: var(--page-padding);
  bottom: 32px;
  display: flex;
  gap: 18px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.statement-section,
.company-section,
.privacy-section {
  display: grid;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--page-padding);
  grid-template-columns: 56px minmax(240px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 90px);
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.principles-heading h2 {
  margin: 16px 0 0;
  font-family: "Iowan Old Style", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2rem, 3.8vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.section-copy,
.privacy-copy {
  margin: 34px 0 0;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.85;
}

.principles-section {
  color: var(--paper-strong);
  background: var(--ink);
}

.principles-section > * {
  width: min(100%, var(--content-width));
  margin-right: auto;
  margin-left: auto;
}

.principles-heading {
  display: grid;
  padding: clamp(80px, 11vw, 150px) var(--page-padding) clamp(56px, 7vw, 90px);
  grid-template-columns: 56px 1fr;
  column-gap: clamp(24px, 5vw, 90px);
}

.principles-heading .section-label,
.principles-heading h2 {
  grid-column: 2;
}

.principles-heading .section-number {
  grid-row: 1 / 3;
  color: #91a098;
}

.principles-heading .section-label {
  color: #77c5a5;
}

.principles-list {
  display: grid;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 var(--page-padding) clamp(80px, 11vw, 150px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.principles-list li {
  min-height: 240px;
  padding: 28px 28px 34px;
  border-top: 1px solid #5b655f;
  border-right: 1px solid #5b655f;
}

.principles-list li:first-child {
  border-left: 1px solid #5b655f;
}

.principle-index {
  color: #91a098;
}

.principles-list h3 {
  margin: 76px 0 12px;
  font-family: "Iowan Old Style", "Songti SC", "Noto Serif SC", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.principles-list p {
  max-width: 28ch;
  margin: 0;
  color: #bdc7c1;
  font-size: 0.96rem;
  line-height: 1.65;
}

.company-details {
  margin: 0;
}

.company-details > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.company-details > div:last-child {
  border-bottom: 1px solid var(--line);
}

.company-details dt {
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.company-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.6;
}

.company-details a:hover {
  color: var(--green);
}

.privacy-section {
  border-bottom: 0;
}

.privacy-copy {
  margin-top: 26px;
}

.privacy-copy p {
  margin: 0 0 20px;
}

.site-footer {
  display: flex;
  width: min(100%, var(--content-width));
  min-height: 180px;
  margin: 0 auto;
  padding: 48px var(--page-padding);
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--ink);
}

.site-footer div {
  display: grid;
  gap: 7px;
}

.site-footer strong {
  font-family: "Iowan Old Style", "Songti SC", "Noto Serif SC", serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.site-footer span,
.site-footer p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  :root {
    --header-height: 68px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 128px;
    padding-bottom: 96px;
  }

  .hero h1 {
    width: 100%;
  }

  html[lang="zh-CN"] .company-name-zh {
    font-size: clamp(2.35rem, 12vw, 4.2rem);
  }

  html[lang="zh-CN"] .company-name-en {
    max-width: 31ch;
  }

  html[lang="en"] .company-name-en {
    max-width: 16ch;
    font-size: clamp(2.05rem, 9.4vw, 3rem);
    line-height: 1.04;
  }

  .hero-index {
    right: auto;
    bottom: 24px;
    left: var(--page-padding);
  }

  .statement-section,
  .company-section,
  .privacy-section {
    grid-template-columns: 34px 1fr;
    column-gap: 18px;
  }

  .section-copy,
  .company-details,
  .privacy-copy {
    grid-column: 2;
  }

  .section-copy {
    margin-top: 0;
  }

  .principles-heading {
    grid-template-columns: 34px 1fr;
    column-gap: 18px;
  }

  .principles-list {
    grid-template-columns: 1fr;
  }

  .principles-list li,
  .principles-list li:first-child {
    min-height: 190px;
    border-right: 1px solid #5b655f;
    border-left: 1px solid #5b655f;
  }

  .principles-list li + li {
    border-top: 0;
  }

  .principles-list h3 {
    margin-top: 46px;
  }

  .site-footer {
    min-height: 220px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
  }
}

@media (max-width: 460px) {
  .wordmark > span:last-child {
    display: none;
  }

  .language-switcher {
    grid-template-columns: repeat(2, minmax(44px, auto));
  }

  .hero-statement {
    max-width: 30ch;
  }

  .statement-section,
  .company-section,
  .privacy-section {
    display: block;
  }

  .section-number {
    margin-bottom: 28px;
  }

  .section-copy,
  .company-details,
  .privacy-copy {
    margin-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
