:root {
  --ink: #17202a;
  --muted: #61707f;
  --line: #dde3e8;
  --paper: #f7f8f6;
  --white: #ffffff;
  --red: #b51f2a;
  --orange: #ef6900;
  --gold: #b68a35;
  --green: #316b63;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.14);
  --content-wide: 1680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: rgba(16, 22, 29, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 50px;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.nav {
  justify-self: end;
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.nav a:hover {
  color: var(--white);
}

.lang-toggle,
.case-toolbar button,
.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}

.lang-toggle {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  padding: 0 14px;
}

.hero {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: 120px clamp(20px, 6vw, 84px) 64px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 13, 18, 0.86), rgba(8, 13, 18, 0.45) 52%, rgba(8, 13, 18, 0.16)),
    linear-gradient(0deg, rgba(8, 13, 18, 0.62), rgba(8, 13, 18, 0.05));
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

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

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions,
.value-row,
.case-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  padding: 28px clamp(16px, 3vw, 44px);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  color: var(--red);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 84px);
}

.section > .section-head,
.about-section > div,
.process-grid,
.case-toolbar,
.case-grid,
.contact-section {
  max-width: var(--content-wide);
  margin-left: auto;
  margin-right: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.about-section {
  display: grid;
  gap: 24px;
}

.prose {
  color: var(--muted);
  font-size: 18px;
}

.value-row span {
  border-left: 4px solid var(--red);
  padding: 12px 16px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(23, 32, 42, 0.08);
}

.about-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.about-points article {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.about-points h3 {
  color: var(--ink);
  font-size: 19px;
}

.about-points p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.services-section .section-head {
  max-width: var(--content-wide);
}

.section-head > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 18px;
}

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

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.case-banner {
  max-width: var(--content-wide);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #111820;
  box-shadow: 0 18px 44px rgba(23, 32, 42, 0.12);
}

.case-banner-track {
  position: relative;
  min-height: clamp(260px, 34vw, 540px);
}

.case-banner-item {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  animation: projectFade var(--duration) ease-in-out infinite;
  animation-delay: calc(var(--i) * 5s);
}

.case-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: projectZoom var(--duration) ease-in-out infinite;
  animation-delay: calc(var(--i) * 5s);
}

.case-banner-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(70px, 10vw, 150px) clamp(22px, 4vw, 54px) clamp(22px, 4vw, 46px);
  color: var(--white);
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(180deg, rgba(8, 13, 18, 0), rgba(8, 13, 18, 0.78));
}

@keyframes projectFade {
  0%,
  3%,
  13% {
    opacity: 1;
  }

  18%,
  100% {
    opacity: 0;
  }
}

@keyframes projectZoom {
  0% {
    transform: scale(1.04);
  }

  18%,
  100% {
    transform: scale(1);
  }
}

.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(23, 32, 42, 0.07);
}

.case-card img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
}

.case-card-body {
  margin-left: 18px;
  margin-right: 18px;
}

.case-card p {
  color: var(--muted);
}

.global-network {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.global-network .section-head {
  max-width: 820px;
}

.global-network .section-head p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.network-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: clamp(20px, 4vw, 64px);
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 28px 36px;
  border: 1px solid var(--line);
  background: var(--white);
}

.network-map-item {
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
}

.network-map-top,
.network-map-bottom {
  display: grid;
  place-items: center;
  width: clamp(104px, 10vw, 142px);
  aspect-ratio: 1;
  border-radius: 50%;
  text-align: center;
  line-height: 1.18;
}

.network-map-top {
  color: var(--white);
  background: var(--orange);
  font-size: clamp(21px, 2.4vw, 34px);
  font-weight: 800;
}

.network-map-bottom {
  margin-top: -12px;
  color: #2f3337;
  background: #e5e5e5;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 600;
}

.network-map span {
  max-width: 112px;
  overflow-wrap: anywhere;
}

html[lang="en"] .network-map-top {
  font-size: clamp(18px, 1.8vw, 26px);
}

html[lang="en"] .network-map-bottom {
  font-size: clamp(14px, 1.25vw, 18px);
}

.process-band {
  color: var(--white);
  background: #19232e;
}

.process-band .section-kicker {
  color: #d8b870;
}

.process-grid article {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.process-grid span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--ink);
  background: #d8b870;
  font-weight: 900;
}

.process-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.cases-section {
  background: var(--white);
}

.case-toolbar {
  margin-bottom: 24px;
}

.case-toolbar button {
  padding: 0 16px;
  color: var(--muted);
  background: var(--paper);
  border-color: var(--line);
}

.case-toolbar button.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.case-card-body {
  padding: 18px 0 20px;
}

.case-open {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.case-open img {
  width: 100%;
  height: 100%;
}

.case-link {
  margin-top: 8px;
  padding: 0;
  min-height: auto;
  border: 0;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.case-card small {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
}

.modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 13, 18, 0.78);
}

.gallery-modal.open {
  display: flex;
}

.gallery-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(92vh, 920px);
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: minmax(280px, 1fr) auto;
  gap: 18px;
  padding: 18px;
  overflow: auto;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(16, 24, 32, 0.72);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gallery-main {
  min-height: 360px;
  background: #101820;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.gallery-info {
  align-self: end;
  padding: 12px 8px 12px 0;
}

.gallery-info small {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-info h3 {
  margin: 8px 0;
}

.gallery-info p {
  color: var(--muted);
}

.gallery-thumbs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.gallery-thumbs button {
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
}

.gallery-thumbs button.active {
  border-color: var(--red);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 78px);
  background: #edf1ee;
}

.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label,
.contact-form .full {
  display: grid;
  gap: 8px;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8dd;
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 6vw, 84px);
  color: rgba(255, 255, 255, 0.72);
  background: #101820;
}

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

  .nav {
    display: none;
  }

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

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

  .network-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px 18px;
  }

  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand strong {
    max-width: 156px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 116px;
    height: 44px;
  }

  .hero {
    min-height: 76vh;
    padding: 104px 18px 46px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .metrics,
  .about-points,
  .process-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .network-map {
    gap: 16px;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery-modal {
    padding: 12px;
  }

  .gallery-panel {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }

  .gallery-main {
    min-height: 260px;
  }

  .gallery-info {
    padding-right: 0;
  }
}
