:root {
  --ink: #171917;
  --ink-soft: #343833;
  --bone: #f2efe6;
  --bone-deep: #e5dfd1;
  --orange: #ef5b2a;
  --blue: #145bba;
  --line: rgba(23, 25, 23, 0.22);
  --line-light: rgba(242, 239, 230, 0.24);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --page-x: clamp(1.15rem, 4vw, 5.5rem);
  --section-y: clamp(4.75rem, 10vw, 10rem);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: clamp(1.5rem, 3vw, 3rem);
  --space-lg: clamp(3rem, 7vw, 7rem);
  --text-sm: clamp(0.75rem, 0.72rem + 0.12vw, 0.86rem);
  --text-body: clamp(0.96rem, 0.92rem + 0.18vw, 1.12rem);
  --text-h3: clamp(1.35rem, 1.1rem + 1vw, 2.25rem);
  --text-h2: clamp(2.6rem, 1.7rem + 4vw, 6.4rem);
  --text-hero: clamp(3rem, 1.75rem + 6.2vw, 9.4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bone);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--bone);
  background: var(--blue);
  transform: translateY(-200%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.6rem var(--page-x);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 230, 0.94);
  backdrop-filter: blur(14px);
}

.header-mark {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.85rem;
  border: 1px solid var(--ink);
}

.header-mark span:first-child,
.header-mark span:last-child {
  position: absolute;
  background: var(--orange);
}

.header-mark span:first-child {
  top: 50%;
  right: -0.45rem;
  left: -0.45rem;
  height: 2px;
}

.header-mark span:last-child {
  top: -0.45rem;
  bottom: -0.45rem;
  left: 50%;
  width: 2px;
}

.company-name {
  width: fit-content;
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 0.74rem + 0.18vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: clamp(0.8rem, 2.2vw, 2.8rem);
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 0.65rem 0;
}

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

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 0.55fr);
  min-height: calc(100svh - 4.5rem);
  padding: clamp(4rem, 9vh, 7.5rem) var(--page-x) 3rem;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

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

.hero-coordinate {
  position: absolute;
  z-index: -1;
  top: clamp(3rem, 7vw, 6rem);
  right: -5vw;
  width: clamp(15rem, 32vw, 37rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  opacity: 0.8;
}

.axis {
  position: absolute;
  display: block;
  background: var(--line);
}

.axis-x {
  top: 50%;
  right: -10%;
  left: -10%;
  height: 1px;
  transform: scaleX(0);
  animation: draw-x 900ms 180ms ease forwards;
}

.axis-y {
  top: -10%;
  bottom: -10%;
  left: 50%;
  width: 1px;
  transform: scaleY(0);
  animation: draw-y 900ms 360ms ease forwards;
}

.coordinate-dot {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--bone);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
  opacity: 0;
  animation: locate 500ms ease forwards;
}

.dot-a { top: 22%; left: 48%; animation-delay: 780ms; }
.dot-b { top: 49%; left: 73%; animation-delay: 920ms; }
.dot-c { top: 70%; left: 28%; animation-delay: 1060ms; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }

.hero-index {
  position: absolute;
  top: 1rem;
  left: var(--page-x);
  color: var(--blue);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}

.hero-main {
  align-self: center;
  max-width: 74rem;
}

.eyebrow,
.section-number {
  color: var(--blue);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-highlight {
  width: fit-content;
  margin-top: var(--space-sm);
  padding: 0.3rem 0.7rem;
  color: var(--bone);
  background: var(--blue);
  font-size: clamp(0.96rem, 0.88rem + 0.36vw, 1.35rem);
  line-height: 1.6;
}

.hero h1 {
  max-width: 11ch;
  margin-top: var(--space-md);
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-aside {
  align-self: end;
  justify-self: end;
  width: min(100%, 25rem);
  margin-bottom: clamp(0rem, 5vh, 3rem);
  padding: 1.5rem 0 0 clamp(1rem, 3vw, 3rem);
  border-top: 3px solid var(--orange);
  font-size: var(--text-body);
}

.hero-aside a {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
}

.services {
  position: relative;
  padding: var(--section-y) var(--page-x);
  color: var(--bone);
  background: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(7rem, 0.35fr) 1fr;
  align-items: end;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line-light);
}

.section-heading h2,
.about-heading h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  line-height: 1;
  letter-spacing: -0.05em;
}

.service-track {
  position: relative;
  padding: var(--space-lg) 0;
}

.track-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line-light);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  width: calc(50% - 2.6rem);
  min-height: 16rem;
  padding: clamp(1.4rem, 3vw, 2.7rem) 0;
  border-top: 1px solid var(--line-light);
}

.service-left {
  margin-right: auto;
  padding-right: clamp(1rem, 2vw, 2rem);
}

.service-right {
  margin-left: auto;
  padding-left: clamp(1rem, 2vw, 2rem);
}

.service-node {
  position: absolute;
  top: -0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.service-left .service-node { right: -3rem; }
.service-right .service-node { left: -3rem; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }

.service-number,
.advantage-number {
  color: var(--orange);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}

.service h3,
.advantage h3 {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  line-height: 1.25;
}

.service-hook {
  width: fit-content;
  margin-top: 1.1rem;
  color: var(--orange);
  font-weight: 700;
}

.service-copy {
  max-width: 36rem;
  margin-top: 0.75rem;
  color: rgba(242, 239, 230, 0.76);
  font-size: var(--text-body);
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
  gap: var(--space-lg);
  padding: var(--section-y) var(--page-x);
  overflow: hidden;
  overflow: clip;
  background: var(--orange);
  isolation: isolate;
}

.about::after {
  position: absolute;
  z-index: -1;
  top: 15%;
  right: -9rem;
  width: 22rem;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 25, 23, 0.3);
  content: "";
  transform: rotate(45deg);
}

.about-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34%;
  width: 1px;
  background: rgba(23, 25, 23, 0.3);
}

.about-heading {
  align-self: start;
  position: sticky;
  top: 8rem;
}

.about-heading .section-number {
  color: var(--ink);
  opacity: 0.7;
}

.about-heading h2 {
  margin-top: 1rem;
}

.about-copy {
  max-width: 56rem;
  padding-top: clamp(5rem, 10vw, 12rem);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1rem + 1vw, 2.1rem);
  font-weight: 600;
  line-height: 1.75;
}

.about-copy p + p {
  margin-top: 1.5em;
  text-indent: 2em;
}

.advantages {
  padding: var(--section-y) var(--page-x);
}

.advantages-heading {
  border-color: var(--line);
}

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

.advantage {
  display: grid;
  grid-template-columns: minmax(3rem, 0.2fr) minmax(12rem, 0.55fr) minmax(0, 1.25fr);
  gap: var(--space-md);
  align-items: start;
  padding: clamp(1.6rem, 3vw, 3rem) 0;
  border-top: 1px solid var(--line);
}

.advantage:first-child {
  border-top: 0;
}

.advantage p:last-child {
  max-width: 51rem;
  font-size: var(--text-body);
}

.site-footer {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: clamp(3rem, 6vw, 5rem) var(--page-x);
  overflow: hidden;
  color: var(--bone);
  background: var(--blue);
  text-align: center;
  font-size: var(--text-sm);
}

.site-footer a {
  padding: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-coordinate {
  position: relative;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(242, 239, 230, 0.55);
}

.footer-coordinate::before,
.footer-coordinate::after {
  position: absolute;
  background: rgba(242, 239, 230, 0.55);
  content: "";
}

.footer-coordinate::before { top: 50%; right: -1rem; left: -1rem; height: 1px; }
.footer-coordinate::after { top: -1rem; bottom: -1rem; left: 50%; width: 1px; }
.footer-coordinate span { position: absolute; z-index: 1; top: 0.55rem; right: 0.55rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); }

.reveal {
  opacity: 1;
  transform: none;
}

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

@keyframes draw-x { to { transform: scaleX(1); } }
@keyframes draw-y { to { transform: scaleY(1); } }
@keyframes locate { to { opacity: 1; transform: scale(1); } }

@media (max-width: 767px) {
  html { scroll-padding-top: 8rem; }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 6.75rem;
    padding-top: 0.7rem;
    padding-bottom: 0.4rem;
  }

  .header-mark { width: 1.4rem; height: 1.4rem; }

  .company-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
  }

  .site-nav a {
    min-height: 2.5rem;
    padding: 0.55rem 0.15rem;
    font-size: 0.76rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 6.75rem);
    padding-top: 4.5rem;
  }

  .hero::before { left: 72%; }

  .hero-coordinate {
    top: 3rem;
    right: -9rem;
    width: 19rem;
  }

  .hero-index { top: 0.75rem; }

  .hero h1 {
    max-width: 8ch;
    letter-spacing: -0.06em;
  }

  .hero-aside {
    align-self: end;
    justify-self: stretch;
    width: 82%;
    margin-top: 3rem;
    margin-left: 18%;
    padding-left: 1rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .track-line { left: 0.4rem; }

  .service {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    width: calc(100% - 1.75rem);
    min-height: 0;
    margin-right: 0;
    margin-left: 1.75rem;
    padding: 2.2rem 0 3.5rem 0.5rem;
  }

  .service-left,
  .service-right { padding-left: 0.5rem; padding-right: 0; }

  .service-left .service-node,
  .service-right .service-node { right: auto; left: -1.75rem; }

  .about {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-axis { left: 1.5rem; }

  .about-heading {
    position: relative;
    top: auto;
    padding-left: 2.5rem;
  }

  .about-copy {
    padding-top: 4rem;
    padding-left: 2.5rem;
    font-size: 1.22rem;
  }

  .advantage {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.8rem 1rem;
  }

  .advantage p:last-child {
    grid-column: 2;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  html { scroll-padding-top: 4rem; }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 3.75rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  .site-nav { grid-column: auto; }
  .site-nav a { min-height: auto; padding: 0.45rem 0.1rem; font-size: 0.7rem; }

  .hero {
    grid-template-columns: minmax(0, 1.55fr) minmax(13rem, 0.45fr);
    min-height: 31rem;
    padding-top: 3.5rem;
  }

  .hero h1 { max-width: 12ch; font-size: clamp(3rem, 8vw, 5.2rem); }
  .hero-aside { width: 100%; margin: 0; padding-left: 1.25rem; }
  .hero-coordinate { right: -3rem; width: 20rem; }
}

@media (min-width: 768px) {
  .hero-main { padding-right: var(--space-md); }
}

@media (min-width: 1100px) {
  .site-header { min-height: 5rem; }
  .hero { min-height: calc(100svh - 5rem); }
  .service:nth-of-type(odd) { transform-origin: right center; }
  .service:nth-of-type(even) { transform-origin: left center; }
}

@media (min-width: 1440px) {
  :root { --page-x: clamp(5rem, 7vw, 9rem); }
  .hero-aside { margin-right: 2vw; }
  .service { width: calc(50% - 4rem); }
  .service-left .service-node { right: -4.4rem; }
  .service-right .service-node { left: -4.4rem; }
}

@media (min-aspect-ratio: 2/1) and (min-width: 1100px) {
  .hero {
    min-height: 42rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .hero h1 { font-size: clamp(4.8rem, 7vw, 7.8rem); }
  .hero-coordinate { width: min(29vw, 30rem); }
  .about-copy { padding-top: 5rem; }
}

@media (max-aspect-ratio: 3/4) {
  .hero { min-height: min(58rem, calc(100svh - 6.75rem)); }
  .hero-main { align-self: center; }
  .hero-aside { margin-bottom: 2rem; }
}

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

  .reveal { opacity: 1; transform: none; }
}
