:root {
  --mist: #e9eef0;
  --ink: #0c0f12;
  --warm-white: #fffdf5;
  --red: #ff3b30;
  --green: #00b978;
  --blue: #2764ff;
  --orange: #ff8a00;
  --muted: #58636b;
  --line: rgba(12, 15, 18, 0.2);
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --section-pad: clamp(4.5rem, 9vw, 9rem);
  --gutter: clamp(1.1rem, 4vw, 4.5rem);
  --max-width: 1480px;
}

* {
  box-sizing: border-box;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--warm-white);
  color: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 253, 245, 0.18);
  background: rgba(12, 15, 18, 0.9);
  color: var(--warm-white);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  max-width: 44%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem var(--gutter);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 650;
  line-height: 1.35;
}

.brand-mark {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-right: 0.48rem solid transparent;
  border-bottom: 0.82rem solid var(--warm-white);
  border-left: 0.48rem solid transparent;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(4, auto);
}

.site-nav a {
  position: relative;
  display: flex;
  min-height: 3.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem clamp(0.75rem, 1.7vw, 1.7rem);
  border-left: 1px solid rgba(255, 253, 245, 0.15);
  font-size: clamp(0.72rem, 0.85vw, 0.88rem);
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 3px;
  background: var(--warm-white);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  background: var(--ink);
  color: var(--warm-white);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 7vw 7vw;
  content: "";
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(56rem, 65vw);
  padding: clamp(9.5rem, 17vh, 13rem) 0 5rem var(--gutter);
}

.company-name {
  margin: 0 0 clamp(2rem, 5vh, 4rem);
  color: rgba(255, 253, 245, 0.64);
  font-size: clamp(0.76rem, 1vw, 0.95rem);
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 7.8vw, 8.5rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.99;
  text-wrap: balance;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.hero-kicker {
  width: fit-content;
  max-width: 34rem;
  margin: clamp(2rem, 5vh, 4.25rem) 0 0 clamp(1rem, 10vw, 11rem);
  padding: 0.35rem 0.75rem;
  background: var(--warm-white);
  color: var(--ink);
  font-size: clamp(0.92rem, 1.5vw, 1.2rem);
  font-weight: 720;
}

.hero-subtitle {
  max-width: 38rem;
  margin: 1.25rem 0 0 clamp(1rem, 10vw, 11rem);
  color: rgba(255, 253, 245, 0.72);
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
}

.optical-stage {
  position: absolute;
  z-index: 2;
  top: clamp(7rem, 13vh, 10rem);
  right: -7%;
  width: min(59vw, 970px);
  pointer-events: none;
}

.optical-stage svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.beam-glow {
  fill: none;
  filter: url(#soft-glow);
  opacity: 0.65;
  stroke: var(--warm-white);
  stroke-width: 18;
}

.beam,
.ray {
  fill: none;
  stroke-linecap: square;
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
}

.beam {
  stroke: var(--warm-white);
}

.prism-glass {
  fill: rgba(255, 255, 255, 0.035);
}

.prism-line {
  fill: none;
  stroke: rgba(255, 253, 245, 0.8);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.ray-red { stroke: var(--red); }
.ray-green { stroke: var(--green); }
.ray-blue { stroke: var(--blue); }
.ray-orange { stroke: var(--orange); }

.registration-cross circle,
.registration-cross path,
.angle-ticks path {
  fill: none;
  stroke: rgba(255, 253, 245, 0.4);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.spectrum-index {
  position: absolute;
  right: 8%;
  bottom: -2rem;
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  list-style: none;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
}

.spectrum-index li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  padding: 0.2rem 0.5rem;
  background: rgba(12, 15, 18, 0.75);
}

.spectrum-index span {
  color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 2rem;
  left: var(--gutter);
  width: 1px;
  height: 4rem;
  overflow: hidden;
  background: rgba(255,255,255,0.2);
}

.scroll-cue span {
  display: block;
  width: 100%;
  height: 45%;
  background: var(--warm-white);
  animation: cue 1.8s ease-in-out infinite;
}

.section-shell {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  margin-inline: auto;
}

.section-heading,
.services-heading {
  display: grid;
  grid-template-columns: minmax(6rem, 0.45fr) minmax(14rem, 1fr) minmax(16rem, 1fr);
  align-items: end;
  gap: clamp(1.25rem, 3vw, 4rem);
}

.section-heading h2,
.services-heading h2,
.about-heading h2 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 7.5rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.section-heading > p:last-child,
.services-heading > p:last-child {
  max-width: 25rem;
  margin: 0;
  color: var(--muted);
}

.section-number {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.advantages {
  padding-block: var(--section-pad);
}

.calibration-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}

.calibration-track {
  position: relative;
  min-height: 31rem;
  padding: 5.5rem clamp(1rem, 2.5vw, 2.5rem) 2rem;
  border-right: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 11px, rgba(12,15,18,0.13) 12px, transparent 13px);
  background-position: left top;
  background-size: 0.55rem 100%;
  background-repeat: no-repeat;
}

.calibration-track:first-child {
  border-left: 1px solid var(--line);
}

.calibration-track::before {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--ink);
  content: "";
}

.calibration-track:nth-child(1)::before { background: var(--red); }
.calibration-track:nth-child(2)::before { background: var(--green); }
.calibration-track:nth-child(3)::before { background: var(--blue); }
.calibration-track:nth-child(4)::before { background: var(--orange); }

.track-number {
  display: block;
  margin-bottom: clamp(4rem, 9vw, 9rem);
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.calibration-track h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.25;
}

.calibration-track p {
  margin: 0;
  color: #374149;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.services {
  overflow: hidden;
  padding-top: var(--section-pad);
  border-top: 1px solid var(--line);
}

.service-rays {
  position: relative;
  margin-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: var(--section-pad);
}

.service-rays::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  width: 1px;
  background: var(--ink);
  content: "";
  opacity: 0.25;
}

.service-ray {
  --accent: var(--red);
  position: relative;
  display: grid;
  width: min(84%, 1220px);
  min-height: clamp(20rem, 34vw, 32rem);
  grid-template-columns: minmax(7rem, 0.42fr) minmax(0, 1fr);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 5rem);
  margin-left: var(--gutter);
  padding: clamp(2rem, 4vw, 4.5rem);
  border-top: clamp(5px, 0.7vw, 10px) solid var(--accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--mist)) 0%, var(--mist) 66%);
}

.service-ray::after {
  position: absolute;
  top: calc(clamp(5px, 0.7vw, 10px) * -1);
  right: -24vw;
  width: 24vw;
  height: clamp(5px, 0.7vw, 10px);
  background: var(--accent);
  content: "";
}

.service-green {
  --accent: var(--green);
  width: min(72%, 1080px);
  margin-left: clamp(10%, 18vw, 22%);
}

.service-blue {
  --accent: var(--blue);
  width: min(88%, 1320px);
  margin-left: clamp(4%, 7vw, 9%);
}

.service-orange {
  --accent: var(--orange);
  width: min(66%, 990px);
  margin-left: clamp(18%, 28vw, 30%);
}

.service-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 1rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.service-meta span:first-child {
  color: var(--accent);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 1;
}

.service-copy {
  padding-left: clamp(1.4rem, 4vw, 4rem);
}

.service-copy h3 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 5.5rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.service-hook {
  width: fit-content;
  margin: 1.4rem 0 1.8rem;
  padding-bottom: 0.25rem;
  border-bottom: 3px solid var(--accent);
  font-size: clamp(1.02rem, 1.5vw, 1.35rem);
  font-weight: 760;
}

.service-copy > p:last-child {
  max-width: 43rem;
  margin: 0;
  color: #333d44;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
}

.about {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-pad);
  background: var(--ink);
  color: var(--warm-white);
}

.about::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 53%, rgba(255,59,48,0.07) 53% 54%, transparent 54% 64%, rgba(39,100,255,0.08) 64% 65%, transparent 65%);
  content: "";
}

.about-registration {
  position: absolute;
  top: 10%;
  right: 6%;
  width: min(32vw, 30rem);
  aspect-ratio: 1;
}

.about-registration span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--red);
  transform: rotate(45deg);
}

.about-registration span:nth-child(2) {
  border-color: var(--green);
  transform: translate(12px, -7px) rotate(45deg);
}

.about-registration span:nth-child(3) {
  border-color: var(--blue);
  transform: translate(-9px, 12px) rotate(45deg);
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(20rem, 1.3fr);
  gap: clamp(3rem, 8vw, 10rem);
}

.about-heading .section-number {
  margin-bottom: 2rem;
  color: rgba(255,253,245,0.5);
}

.about-heading h2 {
  max-width: 4ch;
}

.about-copy {
  padding-top: clamp(6rem, 12vw, 12rem);
  counter-reset: about;
}

.about-copy p {
  position: relative;
  margin: 0;
  padding: 1.75rem 0 1.75rem 3.5rem;
  border-top: 1px solid rgba(255,253,245,0.2);
  color: rgba(255,253,245,0.82);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  counter-increment: about;
}

.about-copy p::before {
  position: absolute;
  top: 1.85rem;
  left: 0;
  color: rgba(255,253,245,0.45);
  content: "0" counter(about);
  font-size: 0.75rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  padding: 2rem var(--gutter);
  background: var(--ink);
  color: rgba(255,253,245,0.65);
  text-align: center;
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: underline;
  text-decoration-color: rgba(255,253,245,0.25);
  text-underline-offset: 0.25em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--warm-white);
  text-decoration-color: currentColor;
}

.is-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease, transform 480ms cubic-bezier(.22,.75,.24,1);
}

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

.is-ready .beam,
.is-ready .ray,
.is-ready .prism-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 760ms ease forwards;
}

.is-ready .prism-line { animation-delay: 220ms; }
.is-ready .ray-red { animation-delay: 460ms; }
.is-ready .ray-green { animation-delay: 580ms; }
.is-ready .ray-blue { animation-delay: 700ms; }
.is-ready .ray-orange { animation-delay: 820ms; }

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes cue {
  0% { transform: translateY(-110%); }
  55%, 100% { transform: translateY(240%); }
}

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

  .site-header {
    display: block;
  }

  .brand {
    max-width: none;
    min-height: 2.9rem;
    justify-content: center;
    padding: 0.45rem 1rem;
    text-align: center;
  }

  .site-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255,253,245,0.15);
  }

  .site-nav a {
    min-height: 2.9rem;
    padding: 0.45rem 0.2rem;
    font-size: 0.68rem;
  }

  .hero {
    min-height: max(740px, 100svh);
  }

  .hero-copy {
    width: auto;
    padding: 9.3rem var(--gutter) 18rem;
  }

  .company-name {
    display: none;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(3.25rem, 16vw, 5.2rem);
    line-height: 1.01;
  }

  .hero-kicker,
  .hero-subtitle {
    margin-left: 0;
  }

  .optical-stage {
    top: auto;
    right: -34%;
    bottom: 3rem;
    width: 128%;
  }

  .spectrum-index {
    right: 26%;
    bottom: 1rem;
    font-size: 0.64rem;
  }

  .spectrum-index li {
    grid-template-columns: 2rem 1fr;
  }

  .scroll-cue { display: none; }

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

  .section-heading > p:last-child,
  .services-heading > p:last-child {
    margin-top: 0.75rem;
  }

  .calibration-board {
    grid-template-columns: 1fr;
  }

  .calibration-track {
    min-height: 0;
    padding: 2rem 1.25rem 2.5rem 2.2rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .track-number {
    margin-bottom: 2rem;
  }

  .service-rays::before { display: none; }

  .service-ray,
  .service-green,
  .service-blue,
  .service-orange {
    width: calc(100% - (2 * var(--gutter)));
    min-height: 0;
    grid-template-columns: 1fr;
    margin: 0 var(--gutter) 2.5rem;
    padding: 1.75rem 1.25rem 2.25rem;
  }

  .service-ray::after {
    right: calc(var(--gutter) * -1);
    width: var(--gutter);
  }

  .service-meta {
    min-height: 4.5rem;
    flex-direction: row;
    align-items: flex-start;
    padding: 0 0 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-meta span:first-child {
    font-size: 2.5rem;
  }

  .service-copy {
    padding: 1.75rem 0 0;
  }

  .service-copy h3 {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
  }

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

  .about-heading h2 {
    max-width: none;
  }

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

  .about-copy p {
    padding-left: 2.5rem;
  }

  .about-registration {
    top: 3rem;
    right: -18%;
    width: 60vw;
    opacity: 0.48;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .site-header {
    display: flex;
  }

  .brand {
    max-width: 38%;
    justify-content: flex-start;
    padding: 0.4rem 1rem;
  }

  .site-nav { border-top: 0; }

  .site-nav a {
    min-height: 3.1rem;
    padding-inline: 0.65rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero-copy {
    width: 58vw;
    padding: 5.3rem 0 2rem 2rem;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 8.5vw, 4.3rem);
  }

  .hero-kicker {
    margin-top: 1.5rem;
    font-size: 0.8rem;
  }

  .hero-subtitle {
    max-width: 30rem;
    margin-top: 0.7rem;
    font-size: 0.75rem;
  }

  .optical-stage {
    top: 3.4rem;
    right: -9%;
    bottom: auto;
    width: 58vw;
  }

  .spectrum-index {
    right: 12%;
    bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .hero-copy {
    width: 67vw;
  }

  .optical-stage {
    right: -18%;
    width: 68vw;
  }

  .calibration-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .calibration-track:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .about-inner {
    grid-template-columns: minmax(14rem, 0.7fr) minmax(20rem, 1.3fr);
  }
}

@media (min-width: 1100px) {
  .hero-copy { padding-left: max(var(--gutter), calc((100vw - var(--max-width)) / 2)); }
  .scroll-cue { left: max(var(--gutter), calc((100vw - var(--max-width)) / 2)); }
}

@media (min-width: 1440px) {
  .hero h1 { font-size: clamp(7rem, 7.2vw, 9rem); }

  .calibration-track p,
  .service-copy > p:last-child {
    max-width: 38rem;
  }
}

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

  .hero-copy {
    padding-top: 9rem;
  }

  .hero h1 {
    font-size: min(7.5vw, 7.2rem);
  }

  .hero-kicker {
    margin-top: 2.5rem;
  }

  .optical-stage {
    top: 5rem;
    right: -1%;
    width: min(47vw, 920px);
  }
}

@media (min-aspect-ratio: 2/1) and (min-width: 2000px) {
  .hero-copy {
    width: min(72vw, 1650px);
  }
}

@media (max-aspect-ratio: 3/4) and (min-width: 600px) {
  .hero {
    min-height: 100svh;
  }

  .hero-copy {
    width: 86vw;
    padding-top: 13rem;
  }

  .hero h1 {
    font-size: clamp(5rem, 12vw, 7.8rem);
  }

  .optical-stage {
    top: auto;
    right: -16%;
    bottom: 4rem;
    width: 88vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .is-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
