:root {
  --ink: #17201d;
  --muted: #65716d;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #d9ded8;
  --sage: #66766d;
  --moss: #394b42;
  --steel: #a8b2b3;
  --gold: #b7a16a;
  --shadow: 0 24px 70px rgba(23, 32, 29, 0.13);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 245, 0.88);
  border-bottom: 1px solid rgba(217, 222, 216, 0.8);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(23, 32, 29, 0.14);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-line {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 42px;
  padding: 11px 12px;
  border-radius: 4px;
  color: #35423d;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(57, 75, 66, 0.09);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.language-switch button {
  min-width: 40px;
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.active {
  color: var(--white);
  background: var(--moss);
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--moss);
  box-shadow: 0 14px 34px rgba(57, 75, 66, 0.22);
}

.button-secondary {
  color: var(--moss);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: #eef1ec;
}

.section-dark {
  color: #f7f8f5;
  background: var(--ink);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-copy {
  max-width: 710px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-copy,
.section-dark .muted {
  color: #bdc7c2;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 80px 0 72px;
  background:
    linear-gradient(110deg, rgba(247, 248, 245, 0.96) 0%, rgba(247, 248, 245, 0.86) 52%, rgba(247, 248, 245, 0.66) 100%),
    url("assets/logo.png") right 5vw center / min(48vw, 610px) no-repeat,
    linear-gradient(135deg, #f7f8f5, #e5e9e4);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: end;
  gap: 44px;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 28px 0 0;
  color: #42504a;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.stat-panel {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(217, 222, 216, 0.9);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat {
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.stat strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.intro-band {
  padding: 22px 0;
  color: #eef1ec;
  background: var(--moss);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.intro-strip span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-left: 1px solid rgba(247, 248, 245, 0.18);
  color: #edf2ef;
  font-size: 13px;
  font-weight: 820;
  text-align: center;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}

.rich-text p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.feature-grid,
.service-grid,
.project-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.feature-card,
.service-card,
.project-card,
.team-card,
.contact-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(23, 32, 29, 0.06);
}

.feature-card svg,
.service-card svg,
.contact-card svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.feature-card h3,
.service-card h3,
.project-card h3,
.team-card h3,
.contact-card h3 {
  margin: 18px 0 10px;
  font-size: 21px;
  line-height: 1.18;
}

.feature-card p,
.service-card p,
.project-card p,
.team-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.process-list {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.process-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.process-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--moss);
  font-weight: 900;
}

.process-item h3 {
  margin: 0 0 7px;
}

.process-item p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 88px 0 70px;
  background:
    linear-gradient(100deg, rgba(23, 32, 29, 0.92), rgba(57, 75, 66, 0.78)),
    url("assets/logo.png") right 8vw center / min(40vw, 470px) no-repeat,
    var(--ink);
  color: var(--white);
}

.page-hero p {
  max-width: 690px;
  margin: 24px 0 0;
  color: #d9e0dc;
  font-size: 20px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.metric {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 720;
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-visual {
  min-height: 184px;
  background:
    linear-gradient(135deg, rgba(57, 75, 66, 0.92), rgba(183, 161, 106, 0.62)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, 0.12) 38px 39px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.1) 38px 39px);
}

.project-card:nth-child(2) .project-visual {
  background:
    linear-gradient(135deg, rgba(72, 86, 87, 0.95), rgba(168, 178, 179, 0.65)),
    repeating-linear-gradient(45deg, transparent 0 28px, rgba(255, 255, 255, 0.13) 28px 29px);
}

.project-card:nth-child(3) .project-visual {
  background:
    linear-gradient(135deg, rgba(23, 32, 29, 0.94), rgba(102, 118, 109, 0.72)),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22), transparent 22%);
}

.project-body {
  padding: 26px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--moss);
  background: #f8faf7;
  font-size: 12px;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 16px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfa;
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.site-footer {
  padding: 42px 0;
  color: #d7dfdb;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 7px;
  object-fit: cover;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a {
  color: #b8c2bd;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9faaa5;
  font-size: 13px;
}

html:not(.lang-ready) [data-lang="zh"],
html.lang-ready.lang-en [data-lang="zh"],
html.lang-ready.lang-zh [data-lang="en"] {
  display: none !important;
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(247, 248, 245, 0.98);
    border-bottom: 1px solid var(--line);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 48px;
  }

  .icon-button {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(110deg, rgba(247, 248, 245, 0.97), rgba(247, 248, 245, 0.76)),
      url("assets/logo.png") right -18vw top 40px / 72vw no-repeat,
      linear-gradient(135deg, #f7f8f5, #e5e9e4);
  }

  .hero-grid,
  .split,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid,
  .service-grid,
  .project-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-strip,
  .metric-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-shell {
    width: min(var(--max), calc(100% - 24px));
    min-height: 72px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-line {
    display: none;
  }

  .language-switch button {
    min-width: 35px;
  }

  .section {
    padding: 66px 0;
  }

  .hero {
    padding: 58px 0 54px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stat-panel,
  .feature-grid,
  .service-grid,
  .project-grid,
  .team-grid,
  .intro-strip,
  .metric-row,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 20px;
  }

  .page-hero {
    padding: 70px 0 58px;
  }
}
