:root {
  --ink: #101116;
  --paper: #f7f3eb;
  --muted: #6f6a61;
  --line: rgba(16, 17, 22, 0.14);
  --charcoal: #141821;
  --teal: #2fb7b3;
  --amber: #e8a843;
  --coral: #df6258;
  --white: #fffaf2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 243, 235, 0.92);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  background: rgba(255, 250, 242, 0.08);
  font-weight: 900;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 15px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  background: #11151d;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.9) 0%, rgba(8, 10, 13, 0.72) 36%, rgba(8, 10, 13, 0.2) 72%),
    linear-gradient(0deg, rgba(8, 10, 13, 0.9), rgba(8, 10, 13, 0.08) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  padding: 158px 0 72px;
  margin-left: clamp(20px, 6vw, 82px);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7.4vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 250, 242, 0.84);
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-weight: 900;
}

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

.button.secondary {
  border-color: currentColor;
  color: inherit;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 56px 0 0;
}

.hero-metrics div {
  border-top: 1px solid rgba(255, 250, 242, 0.34);
  padding-top: 16px;
}

.hero-metrics dt {
  color: var(--teal);
  font-size: 26px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 250, 242, 0.78);
  font-weight: 700;
}

.section,
.section-band {
  padding: clamp(72px, 10vw, 132px) 0;
}

.section-band {
  background: var(--charcoal);
  color: var(--white);
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-grid,
.split,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

p {
  margin: 0;
}

.intro p:last-child,
.contact-panel p,
.fit-list p {
  color: rgba(255, 250, 242, 0.76);
  font-size: 18px;
}

.services {
  background:
    linear-gradient(180deg, rgba(47, 183, 179, 0.12), transparent 34%),
    var(--paper);
}

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

.service-card,
.case-grid article {
  min-height: 236px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.7);
  padding: 26px;
}

.service-index {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 900;
}

.service-card p,
.case-grid p {
  margin-top: 16px;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 250, 242, 0.16);
}

.timeline article {
  min-height: 250px;
  background: var(--charcoal);
  padding: 28px;
}

.timeline span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 42px;
  background: var(--teal);
  color: var(--ink);
  font-weight: 900;
}

.timeline p {
  margin-top: 14px;
  color: rgba(255, 250, 242, 0.7);
}

.fit {
  background: #fffaf2;
}

.fit .section-kicker {
  color: var(--coral);
}

.fit-list {
  display: grid;
  gap: 12px;
}

.fit-list p {
  border-left: 4px solid var(--amber);
  background: var(--paper);
  color: var(--ink);
  padding: 18px 20px;
  font-weight: 700;
}

.cases {
  background: #171c25;
}

.case-grid article {
  background: rgba(255, 250, 242, 0.06);
  border-color: rgba(255, 250, 242, 0.14);
}

.case-grid p {
  color: rgba(255, 250, 242, 0.7);
}

.contact {
  background: var(--paper);
}

.contact-panel {
  align-items: center;
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(32px, 6vw, 70px);
}

.contact-panel .section-kicker {
  color: var(--teal);
}

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

.footer {
  padding: 28px 20px 42px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 20px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero {
    min-height: 900px;
  }

  .hero-image {
    object-position: 68% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 10, 13, 0.93), rgba(8, 10, 13, 0.52)),
      linear-gradient(0deg, rgba(8, 10, 13, 0.94), rgba(8, 10, 13, 0.12) 50%);
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding-top: 126px;
  }

  .hero-metrics,
  .service-grid,
  .case-grid,
  .timeline,
  .intro-grid,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    max-width: 100%;
  }

  .section-heading {
    display: block;
  }

  .service-card,
  .case-grid article,
  .timeline article {
    min-height: auto;
  }

  .timeline span {
    margin-bottom: 22px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .nav {
    width: min-content;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
  }

  .hero {
    min-height: 940px;
  }

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

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }
}
