:root {
  --ink: #171916;
  --paper: #f3eee3;
  --paper-deep: #e7dfcf;
  --vermilion: #bb3529;
  --lake: #386c6d;
  --line: rgba(23, 25, 22, 0.22);
  --muted: #6b6b61;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --step-1: clamp(0.82rem, 0.78rem + 0.18vw, 0.96rem);
  --step-2: clamp(1rem, 0.92rem + 0.35vw, 1.28rem);
  --step-3: clamp(1.35rem, 1.08rem + 1.1vw, 2.2rem);
  --step-4: clamp(2.2rem, 1.45rem + 3.5vw, 5.8rem);
  --space-xs: clamp(0.55rem, 0.45rem + 0.4vw, 0.9rem);
  --space-sm: clamp(1rem, 0.8rem + 0.8vw, 1.75rem);
  --space-md: clamp(1.75rem, 1.2rem + 2.2vw, 3.5rem);
  --space-lg: clamp(3.2rem, 2.1rem + 4.5vw, 7rem);
  --page: clamp(1.1rem, 3vw, 4.5rem);
  --header-height: 4.8rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: var(--step-1);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button { font: inherit; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0 var(--page);
  border-bottom: 1px solid rgba(243, 238, 227, 0.18);
  color: var(--paper);
  background: rgba(23, 25, 22, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 70vw;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 1.2rem;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.24rem;
}

.brand-mark i { width: 1px; background: var(--paper); }
.brand-mark i:nth-child(1) { height: 35%; }
.brand-mark i:nth-child(2) { height: 100%; background: var(--vermilion); }
.brand-mark i:nth-child(3) { height: 62%; }

.site-nav { display: flex; align-items: stretch; align-self: stretch; }

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 clamp(0.65rem, 1.25vw, 1.3rem);
  color: rgba(243, 238, 227, 0.72);
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 3px;
  background: var(--vermilion);
  transition: right 180ms ease, left 180ms ease;
}

.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--paper); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.is-active::after { right: 0; left: 0; }

.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(15rem, 3fr);
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: var(--space-md);
  padding: clamp(4rem, 9vh, 8rem) var(--page) var(--space-md);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  bottom: 0;
  left: calc(var(--page) + 7.5%);
  width: 1px;
  background: var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 12%;
  right: -13vw;
  width: min(46vw, 44rem);
  aspect-ratio: 1;
  border: 1px solid rgba(56, 108, 109, 0.36);
  border-radius: 50%;
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0 var(--page);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.hero-grid span { width: 1px; height: 100%; background: rgba(23, 25, 22, 0.06); }

.hero-index {
  position: absolute;
  top: var(--space-sm);
  right: var(--page);
  color: var(--vermilion);
  font: 700 clamp(3rem, 7vw, 7.5rem)/1 var(--serif);
}

.hero-copy { align-self: end; }

.eyebrow {
  margin: 0 0 var(--space-sm);
  color: var(--vermilion);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero-highlight {
  width: fit-content;
  margin: 0 0 var(--space-sm);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--ink);
  font-size: var(--step-2);
}

.hero h1 {
  margin: 0;
  font: 700 var(--step-4)/1.08 var(--serif);
  letter-spacing: -0.04em;
}

.hero-subtitle {
  align-self: end;
  margin: 0 0 0.55rem;
  padding-left: var(--space-sm);
  border-left: 3px solid var(--lake);
  font-size: var(--step-2);
  line-height: 1.75;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(15rem, 100%);
  padding: 0.65rem 0;
  border-top: 1px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.hero-link span { color: var(--vermilion); font-size: 1.3rem; }

.signal-rings {
  position: absolute;
  z-index: -1;
  top: 10%;
  right: 2%;
  width: min(37vw, 35rem);
  aspect-ratio: 1;
  pointer-events: none;
}

.signal-rings i {
  position: absolute;
  border: 1px solid rgba(56, 108, 109, 0.28);
  border-radius: 50%;
  inset: calc(var(--ring) * 11%);
}
.signal-rings i:nth-child(1) { --ring: 0; }
.signal-rings i:nth-child(2) { --ring: 1; }
.signal-rings i:nth-child(3) { --ring: 2; }
.signal-rings i:nth-child(4) { --ring: 3; background: var(--vermilion); border: 0; }

.section-shell { padding: var(--space-lg) var(--page); }

.section-heading {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  margin-bottom: var(--space-md);
}

.section-heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 800ms cubic-bezier(.22, 1, .36, 1);
}

.section-heading.is-revealed::after { transform: scaleX(1); }

.section-heading h2, .about-side h2 {
  margin: 0;
  font: 700 clamp(2.4rem, 5vw, 5.4rem)/1.05 var(--serif);
  letter-spacing: -0.04em;
}

.section-number { margin: 0; color: var(--vermilion); font-weight: 700; letter-spacing: 0.18em; }

.services { color: var(--paper); background: var(--ink); }
.services .section-heading::after { background: rgba(243, 238, 227, 0.42); }

.service-list { margin: 0; padding: 0; list-style: none; }

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(3rem, 0.45fr) minmax(13rem, 1.35fr) minmax(18rem, 1.8fr);
  gap: var(--space-sm);
  align-items: start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(243, 238, 227, 0.2);
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  background: rgba(56, 108, 109, 0.15);
  transition: right 380ms ease;
}
.service-item:hover::before { right: 0; }

.item-number { position: relative; color: var(--vermilion); font: 700 var(--step-3)/1 var(--serif); }
.service-title, .service-body { position: relative; }
.service-title h3 { margin: 0 0 0.6rem; font: 700 var(--step-3)/1.3 var(--serif); }
.service-title p { margin: 0; color: #88a8a5; font-weight: 600; }
.service-body { margin: 0; color: rgba(243, 238, 227, 0.72); line-height: 2; }

.about {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 2.1fr);
  min-height: 70vh;
  background: var(--paper-deep);
}

.about-side {
  position: relative;
  padding: var(--space-lg) var(--page);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.about-side h2 { margin-top: var(--space-sm); }

.about-pulse { position: absolute; right: -5rem; bottom: -4rem; width: 18rem; aspect-ratio: 1; }
.about-pulse i { position: absolute; border: 1px solid rgba(187, 53, 41, 0.3); border-radius: 50%; }
.about-pulse i:nth-child(1) { inset: 0; }
.about-pulse i:nth-child(2) { inset: 18%; }
.about-pulse i:nth-child(3) { inset: 38%; background: var(--lake); border: 0; }

.about-copy {
  display: grid;
  align-content: center;
  gap: 0;
  padding: var(--space-lg) clamp(var(--space-md), 7vw, 8rem);
  counter-reset: paragraph;
}

.about-copy p {
  position: relative;
  margin: 0;
  padding: var(--space-sm) 0 var(--space-sm) clamp(2rem, 4vw, 4.5rem);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 2;
  counter-increment: paragraph;
}

.about-copy p::before {
  content: "0" counter(paragraph);
  position: absolute;
  top: var(--space-sm);
  left: 0;
  color: var(--vermilion);
  font: 700 0.78rem/2 var(--sans);
}

.advantages { background: var(--paper); }
.advantages-heading { grid-template-columns: 2fr 3fr; }

.advantage-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.advantage-map::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
}

.advantage {
  position: relative;
  z-index: 1;
  padding: var(--space-sm) 0 var(--space-md);
  border-top: 5px solid var(--ink);
  background: var(--paper);
}

.advantage > span { color: var(--vermilion); font-weight: 700; }
.advantage h3 { margin: var(--space-xs) 0; font: 700 var(--step-3)/1.35 var(--serif); }
.advantage p { margin: 0; color: var(--muted); line-height: 2; }
.advantage-a { grid-column: 1 / span 5; }
.advantage-b { grid-column: 7 / span 6; margin-top: var(--space-lg); border-color: var(--lake); }
.advantage-c { grid-column: 2 / span 6; margin-top: calc(var(--space-md) * -1); border-color: var(--vermilion); }
.advantage-d { grid-column: 9 / span 4; margin-top: var(--space-md); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.2rem;
  padding: var(--space-md) var(--page);
  color: rgba(243, 238, 227, 0.72);
  background: var(--ink);
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration-color: rgba(243, 238, 227, 0.35); text-underline-offset: 0.25em; }

.reveal { transition: transform 600ms cubic-bezier(.22, 1, .36, 1), opacity 600ms ease; }
.reveal.is-pending { opacity: 0.78; transform: translateY(1rem); }
.reveal.is-pending.is-revealed { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 4px; }

@media (max-width: 767px) {
  :root { --header-height: 4.25rem; }
  .site-header { gap: 0.6rem; }
  .brand { max-width: calc(100vw - 6.5rem); font-size: 0.78rem; }
  .menu-toggle {
    width: 3rem;
    min-height: 3rem;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: var(--paper);
    background: transparent;
    cursor: pointer;
  }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-lines { width: 1.7rem; height: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
  .menu-lines i { width: 100%; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(0.45rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-0.45rem) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    background: var(--ink);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav a { min-height: 3.25rem; justify-content: center; border-top: 1px solid rgba(243,238,227,0.14); }
  .site-nav a:nth-child(even) { border-left: 1px solid rgba(243,238,227,0.14); }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: end;
    min-height: calc(100svh - var(--header-height));
    padding-top: 6.5rem;
  }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.3rem); }
  .hero-subtitle { padding-left: 1rem; }
  .hero-index { top: 1.2rem; font-size: 3rem; }
  .signal-rings { top: 8%; right: -18%; width: 72vw; }
  .hero::after { width: 82vw; right: -40vw; }
  .section-heading, .advantages-heading { grid-template-columns: 1fr auto; }
  .service-item { grid-template-columns: 2.5rem 1fr; }
  .service-title { padding-right: 0; }
  .service-body { grid-column: 2; }
  .about { grid-template-columns: 1fr; min-height: 0; }
  .about-side { min-height: 15rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-copy { padding: var(--space-md) var(--page) var(--space-lg); }
  .about-copy p { padding-left: 2.25rem; }
  .advantage-map { display: block; padding-top: 0; }
  .advantage-map::before { display: none; }
  .advantage { margin: 0; padding: var(--space-md) 0; border-width: 1px 0 0; }
  .advantage h3 { font-size: 1.6rem; }
  .site-footer { display: block; }
  .site-footer a { display: inline-block; margin-top: 0.25rem; }
}

@media (orientation: landscape) and (max-height: 500px) {
  :root { --header-height: 3.6rem; }
  .hero {
    min-height: 0;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto;
    align-items: end;
    padding-top: 2rem;
    padding-bottom: 1.25rem;
  }
  .hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.7rem); }
  .hero-highlight, .eyebrow { margin-bottom: 0.45rem; }
  .hero-subtitle { font-size: 0.88rem; line-height: 1.5; }
  .hero-link { font-size: 0.8rem; }
  .hero-index { top: 0.8rem; }
  .signal-rings { top: -20%; width: 35vw; }
  .site-nav { grid-template-columns: repeat(4, 1fr); }
  .site-nav a:nth-child(even) { border-left: 1px solid rgba(243,238,227,0.14); }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .hero { grid-template-columns: 1.35fr 0.65fr; }
  .service-item { grid-template-columns: 0.35fr 1.1fr 1.55fr; }
  .about { grid-template-columns: 0.8fr 1.7fr; }
  .about-copy { padding-right: var(--space-md); padding-left: var(--space-md); }
}

@media (min-width: 1100px) {
  .services { padding-left: calc(var(--page) + 8vw); }
  .advantages { padding-right: calc(var(--page) + 5vw); }
}

@media (min-width: 1440px) {
  :root { --page: clamp(4.5rem, 6vw, 8rem); }
  .hero-copy { padding-left: 7vw; }
  .hero-subtitle { max-width: 36rem; }
  .service-list { max-width: 105rem; margin-left: auto; }
  .about-copy { max-width: 80rem; }
  .advantage-map { max-width: 105rem; margin: 0 auto; }
}

@media (min-aspect-ratio: 2/1) and (min-width: 900px) {
  .hero { min-height: 36rem; padding-top: 4rem; }
  .hero-copy { max-width: 60rem; }
  .signal-rings { width: 26vw; top: 3%; }
  .section-shell { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .about { min-height: 34rem; }
}

@media (max-aspect-ratio: 3/4) {
  .hero { min-height: 78svh; align-content: center; }
  .hero-copy { align-self: end; }
  .about { min-height: auto; }
}

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

@media (forced-colors: active) {
  .service-item, .advantage, .section-heading, .about-copy p { border-color: CanvasText; }
  .signal-rings, .hero-grid, .about-pulse { display: none; }
}
