:root {
  --paper: #f4efe6;
  --ink: #17120f;
  --red: #d52b1e;
  --muted: #82796f;
  --rule: rgba(23, 18, 15, 0.22);
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 7rem);
  --content: 90rem;
  --header-height: 3.5rem;
  --space-section: clamp(6rem, 16vw, 15rem);
}

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

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

body {
  margin: 0;
  min-width: 20rem;
  padding-top: var(--header-height);
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-nav {
  width: min(100%, var(--content));
  min-height: var(--header-height);
  margin: 0 auto;
  padding-inline: max(0.75rem, var(--gutter));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.site-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.15rem;
  font-size: clamp(0.75rem, 2.8vw, 0.9rem);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--red);
}

.site-nav a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

main {
  position: relative;
}

section {
  position: relative;
}

.signal-block {
  position: fixed;
  top: 23vh;
  right: var(--gutter);
  z-index: 1;
  width: clamp(1.4rem, 4vw, 3.5rem);
  height: clamp(1.4rem, 4vw, 3.5rem);
  background: var(--red);
  pointer-events: none;
  transform-origin: top right;
  transition-property: width, height, top, right;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.3, 0.7, 0.2, 1);
  transition-delay: 120ms;
}

body[data-marker="wide"] .signal-block {
  width: clamp(4.5rem, 12vw, 11rem);
  height: clamp(1.25rem, 2.4vw, 2.6rem);
  top: 29vh;
}

body[data-marker="solid"] .signal-block {
  width: clamp(3.8rem, 8vw, 7.5rem);
  height: clamp(2.8rem, 5.5vw, 5rem);
  top: 34vh;
}

body[data-marker="tall"] .signal-block {
  width: clamp(1.25rem, 2.4vw, 2.6rem);
  height: clamp(5.5rem, 14vh, 9rem);
  top: 42vh;
}

.hero {
  width: min(100%, var(--content));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: clamp(1.25rem, 4vh, 3rem) var(--gutter) clamp(3.5rem, 10vh, 7rem);
  display: flex;
  flex-direction: column;
}

.hero-company {
  width: min(100%, 28rem);
  color: var(--muted);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  letter-spacing: 0.08em;
}

.hero-copy {
  width: min(100%, 69rem);
  margin-top: auto;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 9.8rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  margin-left: clamp(0rem, 7vw, 8rem);
}

.hero-hook {
  width: min(100%, 30rem);
  margin: clamp(2rem, 5vw, 4rem) 0 0 auto;
  padding-top: 0.8rem;
  border-top: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.45;
}

.hero-subtitle {
  width: min(100%, 38rem);
  margin: 1rem 0 0 auto;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.advantages {
  min-height: max(50rem, 110vh);
  padding: var(--space-section) var(--gutter);
}

.advantages-field {
  position: relative;
  width: min(100%, var(--content));
  min-height: 45rem;
  margin: 0 auto;
}

.advantages h2,
.services > h2,
.about h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.advantages h2 {
  position: absolute;
  top: 44%;
  left: 50%;
  width: max-content;
  transform: translate(-50%, -50%);
}

.advantage {
  position: absolute;
  width: min(22rem, 42%);
  border-top: 1px solid var(--ink);
}

.advantage h3 {
  margin: 0.7rem 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.3;
}

.advantage p {
  margin: 0;
  color: var(--muted);
}

.advantage-a {
  top: 0;
  left: 0;
}

.advantage-b {
  top: 13%;
  right: 0;
}

.advantage-c {
  bottom: 4%;
  left: 9%;
}

.advantage-d {
  right: 5%;
  bottom: 0;
}

.services {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: var(--space-section) var(--gutter) 0;
}

.services > h2 {
  padding-bottom: clamp(4rem, 10vw, 10rem);
  text-align: right;
}

.service {
  min-height: clamp(38rem, 95vh, 60rem);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--rule);
}

.service-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 7.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.service-hook {
  margin: 1.5rem 0 1rem;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}

.service-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.service-culture {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: clamp(6rem, 14vh, 10rem);
}

.service-culture .service-copy {
  width: min(100%, 34rem);
}

.service-brand {
  justify-content: flex-end;
  align-items: center;
}

.service-brand .service-copy {
  width: min(78%, 59rem);
  text-align: right;
}

.service-brand .service-copy > p:last-child {
  width: min(100%, 35rem);
  margin-left: auto;
  text-align: left;
}

.service-system {
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(5rem, 12vh, 9rem);
}

.service-system .service-copy {
  width: min(100%, 70rem);
}

.service-system h3 {
  max-width: 6ch;
  font-size: clamp(4rem, 11vw, 10rem);
}

.service-system .service-hook,
.service-system .service-copy > p:last-child {
  width: min(100%, 35rem);
  margin-left: auto;
}

.service-support {
  min-height: clamp(42rem, 110vh, 68rem);
  justify-content: flex-start;
  align-items: flex-end;
  padding-bottom: clamp(5rem, 13vh, 10rem);
}

.service-support .service-copy {
  width: min(68%, 40rem);
  margin-left: 12%;
}

.about {
  min-height: 100vh;
  padding: var(--space-section) var(--gutter);
  display: flex;
  align-items: flex-end;
}

.about-copy {
  width: min(100%, 45rem);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.about h2 {
  margin-bottom: clamp(3rem, 8vw, 7rem);
}

.about p {
  margin: 0 0 1.35rem;
  font-size: clamp(1.02rem, 1.5vw, 1.17rem);
}

.site-footer {
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(0.65rem);
  transition: opacity 280ms ease, transform 280ms ease;
}

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

@media (min-width: 768px) {
  :root {
    --header-height: 4rem;
  }

  .site-nav {
    grid-template-columns: repeat(4, auto);
    justify-content: end;
    gap: clamp(1.5rem, 4vw, 4.5rem);
  }

  .site-nav a {
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: clamp(2rem, 6vh, 5rem);
  }
}

@media (min-width: 1100px) {
  .advantages-field {
    min-height: 52rem;
  }

  .service-brand .service-copy {
    margin-right: 7%;
  }
}

@media (min-width: 1440px) {
  :root {
    --gutter: clamp(5rem, 7vw, 9rem);
  }

  .advantages-field {
    min-height: 58rem;
  }

  .service {
    min-height: 52rem;
  }
}

@media (max-width: 767px) {
  .signal-block {
    right: 1rem;
    top: 18vh;
  }

  body[data-marker="wide"] .signal-block {
    top: 23vh;
  }

  body[data-marker="solid"] .signal-block {
    top: 30vh;
  }

  body[data-marker="tall"] .signal-block {
    top: 38vh;
  }

  .hero h1 span {
    margin-left: 0;
  }

  .hero-hook,
  .hero-subtitle {
    width: min(88%, 30rem);
    margin-left: 0;
  }

  .advantages {
    min-height: auto;
  }

  .advantages-field {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
  }

  .advantages h2,
  .advantage {
    position: static;
    width: min(88%, 29rem);
    transform: none;
  }

  .advantage:nth-of-type(even) {
    align-self: flex-end;
  }

  .services > h2 {
    text-align: left;
  }

  .service {
    min-height: max(34rem, 85svh);
  }

  .service-brand .service-copy,
  .service-system .service-copy,
  .service-support .service-copy {
    width: 100%;
    margin: 0;
    text-align: left;
  }

  .service-brand .service-copy > p:last-child,
  .service-system .service-hook,
  .service-system .service-copy > p:last-child {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .service-brand {
    align-items: flex-end;
    padding-bottom: 5rem;
  }

  .service-system h3 {
    max-width: 5ch;
  }

  .about {
    min-height: auto;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --header-height: 3rem;
    --space-section: 4.5rem;
  }

  .site-nav {
    min-height: var(--header-height);
  }

  .site-nav a {
    min-height: 2.5rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
    padding-top: 0.8rem;
    padding-bottom: 1.2rem;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.5rem, 8.5vw, 5.2rem);
    line-height: 0.92;
  }

  .hero h1 span {
    display: inline;
    margin-left: 0;
  }

  .hero-hook {
    width: min(45%, 24rem);
    margin-top: 0.8rem;
    padding-top: 0.35rem;
    font-size: clamp(1rem, 2vw, 1.35rem);
  }

  .hero-subtitle {
    width: min(58%, 34rem);
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .signal-block {
    top: 20vh;
  }

  .advantages,
  .service,
  .about {
    min-height: auto;
  }

  .advantages-field {
    min-height: 32rem;
  }

  .service {
    padding-block: 5rem;
  }
}

@media (min-aspect-ratio: 2/1) and (min-width: 900px) {
  .hero {
    min-height: 40rem;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.75fr);
    column-gap: 4rem;
    align-items: end;
  }

  .hero h1 {
    grid-row: span 2;
  }

  .hero-hook,
  .hero-subtitle {
    width: 100%;
  }
}

@media (max-aspect-ratio: 3/4) {
  .hero {
    min-height: 92svh;
  }

  .hero-copy {
    margin-bottom: 6vh;
  }

  .service {
    min-height: 76svh;
  }
}

@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;
    transition-delay: 0ms !important;
  }

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