:root {
  --paper: #f3ecdd;
  --paper-soft: #faf6ec;
  --ink: #11120f;
  --ink-soft: #30322c;
  --signal: #c7e45a;
  --signal-dark: #536515;
  --clay: #d86145;
  --line: rgba(17, 18, 15, 0.24);
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 5.5rem);
  --header-height: 5.25rem;
  --space-sm: clamp(1rem, 1.8vw, 1.75rem);
  --space-md: clamp(2rem, 4vw, 4rem);
  --space-lg: clamp(4rem, 8vw, 8rem);
  --title: clamp(3rem, 8vw, 8rem);
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: 0.65rem 1rem;
  color: var(--paper-soft);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(243, 236, 221, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 25rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.brand-mark {
  width: 2.15rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.16rem;
  padding: 0.22rem;
  background: var(--ink);
}

.brand-mark i {
  display: block;
  background: var(--paper);
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(3) {
  background: var(--signal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 0.22rem;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.nav-toggle {
  display: none;
}

main {
  display: block;
}

.hero {
  position: relative;
  min-height: max(43rem, 100svh);
  overflow: hidden;
  overflow: clip;
  padding: calc(var(--header-height) + clamp(4rem, 9vh, 7rem)) var(--gutter) clamp(4rem, 9vh, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(23rem, 1.08fr);
  align-items: center;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 47rem;
}

.hero h1 {
  margin: 0;
  max-width: 8.5em;
  font-family: var(--font-serif);
  font-size: var(--title);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  max-width: 40rem;
  margin: clamp(1.5rem, 4vw, 3rem) 0 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-actions a {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.hero-actions a:first-child {
  color: var(--signal);
  background: var(--ink);
}

.hero-actions a:hover {
  transform: translateY(-3px);
  color: var(--ink);
  background: var(--signal);
}

.ink-field {
  position: relative;
  z-index: 1;
  width: min(50vw, 52rem);
  aspect-ratio: 1.15;
  justify-self: end;
  background: var(--ink);
  border-radius: 43% 57% 36% 64% / 54% 31% 69% 46%;
  transform: rotate(-3deg);
  box-shadow: 2.2rem 2rem 0 var(--signal);
}

.pixel-cloud {
  position: absolute;
  inset: -3rem;
  pointer-events: none;
}

.pixel-cloud span {
  position: absolute;
  width: var(--pixel-size);
  aspect-ratio: 1;
  left: var(--pixel-x);
  top: var(--pixel-y);
  opacity: 0;
  background: var(--pixel-color, var(--ink));
  transform: translate(var(--pixel-dx), var(--pixel-dy)) scale(0.25);
  animation: pixel-assemble 700ms cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
  animation-delay: var(--pixel-delay);
}

.cutout {
  position: absolute;
  display: block;
  background: var(--paper);
}

.cutout-a {
  width: 22%;
  aspect-ratio: 1.4;
  top: 18%;
  left: 12%;
  transform: rotate(11deg);
}

.cutout-b {
  width: 15%;
  aspect-ratio: 0.72;
  right: 18%;
  bottom: 12%;
  transform: rotate(-7deg);
}

.hero-focus {
  position: absolute;
  z-index: 4;
  right: clamp(1.5rem, 7vw, 8rem);
  top: 50%;
  width: min(21rem, 32vw);
  margin: 0;
  color: var(--paper-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  transform: translateY(-50%);
}

.services {
  padding: var(--space-lg) var(--gutter);
  background: var(--paper-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) 1fr;
  align-items: end;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--ink);
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.service-scene {
  position: relative;
  min-height: clamp(23rem, 46vw, 38rem);
  display: grid;
  grid-template-columns: 0.32fr minmax(17rem, 0.68fr) minmax(15rem, 0.8fr);
  align-items: center;
  gap: var(--space-md);
  margin: 0 auto clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
}

.service-ai {
  width: 100%;
  color: var(--paper-soft);
  background: var(--ink);
}

.service-software {
  width: 86%;
  margin-right: 0;
  color: var(--ink);
  background: var(--signal);
}

.service-data {
  width: 94%;
  margin-left: 0;
  color: var(--paper-soft);
  background: var(--ink);
}

.service-content {
  width: 78%;
  margin-right: 3%;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
}

.scene-number {
  align-self: start;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.8;
  opacity: 0.22;
}

.scene-copy {
  position: relative;
  z-index: 2;
  max-width: 39rem;
}

.scene-copy h3 {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.scene-copy strong {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.18rem 0.55rem;
  color: var(--ink);
  background: var(--signal);
  font-size: 0.92rem;
}

.service-software .scene-copy strong {
  color: var(--paper-soft);
  background: var(--ink);
}

.service-content .scene-copy strong {
  color: var(--paper-soft);
  background: var(--clay);
}

.scene-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.scene-shape {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(22vw, 19rem);
  aspect-ratio: 1;
}

.scene-shape::before,
.scene-shape::after {
  content: "";
  position: absolute;
  display: block;
}

.scene-shape-ai {
  border-radius: 49% 51% 38% 62% / 39% 29% 71% 61%;
  background: var(--signal);
  transform: rotate(8deg);
}

.scene-shape-ai::before {
  inset: 22% 48% 42% 10%;
  background: var(--ink);
}

.scene-shape-ai::after {
  inset: 55% 12% 11% 58%;
  background: var(--paper-soft);
}

.scene-shape-software {
  background: var(--ink);
  border-radius: 64% 36% 45% 55% / 52% 67% 33% 48%;
}

.scene-shape-software::before {
  width: 32%;
  aspect-ratio: 1;
  left: -8%;
  top: 13%;
  background: var(--paper-soft);
}

.scene-shape-software::after {
  width: 20%;
  aspect-ratio: 1;
  right: 12%;
  bottom: -6%;
  background: var(--clay);
}

.scene-shape-data {
  background: var(--paper-soft);
  border-radius: 32% 68% 61% 39% / 56% 36% 64% 44%;
}

.scene-shape-data::before {
  inset: 13% 18% 58% 46%;
  background: var(--signal);
}

.scene-shape-data::after {
  inset: 54% 54% 13% 14%;
  background: var(--clay);
}

.scene-shape-content {
  background: var(--clay);
  border-radius: 55% 45% 66% 34% / 41% 61% 39% 59%;
}

.scene-shape-content::before {
  inset: 18% 13% 46% 52%;
  background: var(--paper);
}

.scene-shape-content::after {
  inset: 57% 51% 12% 12%;
  background: var(--ink);
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
  gap: var(--space-lg);
  padding: var(--space-lg) var(--gutter);
  color: var(--paper-soft);
  background: var(--ink);
}

.about::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(1rem, 3vw, 3rem);
  height: 58%;
  background: var(--signal);
}

.about h2 {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  color: var(--signal);
}

.about-copy {
  max-width: 52rem;
}

.about-copy p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.75;
}

.about-copy p + p {
  margin-top: 1.6em;
  padding-top: 1.6em;
  border-top: 1px solid rgba(243, 236, 221, 0.24);
}

.advantages {
  padding: var(--space-lg) var(--gutter);
  background: var(--paper);
}

.judgement-list {
  border-top: 1px solid var(--ink);
}

.judgement {
  border-bottom: 1px solid var(--ink);
}

.judgement summary {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.judgement summary::-webkit-details-marker {
  display: none;
}

.judgement summary i {
  position: relative;
  width: 2.8rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  background: var(--ink);
}

.judgement summary i::before,
.judgement summary i::after {
  content: "";
  position: absolute;
  left: 25%;
  top: calc(50% - 1px);
  width: 50%;
  height: 2px;
  background: var(--signal);
  transition: transform 180ms ease;
}

.judgement summary i::after {
  transform: rotate(90deg);
}

.judgement[open] summary i::after {
  transform: rotate(0deg);
}

.judgement p {
  max-width: 54rem;
  margin: 0 0 2.4rem 27%;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 15rem;
  padding: 3rem var(--gutter);
  text-align: center;
  color: var(--paper-soft);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--signal);
  text-underline-offset: 0.28em;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

@keyframes pixel-assemble {
  to {
    opacity: var(--pixel-opacity, 1);
    transform: translate(0, 0) scale(1);
  }
}

@media (max-width: 1099px) {
  :root {
    --header-height: 4.75rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
  }

  .ink-field {
    width: min(48vw, 36rem);
  }

  .hero-focus {
    right: 5vw;
    width: min(18rem, 31vw);
  }

  .service-scene {
    grid-template-columns: 0.2fr minmax(0, 1fr) minmax(11rem, 0.55fr);
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: clamp(1.1rem, 5vw, 1.7rem);
    --header-height: 4.25rem;
  }

  .site-header {
    gap: 0.75rem;
  }

  .brand {
    max-width: 15rem;
    font-size: 0.76rem;
  }

  .brand-mark {
    width: 1.85rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 3;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
  }

  .nav-toggle span {
    position: absolute;
    width: 1.5rem;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .nav-toggle span:first-child {
    transform: translateY(-0.3rem);
  }

  .nav-toggle span:last-child {
    transform: translateY(0.3rem);
  }

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

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

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.25rem;
    padding: 5rem var(--gutter);
    color: var(--paper-soft);
    background: var(--ink);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms;
  }

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

  .site-header.menu-open .brand {
    color: var(--paper-soft);
  }

  .site-header.menu-open .brand-mark {
    background: var(--signal);
  }

  .site-header.menu-open .brand-mark i {
    background: var(--ink);
  }

  .site-header.menu-open .nav-toggle span {
    background: var(--signal);
  }

  .site-nav a {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 10vw, 3.2rem);
    line-height: 1.2;
  }

  .hero {
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: calc(var(--header-height) + 3.2rem);
    padding-bottom: 3rem;
  }

  .hero-copy {
    padding-bottom: 13rem;
  }

  .hero h1 {
    max-width: 7em;
    font-size: clamp(3.2rem, 15.5vw, 5rem);
  }

  .hero-subtitle {
    max-width: 31rem;
    margin-top: 1.5rem;
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 1.35rem;
  }

  .hero-actions a {
    min-height: 2.8rem;
    font-size: 0.9rem;
  }

  .ink-field {
    position: absolute;
    right: -12%;
    bottom: 2rem;
    width: 68vw;
    max-width: 21rem;
    box-shadow: 1rem 1rem 0 var(--signal);
  }

  .pixel-cloud {
    inset: -1.25rem;
  }

  .hero-focus {
    right: 9%;
    top: auto;
    bottom: 8.8rem;
    width: 50vw;
    padding: 0.4rem 0.55rem;
    font-size: clamp(1rem, 4.5vw, 1.3rem);
    background: var(--ink);
    transform: none;
  }

  .section-heading {
    display: block;
  }

  .service-scene,
  .service-software,
  .service-data,
  .service-content {
    width: 100%;
    min-height: 31rem;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1.5rem;
    margin: 0 0 1.25rem;
    padding: 2rem 1.35rem;
  }

  .scene-number {
    font-size: 3rem;
  }

  .scene-copy h3 {
    margin-bottom: 1rem;
  }

  .scene-shape {
    position: absolute;
    z-index: 0;
    right: -8%;
    bottom: -9%;
    width: 13rem;
    opacity: 0.35;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-left: calc(var(--gutter) + 0.75rem);
  }

  .about h2 {
    position: static;
  }

  .about-copy p {
    font-size: 1.16rem;
  }

  .judgement summary {
    min-height: 5rem;
    font-size: 1.6rem;
  }

  .judgement summary i {
    width: 2.2rem;
  }

  .judgement p {
    margin-left: 0;
  }
}

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

  .site-header {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  .brand-mark {
    width: 1.65rem;
  }

  .hero {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1.12fr) minmax(15rem, 0.88fr);
    align-items: center;
    padding: calc(var(--header-height) + 0.7rem) 1.4rem 0.8rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero h1 {
    max-width: 10em;
    font-size: clamp(2.6rem, 7.3vw, 4.2rem);
    line-height: 0.98;
  }

  .hero-subtitle {
    max-width: 37rem;
    margin-top: 0.65rem;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 0.7rem;
  }

  .hero-actions a {
    min-height: 2.25rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
  }

  .ink-field {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(34vw, 18rem);
    max-width: none;
    box-shadow: 0.75rem 0.75rem 0 var(--signal);
  }

  .hero-focus {
    right: 3.2vw;
    bottom: auto;
    top: 50%;
    width: min(13rem, 25vw);
    font-size: clamp(0.85rem, 2vw, 1.15rem);
    transform: translateY(-50%);
  }

  .site-nav {
    padding-top: 3.5rem;
  }

  .site-nav a {
    font-size: 1.8rem;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .service-scene {
    padding: 3rem;
  }

  .about {
    gap: 4rem;
  }
}

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

  .hero-copy {
    max-width: 58rem;
  }

  .service-scene {
    max-width: 104rem;
  }

  .about-copy {
    max-width: 64rem;
  }
}

@media (min-aspect-ratio: 2/1) and (min-width: 1100px) {
  .hero {
    min-height: 42rem;
    grid-template-columns: minmax(34rem, 0.9fr) minmax(32rem, 0.8fr);
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
  }

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

  .ink-field {
    width: min(37vw, 43rem);
  }

  .hero-focus {
    right: max(5vw, calc((100vw - 150rem) / 2 + 4rem));
  }
}

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

  .hero-copy {
    align-self: end;
    padding-bottom: 28rem;
  }

  .ink-field {
    position: absolute;
    right: 8%;
    bottom: 8rem;
    width: min(64vw, 35rem);
  }

  .hero-focus {
    right: 15%;
    top: auto;
    bottom: 21rem;
    width: 23rem;
    transform: none;
  }
}

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

  .pixel-cloud span,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
