:root {
  --ink: #070b12;
  --ink-soft: #0d1420;
  --panel: #111a27;
  --mist: #eef1ec;
  --mist-muted: #aab5b4;
  --slate: #64757a;
  --gold: #d4ad67;
  --gold-bright: #efce8d;
  --line: rgba(212, 173, 103, 0.28);
  --line-cool: rgba(170, 181, 180, 0.18);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --header-height: 4.75rem;
  --page-pad: clamp(1.25rem, 5vw, 6.5rem);
  --section-space: clamp(5rem, 11vw, 10rem);
  --copy-width: 46rem;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  color: var(--mist);
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(212, 173, 103, 0.05) 50%, transparent calc(50% + 0.5px)),
    var(--ink);
  font-family: var(--font-sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  background: var(--gold-bright);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--page-pad);
  border-bottom: 1px solid var(--line-cool);
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--mist);
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark,
.footer-mark {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.5rem);
}

.primary-nav a {
  position: relative;
  padding: 0.6rem 0;
  color: var(--mist-muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: var(--mist);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--line);
  color: var(--mist);
  background: transparent;
}

.nav-toggle span {
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: min(58rem, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 7rem);
  padding: calc(var(--header-height) + clamp(3rem, 8vh, 7rem)) var(--page-pad) clamp(4rem, 8vh, 7rem);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: var(--header-height);
  bottom: 0;
  left: var(--page-pad);
  width: 1px;
  background: linear-gradient(var(--line), transparent 75%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  padding-left: clamp(1rem, 3vw, 3rem);
}

.eyebrow,
.section-index {
  margin: 0 0 1.25rem;
  color: var(--gold-bright);
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
}

h1 {
  max-width: 9em;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  max-width: 40rem;
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
  color: var(--mist-muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 2;
}

.text-link {
  display: inline-block;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gold);
  color: var(--mist);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.coordinate-map {
  position: relative;
  width: min(38vw, 34rem);
  aspect-ratio: 1;
  justify-self: end;
  opacity: 0.92;
}

.orbit,
.coordinate-core,
.axis,
.point {
  position: absolute;
}

.orbit {
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: orbit-enter 1.2s ease both;
}

.orbit-one {
  inset: 8%;
}

.orbit-two {
  inset: 25%;
  border-color: var(--line-cool);
}

.axis-x {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-cool) 14%, var(--line-cool) 86%, transparent);
}

.axis-y {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--line-cool) 14%, var(--line-cool) 86%, transparent);
}

.coordinate-core {
  inset: 42%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.coordinate-core span {
  width: 32%;
  height: 32%;
  background: var(--gold-bright);
}

.point {
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 0.5rem rgba(212, 173, 103, 0.07);
  animation: point-pulse 3s ease-in-out infinite;
}

.point-one { top: 15%; left: 59%; }
.point-two { top: 48%; right: 7%; animation-delay: 0.5s; }
.point-three { right: 45%; bottom: 5%; animation-delay: 1s; }
.point-four { top: 35%; left: 17%; animation-delay: 1.5s; }

.services {
  position: relative;
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.services-opening {
  padding-top: var(--section-space);
}

.services-closing {
  padding-bottom: var(--section-space);
}

.section-heading,
.advantages-heading {
  display: grid;
  grid-template-columns: minmax(5rem, 0.38fr) minmax(0, 1fr);
  align-items: end;
  max-width: 82rem;
  margin: 0 auto clamp(3rem, 7vw, 6rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.section-heading .section-index,
.advantages-heading .section-index {
  margin: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.service-path {
  position: relative;
  max-width: 82rem;
  margin: 0 auto;
}

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

.service-entry {
  position: relative;
  min-height: 20rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.service-entry::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid var(--gold);
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.entry-content {
  position: relative;
  padding: clamp(1.5rem, 4vw, 4.5rem);
  border-top: 1px solid var(--line-cool);
}

.entry-left .entry-content {
  grid-column: 1;
  margin-right: clamp(1rem, 4vw, 4rem);
}

.entry-right .entry-content {
  grid-column: 2;
  margin-left: clamp(1rem, 4vw, 4rem);
}

.entry-number {
  position: absolute;
  top: 50%;
  color: rgba(212, 173, 103, 0.28);
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 1;
  transform: translateY(-50%);
}

.entry-left .entry-number {
  right: 2%;
}

.entry-right .entry-number {
  left: 2%;
}

.entry-content h3,
.annotation h3 {
  margin: 0;
  color: var(--mist);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
}

.entry-highlight {
  margin: 0.85rem 0 1.15rem;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.entry-content > p:last-child,
.annotation p {
  margin: 0;
  color: var(--mist-muted);
  font-size: 0.98rem;
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 7vw, 8rem);
  margin: var(--section-space) var(--page-pad);
  padding: clamp(2.5rem, 6vw, 6rem);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--line-cool);
  background: linear-gradient(135deg, rgba(212, 173, 103, 0.06), rgba(17, 26, 39, 0.78) 45%, rgba(100, 117, 122, 0.05));
  overflow: hidden;
}

.about-register {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
}

.about-register span {
  width: 1.25rem;
  height: 1px;
  background: var(--gold);
}

.about-heading {
  position: relative;
}

.about-heading::after {
  display: block;
  width: 3rem;
  height: 1px;
  margin-top: 2rem;
  background: var(--gold);
  content: "";
}

.about-copy {
  max-width: var(--copy-width);
  justify-self: end;
}

.about-copy p {
  margin: 0 0 1.5rem;
  color: var(--mist-muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.about-copy p:first-child {
  color: var(--mist);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.75vw, 1.4rem);
}

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

.advantages {
  padding: var(--section-space) var(--page-pad);
  background: var(--ink-soft);
}

.annotation-stream {
  position: relative;
  max-width: 82rem;
  margin: 0 auto;
}

.annotation-stream::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 1px;
  background: linear-gradient(var(--line), var(--line-cool), transparent);
  content: "";
}

.annotation {
  position: relative;
  width: min(72%, 56rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--line-cool);
}

.annotation-right {
  margin-left: auto;
}

.annotation-offset {
  margin-left: 8%;
}

.annotation-key {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-serif);
  transform: rotate(45deg);
}

.annotation-key + div {
  padding-left: clamp(0rem, 2vw, 1.5rem);
}

.annotation h3 {
  margin-bottom: 1rem;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: clamp(3.5rem, 8vw, 6rem) var(--page-pad);
  border-top: 1px solid var(--line-cool);
  color: var(--mist-muted);
  text-align: center;
}

.footer-mark {
  margin-bottom: 1.35rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
}

.site-footer a {
  text-underline-offset: 0.25em;
}

@keyframes orbit-enter {
  from { opacity: 0; transform: scale(0.82) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes point-pulse {
  0%, 100% { box-shadow: 0 0 0 0.35rem rgba(212, 173, 103, 0.05); }
  50% { box-shadow: 0 0 0 0.8rem rgba(212, 173, 103, 0.11); }
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  :root {
    --header-height: 4.25rem;
    --section-space: 4.5rem;
  }

  .brand {
    max-width: calc(100vw - 6rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: flex;
    flex: 0 0 auto;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(0.38rem) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-0.38rem) rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 0.6rem var(--page-pad) 1rem;
    border-bottom: 1px solid var(--line-cool);
    background: rgba(7, 11, 18, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    min-height: 2.9rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-cool);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-height) + 4rem);
  }

  .hero-copy {
    padding-left: 1rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.25rem);
  }

  .coordinate-map {
    width: min(82vw, 22rem);
    justify-self: center;
    margin-top: 1rem;
  }

  .section-heading,
  .advantages-heading {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .service-path::before {
    left: 0.35rem;
  }

  .service-entry {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 2.25rem 0 2.25rem 1.5rem;
  }

  .service-entry::before {
    top: 3.75rem;
    left: 0.35rem;
  }

  .entry-left .entry-content,
  .entry-right .entry-content {
    grid-column: 1;
    margin: 0;
    padding: 1.5rem 0;
  }

  .entry-number,
  .entry-left .entry-number,
  .entry-right .entry-number {
    top: 2.3rem;
    right: 0;
    left: auto;
    font-size: 3.75rem;
    transform: none;
  }

  .about {
    grid-template-columns: 1fr;
    margin-right: 0;
    margin-left: 0;
    padding-right: var(--page-pad);
    padding-left: var(--page-pad);
  }

  .about-copy {
    justify-self: start;
  }

  .annotation-stream::before {
    left: 1.35rem;
  }

  .annotation,
  .annotation-right,
  .annotation-offset {
    width: 100%;
    margin-left: 0;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .annotation-key {
    width: 2.7rem;
    height: 2.7rem;
    background: var(--ink-soft);
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --header-height: 3.75rem;
  }

  .site-header {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1.3fr) minmax(13rem, 0.7fr);
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 7vw, 4rem);
  }

  .hero-subtitle {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .eyebrow {
    margin-bottom: 0.6rem;
  }

  .text-link {
    margin-top: 0.8rem;
  }

  .coordinate-map {
    width: min(32vw, 15rem);
    margin-top: 0;
  }

  .primary-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(16rem, 0.88fr);
  }

  .coordinate-map {
    width: min(36vw, 27rem);
  }

  .annotation {
    width: 82%;
  }
}

@media (min-width: 1100px) {
  .entry-left .entry-content {
    padding-left: 8%;
  }

  .entry-right .entry-content {
    padding-right: 8%;
  }
}

@media (min-width: 1440px) {
  :root {
    --page-pad: clamp(6.5rem, 8vw, 10rem);
  }

  .hero-copy {
    padding-left: 4rem;
  }

  .section-heading,
  .service-path,
  .advantages-heading,
  .annotation-stream {
    max-width: 92rem;
  }
}

@media (min-aspect-ratio: 2/1) and (min-height: 501px) {
  .hero {
    min-height: 44rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
  }

  .coordinate-map {
    width: min(27vw, 30rem);
  }

  .hero-subtitle {
    max-width: 48rem;
  }
}

@media (max-aspect-ratio: 3/4) {
  .hero {
    align-content: center;
  }

  .coordinate-map {
    max-width: 20rem;
  }
}

@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;
  }
}
