:root {
  color-scheme: light;
  --brand: #3076b5;
  --brand-deep: #225d92;
  --navy: #102943;
  --ink: #14283b;
  --text: #43586d;
  --line: #dbe4ec;
  --paper: #f2f6fa;
  --white: #fff;
  --gutter: clamp(1.35rem, 5.6vw, 5.6rem);
  --content: 80rem;
  --font: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.7 var(--font); color: var(--ink); }
h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: fixed; z-index: 10; inset: 1rem auto auto 1rem; padding: .6rem 1rem; background: white; }
.wrap { width: min(var(--content), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8.1vw, 7.6rem); scroll-margin-top: 5.2rem; }

.site-header {
  position: sticky; top: 0; z-index: 5; background: #fff;
  box-shadow: 0 1px 0 #10294313;
}
.header-inner { display: flex; align-items: center; min-height: 5.2rem; gap: clamp(1.2rem, 3vw, 3.2rem); }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; text-decoration: none; }
.brand img { height: auto; width: clamp(10rem, 16vw, 13.7rem); }
:lang(en) .brand img { width: 2.65rem; }
.brand span { font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.55rem); margin-left: auto; }
.main-nav a, .language {
  display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap;
  font-size: .89rem; font-weight: 600; text-decoration: none;
}
.main-nav a { position: relative; }
.main-nav a::after {
  content: ""; position: absolute; inset: auto 0 .12rem; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.main-nav a:hover, .language:hover { color: var(--brand-deep); }
.language { justify-content: center; min-width: 3.05rem; padding: 0 .2rem 0 .9rem; border-left: 1px solid var(--line); }
.menu-toggle { display: none; }

.hero {
  position: relative; display: grid; align-items: center; min-height: clamp(34rem, 51vw, 46rem);
  overflow: hidden; isolation: isolate; background: #0e2a46; color: white;
}
.hero-photo, .hero-photo img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; }
.hero-photo img { object-fit: cover; object-position: 50% 51%; }
.hero::after {
  content: ""; z-index: -1;
  background: linear-gradient(90deg, #06192eea 0%, #0a223bd9 24%, #0e2d4a66 57%, #142f4520 100%),
              linear-gradient(0deg, #102c4770, transparent 37%);
}
.hero-inner { padding-block: clamp(3.9rem, 7.5vw, 7rem); }
.hero-eyebrow, .eyebrow {
  font-size: .78rem; font-weight: 700; color: var(--brand-deep); letter-spacing: .16em;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: clamp(1.15rem, 2.3vw, 2rem); color: #e0f0ff;
}
.hero-eyebrow::before { content: ""; height: 2px; width: 1.85rem; background: #70b6f1; }
.hero h1 {
  max-width: 52rem; font-size: clamp(3.05rem, 6.7vw, 6.4rem);
  line-height: 1.105; font-weight: 700; letter-spacing: .025em;
}
:lang(en) .hero h1 { letter-spacing: -.049em; font-weight: 650; }
.hero-description {
  margin-top: 1.45rem; max-width: 33rem; color: #f1f7ff;
  font-size: clamp(1rem, 1.55vw, 1.3rem); line-height: 1.65;
}
.hero-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.8rem, 3.25vw, 2.85rem); }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 3.05rem;
  width: fit-content; padding: .68rem 1.22rem; border: 1px solid transparent; border-radius: 3px;
  font-size: .93rem; line-height: 1.25; font-weight: 700; text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.button-light { background: white; color: var(--navy); }
.button-light:hover { background: #dceeff; }
.button-outline { border-color: #d0e3f6a8; background: #112b46a1; color: white; }
.button-outline:hover { background: #244b71; border-color: white; }
.button-blue { border-color: var(--brand-deep); background: transparent; color: var(--brand-deep); }
.button-blue:hover { background: var(--brand-deep); color: white; }
.hero a:focus-visible, .contact a:focus-visible, .footer a:focus-visible { outline-color: white; }

.section h2 {
  margin-top: .7rem; font-size: clamp(2.05rem, 4vw, 3.65rem); line-height: 1.12;
  font-weight: 680; letter-spacing: -.025em;
}
:lang(en) .section h2 { letter-spacing: -.05em; }
.section-heading { margin-bottom: clamp(1.7rem, 3.4vw, 2.8rem); }
.section-heading > p:not(.eyebrow) { margin-top: 1rem; max-width: 41rem; color: var(--text); }
.about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.98fr); gap: clamp(2rem, 7.2vw, 7rem); align-items: center; }
.about-content .lead { color: var(--ink); font-size: clamp(1.11rem, 1.6vw, 1.35rem); line-height: 1.65; font-weight: 560; margin-top: 1.4rem; }
.about-content > p:not(.eyebrow, .lead) { color: var(--text); margin-top: 1rem; }
.focus-list {
  display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; margin-top: 1.7rem;
  padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--brand-deep);
}
.focus-list li { font-size: .9rem; font-weight: 650; }
.about-photo { position: relative; background: #d9e9f5; }
.about-photo::after { content: ""; display: block; height: 5px; width: 25%; background: var(--brand); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }

.portfolio { background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.35rem; }
.filters button {
  display: inline-flex; align-items: center; min-height: 2.7rem; padding: .42rem .93rem;
  border: 1px solid #cddce9; border-radius: 3px;
  background: white; color: var(--text); font-size: .87rem; font-weight: 650;
}
.filters button:hover { color: var(--brand-deep); border-color: var(--brand); }
.filters button[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: white; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .78rem; }
.project { display: flex; min-width: 0; }
.project-open {
  display: flex; position: relative; flex-direction: column; width: 100%; min-height: 10rem;
  padding: 1.12rem 1.05rem .97rem; border: 1px solid var(--line);
  background: white; border-radius: 3px; text-align: left; color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.project-open:hover { border-color: #79a5cc; box-shadow: 0 4px 20px #0e2b4c0b; }
.project-open::after {
  content: "+"; position: absolute; inset: auto .83rem .85rem auto;
  font-size: 1.18rem; line-height: 1.1; color: var(--brand-deep);
}
.project-logo { display: grid; place-items: center; width: 100%; height: 4rem; margin-bottom: .8rem; overflow: hidden; }
.project-logo img { width: 100%; height: 100%; max-width: min(9.1rem, 100%); max-height: 3.35rem; object-fit: contain; }
.logo-fallback { font-size: 1.05rem; font-weight: 700; color: var(--brand-deep); text-align: center; }
.project-name { font-weight: 700; font-size: .97rem; padding-right: .9rem; }
.project-sector { font-size: .82rem; color: var(--text); padding-right: 1rem; }
.section-action { margin: 1.5rem auto 0; display: flex; }

.contact { background: #102c48; color: white; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr) auto; gap: clamp(1.5rem, 3.8vw, 4rem); align-items: start; }
.contact .eyebrow { color: #a8d1f6; }
.contact-intro > p:not(.eyebrow) { color: #e0eaf5; margin-top: 1rem; }
.contact-intro .button { margin-top: 1.45rem; }
.contact-details { font-style: normal; color: #deebf7; }
.contact-details .company-name { font-weight: 700; color: white; margin-bottom: .55rem; }
.contact-details ul { padding: 0; margin-top: .8rem; list-style: none; }
.contact-details li { display: flex; flex-wrap: wrap; gap: 0 .55rem; margin-top: .35rem; }
.contact-details span { color: #b5cde2; font-size: .92rem; }
.contact-details a { color: white; text-underline-offset: .18rem; overflow-wrap: anywhere; }
.wechat { width: min(100%, 9.7rem); text-align: center; }
.wechat img { width: 7.8rem; height: auto; aspect-ratio: 1; object-fit: contain; margin-inline: auto; background: white; padding: .35rem; border-radius: 3px; }
.wechat figcaption { margin-top: .45rem; font-size: .88rem; color: #d8e7f5; }
.footer { color: #c0d2e4; background: #0a2138; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.05rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: white; font-size: .92rem; font-weight: 700; text-decoration: none; }
.footer-inner small, .back-top { font-size: .86rem; }
.back-top { text-underline-offset: .18rem; }

.info-dialog {
  width: min(calc(100% - 2rem), 33rem); max-height: calc(100% - 2rem); padding: clamp(1.55rem, 4vw, 2.7rem);
  color: var(--ink); border: 0; border-top: 4px solid var(--brand); border-radius: 4px;
  box-shadow: 0 18px 60px #091f3a42;
}
.info-dialog::backdrop { background: #071a2fb8; }
.close-dialog {
  position: absolute; top: .52rem; right: .65rem; min-width: 2.75rem; min-height: 2.75rem;
  background: white; border: 0; color: var(--ink); font-size: 1.65rem; line-height: 1;
}
.dialog-content .eyebrow { padding-right: 2.1rem; }
.dialog-content h2 { font-size: clamp(1.68rem, 4.9vw, 2.42rem); line-height: 1.16; margin: .45rem 0 .85rem; }
.dialog-content p:not(.eyebrow) { color: var(--text); }
.dialog-content .exit-label, .dialog-link { display: inline-block; margin: 1rem .6rem 0 0; font-size: .92rem; }
.dialog-link { color: var(--brand-deep); font-weight: 700; text-underline-offset: .2rem; }

@media (max-width: 880px) {
  .header-inner { gap: 1.15rem; }
  .main-nav { gap: 1rem; }
  .brand img { width: 10.65rem; }
  .header-inner { min-height: 4.65rem; }
  .hero { min-height: 36rem; }
  .section { scroll-margin-top: 4.65rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .wechat { justify-self: start; }
}
@media (max-width: 690px) {
  .header-inner { min-height: 4.2rem; flex-wrap: wrap; gap: 0 .7rem; }
  .brand img { width: 10rem; }
  :lang(en) .brand img { width: 2.3rem; }
  .header-inner .language { border: 0; padding: 0; min-width: 2.75rem; margin-left: auto; }
  .menu-toggle:not([hidden]) {
    display: inline-flex; margin-left: auto; align-items: center; gap: .45rem;
    padding: .55rem .62rem; min-height: 2.75rem; background: #f5f8fb; border: 1px solid var(--line);
    border-radius: 3px; color: var(--navy); font-weight: 700; font-size: .89rem;
  }
  .menu-toggle span { width: .88rem; height: .64rem; border-block: 2px solid; }
  .menu-toggle:not([hidden]) ~ .language { margin-left: 0; }
  .main-nav {
    order: 3; flex-basis: 100%; gap: 0 .85rem; justify-content: space-between; flex-wrap: wrap;
    margin-left: 0; padding-block: .2rem .55rem;
  }
  .menu-toggle:not([hidden]) + .main-nav {
    position: absolute; inset: 100% 0 auto; padding: .4rem var(--gutter) .85rem;
    flex-direction: column; align-items: stretch; background: white; box-shadow: 0 5px 10px #112b4a1c;
  }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + .main-nav { display: none; }
  .menu-toggle:not([hidden]) + .main-nav a { padding: .4rem .2rem; border-bottom: 1px solid var(--line); }
  .hero { min-height: 33.5rem; }
  .hero-photo img { object-position: 61% center; }
  .hero::after { background: linear-gradient(90deg, #071d34dd, #0a253e82), linear-gradient(0deg, #132e46c2, transparent 64%); }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4.45rem); }
  .hero-description { max-width: 22rem; }
  .hero-links { gap: .58rem; }
  .button { padding-inline: .93rem; }
  .about-grid { grid-template-columns: 1fr; }
  .section { scroll-margin-top: 4.2rem; }
  .about-photo img { aspect-ratio: 16 / 10; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem; }
  .project-open { min-height: 9.35rem; padding: .8rem .75rem .82rem; }
  .project-open::after { right: .58rem; }
  .project-logo { margin-bottom: .45rem; }
  .project-logo img { max-width: 8.1rem; }
}
@media (max-width: 430px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner small { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
