:root {
  --ink: #202522;
  --muted: #636a63;
  --green: #315b41;
  --green-dark: #183826;
  --green-soft: #e7efe6;
  --paper: #f7f3ea;
  --paper-deep: #ede4d5;
  --line: rgba(49, 91, 65, 0.18);
  --white: #fffdf8;
  --shadow: 0 24px 60px rgba(22, 38, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.75;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px clamp(22px, 6vw, 96px);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 34px rgba(28, 39, 31, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  font-family: "Songti SC", SimSun, serif;
  font-size: 22px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Songti SC", SimSun, serif;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  font-size: 12px;
  color: currentColor;
  opacity: 0.82;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  font-size: 15px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  content: "";
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 30px;
}

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 8px 14px;
  font: inherit;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 25, 19, 0.78) 0%, rgba(17, 25, 19, 0.46) 38%, rgba(17, 25, 19, 0.08) 78%),
    linear-gradient(180deg, rgba(17, 25, 19, 0.38) 0%, rgba(17, 25, 19, 0.08) 45%, rgba(17, 25, 19, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 44px));
  margin-left: clamp(22px, 8vw, 132px);
  padding-top: 70px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.32);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: rgba(255, 253, 248, 0.9);
}

.hero h1 {
  margin: 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 20px 0 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
}

.hero-line {
  width: 72px;
  height: 4px;
  margin: 30px 0;
  background: var(--green);
}

.hero-services {
  margin: 0;
  font-size: clamp(18px, 2vw, 27px);
  letter-spacing: 0;
}

.section {
  padding: clamp(72px, 9vw, 132px) clamp(22px, 7vw, 112px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(460px, 1.3fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
  background: var(--paper);
}

.section-copy h2,
.section-heading h2,
.culture h2 {
  margin: 0 0 24px;
  color: var(--green);
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.22;
  letter-spacing: 0;
}

.section-copy p,
.section-heading p,
.culture-grid p,
.vision-timeline p,
.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.section-copy p + p {
  margin-top: 16px;
}

.intro-media {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  align-items: stretch;
  box-shadow: var(--shadow);
}

.intro-media img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
}

.service-stack {
  background: var(--green-dark);
  color: var(--white);
}

.service-stack article {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.service-stack article:last-child {
  border-bottom: 0;
}

.service-stack span {
  display: block;
  color: rgba(255, 253, 248, 0.52);
  font-family: Georgia, serif;
  font-size: 14px;
}

.service-stack strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.service-stack p {
  margin: 3px 0 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 14px;
}

.service {
  background: var(--white);
}

.section-heading {
  width: min(780px, 100%);
  margin: 0 auto clamp(42px, 5vw, 72px);
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid article {
  min-height: 236px;
  padding: 32px clamp(20px, 2.5vw, 38px);
  border-right: 1px solid var(--line);
}

.process-grid article:last-child {
  border-right: 0;
}

.process-grid span {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
}

.process-grid h3,
.culture-grid h3,
.vision-timeline h3 {
  margin: 18px 0 12px;
  color: var(--ink);
  font-family: "Songti SC", SimSun, serif;
  font-size: 27px;
  line-height: 1.3;
}

.culture {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(480px, 1.3fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
  background: var(--paper-deep);
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.culture-grid article {
  min-height: 310px;
  padding: clamp(30px, 4vw, 54px);
  background: var(--paper);
}

.culture-label {
  color: var(--green);
  font-weight: 700;
}

.vision {
  background: var(--paper);
}

.vision-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.vision-timeline article {
  position: relative;
  padding-top: 24px;
}

.vision-timeline article::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
  content: "";
}

.vision-timeline span {
  color: rgba(49, 91, 65, 0.38);
  font-family: Georgia, serif;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(22px, 7vw, 112px);
  color: rgba(255, 253, 248, 0.82);
  background: var(--green-dark);
}

.site-footer strong {
  display: block;
  color: var(--white);
  font-family: "Songti SC", SimSun, serif;
  font-size: 24px;
}

.site-footer p {
  margin: 4px 0 0;
  font-size: 14px;
}

.site-footer a {
  white-space: nowrap;
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 22px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 18px 36px rgba(21, 33, 25, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .intro,
  .culture {
    grid-template-columns: 1fr;
  }

  .intro-media {
    grid-template-columns: 1fr;
  }

  .intro-media img {
    min-height: 280px;
  }

  .service-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-stack article:nth-child(odd) {
    border-right: 1px solid rgba(255, 253, 248, 0.18);
  }

  .process-grid,
  .vision-timeline,
  .culture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid article:nth-child(2) {
    border-right: 0;
  }

  .process-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(17, 25, 19, 0.82) 0%, rgba(17, 25, 19, 0.48) 62%, rgba(17, 25, 19, 0.2) 100%),
      linear-gradient(180deg, rgba(17, 25, 19, 0.5) 0%, rgba(17, 25, 19, 0.1) 46%, rgba(17, 25, 19, 0.58) 100%);
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
  }

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

  .hero-subtitle {
    font-size: 28px;
  }

  .hero-services {
    max-width: 300px;
  }

  .section {
    padding: 64px 20px;
  }

  .section-copy h2,
  .section-heading h2,
  .culture h2 {
    font-size: 34px;
  }

  .service-stack,
  .process-grid,
  .vision-timeline,
  .culture-grid {
    grid-template-columns: 1fr;
  }

  .service-stack article,
  .service-stack article:nth-child(odd),
  .process-grid article,
  .process-grid article:nth-child(2) {
    border-right: 0;
  }

  .process-grid article {
    min-height: auto;
    border-bottom: 1px solid var(--line);
  }

  .process-grid article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 18px;
  }
}
