:root {
  --ink: #102735;
  --ink-deep: #091c27;
  --paper: #f2eee4;
  --paper-soft: #e9e4d8;
  --copper: #d88932;
  --teal: #527a78;
  --line: rgba(16, 39, 53, 0.22);
  --line-light: rgba(242, 238, 228, 0.23);
  --shadow: 0 18px 55px rgba(9, 28, 39, 0.12);
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --page: min(91vw, 1380px);
  --gutter: clamp(1rem, 4vw, 5rem);
  --section-space: clamp(4.5rem, 10vw, 9rem);
  --step-1: clamp(0.9rem, 0.3vw + 0.82rem, 1.05rem);
  --step-2: clamp(1.05rem, 0.55vw + 0.9rem, 1.35rem);
  --step-3: clamp(1.35rem, 1vw + 1rem, 2rem);
  --step-4: clamp(2rem, 3.2vw + 1rem, 4.7rem);
  --step-5: clamp(2.8rem, 6vw + 1rem, 7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(16, 39, 53, 0.055) 1px) 0 0 / clamp(72px, 10vw, 150px) 100%,
    var(--paper);
  font-family: var(--sans);
  font-size: var(--step-1);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

section {
  scroll-margin-top: 5.5rem;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0.75rem;
  left: 50%;
  display: flex;
  width: min(calc(100% - 1.5rem), 1440px);
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(242, 238, 228, 0.18);
  background: rgba(9, 28, 39, 0.94);
  box-shadow: var(--shadow);
  color: var(--paper);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: clamp(0.77rem, 1.7vw, 0.94rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  border-bottom: 1px solid var(--copper);
  gap: 3px;
}

.brand-mark i {
  display: block;
  background: var(--paper);
}

.brand-mark i:nth-child(1) { height: 38%; }
.brand-mark i:nth-child(2) { height: 68%; background: var(--teal); }
.brand-mark i:nth-child(3) { height: 100%; background: var(--copper); }

.nav-toggle {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-right: 0.55rem;
  padding: 0.8rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1px;
  background: var(--paper);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  left: 0;
  display: grid;
  padding: 0.5rem;
  visibility: hidden;
  border: 1px solid rgba(242, 238, 228, 0.14);
  background: var(--ink-deep);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-0.5rem);
  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: 3rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(242, 238, 228, 0.1);
  color: rgba(242, 238, 228, 0.82);
  font-size: 0.9rem;
}

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

.hero {
  position: relative;
  display: grid;
  width: var(--page);
  min-height: min(920px, 100svh);
  margin: 0 auto;
  padding: clamp(7.5rem, 16vh, 10rem) 0 clamp(4rem, 8vh, 7rem);
  align-items: center;
  gap: 3rem;
}

.hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(0rem, 8vw, 8rem);
  width: 1px;
  background: var(--line);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(1.1rem, 4vw, 5rem);
}

.hero-copy::before {
  position: absolute;
  top: 0.6rem;
  left: -0.32rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--copper);
  background: var(--paper);
  content: "";
  transform: rotate(45deg);
}

.hero-look {
  margin: 0 0 1.2rem;
  color: var(--teal);
  font-size: clamp(0.84rem, 0.7vw + 0.72rem, 1.05rem);
  font-weight: 650;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 10em;
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-5);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 37rem;
  margin: 1.8rem 0 0;
  color: rgba(16, 39, 53, 0.74);
  font-size: var(--step-2);
  line-height: 1.9;
}

.hero-link {
  display: inline-flex;
  margin-top: 2.2rem;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 650;
}

.hero-link i {
  position: relative;
  display: block;
  width: 3.2rem;
  height: 1px;
  background: var(--ink);
  transition: width 220ms ease;
}

.hero-link i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  content: "";
  transform: rotate(45deg);
}

.hero-link:hover i { width: 4.4rem; }

.trajectory {
  position: relative;
  width: min(100%, 34rem);
  aspect-ratio: 1.04;
  justify-self: end;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(82, 122, 120, 0.08), transparent 56%);
}

.trajectory::before,
.trajectory::after {
  position: absolute;
  content: "";
}

.trajectory::before {
  inset: 12% 10%;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.trajectory::after {
  top: 31%;
  right: 22%;
  width: 28%;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 137, 50, 0.36);
  transform: rotate(45deg);
}

.trajectory-axis {
  position: absolute;
  z-index: 1;
  background: repeating-linear-gradient(90deg, var(--line), var(--line) 1px, transparent 1px, transparent 9px);
}

.axis-x { right: 0; bottom: 18%; left: 0; height: 1px; }
.axis-y { top: 0; bottom: 0; left: 20%; width: 1px; transform: rotate(90deg); }

.trajectory svg { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; }
.track { fill: none; stroke-linecap: square; }
.track-shadow { stroke: rgba(16, 39, 53, 0.15); stroke-width: 7; }
.track-active { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 10 8; }

.trajectory-point {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  place-items: center;
  transform: rotate(45deg);
}

.trajectory-point b { font-size: 0.67rem; font-weight: 700; transform: rotate(-45deg); }
.point-a { bottom: 13%; left: 7%; }
.point-b { bottom: 35%; left: 37%; }
.point-c { top: 33%; left: 61%; }
.point-d { top: 9%; right: 7%; border-color: var(--copper); color: var(--copper); }

.trajectory-caption {
  position: absolute;
  top: 0;
  left: -0.3rem;
  display: grid;
  height: 100%;
  grid-template-rows: repeat(4, 1fr);
}

.trajectory-caption span { width: 0.6rem; border-top: 1px solid var(--line); }

.section {
  width: var(--page);
  margin: 0 auto;
  padding: var(--section-space) 0;
}

.section-heading {
  display: flex;
  margin-bottom: clamp(2.2rem, 6vw, 5rem);
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  padding-top: 0.7rem;
}

.section-heading h2,
.about-label h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-index {
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-list {
  position: relative;
  border-top: 1px solid var(--line);
}

.service-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.55rem;
  width: 1px;
  background: var(--line);
  content: "";
}

.service-item {
  position: relative;
  display: grid;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1.1rem;
}

.service-number {
  position: relative;
  z-index: 1;
  width: 5.1rem;
  background: var(--paper);
  color: var(--copper);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.service-title h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 600;
}

.service-title p {
  margin: 0.45rem 0 0;
  color: var(--teal);
  font-weight: 650;
}

.service-copy {
  max-width: 42rem;
  margin: 0;
  color: rgba(16, 39, 53, 0.74);
  text-align: justify;
}

.about {
  position: relative;
  display: grid;
  width: 100%;
  max-width: none;
  padding-right: max(var(--gutter), calc((100vw - 1380px) / 2));
  padding-left: max(var(--gutter), calc((100vw - 1380px) / 2));
  background: var(--ink);
  color: var(--paper);
  gap: 3rem;
}

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

.about::after {
  position: absolute;
  right: 9%;
  bottom: 0;
  width: clamp(7rem, 16vw, 17rem);
  aspect-ratio: 1;
  border: 1px solid rgba(216, 137, 50, 0.34);
  content: "";
  transform: translateY(50%) rotate(45deg);
}

.about-label,
.about-copy { position: relative; z-index: 2; }

.about-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid rgba(242, 238, 228, 0.7);
  padding-top: 0.75rem;
}

.about-copy {
  max-width: 58rem;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.15vw + 0.85rem, 1.75rem);
  line-height: 2;
}

.about-copy p { margin: 0 0 1.25em; }
.about-copy p:last-child { margin-bottom: 0; }

.advantages { position: relative; }

.advantage-list {
  border-top: 1px solid var(--line);
}

.advantage-item {
  position: relative;
  display: grid;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  gap: 0.8rem;
}

.advantage-item > span {
  color: var(--copper);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.advantage-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 600;
}

.advantage-item p {
  max-width: 45rem;
  margin: 0;
  color: rgba(16, 39, 53, 0.74);
}

.site-footer {
  position: relative;
  display: grid;
  min-height: 12rem;
  padding: 3.5rem var(--gutter);
  align-content: center;
  justify-items: center;
  background: var(--ink-deep);
  color: rgba(242, 238, 228, 0.7);
  text-align: center;
}

.site-footer::before {
  width: min(14rem, 45vw);
  height: 1px;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  content: "";
}

.site-footer p { margin: 0 0 0.35rem; }
.site-footer a { text-decoration: underline; text-decoration-color: rgba(216, 137, 50, 0.55); text-underline-offset: 0.3em; }

.has-js .reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-js .track-active {
  stroke-dashoffset: 260;
  animation: trace 9s linear infinite;
}

@keyframes trace { to { stroke-dashoffset: 0; } }

@media (min-width: 768px) {
  .site-header { top: 1rem; width: min(calc(100% - 2rem), 1440px); }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    padding: 0 0.5rem 0 0;
    visibility: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }
  .site-nav a {
    position: relative;
    display: grid;
    min-height: 3.45rem;
    padding: 0.8rem clamp(0.65rem, 1.3vw, 1.2rem);
    align-items: center;
    border: 0;
    font-size: clamp(0.76rem, 1vw, 0.9rem);
  }
  .site-nav a::after {
    position: absolute;
    right: 50%;
    bottom: 0.45rem;
    left: 50%;
    height: 1px;
    background: var(--copper);
    content: "";
    transition: right 180ms ease, left 180ms ease;
  }
  .site-nav a:hover::after,
  .site-nav a.is-active::after { right: 0.8rem; left: 0.8rem; }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr); gap: clamp(2rem, 5vw, 6rem); }
  .hero h1 { font-size: clamp(3rem, 6vw, 3.3rem); }
  .hero-copy { padding-left: clamp(2.5rem, 6vw, 7rem); }
  .trajectory { width: 100%; }
  .service-item {
    grid-template-columns: 5rem minmax(14rem, 0.7fr) minmax(18rem, 1fr);
    padding: clamp(2.2rem, 4vw, 3.5rem) 0;
    align-items: start;
    gap: clamp(1.2rem, 3vw, 4rem);
  }
  .service-item:nth-child(even) { margin-left: clamp(2rem, 7vw, 8rem); }
  .about { grid-template-columns: minmax(12rem, 0.55fr) minmax(25rem, 1.45fr); gap: clamp(3rem, 8vw, 9rem); }
  .about-label { display: block; }
  .about-label h2 { margin-top: clamp(2rem, 7vw, 7rem); }
  .advantage-item {
    grid-template-columns: 4rem minmax(12rem, 0.55fr) minmax(20rem, 1fr);
    padding: clamp(2rem, 3.3vw, 3rem) 0;
    align-items: start;
    gap: clamp(1rem, 4vw, 5rem);
  }
  .advantage-item:nth-child(even) { padding-left: clamp(2rem, 8vw, 9rem); }
}

@media (min-width: 900px) {
  .hero h1 { font-size: clamp(4.4rem, 6vw, 5rem); }
}

@media (min-width: 1100px) {
  .site-header { min-height: 4.7rem; }
  .brand { padding-left: 1.4rem; }
  .hero { padding-top: 9rem; }
  .hero-copy::before { left: -0.38rem; width: 0.75rem; height: 0.75rem; }
  .service-item:hover .service-number { color: var(--teal); }
  .service-item:hover .service-title h3 { transform: translateX(0.4rem); }
  .service-title h3 { transition: transform 200ms ease; }
}

@media (min-width: 1440px) {
  :root { --page: min(88vw, 1520px); }
  .site-header { max-width: 1560px; }
  .hero { min-height: min(980px, 100svh); }
  .hero h1 { font-size: clamp(5.5rem, 5.4vw, 6.5rem); }
  .hero-subtitle { max-width: 41rem; }
  .about { padding-right: max(6vw, calc((100vw - 1520px) / 2)); padding-left: max(6vw, calc((100vw - 1520px) / 2)); }
}

@media (min-width: 2200px) {
  .hero h1 { font-size: 7rem; }
}

@media (orientation: landscape) and (max-height: 500px) {
  html { scroll-padding-top: 4.5rem; }
  .site-header { top: 0.4rem; min-height: 3.7rem; }
  .brand { padding-top: 0.55rem; padding-bottom: 0.55rem; }
  .brand-mark { width: 1.65rem; height: 1.65rem; }
  .site-nav a { min-height: 3rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
  .hero {
    min-height: 0;
    padding-top: 5.8rem;
    padding-bottom: 2.5rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(13rem, 0.75fr);
  }
  .hero h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); }
  .hero-look { margin-bottom: 0.6rem; }
  .hero-subtitle { margin-top: 0.8rem; font-size: 0.9rem; line-height: 1.6; }
  .hero-link { margin-top: 0.8rem; }
  .trajectory { width: min(52vh, 20rem); }
  .section { padding-top: 3.6rem; padding-bottom: 3.6rem; }
}

@media (min-aspect-ratio: 2/1) and (min-width: 1100px) {
  .hero { min-height: 760px; grid-template-columns: minmax(0, 1.2fr) minmax(25rem, 0.8fr); }
  .trajectory { width: min(76vh, 35rem); }
  .about-copy { max-width: 64rem; }
}

@media (max-aspect-ratio: 3/4) {
  .hero { min-height: auto; padding-top: 9rem; padding-bottom: 5rem; }
  .trajectory { width: min(90%, 34rem); justify-self: center; }
}

@media (max-width: 767px) {
  .hero { min-height: auto; }
  .trajectory { width: min(90%, 29rem); justify-self: center; }
  .section-heading h2 { margin-left: 1rem; }
  .service-title,
  .service-copy { padding-left: 5.1rem; }
  .about { padding-right: var(--gutter); padding-left: var(--gutter); }
  .about-label { display: block; }
  .about-label h2 { margin-top: 1.5rem; }
  .about-copy { font-size: clamp(1.05rem, 4.7vw, 1.35rem); }
  .advantage-item { padding-left: 1rem; }
}

@media (max-width: 380px) {
  .brand { max-width: calc(100% - 3.8rem); gap: 0.55rem; }
  .brand-mark { width: 1.65rem; height: 1.65rem; }
  .hero-copy { padding-left: 1rem; }
  .hero h1 { font-size: clamp(2.55rem, 14vw, 3.4rem); }
  .service-title,
  .service-copy { padding-left: 4rem; }
  .service-list::before { left: 2rem; }
  .service-number { width: 4rem; font-size: 1.7rem; }
}

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