:root {
  --ink: #172235;
  --navy: #0f2742;
  --blue: #1e4f7a;
  --line: #d9dee6;
  --muted: #5f6b7a;
  --soft: #f4f6f8;
  --paper: #ffffff;
  --accent: #9a7a3e;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei",
    sans-serif;
  line-height: 1.75;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  color: var(--muted);
  font-size: 14px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: #fff;
}

.language-switch button {
  min-width: 44px;
  height: 30px;
  border: 0;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.language-switch button.active {
  color: #fff;
  background: var(--navy);
}

.site-nav a {
  position: relative;
  padding: 26px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--navy);
}

.site-nav a.active::after {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(440px, 1fr);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 58px clamp(20px, 5vw, 72px);
  gap: clamp(34px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 5.5vw, 66px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 620;
}

.lead {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero-actions,
.section-heading.split,
.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--navy);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button.primary {
  color: #fff;
  background: var(--navy);
}

.button.primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
}

.button.secondary:hover {
  color: #fff;
  background: var(--navy);
}

.hero-image {
  position: relative;
}

.hero-image::before {
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid var(--line);
  content: "";
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) clamp(20px, 4vw, 40px);
}

.muted {
  max-width: none;
  background: var(--soft);
}

.muted > * {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p:last-child,
.section-heading h2:last-child {
  margin-bottom: 0;
}

.text-link {
  color: var(--blue);
  font-weight: 650;
  white-space: nowrap;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.intro-grid > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stats div {
  min-height: 124px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stats strong {
  display: block;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.business-cards,
.strength-grid,
.direction-grid,
.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.business-card,
.strength-grid article,
.direction-grid article,
.quality-grid article {
  min-height: 250px;
  padding: 34px 30px;
  background: #fff;
}

.card-number,
.quality-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.business-card p,
.strength-grid p,
.direction-grid p,
.quality-grid p {
  color: var(--muted);
}

.business-card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 650;
}

.strength-grid {
  grid-template-columns: repeat(4, 1fr);
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.industry-list span {
  padding: 18px 22px;
  border-left: 3px solid var(--navy);
  background: #fff;
  font-weight: 600;
}

.process {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process li {
  min-height: 132px;
  padding: 24px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.process li::before {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  content: "0" counter(step);
}

.process span {
  font-weight: 620;
}

.contact-band {
  max-width: var(--max);
  margin: 0 auto 90px;
  padding: 40px clamp(22px, 4vw, 48px);
  color: #fff;
  background: var(--navy);
}

.contact-band p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-band .eyebrow {
  color: #d8c28b;
}

.contact-band h2 {
  margin-bottom: 10px;
}

.contact-band .button {
  flex: 0 0 auto;
  border-color: #fff;
}

.page-hero {
  padding: clamp(84px, 12vw, 132px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff 0%, #fff 64%, var(--soft) 64%, var(--soft) 100%);
}

.page-hero h1,
.page-hero p {
  max-width: 830px;
}

.page-hero > p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.two-column,
.business-detail,
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 82px);
}

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

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.values div {
  min-height: 142px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values strong,
.values span {
  display: block;
}

.values span {
  margin-top: 22px;
  color: var(--muted);
}

.business-detail {
  align-items: start;
}

.business-detail.muted {
  max-width: none;
}

.business-detail-copy,
.service-list {
  max-width: 560px;
}

.business-detail-copy p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tag-list span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 13px;
}

.service-list {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}

.service-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.case-grid {
  display: grid;
  gap: 28px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 34px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.case-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.case-category {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

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

.case-card dl {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.case-card dt,
.case-card dd {
  margin: 0;
}

.case-card dt {
  font-weight: 650;
}

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

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: var(--navy);
  font-weight: 620;
}

td {
  color: var(--muted);
}

.contact-info {
  padding: 32px;
  border: 1px solid var(--line);
  align-self: start;
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  margin-top: 22px;
  color: var(--navy);
  font-weight: 650;
}

.contact-info dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-row.full,
.inquiry-form .button,
.form-note {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 28px;
  margin: 0;
  color: var(--blue);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  padding: 44px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: #101923;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    padding: 10px 22px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .language-switch {
    margin-left: auto;
  }

  .site-nav.is-open {
    display: grid;
    gap: 0;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .hero,
  .intro-grid,
  .two-column,
  .business-detail,
  .contact-layout,
  .case-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 50px;
  }

  .hero-image::before {
    display: none;
  }

  .business-cards,
  .strength-grid,
.direction-grid,
.quality-grid,
.values {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .language-switch button {
    min-width: 34px;
    padding: 0 6px;
    font-size: 11px;
  }

  .hero-actions,
  .section-heading.split,
  .contact-band {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .business-cards,
  .strength-grid,
  .direction-grid,
  .quality-grid,
  .values,
  .stats,
  .process,
  .industry-list,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .business-card,
  .strength-grid article,
  .direction-grid article,
  .quality-grid article {
    min-height: auto;
  }

  .card-number,
  .quality-grid span {
    margin-bottom: 26px;
  }

  .case-card {
    padding: 16px;
  }

  .case-card img {
    min-height: 220px;
  }

  .case-card dl {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
