:root {
  --bg: #090b0b;
  --bg-soft: #101313;
  --surface: #151919;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f1f4f2;
  --muted: #a4aba7;
  --accent: #20b77a;
  --accent-soft: rgba(32, 183, 122, 0.16);
  --max: 1240px;
  --header: 76px;
  --filing: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; color: var(--text); background: var(--bg); font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif; line-height: 1.7; padding-bottom: var(--filing); }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.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; }

.page-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 100; background: transparent; }
.page-progress span { display: block; width: 0; height: 100%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--header); padding: 0 max(28px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, height .35s; }
.site-header.scrolled { height: 64px; background: rgba(9, 11, 11, .88); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: .18em; white-space: nowrap; }
.brand-sub { color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a { position: relative; color: #c8ceca; font-size: 14px; transition: color .25s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: var(--accent); transition: right .25s; }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.menu-button { display: none; color: white; background: transparent; border: 0; padding: 10px; }

.hero { position: relative; min-height: min(920px, 100vh); overflow: hidden; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; transform: scale(1.025); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,6,.98) 0%, rgba(4,6,6,.8) 35%, rgba(4,6,6,.18) 72%, rgba(4,6,6,.5) 100%), linear-gradient(0deg, rgba(4,6,6,.72), transparent 50%); }
.hero-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, #000, transparent 65%); }
.hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding-top: 72px; }
.eyebrow, .section-index { margin: 0 0 20px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .24em; }
.eyebrow span { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 12px; border: 1px solid rgba(32,183,122,.7); border-radius: 50%; letter-spacing: 0; }
h1 { max-width: 800px; margin: 0; font-size: clamp(48px, 6.5vw, 92px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.hero-copy { margin: 30px 0 38px; color: #c1c8c4; font-size: clamp(15px, 1.4vw, 18px); }
.primary-action { display: inline-flex; align-items: center; gap: 38px; min-width: 180px; padding: 15px 21px; color: white; background: var(--accent); font-size: 14px; font-weight: 700; box-shadow: 0 14px 36px rgba(32,183,122,.16); transition: transform .25s, background .25s; }
.primary-action:hover { transform: translateY(-3px); background: #26c986; }
.primary-action span { transition: transform .25s; }
.primary-action:hover span { transform: translateX(5px); }
.hero-meta { position: absolute; z-index: 2; right: max(28px, calc((100vw - var(--max)) / 2)); bottom: 45px; display: flex; align-items: center; gap: 14px; color: #aeb5b1; font-size: 12px; letter-spacing: .12em; }
.hero-meta i { width: 26px; height: 1px; background: var(--line-strong); }
.scroll-cue { position: absolute; z-index: 2; left: 22px; bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #828985; font-size: 8px; letter-spacing: .2em; writing-mode: vertical-rl; }
.scroll-cue b { width: 1px; height: 38px; background: linear-gradient(var(--accent) 0 40%, var(--line-strong) 40%); animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 50% { transform: scaleY(.55); transform-origin: top; } }

.section { padding: 120px max(28px, calc((100vw - var(--max)) / 2)); }
.section-heading { max-width: 610px; margin-bottom: 54px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .about h2 { position: relative; margin: 0 0 16px; font-size: clamp(34px, 4vw, 54px); line-height: 1.15; letter-spacing: -.025em; }
.section-heading h2::after, .about h2::after { content: ""; display: block; width: 42px; height: 3px; margin-top: 18px; background: var(--accent); }
.centered h2::after { margin-inline: auto; }
.section-heading > p:last-child, .about-copy > p { color: var(--muted); }

.services { background: var(--bg-soft); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.service-card { min-width: 0; background: #111414; border-right: 1px solid var(--line); transition: transform .35s, background .35s; }
.service-card:last-child { border: 0; }
.service-card:hover { z-index: 2; transform: translateY(-10px); background: #171b1a; }
.service-photo { height: 250px; background-image: url("./assets/services-grid.png"); background-size: 400% 100%; background-repeat: no-repeat; filter: saturate(.7) contrast(1.08); transition: filter .35s, transform .35s; }
.service-photo-1 { background-position: 0 center; }
.service-photo-2 { background-position: 33.33% center; }
.service-photo-3 { background-position: 66.66% center; }
.service-photo-4 { background-position: 100% center; }
.service-card:hover .service-photo { filter: saturate(1) contrast(1.04); }
.service-content { padding: 30px 26px 34px; min-height: 230px; }
.service-content span { color: var(--accent); font-size: 11px; letter-spacing: .16em; }
.service-content h3 { margin: 14px 0 12px; font-size: 21px; }
.service-content p { margin: 0; color: var(--muted); font-size: 14px; }

.process { overflow: hidden; }
.process-list { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; list-style: none; margin: 70px 0 0; padding: 0; }
.process-list::before { content: ""; position: absolute; z-index: 0; top: 24px; left: 9%; right: 9%; height: 1px; background: linear-gradient(90deg, transparent, rgba(32,183,122,.8), transparent); }
.process-list li { position: relative; z-index: 1; text-align: center; }
.process-list span { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 24px; color: var(--accent); background: var(--bg); border: 1px solid rgba(32,183,122,.65); border-radius: 50%; font-size: 12px; }
.process-list h3 { margin: 0 0 10px; font-size: 17px; }
.process-list p { margin: 0; color: var(--muted); font-size: 13px; }

.about { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 680px; background: #0c0f0f; border-block: 1px solid var(--line); }
.about-copy { padding: 100px max(48px, calc((100vw - var(--max)) / 2)); padding-right: 70px; align-self: center; }
.about-copy > p { max-width: 620px; }
.about-visual { min-height: 640px; overflow: hidden; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); transition: filter .5s, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.about-visual:hover img { filter: saturate(1); transform: scale(1.025); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); margin: 44px 0 0; border-top: 1px solid var(--line); }
.values div { padding: 24px 12px 0 0; }
.values dt { color: var(--accent); font-size: 16px; font-weight: 700; }
.values dd { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.contact { background: var(--bg-soft); }
.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--max); margin: 0 auto; border-block: 1px solid var(--line); }
.contact-list div { padding: 32px 28px; border-right: 1px solid var(--line); }
.contact-list div:last-child { border: 0; }
.contact-list span, .contact-list strong { display: block; }
.contact-list span { margin-bottom: 10px; color: var(--accent); font-size: 11px; letter-spacing: .14em; }
.contact-list strong { font-size: 14px; font-weight: 500; }

.site-footer { display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: 0 auto; padding: 46px 28px; color: var(--muted); font-size: 12px; }
.site-footer div { display: flex; align-items: baseline; gap: 18px; }
.site-footer strong { color: var(--text); font-size: 20px; letter-spacing: .18em; }
.site-footer p { margin: 0; }
.filing-bar { position: fixed; z-index: 95; inset: auto 0 0; min-height: var(--filing); display: flex; align-items: center; justify-content: center; gap: 20px; padding: 8px 20px; background: rgba(18,21,20,.94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); color: #8f9792; font-size: 12px; }
.filing-bar a { color: #7cdeb3; border-bottom: 1px solid rgba(124,222,179,.4); transition: color .25s; }
.filing-bar a:hover { color: white; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-nav { gap: 22px; }
  .brand-sub { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-list { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .process-list::before { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-copy { padding: 90px max(28px, calc((100vw - var(--max)) / 2)); }
  .about-visual { min-height: 500px; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list div { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --header: 64px; --filing: 62px; }
  .site-header { padding-inline: 20px; background: rgba(9,11,11,.72); backdrop-filter: blur(12px); }
  .brand-name { font-size: 20px; }
  .menu-button { display: grid; gap: 7px; }
  .menu-button > span:not(.sr-only) { width: 24px; height: 1px; background: white; transition: transform .25s; }
  .menu-button[aria-expanded="true"] > span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header) 0 0; display: flex; flex-direction: column; justify-content: center; gap: 26px; background: rgba(7,9,9,.97); transform: translateX(100%); transition: transform .35s; }
  .site-nav.open { transform: none; }
  .site-nav a { font-size: 19px; }
  .hero { min-height: 780px; align-items: flex-end; }
  .hero-image { object-position: 68% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,6,6,.98) 10%, rgba(4,6,6,.2) 80%), linear-gradient(90deg, rgba(4,6,6,.65), transparent); }
  .hero-content { width: calc(100% - 40px); padding: 0 0 130px; }
  h1 { font-size: clamp(43px, 13vw, 64px); }
  .hero-copy br { display: none; }
  .hero-meta { right: 20px; bottom: 36px; gap: 8px; font-size: 10px; }
  .hero-meta i { width: 10px; }
  .scroll-cue { display: none; }
  .section { padding: 88px 20px; }
  .section-heading { margin-bottom: 38px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-photo { height: 260px; }
  .service-content { min-height: auto; }
  .process-list { grid-template-columns: 1fr; gap: 0; margin-top: 42px; }
  .process-list li { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding: 24px 0; text-align: left; border-bottom: 1px solid var(--line); }
  .process-list span { grid-row: span 2; margin: 0; }
  .process-list h3 { align-self: end; }
  .process-list p br { display: none; }
  .about-copy { padding: 84px 20px 70px; }
  .about-visual { min-height: 360px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .contact-list div { padding-inline: 8px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 18px; padding: 42px 20px; }
  .site-footer div { flex-direction: column; gap: 4px; }
  .filing-bar { flex-wrap: wrap; gap: 2px 14px; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
