:root {
  --ink: #102235;
  --navy: #071a33;
  --blue: #12345b;
  --teal: #426f72;
  --gold: #c8a45d;
  --gold-dark: #9a742f;
  --paper: #f7f4ee;
  --mist: #edf2f4;
  --white: #ffffff;
  --muted: #637083;
  --line: rgba(16, 34, 53, .14);
  --shadow: 0 22px 60px rgba(11, 24, 39, .16);
  --radius: 8px;
  --serif: "Songti SC", "Noto Serif SC", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
}

body.portal-home {
  height: 100svh;
  overflow: hidden;
  background: var(--navy);
}

body::selection {
  background: var(--gold);
  color: var(--navy);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(247, 244, 238, .92);
  border-bottom: 1px solid rgba(16, 34, 53, .08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  width: min(210px, 48vw);
}

.brand img {
  width: 100%;
  height: auto;
}

.portal-header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.portal-header .brand {
  width: min(230px, 52vw);
  padding: 12px 18px;
  border-radius: 6px;
  background: rgba(247, 244, 238, .92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
}

.portal {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 92px clamp(20px, 7vw, 96px) 34px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 26, 51, .94), rgba(7, 26, 51, .72) 48%, rgba(7, 26, 51, .32)),
    url("assets/hero-hongkong.jpg") center / cover no-repeat;
}

.portal-content {
  width: min(900px, 100%);
}

.portal-content h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 104px);
  line-height: 1.03;
  letter-spacing: 0;
}

.portal-content > p:not(.eyebrow) {
  width: min(720px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(16px, 2vw, 20px);
}

.portal-actions {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 5vw, 54px);
}

.portal-card {
  min-height: 154px;
  display: grid;
  align-content: end;
  gap: 7px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 164, 93, .72);
  background: rgba(255, 255, 255, .13);
}

.portal-card strong {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.portal-card em {
  color: rgba(255, 255, 255, .7);
  font-style: normal;
  font-size: 14px;
}

.portal-card-primary {
  color: var(--navy);
  background: rgba(200, 164, 93, .92);
}

.portal-card-primary:hover {
  background: var(--gold);
}

.portal-card-primary em {
  color: rgba(7, 26, 51, .72);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #25384c;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
}

.nav-links a:not(.nav-action, .nav-entry)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  transition: right .22s ease;
}

.nav-links a:hover::after {
  right: 0;
}

.nav-entry,
.nav-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 700;
}

.nav-entry {
  color: var(--ink);
  border: 1px solid rgba(16, 34, 53, .18);
  background: rgba(255, 255, 255, .34);
}

.nav-action {
  color: var(--navy);
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 148px clamp(20px, 6vw, 88px) 54px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 26, 51, .94), rgba(7, 26, 51, .68) 46%, rgba(7, 26, 51, .28)),
    url("assets/hero-hongkong.jpg") center / cover no-repeat;
}

.hero-inner {
  width: min(760px, 100%);
  padding-bottom: 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

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

.button.secondary {
  border-color: rgba(255, 255, 255, .54);
  color: var(--white);
}

.hero-panel {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  min-height: 116px;
  padding: 22px;
  background: rgba(7, 26, 51, .52);
}

.hero-panel strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 6vw, 88px);
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section p {
  margin: 0;
}

.section-head {
  width: min(780px, 100%);
  margin-bottom: 46px;
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(38px, 6vw, 90px);
  align-items: start;
}

.intro-grid > div:first-child p {
  margin-top: 22px;
  color: #526174;
  font-size: 17px;
}

.principles {
  display: grid;
  gap: 16px;
}

.principles article,
.proof-item,
.team-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 10px 32px rgba(16, 34, 53, .06);
}

.principles article {
  padding: 24px;
}

.principles span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-weight: 800;
}

.principles p {
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  background: var(--mist);
}

.story-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content h2 {
  color: var(--ink);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.timeline p {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(16, 34, 53, .12);
}

.timeline strong {
  color: var(--gold-dark);
  font-family: var(--serif);
}

.timeline span {
  color: #4c5b6b;
}

.services {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 26, 51, .96), rgba(18, 52, 91, .94)),
    url("assets/company-overview.jpg") center / cover fixed;
}

.service-directory {
  min-height: 100vh;
  padding: 128px clamp(20px, 6vw, 88px) clamp(64px, 8vw, 100px);
}

.service-directory h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

.services .section-head p {
  color: rgba(255, 255, 255, .72);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.service-card {
  grid-column: span 3;
  min-height: 390px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  background: var(--navy);
  cursor: pointer;
}

.service-card.featured {
  grid-column: span 6;
  min-height: 360px;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .44;
  transition: transform .45s ease, opacity .45s ease;
}

.service-card:hover img {
  transform: scale(1.04);
  opacity: .55;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 51, .18), rgba(7, 26, 51, .9));
}

.service-card div {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: clamp(24px, 4vw, 40px);
}

.service-card span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 800;
}

.service-card h3 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.service-card p {
  width: min(610px, 100%);
  color: rgba(255, 255, 255, .78);
}

.service-hero {
  min-height: 72vh;
  display: flex;
  align-items: end;
  padding: 148px clamp(20px, 6vw, 88px) 74px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 26, 51, .94), rgba(7, 26, 51, .62) 58%, rgba(7, 26, 51, .25)),
    var(--hero-image) center / cover no-repeat;
}

.service-hero > div {
  width: min(850px, 100%);
}

.service-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.08;
  letter-spacing: 0;
}

.service-hero p:not(.eyebrow) {
  width: min(720px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(16px, 2vw, 20px);
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
  padding: clamp(72px, 9vw, 124px) clamp(20px, 6vw, 88px);
  background: var(--paper);
}

.service-aside {
  position: sticky;
  top: 104px;
}

.service-aside span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.service-aside h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

.service-aside p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
}

.service-content {
  display: grid;
  gap: 22px;
}

.service-block {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 34px rgba(16, 34, 53, .06);
}

.service-block h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 28px;
}

.service-block ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #4d5c6d;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.value-grid article {
  padding: 20px;
  border: 1px solid rgba(16, 34, 53, .1);
  border-radius: 6px;
  background: var(--white);
}

.value-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-size: 17px;
}

.value-grid p {
  color: var(--muted);
  font-size: 15px;
}

.service-visual {
  padding: 0;
  overflow: hidden;
}

.service-visual img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: top center;
}

.related-services {
  padding: clamp(58px, 7vw, 90px) clamp(20px, 6vw, 88px);
  color: var(--white);
  background: var(--navy);
}

.related-services h2 {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
}

.related-services > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.related-services a {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.related-services a:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 164, 93, .58);
  background: rgba(200, 164, 93, .1);
}

.related-services span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 900;
}

.service-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  background: var(--paper);
}

.proof-item {
  overflow: hidden;
}

.proof-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.proof-item h3 {
  margin: 24px 24px 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
}

.proof-item p {
  margin: 0 24px 26px;
  color: var(--muted);
  font-size: 15px;
}

.team {
  background: #ffffff;
}

.team-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-panel {
  overflow: hidden;
  background: var(--white);
}

.team-panel img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
}

.team-panel div {
  padding: 28px;
}

.team-panel h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 28px;
}

.team-panel p {
  color: var(--muted);
}

.credentials {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, 1.18fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
  color: var(--white);
  background: var(--navy);
}

.credentials-copy p {
  margin-top: 22px;
  color: rgba(255, 255, 255, .72);
  font-size: 17px;
}

.credentials-image {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
}

.credentials-image img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, .7fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
  background:
    linear-gradient(90deg, rgba(247, 244, 238, .98), rgba(247, 244, 238, .88)),
    url("assets/trust-benefits.jpg") center / cover;
}

.appointment-page {
  min-height: calc(100vh - 72px);
  align-items: center;
  padding-top: 132px;
}

.appointment-page h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
}

.contact-copy p {
  margin-top: 13px;
  color: #4b5b6b;
  font-size: 16px;
}

.contact-copy a {
  color: var(--blue);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: rgba(255, 255, 255, .86);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid rgba(16, 34, 53, .16);
  border-radius: 4px;
  background: var(--white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(200, 164, 93, .32);
  border-color: var(--gold-dark);
}

.contact-form .button {
  width: 100%;
  border: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 6vw, 88px);
  color: rgba(255, 255, 255, .72);
  background: #061426;
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .intro-grid,
  .story,
  .credentials,
  .contact,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-aside {
    position: static;
  }

  .service-proof,
  .team-layout {
    grid-template-columns: 1fr;
  }

  .story-media {
    aspect-ratio: 16 / 10;
  }

  .service-card,
  .service-card.featured {
    grid-column: span 6;
  }

  .related-services > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 66px;
  }

  .portal-header .brand {
    width: min(196px, 58vw);
    padding: 10px 14px;
  }

  .portal {
    align-items: end;
    padding: 88px 18px 22px;
    background:
      linear-gradient(180deg, rgba(7, 26, 51, .96), rgba(7, 26, 51, .74)),
      url("assets/hero-hongkong.jpg") center / cover no-repeat;
  }

  .portal-content h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .portal-content > p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .portal-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .portal-card {
    min-height: 112px;
    padding: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
  }

  .nav-entry,
  .nav-action {
    justify-content: center;
    margin-top: 8px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 118px;
    background:
      linear-gradient(180deg, rgba(7, 26, 51, .92), rgba(7, 26, 51, .68)),
      url("assets/hero-hongkong.jpg") center / cover no-repeat;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    min-height: 94px;
  }

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

  .timeline p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .service-card {
    min-height: 330px;
  }

  .service-hero {
    min-height: 64vh;
    padding-top: 118px;
    background:
      linear-gradient(180deg, rgba(7, 26, 51, .92), rgba(7, 26, 51, .68)),
      var(--hero-image) center / cover no-repeat;
  }

  .value-grid,
  .related-services > div {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 760px) and (max-height: 640px) {
  .portal {
    padding-top: 76px;
    padding-bottom: 14px;
  }

  .portal-header .brand {
    width: 176px;
  }

  .portal-content h1 {
    font-size: 38px;
  }

  .portal-content > p:not(.eyebrow) {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  .portal-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .portal-card {
    min-height: 88px;
    padding: 14px;
  }

  .portal-card strong {
    font-size: 22px;
  }

  .portal-card em {
    font-size: 12px;
  }
}
