/* =========================================================
   Invesearch Limited — corporate stylesheet
   Navy · white · muted gold, serif display type.
   ========================================================= */

:root {
  --navy-950: #06101f;
  --navy-900: #0b1d36;
  --navy-800: #112a4a;
  --navy-700: #1c3b63;
  --ink: #0f1d33;
  --body: #4a5566;
  --muted: #7a8494;
  --line: #e4e1d9;
  --line-soft: #eeece6;
  --paper: #ffffff;
  --paper-2: #f7f5f0;
  --gold: #b08d57;
  --gold-600: #9a7744;
  --gold-300: #d4b98a;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.78);
  --on-dark-3: rgba(255, 255, 255, 0.56);
  --line-dark: rgba(255, 255, 255, 0.16);

  --container: 1240px;
  --gutter: 32px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    "Songti SC", "STSongti-SC-Regular", "Noto Serif CJK SC", "Source Han Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
:root:lang(zh-Hant) {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    "Songti TC", "Noto Serif CJK TC", "Source Han Serif TC", "PingFang HK", "Microsoft JhengHei", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(176, 141, 87, 0.28); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Hide until the chosen language is applied (boot.js removes this within 1.5 s at most) */
html.i18n-pending body { opacity: 0; }
body { transition: opacity 0.25s ease; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--gold); color: #fff; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-lg { width: 34px; height: 34px; stroke-width: 1.25; }
.icon-arrow { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.16; letter-spacing: -0.01em; }
h3 { font-size: 1.32rem; line-height: 1.35; }
:root:lang(zh) h1, :root:lang(zh) h2, :root:lang(zh) h3 { font-weight: 600; letter-spacing: 0.02em; }
:root:lang(zh) h2 { line-height: 1.32; }
h2 .line { display: block; }
.accent { color: var(--gold); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow .idx { font-family: var(--serif); font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }
.eyebrow-light { color: var(--gold-300); }
.eyebrow-light .idx { color: var(--on-dark-3); }
:root:lang(zh) .eyebrow { letter-spacing: 0.16em; }
.body-lg { font-size: 1.12rem; line-height: 1.85; color: var(--body); }
.section-sub { font-size: 1.06rem; color: var(--body); max-width: 32em; }
:root:lang(zh) .body-lg, :root:lang(zh) .section-sub, :root:lang(zh) .hero-lead { line-height: 1.95; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
:root:lang(zh) .btn { letter-spacing: 0.12em; }
.btn-sm { height: 42px; padding: 0 20px; font-size: 12.5px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-600); }
.btn-gold:hover .icon-arrow { transform: translateX(4px); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, height 0.4s var(--ease), box-shadow 0.4s;
}
.site-header.is-scrolled {
  height: 72px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(11, 29, 54, 0.35);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { height: 30px; width: auto; }
.brand-logo-full { height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 0.2em; }
.brand-sub { margin-top: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.32em; opacity: 0.7; }
.primary-nav { margin-inline: auto; }
.primary-nav ul { display: flex; gap: 6px; }
.primary-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.88;
  transition: opacity 0.25s, color 0.25s;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.primary-nav a:hover, .primary-nav a.is-active { opacity: 1; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.lang-switch { display: inline-flex; align-items: center; }
.lang-switch button {
  position: relative;
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.6;
  transition: opacity 0.25s, color 0.25s;
}
.lang-switch button + button::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: currentColor; opacity: 0.35; }
.lang-switch button:hover { opacity: 0.9; }
.lang-switch button[aria-pressed="true"] { opacity: 1; color: var(--gold-300); }
.site-header.is-scrolled .lang-switch button[aria-pressed="true"] { color: var(--gold); }
html:not(.js) .lang-switch { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border: 1px solid currentColor; border-color: rgba(127, 127, 127, 0.35); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 0;
  color: #fff;
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; user-select: none; }
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* The still frame shows first; the video fades in over it once it has buffered
   enough to play smoothly. Its first frame is the same image, so the change is
   seamless. */
.hero-poster { background: var(--navy-950); }
.hero-video { opacity: 0; transition: opacity 0.9s ease; }
.hero-video.is-ready { opacity: 1; }
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 31, 0.88) 0%, rgba(6, 16, 31, 0.62) 38%, rgba(6, 16, 31, 0.18) 72%, rgba(6, 16, 31, 0.3) 100%),
    linear-gradient(180deg, rgba(6, 16, 31, 0.55) 0%, rgba(6, 16, 31, 0) 22%, rgba(6, 16, 31, 0) 62%, rgba(6, 16, 31, 0.92) 100%);
}
.hero-content { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.hero h1 {
  max-width: 15em;
  color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 5.1rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--gold-300); font-style: italic; }
:root:lang(zh) .hero h1 { max-width: 13em; font-size: clamp(2.4rem, 4.8vw, 4.4rem); line-height: 1.22; letter-spacing: 0.04em; }
:root:lang(zh) .hero h1 .accent { font-style: normal; }
.hero-lead { margin-top: 28px; max-width: 36em; font-size: clamp(1.04rem, 1.3vw, 1.2rem); line-height: 1.8; color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.hero-facts-wrap { position: relative; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}
.hero-facts li { padding: 26px 24px 34px 0; display: flex; flex-direction: column; gap: 6px; }
.hero-facts li + li { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.hero-facts strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: #fff; line-height: 1.2; }
.hero-facts span { font-size: 13px; letter-spacing: 0.04em; color: var(--on-dark-3); }
:root:lang(zh) .hero-facts strong { font-weight: 600; letter-spacing: 0.06em; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 36px; width: 1px; height: 64px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-300); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Hero entrance */
.js .hero-in { opacity: 0; transform: translateY(22px); animation: rise 1.1s var(--ease) forwards; }
.js .hero-in:nth-child(1) { animation-delay: 0.15s; }
.js .hero-in:nth-child(2) { animation-delay: 0.3s; }
.js .hero-in:nth-child(3) { animation-delay: 0.45s; }
.js .hero-in:nth-child(4) { animation-delay: 0.6s; }
.js .hero-facts-wrap.hero-in { animation-delay: 0.8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 11vw, 150px) 0; }
.section-paper { background: var(--paper-2); }
.section-head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-head h2 { position: relative; padding-bottom: 32px; }
.about-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 2px; background: var(--gold); }
.note { margin-top: 22px; padding-left: 18px; border-left: 2px solid var(--gold); color: var(--muted); font-size: 15px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service {
  position: relative;
  padding: 44px 38px 48px;
  background: var(--paper);
  transition: background-color 0.45s var(--ease);
  overflow: hidden;
}
.service::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.service:hover { background: var(--navy-900); }
.service:hover::after { transform: scaleX(1); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 36px; color: var(--gold); }
.service-no { font-family: var(--serif); font-size: 15px; letter-spacing: 0.08em; color: var(--muted); transition: color 0.45s; }
.service h3 { margin-bottom: 14px; transition: color 0.45s; }
.service p { font-size: 15px; transition: color 0.45s; }
.service:hover h3 { color: #fff; }
.service:hover p { color: var(--on-dark-2); }
.service:hover .service-no { color: var(--gold-300); }

/* Clients */
.clients-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.clients-head { position: sticky; top: 110px; }
.matters { margin-top: 44px; }
.matters-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.matters ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.matters li { position: relative; padding-left: 20px; font-size: 15px; color: var(--body); }
.matters li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--gold); }
.client-list { border-top: 1px solid var(--line); }
.client { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); color: var(--gold); }
.client h3 { margin-bottom: 8px; font-size: 1.45rem; }
.client p { color: var(--body); }

/* Process (navy) */
.section-navy {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(176, 141, 87, 0.12), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(28, 59, 99, 0.6), transparent 70%),
    var(--navy-900);
  color: var(--on-dark-2);
}
.section-navy h2, .section-navy h3 { color: #fff; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--line-dark); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) 0.2s; }
.steps.is-visible::after, html:not(.js) .steps::after { transform: scaleX(1); }
.step { position: relative; padding-top: 64px; }
.step-no {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold-300);
  background: var(--navy-900);
  border: 1px solid rgba(212, 185, 138, 0.55);
}
.step h3 { margin: 22px 0 10px; font-size: 1.25rem; }
.step p { font-size: 15px; line-height: 1.75; color: var(--on-dark-3); }

/* Compliance */
.compliance-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.compliance-intro { position: sticky; top: 110px; }
.compliance-intro .section-sub { margin-top: 24px; }
.quote { margin-top: 48px; padding: 32px 0 0; border-top: 1px solid var(--line); }
.quote p { position: relative; font-family: var(--serif); font-size: 1.55rem; line-height: 1.45; color: var(--ink); font-style: italic; padding-left: 34px; }
.quote p::before { content: "\201C"; position: absolute; left: 0; top: -12px; font-size: 3.2rem; line-height: 1; color: var(--gold); font-style: normal; }
:root:lang(zh) .quote p { font-style: normal; font-weight: 600; letter-spacing: 0.04em; }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.icon-ring { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(176, 141, 87, 0.45); color: var(--gold); }
.principle h3 { margin-bottom: 8px; font-size: 1.3rem; }
.principle p { font-size: 15.5px; }

/* Engagement */
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.terms-1, .terms-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; gap: 56px; }
.terms-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.term { padding-top: 30px; border-top: 2px solid var(--gold); }
.term h3 { margin-bottom: 14px; font-size: 1.35rem; }
.term p { font-size: 15px; }
.currencies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.currencies li { padding: 3px 9px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--navy-800); border: 1px solid rgba(17, 42, 74, 0.25); }


/* Coverage (navy, interactive globe) */
.coverage-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.coverage-head .section-sub { margin-top: 20px; color: var(--on-dark-2); max-width: 40em; }
.coverage-stat { text-align: right; padding-left: 40px; border-left: 1px solid var(--line-dark); }
.coverage-stat strong { display: block; font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 500; line-height: 1; color: var(--gold-300); }
.coverage-stat span { display: block; margin-top: 10px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); }
:root:lang(zh) .coverage-stat span { letter-spacing: 0.2em; }
.coverage-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.globe-stage { position: relative; }
.globe-stage canvas { display: block; width: 100%; aspect-ratio: 1 / 1; cursor: grab; touch-action: pan-y; }
.globe-stage canvas.is-dragging { cursor: grabbing; }
.globe-tip {
  --tx: 0px; --ty: 0px;
  position: absolute; left: 0; top: 0;
  transform: translate(calc(var(--tx) + 14px), calc(var(--ty) - 50%));
  padding: 6px 12px;
  background: rgba(6, 16, 31, 0.92);
  border: 1px solid rgba(212, 185, 138, 0.55);
  color: #fff; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap;
  pointer-events: none; z-index: 2;
}
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 8px; font-size: 12.5px; color: var(--on-dark-3); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.lg-centre::before { background: #e2c99a; box-shadow: 0 0 0 4px rgba(212, 185, 138, 0.18); }
.lg-country::before { background: #fff; width: 7px; height: 7px; }
.lg-offshore::before { border: 1.5px solid #d4b98a; width: 8px; height: 8px; }
.globe-hint { margin-top: 10px; text-align: center; font-size: 12px; letter-spacing: 0.06em; color: var(--on-dark-3); }
html:not(.js) .globe-hint, html:not(.js) .cov-tabs { display: none; }
.cov-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cov-tabs button { padding: 7px 14px; font-size: 13px; letter-spacing: 0.03em; color: var(--on-dark-2); border: 1px solid var(--line-dark); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.cov-tabs button:hover { border-color: rgba(212, 185, 138, 0.6); color: #fff; }
.cov-tabs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.cov-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 18px; max-height: 470px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(212, 185, 138, 0.4) transparent; }
.cov-list li[hidden] { display: none; }
.cov-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 4px; text-align: left; font-size: 14px; color: var(--on-dark-2); border-bottom: 1px solid rgba(255, 255, 255, 0.07); transition: color 0.2s, background-color 0.2s; }
.cov-item:hover, .cov-item.is-active { color: #fff; background: rgba(212, 185, 138, 0.1); }
.cov-item .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.cov-item.t-centre .dot { background: #e2c99a; box-shadow: 0 0 0 3px rgba(212, 185, 138, 0.2); }
.cov-item.t-offshore .dot { background: transparent; border: 1.5px solid #d4b98a; }
.cov-note { margin-top: 20px; font-size: 13px; color: var(--on-dark-3); }

/* Contact & enquiry form */
.section-contact { color: var(--on-dark-2); background: var(--navy-950); overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; opacity: 0.45; }
.contact-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 16, 31, 0.92) 0%, rgba(6, 16, 31, 0.88) 60%, rgba(6, 16, 31, 0.96) 100%); }
.contact-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-contact h2 { color: #fff; margin-bottom: 20px; }
.section-contact .body-lg { color: var(--on-dark-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.enquiry-form { position: relative; padding: clamp(28px, 4vw, 44px); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); }
.enquiry-form h3 { color: #fff; font-size: 1.45rem; margin-bottom: 26px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fld { display: block; margin-bottom: 22px; }
.fld-label { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-3); }
:root:lang(zh) .fld-label { letter-spacing: 0.12em; }
.fld i, .consent i, .req-note i { font-style: normal; color: var(--gold-300); }
.fld input, .fld textarea {
  display: block; width: 100%; padding: 12px 14px;
  font: inherit; font-size: 15px; color: #fff;
  background: rgba(6, 16, 31, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0;
  transition: border-color 0.25s, background-color 0.25s;
}
.fld textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--gold-300); background: rgba(6, 16, 31, 0.8); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 26px; font-size: 13.5px; line-height: 1.65; color: var(--on-dark-2); cursor: pointer; }
.consent input { flex: none; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--gold); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot .btn:disabled { opacity: 0.6; cursor: progress; }
.req-note { font-size: 12.5px; color: var(--on-dark-3); }
.form-status { margin-top: 20px; padding: 13px 16px; font-size: 14.5px; line-height: 1.6; border-left: 2px solid; }
.form-status.is-info { border-color: var(--on-dark-3); background: rgba(255, 255, 255, 0.05); }
.form-status.is-ok { border-color: #7fc8a0; background: rgba(127, 200, 160, 0.1); color: #dff3e8; }
.form-status.is-err { border-color: #e38b80; background: rgba(227, 139, 128, 0.1); color: #f7dcd8; }
.contact-cards { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.ccard { padding: 24px 26px; background: rgba(6, 16, 31, 0.78); }
.ccard-label { margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-300); }
.ccard-value { font-size: 16px; color: #fff; overflow-wrap: anywhere; }
a.ccard-value { border-bottom: 1px solid rgba(212, 185, 138, 0.5); transition: color 0.25s, border-color 0.25s; }
a.ccard-value:hover { color: var(--gold-300); border-color: var(--gold-300); }
.ccard-value.addr { font-size: 15px; line-height: 1.7; color: var(--on-dark-2); }
.wa-body { display: flex; gap: 20px; align-items: center; }
.wa-qr { flex: none; width: 132px; height: 132px; padding: 8px; background: #fff; image-rendering: pixelated; }
.wa-text { font-size: 14px; line-height: 1.65; color: var(--on-dark-2); }
.wa-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; white-space: nowrap; padding: 8px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.wa-btn .icon { width: 18px; height: 18px; }
.wa-btn:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.footer-bottom a { color: var(--on-dark-2); transition: color 0.25s; }
.footer-bottom a:hover { color: var(--gold-300); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-3); padding: 72px 0 32px; border-top: 1px solid var(--line-dark); }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { margin-top: 20px; max-width: 24em; font-size: 14px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 48px; align-content: start; }
.footer-nav a { font-size: 14px; color: var(--on-dark-2); transition: color 0.25s; }
.footer-nav a:hover { color: var(--gold-300); }
.footer-legal p { font-size: 13px; line-height: 1.75; }
.footer-legal p + p { margin-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-br { letter-spacing: 0.06em; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); background: var(--navy-950); color: var(--on-dark-2); }
.notfound .brand { color: #fff; justify-content: center; }
.notfound .code { margin-top: 40px; font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--gold-300); }
.notfound p { margin: 18px auto 34px; max-width: 30em; }
.notfound .small-code { font-size: 4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .header-cta { display: none; }
  .header-inner { gap: 24px; }
}

@media (max-width: 1120px) {
  .primary-nav a { padding: 10px 9px; font-size: 13.5px; }
  .primary-nav a::after { left: 9px; right: 9px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27.5px; right: auto; width: 1px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(0); }
  .steps.is-visible::after, html:not(.js) .steps::after { transform: scaleY(1); }
  .step { padding: 0 0 40px 88px; min-height: 56px; }
  .step:last-child { padding-bottom: 0; }
  .step h3 { margin-top: 12px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; --gutter: 24px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; gap: 10px; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--gutter) 28px;
    background: #fff;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(11, 29, 54, 0.35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { padding: 16px 2px; font-size: 16px; border-bottom: 1px solid var(--line-soft); opacity: 1; }
  .primary-nav a::after { display: none; }
  .site-header.menu-open { background: #fff; color: var(--ink); border-bottom-color: var(--line); }
  .site-header.is-scrolled, .site-header.menu-open { height: var(--header-h); }
  html:not(.js) .nav-toggle, html:not(.js) .primary-nav { display: none; }

  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 16, 31, 0.7) 0%, rgba(6, 16, 31, 0.5) 35%, rgba(6, 16, 31, 0.6) 65%, rgba(6, 16, 31, 0.95) 100%);
  }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts li { padding: 20px 16px 22px 0; }
  .hero-facts li + li { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-dark); }
  .hero-facts li:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
  .scroll-cue { display: none; }
  .section-head.split { grid-template-columns: 1fr; gap: 20px; }
  .about-grid, .clients-grid, .compliance-grid, .contact-grid, .coverage-grid { grid-template-columns: 1fr; }
  .clients-head, .compliance-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
  .coverage-head { grid-template-columns: 1fr; gap: 24px; }
  .coverage-stat { text-align: left; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); display: flex; align-items: baseline; gap: 16px; }
  .coverage-stat span { margin-top: 0; }
  .globe-stage { max-width: 520px; margin-inline: auto; width: 100%; }
  .cov-list { max-height: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .brand-name { font-size: 16px; letter-spacing: 0.16em; }
  .brand-sub { font-size: 8.5px; letter-spacing: 0.24em; }
  .lang-switch button { padding: 6px 7px; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  :root:lang(zh) .hero h1 { font-size: clamp(2.1rem, 8.6vw, 2.8rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts strong { font-size: 1.2rem; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 36px 26px 40px; }
  .matters ul { grid-template-columns: 1fr; }
  .client, .principle { grid-template-columns: 44px 1fr; gap: 18px; }
  .icon-ring { width: 44px; height: 44px; }
  .terms, .terms-1, .terms-2, .terms-3 { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .cov-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wa-body { gap: 16px; }
  .wa-qr { width: 112px; height: 112px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 360px) {
  .brand-sub { display: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-in { opacity: 1; transform: none; }
}
