:root {
  --mist: #f3eef7;
  --plum: #281b2c;
  --amber: #e5a338;
  --mint: #bee6d4;
  --ivory: #fffaf2;
  --muted: #6f6174;
  --line: rgba(40, 27, 44, 0.2);
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --page: min(92vw, 86rem);
  --header-h: 5rem;
  --space-section: clamp(6rem, 12vw, 12rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: hidden;
}

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

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

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--ivory);
  background: var(--plum);
  transform: translateY(-110%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(4vw, calc((100vw - 86rem) / 2));
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled:not(.menu-visible) {
  background: rgba(243, 238, 247, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100vw - 6rem);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-decoration: none;
}

.brand-mark {
  width: 1rem;
  height: 1.45rem;
  flex: 0 0 auto;
  background: var(--amber);
  clip-path: polygon(20% 0, 100% 8%, 72% 100%, 0 82%);
}

.site-nav { display: flex; gap: clamp(1.2rem, 2.5vw, 2.8rem); }
.site-nav a {
  position: relative;
  padding-block: 0.55rem;
  font-size: 0.88rem;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.25rem;
  height: 2px;
  background: var(--amber);
  transition: right 180ms ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after { right: 0; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(4rem, 10vh, 8rem)) max(4vw, calc((100vw - 86rem) / 2)) clamp(3rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.65fr);
  grid-template-rows: 1fr auto;
  align-items: end;
  isolation: isolate;
}

.hero-copy { position: relative; z-index: 2; max-width: 58rem; }
.hero-company {
  margin: 0 0 clamp(1.4rem, 3vh, 2.6rem);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero-subtitle {
  max-width: 37rem;
  margin: clamp(1.8rem, 4vh, 3.2rem) 0 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.9;
}

.hero-point {
  position: relative;
  z-index: 3;
  align-self: center;
  margin: 0 0 4vh;
  padding: 1.1rem 0 1.1rem 2.2rem;
  border-left: 3px solid var(--amber);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.5;
}

.hero-light,
.about-light {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  filter: blur(1px);
}

.hero-light-a {
  width: clamp(20rem, 42vw, 45rem);
  aspect-ratio: 1.6;
  top: 11%;
  right: 5%;
  background: rgba(190, 230, 212, 0.72);
  clip-path: polygon(8% 18%, 83% 0, 100% 69%, 74% 92%, 14% 100%, 0 51%);
  animation: light-drift 12s ease-in-out infinite alternate;
}

.hero-light-b {
  width: clamp(16rem, 31vw, 34rem);
  aspect-ratio: 1.15;
  right: 28%;
  bottom: 6%;
  background: rgba(229, 163, 56, 0.22);
  clip-path: polygon(18% 0, 100% 20%, 78% 100%, 0 75%);
  animation: light-drift 15s 1.3s ease-in-out infinite alternate-reverse;
}

.decision-notes {
  position: absolute;
  z-index: 1;
  top: 24%;
  right: max(5vw, calc((100vw - 86rem) / 2));
  width: min(26vw, 22rem);
  height: 14rem;
}

.decision-notes i {
  position: absolute;
  right: 0;
  width: var(--w, 80%);
  top: var(--y, 0);
  border-top: 1px solid rgba(40, 27, 44, 0.48);
}
.decision-notes i::before {
  content: "";
  position: absolute;
  left: -0.25rem;
  top: -0.25rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--amber);
  transform: rotate(45deg);
}
.decision-notes i:nth-child(1) { --w: 76%; --y: 0; }
.decision-notes i:nth-child(2) { --w: 52%; --y: 22%; }
.decision-notes i:nth-child(3) { --w: 91%; --y: 45%; }
.decision-notes i:nth-child(4) { --w: 64%; --y: 68%; }
.decision-notes i:nth-child(5) { --w: 39%; --y: 91%; }

.section-heading,
.about-heading,
.advantage-core { position: relative; }
.section-heading {
  width: var(--page);
  margin: 0 auto clamp(4rem, 9vw, 8rem);
}

.section-heading h2,
.about-heading h2,
.advantage-core h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.calibration {
  display: block;
  width: 4.5rem;
  height: 0.8rem;
  margin-bottom: 1.2rem;
  border-block: 1px solid currentColor;
  background: repeating-linear-gradient(90deg, transparent 0 8px, currentColor 8px 9px);
  opacity: 0.65;
}
.calibration-dark { color: var(--amber); }

.services {
  position: relative;
  padding-block: var(--space-section);
  overflow: hidden;
}
.services::before {
  content: "";
  position: absolute;
  top: 25%;
  right: -8vw;
  width: 32vw;
  height: 45%;
  background: rgba(190, 230, 212, 0.28);
  clip-path: polygon(20% 0, 100% 16%, 82% 100%, 0 82%);
  pointer-events: none;
}

.service-field {
  width: var(--page);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: clamp(5rem, 11vw, 10rem);
}

.service-island {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2.8rem);
  padding: clamp(1.8rem, 4vw, 3.8rem) 0;
  border-block: 1px solid var(--line);
}
.service-one { grid-column: 1 / span 7; }
.service-two { grid-column: 7 / span 6; }
.service-three { grid-column: 2 / span 6; }
.service-four { grid-column: 6 / span 7; }
.service-two,
.service-four { transform: translateY(3rem); }

.service-number {
  color: var(--amber);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 1;
}
.service-copy h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 500;
  line-height: 1.2;
}
.service-copy p:last-child { max-width: 42rem; margin-bottom: 0; }
.service-point {
  display: inline-block;
  margin: 1rem 0 0.7rem;
  padding: 0.15rem 0.7rem;
  background: var(--mint);
  font-weight: 600;
  line-height: 1.6;
}

.about {
  position: relative;
  isolation: isolate;
  min-height: 42rem;
  display: grid;
  grid-template-columns: minmax(11rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: center;
  margin-top: var(--space-section);
  padding: clamp(6rem, 12vw, 11rem) max(4vw, calc((100vw - 86rem) / 2));
  color: var(--ivory);
  background: var(--plum);
  overflow: hidden;
}
.about-heading h2 { font-size: clamp(2.5rem, 4.5vw, 4.8rem); }
.about-copy { max-width: 52rem; }
.about-copy p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.75vw, 1.55rem);
  line-height: 2.15;
  text-align: justify;
}
.about-light {
  width: 48vw;
  height: 130%;
  left: 39%;
  top: -15%;
  background: rgba(190, 230, 212, 0.11);
  clip-path: polygon(15% 0, 100% 9%, 78% 100%, 0 87%);
}

.advantages {
  position: relative;
  width: var(--page);
  min-height: 62rem;
  margin-inline: auto;
  padding-block: var(--space-section);
}
.advantage-core {
  position: absolute;
  top: 42%;
  left: 50%;
  width: clamp(15rem, 25vw, 22rem);
  transform: translate(-50%, -50%);
}
.advantage-core::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4rem -6rem;
  background: rgba(229, 163, 56, 0.2);
  clip-path: polygon(13% 7%, 92% 0, 100% 76%, 72% 100%, 0 83%);
}
.advantage-notes { margin: 0; padding: 0; list-style: none; }
.advantage-note {
  position: absolute;
  width: min(34rem, 39%);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.advantage-note > span { color: var(--amber); font-size: 0.78rem; letter-spacing: 0.18em; }
.advantage-note h3 {
  margin: 0.5rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  font-weight: 500;
}
.advantage-note p { margin: 0; color: var(--muted); }
.advantage-note-one { top: 14%; left: 0; }
.advantage-note-two { top: 18%; right: 0; }
.advantage-note-three { bottom: 12%; left: 7%; }
.advantage-note-four { right: 3%; bottom: 8%; }

.site-footer {
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 3rem 5vw;
  color: var(--ivory);
  background: var(--plum);
  text-align: center;
  font-size: 0.85rem;
}
.site-footer p { margin: 0; }
.site-footer a { text-underline-offset: 0.25rem; }

.reveal {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(1rem);
  transition: opacity 600ms ease, clip-path 850ms cubic-bezier(.2,.75,.25,1), transform 700ms ease;
}
.reveal.is-visible { opacity: 1; clip-path: inset(0); transform: none; }
.service-two.reveal.is-visible,
.service-four.reveal.is-visible { transform: translateY(3rem); }

@keyframes light-drift {
  from { transform: translate3d(-1.2%, -1%, 0) rotate(-1deg); }
  to { transform: translate3d(1.5%, 1.3%, 0) rotate(1.5deg); }
}

@media (max-width: 767px) {
  :root { --header-h: 4.5rem; --page: min(88vw, 34rem); --space-section: 6.5rem; }
  .site-header { padding-inline: 6vw; }
  .brand { max-width: calc(100vw - 7rem); font-size: 0.72rem; }
  .menu-toggle {
    position: relative;
    z-index: 2;
    width: 2.9rem;
    height: 2.9rem;
    display: grid;
    place-content: center;
    gap: 0.42rem;
    border: 1px solid var(--line);
    color: var(--plum);
    background: rgba(243, 238, 247, 0.9);
  }
  .menu-toggle span { width: 1.3rem; border-top: 2px solid currentColor; transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(0.25rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-0.25rem) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.2rem;
    padding: 20vw;
    color: var(--ivory);
    background: var(--plum);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { font-family: var(--font-serif); font-size: clamp(1.7rem, 8vw, 2.6rem); }
  body.menu-open { overflow: hidden; }

  .hero {
    min-height: max(44rem, 100svh);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    padding: calc(var(--header-h) + 3.5rem) 6vw 3.5rem;
  }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5.2rem); }
  .hero-point { align-self: end; margin: 3rem 0 0; max-width: 18rem; }
  .hero-light-a { top: 15%; right: -33%; width: 31rem; }
  .hero-light-b { right: 5%; bottom: 18%; width: 19rem; }
  .decision-notes { top: 12%; right: 4%; width: 33vw; height: 9rem; opacity: 0.5; }

  .service-field { display: block; }
  .service-island {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    margin-bottom: 5rem;
  }
  .service-island:nth-child(even) { margin-left: 7vw; }
  .service-two,
  .service-four,
  .service-two.reveal.is-visible,
  .service-four.reveal.is-visible { transform: none; }
  .service-number { font-size: 2.3rem; }
  .service-copy h3 { font-size: 1.75rem; }

  .about {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    padding: 7rem 6vw;
  }
  .about-copy p { font-size: 1.08rem; line-height: 2; text-align: left; }
  .about-light { left: 20%; width: 92vw; }

  .advantages { min-height: auto; overflow: hidden; }
  .advantage-core { position: relative; top: auto; left: auto; width: auto; margin-bottom: 6rem; transform: none; }
  .advantage-core::before { inset: -2.5rem -1.5rem; }
  .advantage-note {
    position: relative;
    inset: auto;
    width: auto;
    margin-bottom: 4rem;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  :root { --page: 88vw; }
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.6fr); }
  .hero h1 { font-size: clamp(5rem, 10vw, 7rem); }
  .decision-notes { width: 22vw; }
  .service-one { grid-column: 1 / span 8; }
  .service-two { grid-column: 6 / span 7; }
  .service-three { grid-column: 1 / span 7; }
  .service-four { grid-column: 5 / span 8; }
  .about { grid-template-columns: minmax(9rem, 0.45fr) minmax(0, 1.55fr); gap: 4rem; }
  .advantages { min-height: 68rem; }
  .advantage-note { width: 43%; }
}

@media (min-width: 1100px) {
  .hero-copy { padding-left: 3vw; }
  .services { background: linear-gradient(90deg, transparent 0 7%, rgba(255,255,255,0.17) 7% 7.08%, transparent 7.08%); }
}

@media (min-width: 1440px) {
  :root { --page: min(88vw, 98rem); }
  .hero { grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 0.55fr); }
  .service-island { grid-template-columns: 6rem minmax(0, 1fr); }
}

@media (min-aspect-ratio: 2/1) and (min-width: 900px) {
  .hero { min-height: 44rem; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 3rem; }
  .hero h1 { font-size: clamp(4.8rem, 7vw, 7rem); }
  .hero-subtitle { margin-top: 1.5rem; }
  .hero-point { margin-bottom: 1rem; }
  .advantages { min-height: 50rem; }
}

@media (max-aspect-ratio: 3/4) and (min-width: 600px) {
  .hero { min-height: 78svh; grid-template-columns: minmax(0, 1fr); }
  .hero-point { width: 55%; justify-self: end; }
  .decision-notes { top: 13%; width: 30vw; }
}

@media (orientation: landscape) and (max-height: 500px) {
  :root { --header-h: 3.75rem; }
  .site-header { padding-inline: 4vw; }
  .brand { font-size: 0.7rem; }
  .hero {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1.5fr) minmax(13rem, 0.7fr);
    grid-template-rows: auto;
    align-items: center;
    padding: calc(var(--header-h) + 1.2rem) 5vw 1.2rem;
  }
  .hero h1 { font-size: clamp(3rem, 8.5vh, 4rem); }
  .hero-company { margin-bottom: 0.5rem; font-size: 0.68rem; }
  .hero-subtitle { margin-top: 0.8rem; max-width: 32rem; font-size: 0.86rem; line-height: 1.6; }
  .hero-point { align-self: center; margin: 0; padding-block: 0.5rem; font-size: 1rem; }
  .hero-light-a { top: -8%; right: 5%; width: 28rem; }
  .hero-light-b { bottom: -15%; }
  .decision-notes { display: none; }
  .menu-toggle { width: 2.6rem; height: 2.6rem; }
  .site-nav.is-open { padding: 14vh 16vw; gap: 0.45rem; }
  .site-nav a { font-size: 1.4rem; }
}

@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; clip-path: none; transform: none; }
  .service-two.reveal,
  .service-four.reveal { transform: translateY(3rem); }
}

@media (max-width: 380px) {
  .brand span:last-child { max-width: 11rem; }
  .hero h1 { font-size: 3.25rem; }
  .service-island { grid-template-columns: 2.7rem minmax(0, 1fr); gap: 0.8rem; }
  .service-number { font-size: 1.8rem; }
}
