:root {
  --ink: #10131a;
  --ink-2: #272d38;
  --muted: #68707d;
  --paper: #f7f5ef;
  --paper-2: #ebe7dd;
  --white: #ffffff;
  --line: rgba(16, 19, 26, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --champagne: #c89b58;
  --steel: #52677f;
  --blue: #2676a8;
  --graphite: #151922;
  --shadow: 0 30px 90px rgba(16, 19, 26, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.62;
  text-rendering: geometricPrecision;
}

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

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

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

.site-shell {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(200, 155, 88, 0.15), transparent 28%),
    linear-gradient(180deg, #fbfaf6 0%, #f1eee7 50%, #f7f5ef 100%);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: rgba(16, 19, 26, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-grid;
  gap: 2px;
  justify-self: start;
}

.brand strong {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: 0;
}

.brand span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-color: var(--champagne);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.language-toggle button {
  min-width: 42px;
  height: 34px;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.language-toggle button.is-active {
  color: #17130d;
  background: var(--champagne);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #17130d;
  font-weight: 800;
  background: var(--champagne);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  white-space: nowrap;
}

.hero,
.page-hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  padding: 136px clamp(20px, 5vw, 72px) 46px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 12, 18, 0.9) 0%, rgba(10, 12, 18, 0.72) 44%, rgba(10, 12, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.02) 0%, rgba(10, 12, 18, 0.78) 100%),
    var(--hero-image) center / cover no-repeat;
}

.page-hero {
  min-height: 74svh;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(247, 245, 239, 0), var(--paper));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--champagne);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 6vw, 76px);
}

.hero-copy {
  width: min(760px, 100%);
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  color: var(--white);
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.46);
}

.button.primary {
  color: #17130d;
  background: var(--champagne);
  border-color: var(--champagne);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(20, 23, 31, 0.68);
  backdrop-filter: blur(18px);
}

.signal {
  min-height: 110px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.signal:last-child {
  border-right: 0;
}

.signal strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 18px;
}

.signal span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.section {
  position: relative;
  padding: clamp(70px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.section.alt {
  background: rgba(255, 255, 255, 0.72);
}

.section.dark {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(38, 118, 168, 0.28), transparent 32%),
    linear-gradient(135deg, #111318 0%, #202735 100%);
}

.inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(280px, 0.46fr);
  gap: clamp(26px, 6vw, 84px);
  align-items: end;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
}

.section-head p,
.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.dark .section-head p,
.dark .lead {
  color: rgba(255, 255, 255, 0.68);
}

.services,
.card-grid,
.scenario-grid {
  display: grid;
  gap: 16px;
}

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

.card-grid,
.scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.info-card,
.material,
.scenario-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(16, 19, 26, 0.1);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card figure,
.feature-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--graphite);
}

.service-card img,
.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transform: scale(1.01);
  transition: transform 600ms ease, filter 600ms ease;
}

.service-card:hover img,
.feature-card:hover img {
  filter: saturate(1) contrast(1.06);
  transform: scale(1.045);
}

.service-card figure::after,
.feature-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 19, 26, 0), rgba(16, 19, 26, 0.32));
}

.service-body,
.info-card,
.material,
.scenario-card {
  padding: 24px;
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.kicker,
.service-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card h3,
.info-card h3,
.material h3,
.scenario-card h3 {
  margin: 10px 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

.service-card p,
.info-card p,
.material p,
.scenario-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-points {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink-2);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.service-points span,
.check-list span {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
}

.service-points span::before,
.check-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--champagne);
  border-radius: 50%;
}

.feature-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.64fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}

.feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.feature-card img {
  aspect-ratio: 5 / 4;
}

.feature-caption {
  padding: 18px 22px 22px;
}

.feature-caption strong {
  display: block;
  margin-bottom: 4px;
}

.feature-caption span {
  color: var(--muted);
  font-size: 14px;
}

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

.project-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
  box-shadow: var(--shadow);
}

.project-card.is-wide {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.01);
  transition: transform 700ms ease, filter 700ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(16, 19, 26, 0) 34%, rgba(16, 19, 26, 0.86) 100%),
    linear-gradient(90deg, rgba(16, 19, 26, 0.38), rgba(16, 19, 26, 0.04));
}

.project-card:hover img {
  filter: saturate(1) contrast(1.08);
  transform: scale(1.045);
}

.project-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 24px;
  color: var(--white);
}

.project-card-content span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card-content h3 {
  margin: 8px 0 8px;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.12;
}

.project-card-content p {
  width: min(480px, 100%);
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.visual-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(235, 231, 221, 0.44)),
    var(--paper);
}

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

.reference-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reference-card {
  overflow: hidden;
  border: 1px solid rgba(16, 19, 26, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 70px rgba(16, 19, 26, 0.13);
}

.reference-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
}

.reference-card-body {
  min-height: 178px;
  padding: 22px;
}

.reference-card-body span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 13px;
  font-weight: 850;
  background: linear-gradient(135deg, var(--graphite), var(--steel));
  border-radius: 50%;
}

.reference-card-body h3 {
  margin-bottom: 8px;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.18;
}

.reference-card-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.process-grid,
.flow-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.process-item,
.flow-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px;
  background: rgba(247, 245, 239, 0.9);
}

.process-item b,
.flow-item b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--graphite);
  border-radius: 50%;
  font-size: 14px;
}

.process-item strong,
.flow-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.process-item span,
.flow-item span {
  color: var(--muted);
  font-size: 14px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--line-dark);
}

.principle-card {
  min-height: 188px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.07);
}

.principle-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 20px;
}

.principle-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.material {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.material span:last-child {
  color: var(--steel);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 19, 26, 0.98), rgba(29, 35, 46, 0.92)),
    var(--graphite);
}

.contact h2 {
  margin-bottom: 20px;
}

.contact p {
  width: min(650px, 100%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.contact-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--line-dark);
}

.contact-row {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.contact-row small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-row a,
.contact-row span {
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.56);
  background: #0d0f14;
  font-size: 13px;
}

body[data-lang="en"] h1 {
  max-width: 800px;
  font-size: clamp(46px, 7vw, 84px);
}

body[data-lang="en"] .page-hero h1 {
  max-width: 980px;
  font-size: clamp(40px, 5.2vw, 68px);
}

body[data-lang="en"] h2 {
  font-size: clamp(30px, 3.7vw, 52px);
}

body[data-lang="en"] .hero-copy,
body[data-lang="en"] .contact p {
  max-width: 780px;
  font-size: clamp(17px, 1.55vw, 20px);
}

body[data-lang="en"] .service-card p,
body[data-lang="en"] .service-points,
body[data-lang="en"] .project-card-content p,
body[data-lang="en"] .reference-card-body p,
body[data-lang="en"] .process-item span,
body[data-lang="en"] .flow-item span,
body[data-lang="en"] .principle-card span {
  line-height: 1.55;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .top-actions {
    justify-content: flex-end;
  }

  .hero,
  .page-hero {
    min-height: 88svh;
    padding-top: 118px;
  }

  .signal-strip,
  .services,
  .card-grid,
  .project-gallery,
  .reference-grid,
  .reference-grid.is-four,
  .scenario-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .project-card.is-wide {
    grid-column: auto;
  }

  .signal {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .signal:last-child {
    border-bottom: 0;
  }

  .section-head,
  .feature-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: absolute;
    min-height: 72px;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 18px;
  }

  .nav-contact {
    display: none;
  }

  .language-toggle button {
    min-width: 38px;
  }

  h1,
  body[data-lang="en"] h1 {
    font-size: clamp(40px, 14vw, 60px);
  }

  .page-hero h1,
  body[data-lang="en"] .page-hero h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  h2,
  body[data-lang="en"] h2 {
    font-size: clamp(27px, 9vw, 42px);
  }

  .hero,
  .page-hero {
    min-height: 92svh;
    padding-bottom: 28px;
    background-position: 56% center;
  }

  .hero-copy {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .signal-strip {
    display: none;
  }

  .service-body,
  .info-card,
  .material,
  .scenario-card,
  .principle-card {
    padding: 22px;
  }

  .process-item,
  .flow-item {
    grid-template-columns: 1fr;
  }

  .footer {
    display: grid;
  }
}
