:root {
  --ink: #11110f;
  --ink-soft: #23231f;
  --paper: #f2ede3;
  --paper-bright: #fffaf0;
  --amber: #ef8c27;
  --teal: #2ea69a;
  --line: rgba(17, 17, 15, 0.2);
  --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-gutter: clamp(1.25rem, 4vw, 5rem);
  --section-space: clamp(5rem, 10vw, 10rem);
  --display: clamp(3.1rem, 7.2vw, 8.2rem);
  --title: clamp(2.4rem, 5.4vw, 5.8rem);
  --body: clamp(1rem, 1.2vw, 1.15rem);
  --ease: cubic-bezier(0.22, 0.68, 0, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  min-height: 4.5rem;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(242, 237, 227, 0.18);
  background: rgba(17, 17, 15, 0.9);
  color: var(--paper-bright);
  backdrop-filter: blur(14px);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  border: 1px solid var(--amber);
}

.brand-mark i {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid var(--teal);
}

.brand-mark i:first-child {
  top: 0.25rem;
  left: 0.25rem;
}

.brand-mark i:last-child {
  right: 0.25rem;
  bottom: 0.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 3rem);
  font-size: 0.88rem;
}

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1.1rem;
  height: 2px;
  background: var(--amber);
  transition: right 280ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
}

.menu-toggle span {
  display: block;
  height: 1px;
  margin: 0.32rem 0;
  background: currentColor;
  transition: transform 240ms ease;
}

.hero {
  position: relative;
  min-height: min(100svh, 62rem);
  padding: clamp(8rem, 14vh, 11rem) var(--page-gutter) clamp(4.5rem, 9vh, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 8rem);
  color: var(--paper-bright);
  background:
    linear-gradient(115deg, rgba(46, 166, 154, 0.08), transparent 35%),
    radial-gradient(circle at 82% 32%, rgba(239, 140, 39, 0.17), transparent 26%),
    var(--ink);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 4.5rem 0 auto 0;
  height: 1px;
  background: rgba(242, 237, 227, 0.15);
}

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

.eyebrow {
  width: fit-content;
  margin-bottom: clamp(1.5rem, 4vh, 3.5rem);
  padding-left: 2.6rem;
  position: relative;
  color: var(--amber);
  font-size: clamp(0.88rem, 1.1vw, 1.05rem);
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1.9rem;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 8.5em;
  font-family: var(--font-serif);
  font-size: var(--display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1::first-line {
  color: var(--paper-bright);
}

.hero-subtitle {
  max-width: 39rem;
  margin-top: clamp(1.8rem, 4vh, 3.5rem);
  padding-left: clamp(1.2rem, 3vw, 3rem);
  border-left: 1px solid var(--teal);
  color: rgba(255, 250, 240, 0.72);
  font-size: var(--body);
  line-height: 1.9;
}

.hero-workbench {
  position: relative;
  min-width: 0;
}

.focus-frame {
  position: relative;
  aspect-ratio: 0.86;
  max-height: 68vh;
  border: 1px solid rgba(255, 250, 240, 0.28);
  background:
    linear-gradient(rgba(255, 250, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, 0.04) 1px, transparent 1px);
  background-size: 13% 13%;
}

.corner {
  position: absolute;
  width: 2.2rem;
  height: 2.2rem;
  border-color: var(--amber);
}

.corner-a { top: -0.45rem; left: -0.45rem; border-top: 2px solid; border-left: 2px solid; }
.corner-b { top: -0.45rem; right: -0.45rem; border-top: 2px solid; border-right: 2px solid; }
.corner-c { bottom: -0.45rem; left: -0.45rem; border-bottom: 2px solid; border-left: 2px solid; }
.corner-d { right: -0.45rem; bottom: -0.45rem; border-right: 2px solid; border-bottom: 2px solid; }

.work-line {
  position: absolute;
  background: var(--teal);
  opacity: 0.62;
  transform-origin: left center;
  animation: line-grow 1.4s 400ms var(--ease) both;
}

.line-a { top: 19%; left: 12%; width: 58%; height: 1px; }
.line-b { top: 19%; left: 70%; width: 1px; height: 48%; transform-origin: center top; }
.line-c { top: 67%; left: 38%; width: 32%; height: 1px; }

.work-slice {
  position: absolute;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid var(--amber);
  background: var(--ink-soft);
  font-size: clamp(0.68rem, 1vw, 0.88rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: slice-in 850ms var(--ease) both;
}

.slice-a { top: 11%; left: 17%; animation-delay: 160ms; }
.slice-b { top: 35%; right: 8%; border-color: var(--teal); animation-delay: 320ms; }
.slice-c { bottom: 25%; left: 10%; animation-delay: 480ms; }
.slice-d { right: 16%; bottom: 8%; border-color: var(--teal); animation-delay: 640ms; }

.hero-index {
  position: absolute;
  left: var(--page-gutter);
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 250, 240, 0.45);
  font-size: 0.72rem;
}

.hero-index i {
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--amber) 25%, rgba(255, 250, 240, 0.2) 25%);
}

.services {
  padding: var(--section-space) var(--page-gutter);
  background: var(--paper);
}

.section-heading {
  margin-bottom: clamp(3rem, 7vw, 7rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.section-heading p {
  padding-bottom: 1.2rem;
  color: #777166;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: var(--title);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.service-strip {
  position: relative;
  width: min(100%, 91rem);
  min-height: clamp(13rem, 22vw, 20rem);
  padding: clamp(2rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(4rem, 0.35fr) minmax(14rem, 0.9fr) minmax(18rem, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 5rem);
  border-top: 1px solid var(--line);
  background: var(--paper-bright);
  box-shadow: 0 1.5rem 4rem rgba(17, 17, 15, 0.06);
}

.service-strip:nth-of-type(3),
.service-strip:nth-of-type(5) {
  margin-left: auto;
  background: var(--ink-soft);
  color: var(--paper-bright);
  transform: translateX(clamp(0rem, 2vw, 2rem));
}

.service-strip:nth-of-type(4) {
  width: min(90%, 78rem);
  margin-left: clamp(0rem, 4vw, 5rem);
}

.service-strip + .service-strip {
  margin-top: clamp(1.25rem, 3vw, 3rem);
}

.service-number {
  align-self: start;
  color: var(--amber);
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: 1;
}

.service-title h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  font-weight: 600;
}

.service-title p {
  margin-top: 1rem;
  color: var(--teal);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.service-copy {
  font-size: var(--body);
  line-height: 2;
}

.about {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(14rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 9vw, 10rem);
  color: var(--paper-bright);
  background: var(--ink);
}

.film-edge {
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  height: 0.65rem;
  background: repeating-linear-gradient(90deg, transparent 0 1.5rem, rgba(242, 237, 227, 0.22) 1.5rem 3.2rem, transparent 3.2rem 4.7rem);
}

.film-edge-bottom {
  top: auto;
  bottom: 1rem;
}

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

.about-heading p {
  margin-bottom: 1.4rem;
  color: var(--amber);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.about-heading h2 {
  font-family: var(--font-serif);
  font-size: var(--title);
  font-weight: 600;
  line-height: 1.05;
}

.about-copy {
  counter-reset: about-copy;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 2.3rem);
  line-height: 1.75;
}

.about-copy p {
  position: relative;
  padding: clamp(1.8rem, 4vw, 3.5rem) 0 clamp(1.8rem, 4vw, 3.5rem) clamp(2rem, 4vw, 4.5rem);
  border-top: 1px solid rgba(242, 237, 227, 0.2);
}

.about-copy p::before {
  counter-increment: about-copy;
  content: "0" counter(about-copy);
  position: absolute;
  top: clamp(2.4rem, 4.8vw, 4.2rem);
  left: 0;
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.advantages {
  padding: var(--section-space) var(--page-gutter) calc(var(--section-space) * 1.15);
  background: var(--paper-bright);
}

.delivery-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 3rem);
}

.track-line {
  position: absolute;
  top: 2.15rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.track-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease);
}

.delivery-track.is-visible .track-line i {
  transform: scaleX(1);
}

.advantage {
  position: relative;
  padding-top: 4.6rem;
}

.advantage > span {
  position: absolute;
  z-index: 2;
  top: 1.35rem;
  left: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-bright);
  font-size: 0.62rem;
}

.advantage:nth-of-type(even) {
  margin-top: clamp(2rem, 6vw, 6rem);
}

.advantage h3 {
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--amber);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  font-weight: 600;
}

.advantage:nth-of-type(even) h3 {
  border-color: var(--teal);
}

.advantage p {
  margin-top: 1.5rem;
  font-size: var(--body);
  line-height: 1.9;
}

.site-footer {
  padding: 2.5rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem 2rem;
  color: rgba(255, 250, 240, 0.68);
  background: var(--ink);
  text-align: center;
  font-size: 0.86rem;
}

.site-footer a {
  color: var(--paper-bright);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 0.28rem;
}

.js .reveal {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(2rem);
  animation: reveal-safety 620ms 120ms var(--ease) forwards;
  transition: opacity 420ms var(--ease), clip-path 620ms var(--ease), transform 620ms var(--ease);
}

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

@keyframes line-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes reveal-safety {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes slice-in {
  from { opacity: 0; transform: translate(1.5rem, 1rem); }
  to { opacity: 1; transform: translate(0, 0); }
}

@media (max-width: 767px) {
  :root {
    --page-gutter: clamp(1rem, 5vw, 1.5rem);
    --section-space: clamp(4.5rem, 18vw, 6.5rem);
  }

  .site-header {
    min-height: 4rem;
  }

  .brand {
    max-width: calc(100vw - 6.5rem);
    font-size: clamp(0.68rem, 3vw, 0.8rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 1.55rem;
    height: 1.55rem;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

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

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.7rem var(--page-gutter) 1.1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: var(--ink);
    border-top: 1px solid rgba(242, 237, 227, 0.12);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 280ms var(--ease), opacity 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 3rem;
    padding: 0.9rem 0.4rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(242, 237, 227, 0.12);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding-top: clamp(6.5rem, 12vh, 7.5rem);
    padding-bottom: 3rem;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5.8rem);
  }

  .hero-subtitle {
    line-height: 1.75;
  }

  .hero-workbench {
    width: min(58vw, 15rem);
    justify-self: end;
  }

  .focus-frame {
    max-height: none;
  }

  .work-slice {
    padding: 0.48rem 0.58rem;
    font-size: 0.62rem;
  }

  .hero-index {
    display: none;
  }

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

  .section-heading h2 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .service-strip,
  .service-strip:nth-of-type(3),
  .service-strip:nth-of-type(4),
  .service-strip:nth-of-type(5) {
    width: 100%;
    margin-left: 0;
    padding: 1.6rem;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 1rem 1.2rem;
    transform: none;
  }

  .service-number {
    grid-row: 1 / span 2;
    font-size: 2.7rem;
  }

  .service-title h3 {
    font-size: 1.65rem;
  }

  .service-title p {
    margin-top: 0.55rem;
  }

  .service-copy {
    grid-column: 1 / -1;
    line-height: 1.85;
  }

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

  .about-heading {
    position: static;
  }

  .about-copy {
    font-size: clamp(1.2rem, 5.6vw, 1.55rem);
    line-height: 1.7;
  }

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

  .delivery-track {
    grid-template-columns: 1fr;
    padding-left: 2.3rem;
    gap: 2rem;
  }

  .track-line {
    top: 0;
    bottom: 0;
    left: 0.78rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .track-line i {
    width: 1px;
    height: 100%;
    transform-origin: center top;
    transform: scaleY(0);
  }

  .delivery-track.is-visible .track-line i {
    transform: scaleY(1);
  }

  .advantage,
  .advantage:nth-of-type(even) {
    margin-top: 0;
    padding-top: 0;
  }

  .advantage > span {
    top: 0.1rem;
    left: -2.3rem;
  }

  .advantage h3 {
    font-size: 1.65rem;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
    gap: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(4.6rem, 10vw, 7.2rem);
  }

  .service-strip {
    grid-template-columns: 5rem 0.8fr 1.2fr;
    gap: 2rem;
  }

  .about {
    grid-template-columns: 0.65fr 1.35fr;
    gap: 3rem;
  }

  .delivery-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }

  .track-line {
    display: none;
  }

  .advantage:nth-of-type(even) {
    margin-top: 3rem;
  }
}

@media (min-width: 1100px) {
  .services,
  .advantages {
    padding-left: max(var(--page-gutter), calc((100vw - 108rem) / 2));
    padding-right: max(var(--page-gutter), calc((100vw - 108rem) / 2));
  }
}

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

  .hero-copy {
    padding-left: 2vw;
  }

  .hero-workbench {
    max-width: 35rem;
    justify-self: center;
  }
}

@media (min-aspect-ratio: 2/1) {
  .hero {
    min-height: 100svh;
    padding-top: 6.2rem;
    padding-bottom: 3rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  }

  .hero h1 {
    font-size: clamp(4rem, 7vw, 8rem);
  }

  .focus-frame {
    max-height: 65vh;
  }
}

@media (max-aspect-ratio: 3/4) and (min-width: 768px) {
  .hero {
    min-height: 90svh;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-workbench {
    width: min(38vw, 20rem);
    justify-self: end;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .site-header {
    min-height: 3.5rem;
  }

  .site-nav a {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 4.8rem;
    padding-bottom: 1.5rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.6fr);
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
  }

  .eyebrow {
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    margin-top: 1rem;
    line-height: 1.55;
  }

  .hero-workbench {
    width: auto;
    max-width: 14rem;
    justify-self: end;
  }

  .focus-frame {
    max-height: 68vh;
  }

  .hero-index {
    display: none;
  }

  .site-nav {
    top: 3.5rem;
    max-height: calc(100vh - 3.5rem);
    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;
  }

  .js .reveal {
    opacity: 1;
    clip-path: none;
    transform: none;
  }
}
