:root {
  color-scheme: light;
  --navy: #10253e;
  --ink: #172a40;
  --body: #43546a;
  --rule: #d5dee8;
  --paper: #fff;
  --mist: #f2f5f8;
  --page-width: 72rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy);
  font-synthesis: none;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

::selection {
  color: var(--navy);
  background: #c9e2fa;
}

h1, h2, h3, p, dl, dd {
  margin: 0;
}

.wrap {
  width: min(var(--page-width), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

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

.masthead-inner {
  display: flex;
  align-items: center;
  min-height: 4.625rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 2.25rem;
  aspect-ratio: 1;
  border-radius: .25rem;
  background: var(--navy);
}

.brand-mark::before, .brand-mark::after {
  position: absolute;
  content: "";
  width: 1rem;
  height: 1rem;
  clip-path: polygon(0 0, 26% 0, 26% 74%, 100% 74%, 100% 100%, 0 100%);
}

.brand-mark::before {
  top: .625rem;
  left: .5rem;
  background: #fff;
}

.brand-mark::after {
  top: .375rem;
  left: .75rem;
  background: #85afd7;
}

.brand-name {
  color: var(--navy);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: .045em;
  white-space: nowrap;
}

.brand-branch {
  padding-inline-start: .875rem;
  border-inline-start: 1px solid var(--rule);
  color: var(--body);
  font-size: .8125rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-image {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 33%;
  background:
    linear-gradient(90deg, var(--navy), #10253eb8 26%, transparent 76%),
    linear-gradient(0deg, #10253e62, transparent 75%),
    url("assets/architecture.jpg") center 53% / cover no-repeat;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(24rem, 33vw, 31rem);
  padding-block: 4.75rem;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(2rem, 3.35vw, 3.375rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.hero h1 span {
  display: block;
  margin-top: .375rem;
  color: #d2e5f7;
  font-size: .77em;
  letter-spacing: .02em;
}

.hero p {
  max-width: 29rem;
  color: #e0eaf4;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.75;
}

.hero p::before {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 1.675rem 0 1.125rem;
  background: #8fbae2;
  content: "";
}

h2 {
  font-size: clamp(1.625rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(9.5rem, 1fr) minmax(0, 3fr);
  gap: 2rem;
  padding-block: 4.375rem;
}

.about-copy {
  max-width: 47rem;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.95;
}

.about-copy p + p {
  margin-top: .875rem;
}

.services {
  padding-block: 3.875rem 4.25rem;
  background: var(--mist);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.625rem;
  border-block: 1px solid var(--rule);
}

.service {
  padding: 1.625rem clamp(1rem, 2.2vw, 2rem) 1.875rem;
}

.service:first-child {
  padding-inline-start: 0;
}

.service:last-child {
  padding-inline-end: 0;
}

.service + .service {
  border-inline-start: 1px solid var(--rule);
}

.service h3 {
  margin-bottom: .625rem;
  color: var(--navy);
  font-size: clamp(1.025rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  letter-spacing: -.015em;
}

.service p {
  color: var(--body);
  font-size: .9375rem;
  line-height: 1.9;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding-block: 3.25rem;
}

.contact-details {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 1.125rem;
  row-gap: .25rem;
}

.contact-details dt {
  color: var(--body);
  font-size: .9375rem;
}

.contact-details dd {
  color: var(--navy);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .015em;
  line-height: 1.1;
}

.footer {
  background: var(--navy);
  color: #d2deec;
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.75rem;
  padding-block: 1.5rem;
  font-size: .8125rem;
  line-height: 1.7;
}

.icp {
  white-space: nowrap;
}

@media (max-width: 52rem) {
  .about-inner {
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr);
    gap: 1.25rem;
    padding-block: 3rem;
  }

  .services {
    padding-block: 3rem;
  }

  .contact-inner {
    padding-block: 2.5rem;
  }
}

@media (max-width: 44rem) {
  .masthead-inner {
    min-height: 3.75rem;
  }

  .brand-mark {
    width: 2rem;
  }

  .brand-mark::before {
    top: .5rem;
    left: .375rem;
  }

  .brand-mark::after {
    top: .25rem;
    left: .625rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-branch {
    padding-inline-start: .625rem;
    font-size: .75rem;
  }

  .hero-image {
    inset-inline-start: 0;
    background:
      linear-gradient(90deg, #10253ef5, #10253e85),
      url("assets/architecture.jpg") 61% 49% / cover no-repeat;
  }

  .hero-inner {
    min-height: 18.5rem;
    padding-block: 3.75rem;
  }

  .hero h1 {
    font-size: clamp(1.4375rem, 6.8vw, 2.375rem);
  }

  .hero h1 span {
    font-size: .81em;
  }

  .hero p {
    font-size: .9375rem;
  }

  .hero p::before {
    margin-block: 1.25rem .875rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: .875rem;
    padding-block: 2.375rem;
  }

  .about-copy {
    font-size: .9375rem;
  }

  .services {
    padding-block: 2.375rem;
  }

  .service-list {
    grid-template-columns: 1fr;
    margin-top: 1.125rem;
    border-block-end: 0;
  }

  .service {
    padding: 1.125rem 0;
    border-block-end: 1px solid var(--rule);
  }

  .service + .service {
    border-inline-start: 0;
  }

  .contact-inner, .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-inner {
    gap: 1rem;
    padding-block: 2.375rem;
  }
}
