:root {
  --navy: #0a1526;
  --blue: #2563eb;
  --sky: #9bd7ff;
  --ink: #172b42;
  --muted: #51667e;
  --line: #c8d7e7;
  --section-padding: 90px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
}

body {
  margin: 0;
  font-family:
    system-ui, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC",
    sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}
p {
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.header :focus-visible,
.hero :focus-visible,
.footer :focus-visible {
  outline-color: var(--sky);
}
main:focus,
section:focus {
  outline-offset: -4px;
}

.wrap {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  inset: 8px auto auto 8px;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
  z-index: 30;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid #ffffff16;
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand img {
  width: 42px;
  height: auto;
}
.brand-name {
  display: block;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.05;
}
.brand-sub {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #a8bed6;
  margin-top: 5px;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.navlinks a {
  display: block;
  padding-block: 10px;
  font-size: 14px;
  color: #d4e0ee;
  font-weight: 500;
  white-space: nowrap;
}
.navlinks a:hover,
.language a:hover {
  color: var(--sky);
}

.language {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid #ffffff28;
  padding-left: 23px;
  font-size: 13px;
  white-space: nowrap;
  color: #c2d0df;
}

.language [aria-current] {
  color: #fff;
  font-weight: 700;
}
.language a {
  display: grid;
  min-width: 24px;
  min-height: 32px;
  place-items: center;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  background: transparent;
  border: 1px solid #ffffff65;
  color: #fff;
  border-radius: 7px;
  cursor: pointer;
}

.hero {
  background: radial-gradient(
    ellipse at 80% 48%,
    #1b3a60 0%,
    #10223a 42%,
    var(--navy) 78%
  );
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  min-height: 610px;
  padding: 80px 0 92px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2563a2;
  line-height: 1.5;
}

.eyebrow::before {
  content: "";
  width: 23px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.hero .eyebrow,
.approach .eyebrow {
  color: var(--sky);
}

.hero h1 {
  margin: 26px 0 25px;
  font-size: clamp(48px, 5.4vw, 79px);
  font-weight: 640;
  letter-spacing: -0.057em;
  line-height: 1.04;
}

.hero h1 span {
  display: block;
  color: var(--sky);
}
.hero p {
  color: #b9c9dc;
  font-size: 18px;
  max-width: 570px;
  line-height: 1.75;
}
.hero-art {
  display: block;
  width: 100%;
  height: auto;
  max-width: 590px;
  justify-self: end;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 21px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 650;
  font-size: 14px;
  min-height: 50px;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.btn-primary {
  background: #a9d8ff;
  color: #0c213a;
}
.btn-primary:hover {
  background: #c5e5ff;
}
.btn-outline {
  color: #e3edf8;
  border-color: #6883a1;
}
.btn-outline:hover {
  background: #ffffff0c;
  border-color: #c5dfff;
}

.hero-bottom {
  border-top: 1px solid #ffffff18;
  background: var(--navy);
}

.hero-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  color: #b0c2d6;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-bottom span {
  display: flex;
  gap: 9px;
  align-items: center;
}
.hero-bottom span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #77baf1;
  flex: none;
}
.section {
  padding-block: var(--section-padding);
}
.section h2 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 620;
  margin: 16px 0 23px;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.65fr);
  gap: 80px;
  align-items: center;
}
.about-copy p {
  font-size: 17px;
  line-height: 1.85;
  margin-top: 16px;
  max-width: 665px;
}
.experience {
  border-left: 1px solid var(--line);
  padding: 12px 0 12px 32px;
}
.experience .number {
  font-size: 94px;
  letter-spacing: -0.08em;
  font-weight: 550;
  line-height: 1;
  color: #18529a;
}
.experience .number small {
  font-size: 30px;
  letter-spacing: -0.02em;
}
.experience h3 {
  font-size: 20px;
  margin: 16px 0 9px;
  letter-spacing: -0.025em;
}
.experience p {
  font-size: 14px;
  max-width: 250px;
}
.services {
  background: #f1f5fa;
  border-block: 1px solid #e9eef4;
}
.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}
.section-head h2 {
  margin-bottom: 0;
}
.section-head p {
  max-width: 430px;
}
.services-grid {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 24px;
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
}

.service-top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #c6d8eb;
  color: #225b9d;
}

.service-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-index {
  font-size: 11px;
  color: #576d85;
  font-weight: 600;
  letter-spacing: 1px;
}
.service h3 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.service p {
  font-size: 15px;
  line-height: 1.7;
}
.approach {
  background: #10243b;
  color: #fff;
}
.approach p {
  color: #b6c7da;
}
.approach .section-head {
  margin-bottom: 50px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step {
  padding: 26px 22px;
  border-top: 1px solid #58718d;
  border-right: 1px solid #ffffff20;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8acaff;
}
.step:first-child {
  padding-left: 0;
}
.step:last-child {
  border-right: 0;
}
.step-number {
  font-size: 30px;
  color: var(--sky);
  font-weight: 500;
  letter-spacing: 1px;
}
.step h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 10px 0 12px;
}
.step p {
  font-size: 15px;
  line-height: 1.75;
}
.scope {
  margin-top: 38px;
  border-top: 1px solid #ffffff1c;
  padding-top: 20px;
  font-size: 14px;
}
.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 70px;
  align-items: center;
}
.contact-box h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  margin-bottom: 0;
}
.contact-details {
  border-left: 1px solid var(--line);
  padding-left: 30px;
  display: grid;
  gap: 20px;
}
.contact-item {
  display: flex;
  gap: 12px;
  align-items: start;
}
.contact-item svg {
  width: 22px;
  height: 22px;
  stroke: #225b9d;
  stroke-width: 1.7;
  fill: none;
  flex: none;
  margin-top: 3px;
}
.contact-item strong {
  display: block;
  font-size: 14px;
}
.contact-item p {
  font-size: 14px;
  margin-top: 3px;
}
.footer {
  background: var(--navy);
  color: #fff;
  padding: 40px 0 25px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding-bottom: 30px;
}
.footer .brand-name {
  font-size: 23px;
}
.footer .brand img {
  width: 37px;
}
.footer p {
  font-size: 13px;
  color: #aebed1;
}
.footer-legal {
  border-top: 1px solid #ffffff20;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-legal p {
  font-size: 12px;
}
.footer-legal .status {
  color: #a6c9e9;
}

html:lang(zh-HK) h1,
html:lang(zh-HK) h2,
html:lang(zh-HK) h3 {
  letter-spacing: normal;
}
html:lang(zh-HK) .hero h1 {
  line-height: 1.25;
  font-size: clamp(42px, 5vw, 72px);
}
html:lang(zh-HK) .eyebrow {
  letter-spacing: 1.3px;
}
html:lang(zh-HK) .hero-bottom .wrap {
  letter-spacing: 0.02em;
}
html:lang(zh-HK) .section h2 {
  line-height: 1.3;
}

@media (max-width: 1100px) {
  :root {
    --section-padding: 76px;
  }
  .wrap {
    width: calc(100% - 56px);
  }
  .nav {
    gap: 20px;
  }
  .navlinks {
    gap: 19px;
  }
  .language {
    padding-left: 15px;
  }
  .hero-grid {
    min-height: 540px;
    padding-block: 70px;
  }
  .about-grid {
    gap: 40px;
  }
  .service {
    grid-template-columns: 85px minmax(0, 1fr) minmax(0, 1fr);
    gap: 15px;
  }
  .step {
    padding: 20px 14px;
  }
  .contact-box {
    gap: 35px;
  }
}

@media (max-width: 760px) {
  :root {
    --section-padding: 64px;
    --header-height: 68px;
  }
  .wrap {
    width: calc(100% - 40px);
  }

  /* Keep the full navigation visible when enhancement is unavailable. */
  .header {
    position: relative;
  }
  .nav {
    flex-wrap: wrap;
    gap: 0 14px;
    padding-block: 10px;
  }
  .navlinks {
    order: 1;
    width: 100%;
    flex-wrap: wrap;
    gap: 0 16px;
  }
  .navlinks a {
    padding-block: 8px;
  }
  .header.is-enhanced {
    position: sticky;
  }
  .is-enhanced .nav {
    flex-wrap: nowrap;
  }
  .is-enhanced .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .is-enhanced .navlinks {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: #101f36;
    padding: 8px 20px 16px;
    border-bottom: 1px solid #ffffff25;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }

  .is-enhanced .menu-toggle[aria-expanded="true"] + .navlinks {
    display: block;
  }
  .is-enhanced .navlinks a {
    padding-block: 12px;
    border-bottom: 1px solid #ffffff15;
  }
  .brand img {
    width: 35px;
  }
  .brand-name {
    font-size: 22px;
  }
  .brand-sub {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .language {
    border: 0;
    padding: 0;
    font-size: 12px;
    gap: 7px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 63px 0 30px;
    gap: 22px;
  }
  .hero h1 {
    font-size: clamp(40px, 9vw, 65px);
    margin-block: 20px;
  }
  html:lang(zh-HK) .hero h1 {
    font-size: clamp(38px, 8.5vw, 60px);
  }
  .hero p {
    font-size: 16px;
  }
  .hero-art {
    width: min(100%, 372px);
    justify-self: center;
  }
  .hero-bottom .wrap {
    flex-wrap: wrap;
    gap: 9px 18px;
    padding-block: 15px;
    font-size: 10px;
  }
  .section h2 {
    margin: 13px 0 18px;
  }
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }
  .about-copy p {
    font-size: 16px;
  }
  .experience {
    padding-left: 24px;
  }
  .experience .number {
    font-size: 74px;
  }
  .section-head {
    display: block;
    margin-bottom: 25px;
  }
  .service {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 7px 14px;
    padding-block: 20px;
  }
  .service-top {
    grid-row: span 2;
    align-self: start;
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
  .service h3 {
    font-size: 20px;
  }
  .service p {
    grid-column: 2;
    font-size: 14px;
  }
  .approach .section-head {
    margin-bottom: 30px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 0;
  }
  .step:nth-child(2n) {
    border-right: 0;
  }
  .step:nth-child(2n + 1) {
    padding-left: 0;
  }
  .step h3 {
    font-size: 21px;
  }
  .contact-box {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .contact-box h2 {
    margin-bottom: 0;
  }
  .contact-details {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }
  .footer-main,
  .footer-legal {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .footer-main {
    padding-bottom: 23px;
  }
}

@media (max-width: 390px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav {
    column-gap: 10px;
  }
  .brand {
    gap: 8px;
  }
  .brand-sub {
    letter-spacing: 0.6px;
  }
  .actions {
    gap: 9px;
  }
  .btn {
    padding: 12px 15px;
  }
  .hero-bottom .wrap {
    display: grid;
  }
}

@media (max-width: 380px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .step:nth-child(n) {
    padding-left: 0;
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
