:root {
  --ink: #111318;
  --paper: #f2eee3;
  --sky: #6ed8ff;
  --focus: #d5ff47;
  --muted: #656760;
  --line: rgba(17, 19, 24, 0.2);
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --page: clamp(1.15rem, 4vw, 5.5rem);
  --section: clamp(5rem, 10vw, 10rem);
  --header-height: 4.5rem;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--paper);
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--focus);
  transform: translateY(-180%);
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem var(--page);
  border-bottom: 1px solid rgba(242, 238, 227, 0.18);
  color: var(--paper);
  background: rgba(17, 19, 24, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: calc(100% - 4rem);
  font-size: clamp(0.75rem, 1.5vw, 0.93rem);
  font-weight: 600;
  line-height: 1.3;
}

.brand-mark {
  width: 1.35rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 2px solid var(--sky);
  border-radius: 50%;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 50% -0.35rem auto;
  height: 2px;
  background: var(--focus);
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-content: center;
  gap: 0.42rem;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.45rem;
  height: 2px;
  background: currentColor;
  transition: transform 250ms var(--ease);
}

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

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

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.5rem var(--page) 1rem;
  border-bottom: 1px solid rgba(242, 238, 227, 0.18);
  background: var(--ink);
  transform: translateY(-130%);
  visibility: hidden;
  transition: transform 320ms var(--ease), visibility 320ms;
}

.site-nav.is-open {
  transform: translateY(0);
  visibility: visible;
}

.site-nav a {
  min-height: 3rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(242, 238, 227, 0.16);
  font-size: 0.9rem;
}

.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: calc(var(--header-height) + 3.5rem) var(--page) 2.5rem;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.hero-stage {
  position: absolute;
  z-index: -1;
  inset: var(--header-height) 0 0;
  overflow: hidden;
}

.sky-disc {
  position: absolute;
  width: min(170vw, 46rem);
  aspect-ratio: 1;
  top: 2%;
  left: -40%;
  border-radius: 50%;
  background: var(--sky);
  transform: scale(0.72);
  opacity: 0;
  transition: transform 700ms var(--ease), opacity 500ms ease;
}

.is-ready .sky-disc {
  transform: scale(1);
  opacity: 1;
}

.viewfinder {
  position: absolute;
  top: 18%;
  right: 7%;
  width: min(52vw, 17rem);
  aspect-ratio: 4 / 3;
}

.viewfinder i {
  position: absolute;
  width: 2.25rem;
  height: 2.25rem;
  border-color: var(--focus);
  border-style: solid;
}

.viewfinder i:nth-child(1) { inset: 0 auto auto 0; border-width: 3px 0 0 3px; }
.viewfinder i:nth-child(2) { inset: 0 0 auto auto; border-width: 3px 3px 0 0; }
.viewfinder i:nth-child(3) { inset: auto auto 0 0; border-width: 0 0 3px 3px; }
.viewfinder i:nth-child(4) { inset: auto 0 0 auto; border-width: 0 3px 3px 0; }

.horizon {
  position: absolute;
  top: 48%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(242, 238, 227, 0.58);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 650ms 300ms var(--ease);
}

.is-ready .horizon {
  transform: scaleX(1);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 58rem;
}

.company-name {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.28rem 0.52rem;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.55;
}

.hero h1 {
  width: fit-content;
  max-width: min(9em, 100%);
  margin: 0;
  padding: 0.1em 0.16em 0.14em 0.08em;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 10vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  box-shadow: 0.12em 0.12em 0 var(--sky);
}

.hero-highlight {
  width: fit-content;
  max-width: 100%;
  margin: 2rem 0 0;
  padding: 0.35rem 0.65rem;
  color: var(--ink);
  background: var(--focus);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  font-weight: 700;
}

.hero-subtitle {
  width: fit-content;
  max-width: 36rem;
  margin: 1rem 0 0;
  padding: 0.55rem 0.8rem;
  color: var(--paper);
  background: var(--ink);
  border-left: 3px solid var(--sky);
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
}

.hero-index {
  display: none;
}

.services,
.advantages {
  padding: var(--section) var(--page);
}

.section-heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 5.5rem);
}

.section-heading h2,
.about-title h2 {
  max-width: 12em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.scene-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.scene {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: var(--paper);
}

.scene-two,
.scene-four {
  color: var(--paper);
  background: var(--ink);
}

.scene-three {
  background: var(--sky);
}

.scene-number {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.scene-two .scene-number,
.scene-four .scene-number {
  color: var(--sky);
}

.scene h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1.15;
}

.scene-highlight {
  width: fit-content;
  margin: 1rem 0;
  padding-bottom: 0.2rem;
  border-bottom: 4px solid var(--focus);
  font-weight: 700;
}

.scene-copy > p:last-child {
  max-width: 35em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
}

.scene-two .scene-copy > p:last-child,
.scene-four .scene-copy > p:last-child {
  color: rgba(242, 238, 227, 0.74);
}

.about {
  position: relative;
  display: grid;
  gap: 3rem;
  padding: var(--section) var(--page);
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.about-line {
  position: absolute;
  top: 3rem;
  left: 0;
  width: 100%;
  height: clamp(0.6rem, 1.4vw, 1.2rem);
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease);
}

.about.is-visible .about-line {
  transform: scaleX(1);
}

.about-copy {
  display: grid;
  gap: 1.2rem;
  max-width: 52rem;
}

.about-copy p {
  margin: 0;
  color: rgba(242, 238, 227, 0.82);
  font-size: clamp(1rem, 1.65vw, 1.25rem);
}

.about-copy p:first-child::first-letter {
  color: var(--focus);
  font-family: var(--serif);
  font-size: 3.2em;
  line-height: 0.8;
}

.focus-field {
  display: grid;
  grid-template-areas: "core" "one" "two" "three" "four";
  gap: 0;
  border-top: 1px solid var(--ink);
}

.focus-core {
  grid-area: core;
  width: min(72vw, 18rem);
  aspect-ratio: 1;
  position: relative;
  place-self: center;
  margin: 2.5rem 0;
}

.focus-ring {
  position: absolute;
  inset: 10%;
  border: clamp(1rem, 4vw, 2.6rem) solid var(--sky);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 1px var(--ink);
}

.focus-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.focus-cross-x { width: 100%; height: 1px; }
.focus-cross-y { width: 1px; height: 100%; }

.advantage {
  position: relative;
  padding: 1.7rem 0 2rem 2.1rem;
  border-top: 1px solid var(--line);
}

.advantage::before,
.advantage::after {
  content: "";
  position: absolute;
  background: var(--focus);
}

.advantage::before { top: 1.8rem; left: 0; width: 1.2rem; height: 3px; }
.advantage::after { top: 1.2rem; left: 0.55rem; width: 3px; height: 1.2rem; }

.advantage-one { grid-area: one; }
.advantage-two { grid-area: two; }
.advantage-three { grid-area: three; }
.advantage-four { grid-area: four; }

.advantage > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.advantage h3 {
  margin: 0.25rem 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.advantage p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 2rem var(--page);
  text-align: center;
  color: rgba(242, 238, 227, 0.72);
  background: var(--ink);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--focus);
}

.reveal {
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

  .scene-strip {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .scene-one { grid-column: span 7; min-height: 25rem; }
  .scene-two { grid-column: span 5; align-items: end; }
  .scene-three { grid-column: span 5; }
  .scene-four { grid-column: span 7; min-height: 24rem; align-items: end; }

  .about {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
  }

  .about-copy {
    padding-top: 4rem;
  }

  .focus-field {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.72fr) minmax(0, 1fr);
    grid-template-areas:
      "one core two"
      "three core four";
    align-items: center;
    border-bottom: 1px solid var(--ink);
  }

  .focus-core {
    width: min(25vw, 22rem);
  }

  .advantage {
    align-self: stretch;
    padding: 2rem clamp(1.1rem, 3vw, 3rem);
    border: 0;
  }

  .advantage-one,
  .advantage-two { border-bottom: 1px solid var(--line); }
  .advantage-one,
  .advantage-three { border-right: 1px solid var(--line); }
  .advantage-two,
  .advantage-four { border-left: 1px solid var(--line); }

  .advantage::before { top: 2.15rem; left: auto; right: 0.6rem; }
  .advantage::after { top: 1.55rem; left: auto; right: 1.15rem; }
  .advantage-two::before,
  .advantage-four::before { left: 0.6rem; right: auto; }
  .advantage-two::after,
  .advantage-four::after { left: 1.15rem; right: auto; }

  .site-footer {
    grid-template-columns: 1fr auto;
    justify-items: start;
    text-align: left;
  }
}

@media (min-width: 1100px) {
  .nav-toggle { display: none; }

  .site-nav,
  .site-nav.is-open {
    position: static;
    width: auto;
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: 0;
    border: 0;
    background: transparent;
    transform: none;
    visibility: visible;
  }

  .site-nav a {
    min-height: 2.75rem;
    border: 0;
    font-size: 0.86rem;
    position: relative;
  }

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

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

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.36fr);
    gap: 4rem;
    padding-bottom: 4rem;
  }

  .sky-disc {
    width: min(68vw, 65rem);
    top: -12%;
    left: -7%;
  }

  .viewfinder {
    top: 19%;
    right: 11%;
    width: min(25vw, 24rem);
  }

  .company-name { margin-bottom: 1.5rem; }

  .hero-index {
    display: grid;
    align-self: end;
    margin: 0;
    padding: 0 0 0 2rem;
    list-style: none;
    border-left: 1px solid rgba(242, 238, 227, 0.34);
  }

  .hero-index li {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 0.5rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(242, 238, 227, 0.18);
    font-size: 0.9rem;
  }

  .hero-index span {
    color: var(--sky);
    font-size: 0.7rem;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading h2 { max-width: 10em; }
}

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

  .scene-one { grid-column: span 8; }
  .scene-two { grid-column: span 4; }
  .scene-three { grid-column: span 4; }
  .scene-four { grid-column: span 8; }

  .about {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  }
}

@media (min-aspect-ratio: 2/1) and (min-width: 1100px) {
  .hero {
    min-height: 46rem;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero h1 { font-size: clamp(4.5rem, 7vw, 7rem); }
  .sky-disc { width: min(54vw, 58rem); top: -28%; }
  .viewfinder { top: 15%; }
}

@media (max-aspect-ratio: 3/4) {
  .hero {
    min-height: min(100svh, 58rem);
    padding-bottom: 3.5rem;
  }

  .sky-disc { top: 10%; }
  .viewfinder { top: 24%; }
}

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

  .site-header { padding-top: 0.3rem; padding-bottom: 0.3rem; }
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 0.85rem);
    padding-bottom: 0.85rem;
  }
  .company-name { margin-bottom: 0.55rem; padding-block: 0.18rem; }
  .hero h1 { max-width: 12em; font-size: clamp(2.2rem, 10vh, 2.6rem); }
  .sky-disc { width: 31rem; top: -42%; left: 2%; }
  .viewfinder { top: 10%; right: 8%; width: 13rem; }
  .hero-highlight { margin-top: 0.65rem; padding: 0.24rem 0.55rem; font-size: 0.92rem; }
  .hero-subtitle { margin-top: 0.5rem; padding: 0.38rem 0.65rem; font-size: 0.82rem; line-height: 1.55; }
  .site-nav { max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
}

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

  .sky-disc { transform: scale(1); opacity: 1; }
  .horizon { transform: scaleX(1); }
  .reveal { opacity: 1; transform: none; }
}
