:root {
  --bg: #070912;
  --panel: rgba(15, 22, 38, 0.74);
  --panel-soft: rgba(27, 38, 68, 0.72);
  --line: rgba(111, 229, 255, 0.22);
  --text: #f7fbff;
  --muted: #99a9c7;
  --silver: #82edff;
  --accent: #ff4fd8;
  --violet: #7d5cff;
  --cyan: #38dfff;
  --max: 1180px;
  --radius: 8px;
  --font-en: "Montserrat", "Inter", Arial, sans-serif;
  --font-zh: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(56, 223, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 223, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, rgba(125, 92, 255, 0.24), transparent 36%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: var(--text);
  font-family: var(--font-en), var(--font-zh);
  letter-spacing: 0;
}

body.light-page {
  --bg: #f5f5f3;
  --panel: #ffffff;
  --panel-soft: #ececea;
  --line: rgba(32, 33, 36, 0.14);
  --text: #202124;
  --muted: #676a70;
  --silver: #2c4060;
  --accent: #2c4060;
}

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

img {
  display: block;
  width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 18, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.light-page .site-header {
  background: rgba(245, 245, 243, 0.86);
}

.nav-shell,
.section-inner,
.footer-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark,
.line-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--silver);
  font-weight: 800;
  background: linear-gradient(145deg, rgba(56, 223, 255, 0.12), rgba(255, 79, 216, 0.08));
  box-shadow: inset 0 0 18px rgba(56, 223, 255, 0.12), 0 0 24px rgba(56, 223, 255, 0.1);
}

.brand strong,
.brand small,
.nav-link span,
.nav-link small,
.section-kicker,
.eyebrow {
  display: block;
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.brand small,
.nav-link small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-zh);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 18px 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.nav-link span {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--text);
  border-color: var(--accent);
  text-shadow: 0 0 16px rgba(56, 223, 255, 0.46);
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  overflow: hidden;
  perspective: 1200px;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(7, 9, 18, 0.24), rgba(7, 9, 18, 0.9)),
    linear-gradient(180deg, rgba(56, 223, 255, 0.12), rgba(255, 79, 216, 0.08));
}

.hero-content {
  width: min(980px, calc(100% - 44px));
  text-align: left;
  padding-top: 76px;
  transform: translateZ(40px);
}

.hero h1,
.page-hero h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(44px, 8vw, 108px);
  line-height: 0.92;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(56, 223, 255, 0.25), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.hero h1 span,
.page-hero h1 span,
.section-heading h2 span,
.service-copy h2 span,
.work-card h3 span {
  display: block;
  margin-top: 12px;
  font-family: var(--font-zh);
  font-size: 0.34em;
  line-height: 1.25;
  font-weight: 700;
}

.hero p {
  margin: 28px 0 0;
  color: var(--silver);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-metrics {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(14, 24, 48, 0.68), rgba(8, 11, 24, 0.62));
  box-shadow: inset 0 0 22px rgba(56, 223, 255, 0.08), 0 16px 48px rgba(0, 0, 0, 0.24);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--text);
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1;
}

.hero-metrics span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 26px;
  height: 42px;
  transform: translateX(-50%);
  border: 1px solid rgba(56, 223, 255, 0.58);
  border-radius: 18px;
  box-shadow: 0 0 24px rgba(56, 223, 255, 0.28);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--silver);
}

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section.compact {
  padding: 82px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading p,
.split-copy p,
.service-copy p,
.about-copy p,
.contact-list p {
  color: var(--muted);
  font-family: var(--font-zh);
  font-size: 17px;
  line-height: 1.9;
}

.section-heading h2 {
  font-size: clamp(34px, 5vw, 72px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.split-media img,
.service-image img,
.work-card img,
.reference-visual {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.06);
  border: 1px solid var(--line);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), 0 0 38px rgba(56, 223, 255, 0.12);
}

.split-copy {
  border-left: 1px solid var(--line);
  padding-left: 42px;
  transform: translateZ(0);
}

.split-copy p:first-of-type {
  font-family: var(--font-en);
  color: var(--silver);
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.capability-list span {
  padding: 10px 12px;
  border: 1px solid rgba(56, 223, 255, 0.28);
  background: rgba(56, 223, 255, 0.07);
  color: var(--silver);
  font-size: 13px;
  line-height: 1.3;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.category-link,
.reference-item,
.info-tile {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(26, 38, 68, 0.82), rgba(13, 17, 32, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 60px rgba(0, 0, 0, 0.24);
  transform-style: preserve-3d;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.light-page .service-card,
.light-page .category-link,
.light-page .reference-item,
.light-page .info-tile {
  background: rgba(255, 255, 255, 0.76);
}

.service-card {
  min-height: 172px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.service-card::before,
.info-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(56, 223, 255, 0.16), transparent 34%, rgba(255, 79, 216, 0.12));
  opacity: 0.7;
}

.service-card:hover,
.category-link:hover,
.work-card:hover,
.reference-item:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
  border-color: rgba(56, 223, 255, 0.72);
  box-shadow: 0 28px 80px rgba(56, 223, 255, 0.13), 0 20px 90px rgba(255, 79, 216, 0.1);
}

.service-card strong,
.category-link span {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.service-card small,
.category-link small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-zh);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  min-height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 220ms ease, border-color 220ms ease;
}

.work-card.is-large {
  grid-column: span 2;
}

.work-card img {
  aspect-ratio: 4 / 3;
  transition: transform 500ms ease, filter 500ms ease;
}

.work-card:hover img {
  transform: scale(1.035);
  filter: brightness(0.8) saturate(0.75);
}

.work-card div {
  padding: 20px;
}

.work-card p {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.work-card h3 span {
  font-size: 15px;
  color: var(--muted);
}

.page-hero {
  min-height: 68svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding: 140px 0 72px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  overflow: hidden;
}

.page-hero.plain {
  min-height: auto;
  padding-top: 168px;
  background: var(--bg);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: 64px;
}

.info-stack {
  display: grid;
  gap: 14px;
}

.info-tile {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.info-tile p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-copy h2,
.contact-list h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 54px);
}

.about-copy h2 span,
.contact-list h2 span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-zh);
  font-size: 0.38em;
}

.scope-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.scope-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--silver);
  font-weight: 700;
}

.scope-list span {
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--font-zh);
  font-weight: 400;
}

.service-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 58px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  perspective: 1000px;
}

.service-band.is-reverse {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.service-band.is-reverse .service-image {
  order: 2;
}

.service-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 62px);
  line-height: 0.98;
  text-transform: uppercase;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 52px;
}

.category-link {
  padding: 22px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--silver);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero h1 span[data-category-en] {
  margin-top: 0;
  color: var(--text);
  font-family: var(--font-en);
  font-size: 1em;
  line-height: 0.92;
}

.page-hero h1 span[data-category-zh] {
  color: var(--text);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reference-item {
  min-height: 190px;
  padding: 24px;
}

.reference-item h3 {
  margin: 0 0 18px;
}

.reference-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-card {
  min-height: 330px;
  padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(24, 35, 65, 0.76), rgba(8, 10, 22, 0.82));
  box-shadow: inset 0 0 24px rgba(56, 223, 255, 0.07), 0 22px 70px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(56, 223, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 216, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.48;
  pointer-events: none;
}

.process-card > * {
  position: relative;
}

.process-card > span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 42px;
  border: 1px solid rgba(255, 79, 216, 0.4);
  color: var(--accent);
  font-weight: 800;
  box-shadow: 0 0 22px rgba(255, 79, 216, 0.16);
}

.process-card h3 {
  margin: 0 0 20px;
  font-size: 23px;
  line-height: 1.15;
}

.process-card h3 span,
.proof-panel h2 span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--font-zh);
  font-size: 0.68em;
}

.process-card p,
.proof-grid p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
}

.proof-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 54px;
  align-items: start;
  padding: 44px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(16, 24, 46, 0.82), rgba(8, 11, 22, 0.7));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), inset 0 0 34px rgba(56, 223, 255, 0.06);
}

.proof-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.02;
  text-transform: uppercase;
}

.proof-grid {
  display: grid;
  gap: 18px;
}

.proof-grid article {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.proof-grid article:last-child {
  border-bottom: 0;
}

.proof-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--silver);
  font-size: 18px;
}

.contact-list {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.map-panel {
  min-height: 360px;
  margin-top: 56px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 24%, var(--line) 24% 24.3%, transparent 24.3% 49%, var(--line) 49% 49.3%, transparent 49.3% 74%, var(--line) 74% 74.3%, transparent 74.3%),
    linear-gradient(0deg, transparent 0 24%, var(--line) 24% 24.3%, transparent 24.3% 49%, var(--line) 49% 49.3%, transparent 49.3% 74%, var(--line) 74% 74.3%, transparent 74.3%),
    var(--panel);
  display: grid;
  place-items: center;
}

.map-pin {
  width: 16px;
  height: 16px;
  background: var(--accent);
  transform: rotate(45deg);
  position: relative;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--bg);
  border-radius: 50%;
}

.site-footer {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 12, 0.92);
}

.holo-rig {
  position: absolute;
  right: min(9vw, 120px);
  top: 22%;
  width: min(28vw, 360px);
  height: min(32vw, 420px);
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-18deg);
  opacity: 0.78;
}

.holo-rig span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(56, 223, 255, 0.36);
  background: linear-gradient(135deg, rgba(56, 223, 255, 0.08), rgba(255, 79, 216, 0.04));
  clip-path: polygon(12% 0, 100% 18%, 82% 100%, 0 78%);
  box-shadow: 0 0 34px rgba(56, 223, 255, 0.18), inset 0 0 28px rgba(255, 79, 216, 0.08);
  animation: floatPanel 7s ease-in-out infinite;
}

.holo-rig span:nth-child(2) {
  inset: 42px -26px -42px 26px;
  animation-delay: -1.8s;
}

.holo-rig span:nth-child(3) {
  inset: 84px -52px -84px 52px;
  animation-delay: -3.6s;
}

@keyframes floatPanel {
  0%, 100% {
    transform: translateZ(0);
  }
  50% {
    transform: translateZ(46px) translateY(-12px);
  }
}

.light-page .site-footer {
  background: #ebecea;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.footer-grid h2,
.footer-grid p {
  margin: 0;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 920px) {
  .nav-shell {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
  }

  .nav-link {
    min-width: 90px;
    padding: 10px 8px;
  }

  .section-heading,
  .split,
  .about-grid,
  .contact-grid,
  .service-band,
  .service-band.is-reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-band.is-reverse .service-image {
    order: 0;
  }

  .service-card-grid,
  .work-grid,
  .category-row,
  .reference-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-panel {
    grid-template-columns: 1fr;
  }

  .work-card.is-large {
    grid-column: span 1;
  }

  .split-copy {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .nav-shell,
  .section-inner,
  .footer-grid {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 76px 0;
  }

  .hero-content {
    text-align: left;
    padding-top: 150px;
    padding-bottom: 34px;
  }

  .hero {
    min-height: auto;
  }

  .scroll-cue {
    display: none;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
  }

  .nav-link {
    min-width: 0;
    padding: 10px 4px;
  }

  .nav-link span {
    font-size: 10px;
  }

  .nav-link small {
    font-size: 10px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 44px;
  }

  .holo-rig {
    right: -46px;
    top: 31%;
    width: 220px;
    height: 260px;
    opacity: 0.38;
  }

  .service-card-grid,
  .work-grid,
  .category-row,
  .reference-grid,
  .process-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .proof-panel {
    padding: 24px;
  }

  .service-card {
    min-height: 138px;
  }
}
