:root {
  --ink: #15191c;
  --ink-soft: #4d555a;
  --paper: #f7f8f6;
  --white: #ffffff;
  --line: #d9dedc;
  --teal: #006f6a;
  --teal-dark: #004c49;
  --vermilion: #c8472b;
  --gold: #c89b52;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 78px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: rgba(14, 18, 20, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px);
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(247, 248, 246, .96);
  border-color: var(--line);
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, .42);
  font-family: "Source Han Serif SC", "STSong", serif;
  font-size: 23px;
  font-weight: 700;
}

.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 15px; font-weight: 700; }
.brand-copy small { margin-top: 3px; font-size: 9px; opacity: .72; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.site-nav a { font-size: 14px; transition: color .2s ease; }
.site-nav a:hover { color: #84d4cd; }
.site-header.scrolled .site-nav a:hover { color: var(--teal); }

.nav-contact {
  min-height: 40px;
  padding: 8px 17px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
}

.hero {
  position: relative;
  min-height: min(780px, 88svh);
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--ink);
}

.hero-image,
.hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; filter: saturate(.76) contrast(1.06); }
.hero-shade { background: linear-gradient(90deg, rgba(10, 16, 18, .9) 0%, rgba(10, 16, 18, .76) 38%, rgba(10, 16, 18, .28) 70%, rgba(10, 16, 18, .14) 100%); }

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
  padding: 126px 0 96px;
}

.eyebrow,
.section-index {
  margin: 0 0 18px;
  color: var(--vermilion);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow { color: #b5e5df; }

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "STSong", serif;
  font-weight: 700;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(44px, 6.1vw, 84px);
  line-height: 1.07;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(16px, 1.6vw, 20px);
}

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

.button {
  min-height: 50px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; }
.button-primary { color: var(--white); background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }
.button-ghost { border-color: rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .12); }
.button-ghost:hover { background: rgba(255, 255, 255, .12); }

.hero-meta {
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 28px;
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; background: var(--gold); }

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

.intro-band { padding: 54px 0; color: var(--white); background: var(--teal-dark); }
.intro-grid { display: grid; grid-template-columns: minmax(140px, .45fr) 1.55fr; gap: 44px; align-items: start; }
.intro-band .section-index { color: #8fd8d1; }
.intro-band h2 { margin-bottom: 10px; font-size: clamp(26px, 3.3vw, 44px); line-height: 1.25; }
.intro-band p:last-child { max-width: 780px; margin-bottom: 0; color: rgba(255,255,255,.76); }

.section { padding: clamp(76px, 9vw, 126px) 0; }
.section-heading { margin-bottom: 58px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: end; }
.section-heading h2,
.process h2,
.about h2,
.contact h2 { margin-bottom: 0; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.18; }
.section-heading > p { margin-bottom: 0; color: var(--ink-soft); }

.service-list { border-top: 1px solid var(--line); }
.service-item {
  min-height: 150px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 74px 1fr 64px;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, padding .25s ease;
}

.service-item:hover { padding-left: 16px; padding-right: 16px; background: var(--white); }
.service-number { color: var(--vermilion); font-family: Georgia, serif; font-size: 14px; }
.service-item h3 { margin-bottom: 8px; font-size: clamp(20px, 2vw, 28px); }
.service-item p { max-width: 760px; margin-bottom: 0; color: var(--ink-soft); }
.service-item > svg { width: 34px; height: 34px; color: var(--teal); justify-self: end; }

.process { color: var(--white); background: var(--ink); }
.process-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(60px, 10vw, 140px); }
.process-intro { position: sticky; top: 120px; align-self: start; }
.process-intro p:last-child { margin: 24px 0 0; color: #aeb6b8; }
.process-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #3c4346; }
.process-steps li { padding: 30px 0; display: grid; grid-template-columns: 54px 1fr; gap: 24px; border-bottom: 1px solid #3c4346; }
.process-steps li > span { color: #84d4cd; font-family: Georgia, serif; }
.process-steps h3 { margin-bottom: 8px; font-size: 21px; }
.process-steps p { margin-bottom: 0; color: #aeb6b8; }

.technology { background: #ecefeb; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #bdc5c1; border-left: 1px solid #bdc5c1; }
.tech-column { min-height: 290px; padding: 30px; border-right: 1px solid #bdc5c1; border-bottom: 1px solid #bdc5c1; }
.tech-column > span { color: var(--vermilion); font-family: Georgia, serif; font-size: 11px; }
.tech-column h3 { margin: 44px 0 22px; font-size: 21px; }
.tech-column p { margin-bottom: 8px; color: var(--ink-soft); }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 10vw, 140px); }
.about-copy > p { color: var(--ink-soft); font-size: 17px; }
.company-facts { margin: 42px 0 0; border-top: 1px solid var(--line); }
.company-facts > div { padding: 18px 0; display: grid; grid-template-columns: 110px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.company-facts dt { color: var(--ink-soft); font-size: 13px; }
.company-facts dd { margin: 0; font-weight: 700; }

.contact { padding: clamp(74px, 8vw, 112px) 0; color: var(--white); background: var(--teal); }
.contact .section-index { color: #b8e8e3; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.contact-grid > div:first-child > p:last-child { max-width: 560px; margin: 20px 0 0; color: rgba(255,255,255,.76); }
.contact-details { border-top: 1px solid rgba(255,255,255,.35); }
.contact-details > a,
.contact-details > div { min-height: 100px; padding: 20px 0; display: grid; grid-template-columns: 110px 1fr 32px; gap: 20px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-details span { font-size: 12px; opacity: .72; }
.contact-details strong { font-size: clamp(16px, 2vw, 23px); }
.contact-details svg { width: 22px; justify-self: end; }

.site-footer {
  padding: 28px max(20px, calc((100vw - var(--max)) / 2));
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #b7bec0;
  background: #101416;
  font-size: 12px;
}

.site-footer > div { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer strong { color: var(--white); }
.footer-links a:hover { color: var(--white); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .service-item { transition: none; }
}

@media (max-width: 900px) {
  .site-header { min-height: 68px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed;
    inset: 68px 0 0;
    padding: 32px 24px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    color: var(--ink);
    background: var(--paper);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-contact { margin-top: 16px; border: 1px solid var(--ink) !important; }
  .hero { min-height: 760px; }
  .hero-image { object-position: 58% center; }
  .hero-meta { left: 20px; right: 20px; flex-wrap: wrap; }
  .section-heading,
  .process-layout,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .process-intro { position: static; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { display: none; }
  h1 { font-size: clamp(34px, 10vw, 40px); }
  .hero { min-height: 700px; }
  .hero-content { padding-top: 116px; padding-bottom: 116px; }
  .hero-shade { background: linear-gradient(90deg, rgba(10,16,18,.88), rgba(10,16,18,.58)); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { justify-content: center; }
  .hero-meta { bottom: 24px; gap: 9px 16px; }
  .intro-grid { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 36px; }
  .service-item { min-height: 0; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
  .service-item > svg { display: none; }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-column { min-height: 230px; }
  .company-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .contact-details > a,
  .contact-details > div { grid-template-columns: 1fr 28px; gap: 4px 14px; }
  .contact-details span { grid-column: 1 / -1; }
  .contact-details svg { grid-column: 2; grid-row: 2; }
  .site-footer { flex-direction: column; }
}
