/* Infinity Capital Financial Group — group site demo (v4.13, multi-page)
   Serif display type, deep navy + paper, video hero, scroll-driven motion.
   Motion hierarchy: headlines (line mask), images (clip reveal), figures (count-up) and the
   business panels carry the motion; body copy and table rows only get a short fade. */

:root {
  --navy-950: #07101f;
  --navy-900: #0a1730;
  --navy-800: #12224a;
  --ink: #111318;
  --text: #454a55;
  --muted: #5f6571;
  --paper: #f4f3ef;
  --line: #dcd9d1;
  --line-dark: rgba(255, 255, 255, .16);
  --gold: #b6975d;
  --focus: #9a7a3c; /* focus ring: at least 3:1 on white, paper and navy */
  --serif: "Newsreader", "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: "Hanken Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* sections that receive focus after an in-page jump */
[tabindex="-1"]:focus { outline: none; }

.wrap { width: min(var(--wrap), 100% - 96px); margin-inline: auto; }
/* English chosen earlier: the head script sets .lang-swap, site.js removes it once the English text is in */
.lang-swap [data-en] { visibility: hidden; }
/* without the script the language button cannot do anything */
html:not(.js) .lang { display: none; }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums; }
.d1 { font-size: clamp(46px, 6.7vw, 104px); }
.d2 { font-size: clamp(34px, 4vw, 60px); line-height: 1.1; }
.is-zh .display { font-weight: 400; letter-spacing: .01em; line-height: 1.24; }
.is-zh .d1 { font-size: clamp(40px, 5.8vw, 92px); }
.is-zh .d2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.3; }
.label { font-size: 14px; font-weight: 500; letter-spacing: .03em; color: var(--muted); }
/* keeps a Chinese phrase or a licence number on one line */
.nb { white-space: nowrap; }

/* headline lines slide up out of a mask */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; text-wrap: balance; }
.js .line > span { transform: translateY(112%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * .1s + var(--d, 0s)); }
.js .is-in .line > span, .js .line.is-in > span { transform: none; }

/* ---------- Links and buttons ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.link-arrow span { padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .55s var(--ease); }
.link-arrow:hover span { background-size: 100% 1px; }
.link-arrow svg { width: 16px; height: 16px; flex: none; transition: transform .55s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow.on-dark, .link-arrow.on-dark span { color: #fff; }

.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 26px; border: 1px solid; font-size: 15px; font-weight: 500; transition: color .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .55s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-light span { color: inherit; }
.btn-light::before { background: #fff; }
.btn-light:hover { color: var(--navy-900); border-color: #fff; }
.btn-solid { color: var(--navy-900); background: #fff; border-color: #fff; }
.btn-solid span { color: inherit; }
.btn-solid::before { background: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; height: 84px; color: #fff; transition: transform .6s var(--ease), background-color .4s, color .4s, box-shadow .4s; }
/* the header stays on screen; once past the first screen it is solid white */
.site-header.is-solid { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav-open .site-header { background: var(--navy-900); color: #fff; box-shadow: none; transform: none; }
.header-inner { display: flex; align-items: center; gap: 48px; height: 100%; }
/* Placeholder logo: the ICMM lockup is shown only up to the "Infinity Capital" master mark.
   Swap both src values for the official group logo and drop the object-fit crop. */
.brand { position: relative; flex: none; width: 122px; height: 48px; margin-left: -10px; }
.brand img { position: absolute; left: 0; top: 50%; object-fit: cover; object-position: left center; transform: translateY(-50%); transition: opacity .4s; }
.brand .logo-light { width: 114px; height: 47px; }
.brand .logo-dark { width: 121px; height: 46px; opacity: 0; }
.is-solid .brand .logo-light { opacity: 0; }
.is-solid .brand .logo-dark { opacity: 1; }
.nav-open .brand .logo-light { opacity: 1; }
.nav-open .brand .logo-dark { opacity: 0; }
.nav { display: flex; align-items: center; gap: 34px; height: 100%; font-size: 15px; }
.nav > a, .nav-item > a { position: relative; padding: 6px 0; color: inherit; }
.nav > a::after, .nav-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav > a:hover::after, .nav > a.is-current::after, .nav-item > a:hover::after, .nav-item > a.is-current::after, .nav-item.is-open > a::after { transform: scaleX(1); transform-origin: left; }
/* Businesses: the link opens the overview page; the panel under it lists the four business pages.
   The item is as tall as the header, so the pointer never leaves it on the way down to the panel. */
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
/* a comfortable target for touch: 34 x 44, with the arrow itself unchanged */
.sub-toggle { display: grid; place-items: center; width: 34px; height: 44px; margin-right: -12px; color: inherit; }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .45s var(--ease); }
.nav-item.is-open .sub-toggle svg { transform: rotate(180deg); }
.subnav { position: absolute; left: -28px; top: calc(100% - 10px); min-width: 348px; padding: 10px 0; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -24px rgba(7, 16, 31, .38), 0 0 0 1px rgba(17, 19, 24, .07); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .28s var(--ease), transform .4s var(--ease), visibility 0s .28s; }
.nav-item.is-open .subnav, html:not(.js) .nav-item:hover .subnav, html:not(.js) .nav-item:focus-within .subnav { opacity: 1; visibility: visible; transform: none; transition: opacity .28s var(--ease), transform .4s var(--ease), visibility 0s 0s; }
.subnav a { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 28px; padding: 13px 28px; color: var(--ink); transition: background-color .3s; }
.subnav a:hover, .subnav a:focus-visible { background: var(--paper); }
.subnav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--ink); }
.sub-name { font-family: var(--serif); font-weight: 300; font-size: 21px; line-height: 1.25; color: var(--ink); white-space: nowrap; }
.is-zh .sub-name { font-weight: 400; font-size: 19px; }
.sub-entity { font-size: 13px; color: var(--muted); white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { min-width: 56px; height: 36px; padding: 0 12px; border: 1px solid color-mix(in srgb, currentColor 38%, transparent); font-size: 14px; color: inherit; transition: border-color .3s; }
.lang:hover { border-color: currentColor; }
/* the two characters of the language button use a system font, so English pages do not download a Chinese web font for them */
.lang[lang="zh-Hans"] { font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: inherit; }
.menu-toggle span { position: relative; width: 24px; height: 12px; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span::before { top: 0; }
.menu-toggle span::after { top: 10.5px; }
.nav-open .menu-toggle span::before { top: 5px; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 5px; transform: rotate(-45deg); }

/* The two flexible pseudo-elements centre the links and collapse when the list is taller than the screen,
   so the menu scrolls instead of clipping (phones in landscape). */
.mobile-nav { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; padding: 96px 24px 40px; overflow-y: auto; overscroll-behavior: contain; background: var(--navy-900); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.mobile-nav::before, .mobile-nav::after { content: ""; flex: 1 0 0px; }
.nav-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav a { display: block; flex: none; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.2; color: #fff; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * .06s); }
.is-zh .mobile-nav a { font-weight: 400; font-size: 30px; }
.nav-open .mobile-nav a { opacity: 1; transform: none; }
.mobile-nav a.has-sub { border-bottom: 0; padding-bottom: 6px; }
.mobile-sub { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 0 0 12px; border-bottom: 1px solid var(--line-dark); }
.mobile-nav .mobile-sub a, .is-zh .mobile-nav .mobile-sub a { padding: 9px 0; border-bottom: 0; font-family: var(--sans); font-weight: 400; font-size: 16.5px; line-height: 1.35; color: rgba(255, 255, 255, .82); }
/* current page: a small gold dot after the name, the same marker as the selected office */
.mobile-nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px; border-radius: 50%; background: var(--gold); vertical-align: middle; }

/* ---------- Hero ---------- */
/* min-height, not height: on short screens the hero grows with its content instead of sliding under the header */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(640px, 100vh, 1060px); min-height: clamp(640px, 100svh, 1060px); background: var(--navy-900); color: #fff; }
/* The poster is also the background, so the clip can fade to its first frame before it loops. */
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--navy-900) center / cover no-repeat; }
.hero-media picture { display: contents; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media video { transition: opacity .4s linear; }
.hero-media video.is-fading { opacity: 0; }
.js .hero-media { transform: scale(1.1); transition: transform 2.6s var(--ease); }
.js.is-loaded .hero-media { transform: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 18, 42, .66) 0%, rgba(8, 18, 42, .4) 40%, rgba(8, 18, 42, .86) 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 56px; align-items: end; padding-top: 124px; padding-bottom: 84px; }
.hero .label { color: rgba(255, 255, 255, .78); }
.hero h1 { margin-top: 20px; color: #fff; }
.hero-side p { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.hero-side .link-arrow { margin-top: 22px; }
.js .hero .fade { opacity: 0; transform: translateY(20px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, .5s); }
.js.is-loaded .hero .fade { opacity: 1; transform: none; }
.js.is-loaded .hero .line > span { transform: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 0; width: 1px; height: 60px; overflow: hidden; background: rgba(255, 255, 255, .22); }
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(-101%); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-101%); } 55%, 100% { transform: translateY(101%); } }

.video-toggle { position: absolute; right: max(48px, calc((100% - var(--wrap)) / 2)); bottom: 48px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 50%; color: #fff; transition: background-color .4s, border-color .4s; }
.video-toggle[hidden] { display: none; }
.video-toggle:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle .i-play { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-toggle.is-paused .i-pause { display: none; }

/* ---------- Home hero: the four business lines sit on the first screen ---------- */
.hero.home { flex-direction: column; justify-content: flex-end; align-items: stretch; }
/* the copy now sits higher on the film than it used to: the scrim is deeper from the middle down */
.hero.home::after { background: linear-gradient(180deg, rgba(8, 18, 42, .66) 0%, rgba(8, 18, 42, .46) 28%, rgba(8, 18, 42, .74) 54%, rgba(8, 18, 42, .92) 100%); }
.hero.home .hero-inner { padding-bottom: 44px; }
.hero.home .hero-side p { color: #fff; }
/* one picture per business line, shown while its link is pointed at; they lie between the film and the scrim,
   toned close to the film so the change of picture is a change of subject, not of colour */
.hero-scenes { position: absolute; inset: 0; z-index: -2; }
.hero-scenes img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); filter: grayscale(.72) contrast(1.03) brightness(.74); transition: opacity 1.1s var(--ease), transform 3.2s var(--ease); }
.hero-scenes img.is-on { opacity: 1; transform: none; }
/* 28px wider than the page column on each side, so the text of the first line starts under the headline */
.hero-lines { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(var(--wrap) + 56px, 100% - 40px); margin-inline: auto; }
.hero-lines::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px; background: rgba(255, 255, 255, .34); transform-origin: 0 50%; }
.js .hero-lines::before { transform: scaleX(0); transition: transform 1.5s var(--ease) .6s; }
.js.is-loaded .hero-lines::before { transform: none; }
.hero-line { position: relative; display: block; padding: 28px 28px 44px; color: #fff; }
.hero-line + .hero-line { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .16); }
.hero-line::after { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.hero-line:focus-visible { outline-offset: -4px; }
.hero-line:focus-visible::after { transform: none; }
.hero-line:focus-visible .hl-in svg { transform: translateX(5px); }
.hl-in { position: relative; display: block; transition: opacity .5s var(--ease); }
.hl-name { display: block; padding-right: 30px; font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.2vw, 33px); line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.is-zh .hl-name { font-weight: 400; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.25; letter-spacing: .02em; }
.hl-entity { display: block; margin-top: 7px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.hl-desc { display: block; max-width: 23em; margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .88); text-wrap: pretty; }
.hl-in svg { position: absolute; right: 0; top: 10px; width: 16px; height: 16px; color: #fff; transition: transform .55s var(--ease); }
/* hover only where there is a mouse: on a touch screen :hover would stay on after a tap */
@media (hover: hover) {
  .hero-line:hover::after { transform: none; }
  .hero-line:hover .hl-in svg { transform: translateX(5px); }
  .hero-lines:hover .hero-line:not(:hover) .hl-in { opacity: .7; }
}
/* names of different length (English) wrap to different heights: the three rows are shared across the four lines */
@supports (grid-template-rows: subgrid) {
  .hero-line, .hl-in { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
}
/* short windows: names and companies only */
@media (max-height: 620px) { .hl-desc { display: none; } }
@media (max-height: 700px) { html:not(.is-zh) .hl-desc { display: none; } }
@media (max-width: 1279px) and (max-height: 780px) { .hl-desc { display: none; } }
/* the pause button sits under the header on the right, at every width */
.hero.home .video-toggle { top: 104px; bottom: auto; }

/* business page hero */
.hero.sub { min-height: clamp(560px, 78vh, 820px); }
.hero.sub .hero-media img { filter: grayscale(.45) contrast(1.04); }
.hero.sub::after { background: linear-gradient(90deg, rgba(8, 18, 42, .88) 0%, rgba(8, 18, 42, .66) 48%, rgba(8, 18, 42, .34) 100%), linear-gradient(180deg, rgba(8, 18, 42, .5) 0%, rgba(8, 18, 42, 0) 36%, rgba(8, 18, 42, .5) 100%); }
.hero.sub .hero-inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 72px; }
.crumbs { font-size: 14px; color: rgba(255, 255, 255, .78); }
.crumbs a { color: rgba(255, 255, 255, .78); transition: color .3s; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #fff; }
.hero.sub h1 { margin-top: 16px; }
.hero-lead { max-width: 640px; margin-top: 22px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.hero-entity { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .74); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Scroll reveal ---------- */
/* Quiet default for copy and rows: a short fade, at most four stagger steps. */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease-out, transform .7s var(--ease); transition-delay: calc(min(var(--i, 0), 4) * .06s); }
.js .rv.is-in { opacity: 1; transform: none; }
/* Larger blocks travel further and take longer. */
.js .rv.rv-lg { transform: translateY(44px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .rv.rv-lg.is-in { transform: none; }
/* Photographs arrive in two beats, once a good part of the frame is on screen (see site.js):
   a quiet tinted panel grows down the frame, then the photo unveils over it while easing back from a slight zoom.
   The curve is an even ease-in-out, so the movement is visible for its whole length instead of being over in the first instant.
   site.js also wraps the image in .rv-pan and drifts it a few per cent against the scroll, so it keeps moving gently afterwards.
   The clip sits on the image, not on the observed frame: a fully clipped element never reports as intersecting. */
.js .rv-img { position: relative; overflow: hidden; background: none; }
.js .rv-img::before { content: ""; position: absolute; inset: 0; background: #e6e3db; transform: scaleY(0); transform-origin: 50% 0; transition: transform .85s cubic-bezier(.65, 0, .35, 1); }
.js .rv-img.is-in::before { transform: none; }
.js .rv-img img { position: relative; clip-path: inset(0 0 100% 0); transform: scale(1.16); transition: clip-path 1.3s cubic-bezier(.65, 0, .35, 1) .3s, transform 2.6s var(--ease) .3s; }
.js .rv-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }
/* 7% taller than the frame at each end: room for the 6% drift */
.rv-pan { position: absolute; left: 0; right: 0; top: -7%; bottom: -7%; display: block; will-change: transform; }

/* ---------- Sections ---------- */
.section { padding: 128px 0; }
.section.paper { background: var(--paper); }
.section.navy { background: var(--navy-900); color: #fff; }
.section.navy .display { color: #fff; }
.navy .section-head p { color: rgba(255, 255, 255, .78); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 56px; align-items: end; margin-bottom: 56px; }
.section-head .label + .display { margin-top: 18px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 88px; align-items: center; }
.about-text .display { margin-top: 18px; }
.about-text p { margin-top: 22px; max-width: 58ch; }
.about-text .link-arrow { margin-top: 30px; }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.02); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 112px; }
.stat { position: relative; padding: 30px 28px 0 0; }
.stat + .stat { padding-left: 28px; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.stat + .stat::after { content: ""; position: absolute; left: 0; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.stat-label { font-size: 14px; line-height: 1.45; color: var(--muted); min-height: 2.9em; }
.stat-num { display: flex; align-items: baseline; margin-top: 12px; font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 5.4vw, 86px); line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.stats.flush { margin-top: 0; }
.stats-note { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* Businesses: expanding panels.
   Desktop: a collapsed panel shows its title vertically; the active one shows the full card.
   Text colours are set on each element: an outer "p" rule must not flatten the hierarchy. */
.panels { display: flex; gap: 6px; height: min(72vh, 640px); min-height: 520px; }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff; background: var(--navy-800); cursor: pointer; transition: flex-grow .9s var(--ease); }
.panel.is-active { flex-grow: 2.7; cursor: default; }
/* set by site.js on the panel whose link stays on this site: that card is clickable as a whole */
.panel.is-active.is-linked { cursor: pointer; }
.panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) brightness(.62) contrast(1.05); transform: scale(1.02); transition: transform 1.6s var(--ease), filter .9s var(--ease); }
.panel.is-active .panel-bg { filter: grayscale(.25) brightness(.8) contrast(1.02); transform: scale(1.08); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 23, 48, .34) 0%, rgba(9, 20, 42, .3) 28%, rgba(7, 16, 31, .8) 64%, rgba(7, 16, 31, .95) 100%); pointer-events: none; }

.panel-tab { position: absolute; left: 22px; bottom: 24px; z-index: 1; padding: 6px 4px; color: #fff; transition: opacity .4s var(--ease) .4s, visibility 0s 0s; }
.panel-tab span { display: block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.15; letter-spacing: -.005em; color: #fff; }
.is-zh .panel-tab span { transform: none; font-weight: 400; font-size: 26px; letter-spacing: .14em; }
.panel.is-active .panel-tab { opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s .25s; }

.panel-body { position: absolute; left: 30px; bottom: 30px; z-index: 1; width: min(460px, 34vw); opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.panel.is-active .panel-body { opacity: 1; visibility: visible; transform: none; transition: opacity .8s var(--ease) .3s, transform .9s var(--ease) .3s, visibility 0s 0s; }
.panel h3 { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; color: #fff; }
.is-zh .panel h3 { font-weight: 400; font-size: 30px; line-height: 1.25; }
.panel .panel-entity { margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.panel .panel-desc { margin-top: 18px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.panel .panel-meta { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .66); }
.panel .link-arrow { margin-top: 20px; }
.panel-mark { position: absolute; right: 26px; top: 26px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; color: #fff; transition: background-color .5s var(--ease), color .5s var(--ease), transform .8s var(--ease), border-color .5s; }
.panel-mark svg { width: 16px; height: 16px; }
.panel.is-active .panel-mark { background: #fff; border-color: #fff; color: var(--navy-900); }

/* Statement band with parallax image */
.band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 78vh; padding: 120px 0; background: var(--navy-900); color: #fff; }
.band.short { min-height: 60vh; }
.band-media { position: absolute; inset: -18% 0; z-index: -2; will-change: transform; }
.band-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.45) contrast(1.04); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 18, 42, .9) 0%, rgba(8, 18, 42, .64) 55%, rgba(8, 18, 42, .4) 100%); }
.band .label { color: rgba(255, 255, 255, .74); }
.band-line { max-width: 17em; margin-top: 22px; color: #fff; }
.is-zh .band-line { max-width: 16em; }

/* Licences */
.lic { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 88px; align-items: start; }
.lic-side { position: sticky; top: 120px; }
.lic-side .display { margin-bottom: 22px; }
.lic-side a.inline { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.lic-row { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; padding: 30px 0; }
.lic-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.lic-row:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.lic-row h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--ink); }
.lic-row .label { display: block; margin-top: 8px; }
.lic-val { color: var(--ink); font-variant-numeric: tabular-nums; }
.lic-val small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Offices */
.offices { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 88px; align-items: start; }
.hq { margin-top: 30px; }
.hq h3 { font-size: 14px; font-weight: 500; letter-spacing: .03em; color: var(--muted); }
.hq p { margin-top: 8px; color: var(--ink); }
.hq a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.hq a:hover { background-size: 100% 1px; }
.cities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cities h3 { padding-bottom: 14px; font-size: 14px; font-weight: 500; letter-spacing: .03em; color: var(--muted); }
.city { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 15px 0; }
.city::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.city-name { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.1; color: var(--ink); }
.is-zh .city-name { font-weight: 400; font-size: 25px; line-height: 1.25; }
.clock { flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Contact rows */
.rows { margin-top: 8px; }
.row-link { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr) 24px; gap: 32px; align-items: center; padding: 30px 0; color: #fff; transition: padding .6s var(--ease); }
.row-link::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-dark); }
.rows > :last-child .row-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-dark); }
.row-link:hover { padding-left: 18px; }
.row-title { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; color: #fff; }
.is-zh .row-title { font-weight: 400; font-size: clamp(24px, 2.1vw, 30px); }
.row-sub { font-size: 15px; color: rgba(255, 255, 255, .72); }
.row-val { font-size: 16px; color: #fff; }
.row-link svg { width: 20px; height: 20px; color: #fff; transition: transform .6s var(--ease); }
.row-link:hover svg { transform: translateX(8px); }

/* Footer */
.site-footer { padding: 64px 0 64px; background: var(--navy-950); font-size: 14.5px; color: rgba(255, 255, 255, .74); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 72px; }
.footer-brand img { width: 114px; height: 47px; object-fit: cover; object-position: left center; margin-left: -10px; }
.footer-brand p { margin-top: 14px; max-width: 34ch; color: rgba(255, 255, 255, .74); }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.footer-links h4 { margin-bottom: 12px; font-size: 14px; font-weight: 500; color: #fff; }
.footer-links li { margin-top: 7px; }
.footer-links a { color: rgba(255, 255, 255, .74); transition: color .3s; }
.footer-links a:hover { color: #fff; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 12.5px; line-height: 1.7; }
.legal p { color: rgba(255, 255, 255, .6); }
.legal p + p { margin-top: 8px; }

/* ---------- Business page ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 88px; align-items: start; }
.intro .display { margin-top: 18px; }
.scope { margin-top: 6px; }
.scope li { position: relative; padding: 22px 0; font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.25; color: var(--ink); }
.is-zh .scope li { font-weight: 400; font-size: 23px; line-height: 1.4; }
.scope li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.scope li:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }

/* Product families: compact two-column list; the one family with published sub-products spans the row. */
.products { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 88px; align-items: start; }
.products-side { position: sticky; top: 120px; }
.products-side p { margin-top: 20px; }
.products-side .link-arrow { margin-top: 24px; }
.families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-bottom: 1px solid var(--line); }
.family { position: relative; padding: 20px 0; font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.15; color: var(--ink); }
.family::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.family-wide { grid-column: 1 / -1; padding-bottom: 6px; }
.family-name { font: inherit; color: inherit; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; margin-top: 18px; font-family: var(--sans); }
.tag-group { font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: .03em; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-bottom: 22px; }
.tag { padding: 6px 12px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 400; line-height: 1.4; letter-spacing: 0; color: var(--ink); }

/* Broker contacts: two-column grid of label + address */
.dir-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 88px; align-items: start; }
.dir-side p { margin-top: 20px; }
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-bottom: 1px solid var(--line); }
.contact { position: relative; padding: 18px 0 20px; }
.contact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.contact dt { font-size: 14px; line-height: 1.5; color: var(--muted); }
.contact dd { margin-top: 2px; }
.contact dd a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); overflow-wrap: anywhere; }
.contact dd a:hover { background-size: 100% 1px; }

.dir { width: 100%; }
.dir-row { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; padding: 18px 0; }
.dir-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.dir-row:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.dir-row dt { color: var(--ink); }
.dir-row dd a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); overflow-wrap: anywhere; }
.dir-row dd a:hover { background-size: 100% 1px; }
.navy .dir-row::before, .navy .dir-row:last-child::after { background: var(--line-dark); }
.navy .dir-row dt { color: rgba(255, 255, 255, .72); }
.navy .dir-row dd, .navy .dir-row dd a { color: #fff; }

.person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 88px; align-items: start; }
.person-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.person-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person h3 { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.1; color: var(--ink); }
.person .label { display: block; margin-top: 8px; }
.person p { margin-top: 18px; max-width: 60ch; }
.disclaimer { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .6); max-width: 100ch; }

/* ---------- Business pages: shared extras ---------- */
/* Draft-only note for the client: plainly marked, removed before launch. */

/* A sentence set large (risk statement) */
.statement { max-width: 30em; margin-top: 18px; text-wrap: balance; font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.32; letter-spacing: -.01em; color: var(--ink); }
.is-zh .statement { max-width: 32em; font-weight: 400; font-size: clamp(22px, 2.2vw, 31px); line-height: 1.5; letter-spacing: .01em; }
.statement ~ p { max-width: 60ch; margin-top: 12px; }
.statement + p { margin-top: 24px; }

/* Row status line under a fund */
.lic-val small + small { margin-top: 2px; }

/* Two service columns; a column can hold a second group under the first */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 88px; align-items: start; }
.col .col-next { margin-top: 48px; }
.col h3 { padding-bottom: 18px; font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.15; color: var(--ink); }
.is-zh .col h3 { font-weight: 400; font-size: 27px; line-height: 1.3; }
.col li { position: relative; padding: 15px 0; color: var(--ink); }
.col li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.col li:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }

/* Project images */
.gallery { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: clamp(460px, 58vw, 800px); }
.gallery figure { overflow: hidden; background: var(--line); }
.gallery .g-tall { grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Place names: three compact columns */
.families.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.families.three .family { padding: 16px 0; font-size: 24px; }

/* Link to the next business page */
.next { background: var(--paper); }
.next-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding: 76px 0; color: var(--ink); }
.next-title { display: block; margin-top: 12px; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 60px); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.is-zh .next-title { font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.3; letter-spacing: .01em; }
.next-link svg { width: 30px; height: 30px; margin-bottom: 12px; transition: transform .6s var(--ease); }
.next-link:hover svg { transform: translateX(12px); }

/* Page-to-page cross-fade where the browser supports it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  /* the two-column hero needs room for the second headline line */
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-side { max-width: 520px; }
  /* three city columns need the full width: name + clock overflow a 4/7 split */
  .offices { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .wrap { width: calc(100% - 64px); }
  .video-toggle { right: 32px; }
  .hero-lines { width: calc(100% - 24px); }
  .hero-lines::before, .hero-line::after { left: 20px; right: 20px; }
  .hero-line { padding: 22px 20px 38px; }
  .hl-desc { display: none; }
  /* home page: the map sits above the list here, so the chosen city also opens its address in the list */
  .om.compact .office.is-open .office-detail { display: grid; }
  .section { padding: 96px 0; }
  .about, .lic, .offices, .intro, .products, .dir-grid, .person { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .cols2 { gap: 0 48px; }
  .lic-side, .products-side { position: static; }
  .about-photo { aspect-ratio: 16 / 10; order: -1; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; margin-top: 72px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(odd)::after { display: none; }
  .hero-inner { padding-bottom: 72px; }

  /* panels stack; every card is open */
  .panels { flex-direction: column; height: auto; min-height: 0; gap: 8px; }
  .panel, .panel.is-active { display: flex; align-items: flex-end; flex: none; min-height: 380px; }
  .panel { cursor: default; }
  .panel.is-linked { cursor: pointer; }
  .panel-bg, .panel.is-active .panel-bg { filter: grayscale(.3) brightness(.78); transform: none; }
  .panel-tab, .panel-mark { display: none; }
  .panel-body, .panel.is-active .panel-body { position: relative; left: auto; bottom: auto; width: auto; max-width: 580px; padding: 150px 30px 30px; opacity: 1; visibility: visible; transform: none; transition: none; }

  .row-link { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 20px; padding: 24px 0; }
  .row-link .row-title, .row-link .row-sub, .row-link .row-val { grid-column: 1; }
  .row-link svg { grid-column: 2; grid-row: 1 / span 3; }
  .row-link:hover { padding-left: 0; }
}
@media (min-width: 1081px) {
  .mobile-nav { display: none; }
}
/* English between phone and small-laptop width: four across leaves "Education and migration" on three lines */
@media (min-width: 681px) and (max-width: 900px) {
  html:not(.is-zh) .hero-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not(.is-zh) .hero-line { padding-bottom: 20px; }
  html:not(.is-zh) .hero-line:nth-child(odd) { box-shadow: none; }
  html:not(.is-zh) .hero-line:nth-child(n+3) { padding-bottom: 36px; background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)) 20px 0 / calc(100% - 40px) 1px no-repeat; }
  html:not(.is-zh) .hero-line:nth-child(3) { background-size: calc(100% - 20px) 1px; }
  html:not(.is-zh) .hero-line:nth-child(4) { background-position: 0 0; background-size: calc(100% - 20px) 1px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding: 72px 0; }
  .site-header { height: 68px; }
  .hero { min-height: clamp(600px, 100vh, 1060px); min-height: clamp(600px, 100svh, 1060px); }
  .hero.sub { min-height: clamp(520px, 78vh, 820px); }
  .hero-inner { padding-top: 104px; padding-bottom: 68px; }
  .hero-side p, .hero-lead { font-size: 16.5px; }
  /* on a phone the copy spans the full width, so the business-page scrim cannot thin out to the right */
  .hero.sub::after { background: linear-gradient(90deg, rgba(8, 18, 42, .88) 0%, rgba(8, 18, 42, .72) 55%, rgba(8, 18, 42, .62) 100%), linear-gradient(180deg, rgba(8, 18, 42, .5) 0%, rgba(8, 18, 42, 0) 36%, rgba(8, 18, 42, .5) 100%); }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .video-toggle { right: 20px; bottom: 42px; width: 40px; height: 40px; }
  /* phone: headline, then the four business lines two by two; the introduction is the first thing in the next section */
  .hero.home { min-height: clamp(520px, 100vh, 1060px); min-height: clamp(520px, 100svh, 1060px); }
  .hero.home .video-toggle { top: 84px; }
  .hero.home .hero-inner { padding-bottom: 30px; }
  .hero.home .hero-side p { display: none; }
  .hero-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .hero-line { padding: 16px 20px 18px; }
  .hero-line:nth-child(odd) { box-shadow: none; }
  /* the line between the two rows stops at the page margin, like the line above the first row */
  .hero-line:nth-child(n+3) { padding-bottom: 30px; background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)) 20px 0 / calc(100% - 20px) 1px no-repeat; }
  .hero-line:nth-child(4) { background-position: 0 0; }
  .hl-name, .is-zh .hl-name { padding-right: 24px; font-size: 21px; }
  .hl-entity { margin-top: 4px; font-size: 12.5px; }
  .hl-in svg { top: 7px; width: 14px; height: 14px; }

  /* Section headlines flow as one sentence on a phone and reveal as a block:
     per-line masks would break each hand-set line again. */
  .rv-lines .line { display: inline; overflow: visible; padding: 0; margin: 0; }
  .rv-lines .line > span, .js .rv-lines .line > span { display: inline; transform: none; transition: none; }
  .js .rv-lines { opacity: 0; transform: translateY(16px); transition: opacity .7s ease-out, transform .8s var(--ease); }
  .js .rv-lines.is-in { opacity: 1; transform: none; }
  .rv-lines { text-wrap: balance; }
  .js .rv { transition-delay: calc(min(var(--i, 0), 2) * .05s); }

  .stats { margin-top: 56px; }
  .stat { padding-right: 16px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .panel, .panel.is-active { min-height: 400px; }
  .panel-body, .panel.is-active .panel-body { padding: 150px 22px 24px; }
  .band, .band.short { min-height: 0; padding: 96px 0; }
  .lic-row, .dir-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lic-row { padding: 24px 0; }
  .cities { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .city-name { font-size: 24px; }
  .row-title, .is-zh .row-title { font-size: 28px; }
  .scope li { font-size: 22px; }
  .is-zh .scope li { font-size: 20px; }
  .families { column-gap: 20px; }
  .families.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .families.three .family { padding: 14px 0; font-size: 21px; }
  .cols2 { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .col .col-next { margin-top: 40px; }
  .col h3 { font-size: 26px; }
  .gallery { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; gap: 10px; }
  .gallery figure { aspect-ratio: 3 / 2; }
  .gallery .g-tall { grid-row: auto; aspect-ratio: 4 / 5; }
  .next-link { padding: 56px 0; gap: 16px; }
  .next-link svg { width: 24px; height: 24px; margin-bottom: 8px; }
  .family { padding: 16px 0; font-size: 23px; }
  .family-wide { padding-bottom: 0; }
  .spec, .contacts { grid-template-columns: minmax(0, 1fr); }
  .person-card { grid-template-columns: 104px minmax(0, 1fr); gap: 20px; }
  .person h3 { font-size: 28px; }
  .footer-links { gap: 28px 56px; }
}
@media (max-width: 400px) {
  .stat-num { font-size: 38px; }
}
@media (max-width: 360px) {
  .d1 { font-size: 40px; }
  .is-zh .d1 { font-size: 38px; }
}
@media (max-height: 560px) {
  .mobile-nav { padding: 76px 24px 20px; }
  .mobile-nav a, .is-zh .mobile-nav a { padding: 9px 0; font-size: 24px; }
  .mobile-nav .mobile-sub a, .is-zh .mobile-nav .mobile-sub a { padding: 6px 0; font-size: 15px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv.rv-lg, .js .rv-lines, .js .rv-img img, .js .line > span, .js .hero .fade, .js .hero-media { opacity: 1; transform: none; clip-path: none; transition: none; }
  .js .rv-img::before { display: none; }
  .scroll-cue::after { animation: none; }
  .hero-scenes img, .hero-line::after, .hl-in, .hl-in svg, .js .hero-lines::before { transition: none; }
  .js .hero-lines::before { transform: none; }
  .panel, .panel-bg, .panel-tab, .panel-body, .panel.is-active .panel-tab, .panel.is-active .panel-body, .hero-media video { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Print / save as PDF ---------- */
@media print {
  .js .rv, .js .rv.rv-lg, .js .rv-lines, .js .rv-img img, .js .line > span, .js .hero .fade, .js .hero-media { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .js .rv-img::before { display: none !important; }
  .rv-pan { top: 0 !important; bottom: 0 !important; transform: none !important; }
  .site-header { position: absolute; transform: none !important; }
  .mobile-nav, .scroll-cue, .video-toggle, .hero-media video { display: none !important; }
  .hero, .hero.sub, .band, .band.short { min-height: 0; }
  /* every business card open, whatever the paper width */
  .panels { display: block; height: auto; min-height: 0; }
  .panel, .panel.is-active { display: flex; align-items: flex-end; min-height: 0; margin-bottom: 8px; }
  .panel-tab, .panel-mark { display: none !important; }
  .panel-body, .panel.is-active .panel-body { position: relative; left: auto; bottom: auto; width: auto; padding: 110px 30px 30px; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .band-media { inset: 0; transform: none !important; }
  .section { padding: 56px 0; }
  .panel, .lic-row, .dir-row, .contact, .family, .stat, .row-link, .person-card, .col, .gallery figure { break-inside: avoid; }
  .gallery { height: auto; grid-template-rows: none; }
  .gallery figure { aspect-ratio: 3 / 2; }
}

/* ============================================================
   v4: multi-page structure
   Page headers without a photograph, home-page summaries, About, Businesses overview,
   and the office list + map on Contact. Self-contained: its own
   responsive, reduced-motion and print rules follow at the end of this block.
   ============================================================ */

.footer-links h4 a { color: #fff; }
.section-head .link-arrow { margin-top: 18px; }
.lic-side a.inline, .section-head a.inline, .facts dd a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.facts dd { color: var(--ink); }
/* fewer one- or two-character last lines in running copy */
.section-head p, .about-text p, .biz-text p, .duo-desc, .key-desc, .hero-lead, .vision-note { text-wrap: pretty; }
.section.paper + .next { border-top: 1px solid var(--line); }
.col .col-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Page header without a photograph */
/* A shorter photographic header for pages whose first screen should already show their content */
.hero.sub.short { min-height: clamp(400px, 54vh, 580px); }
.hero.sub.plain { min-height: 0; background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%); }
.hero.sub.plain::after { display: none; }
.hero.sub.plain .hero-inner { padding-top: 164px; padding-bottom: 72px; }
.hero.sub.plain + .section.navy { padding-top: 16px; }

/* Home: three registration numbers */
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.key { position: relative; padding: 28px 28px 0 0; }
.key + .key { padding-left: 28px; }
.key::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.key + .key::after { content: ""; position: absolute; left: 0; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.key-label { font-size: 14px; color: var(--muted); }
.key-num { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.key-desc { margin-top: 12px; max-width: 36ch; font-size: 14.5px; line-height: 1.55; color: var(--text); }

/* About: the two core businesses, on navy. Colours are set on each element. */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 88px; }
.duo-item { position: relative; padding-top: 30px; }
.duo-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-dark); }
.duo-item.has-photo { padding-top: 0; }
.duo-item.has-photo::before { display: none; }
.duo-photo { aspect-ratio: 16 / 9; margin-bottom: 28px; overflow: hidden; }
.duo-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.02); }
/* on navy the panel that precedes a photograph is a lighter navy, not paper */
.navy .rv-img::before { background: #17294f; }
.duo-item .label { color: rgba(255, 255, 255, .7); }
.duo-item h3 { margin-top: 10px; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -.01em; color: #fff; }
.is-zh .duo-item h3 { font-weight: 400; font-size: clamp(27px, 2.6vw, 38px); line-height: 1.3; }
.duo-item .duo-desc { margin-top: 16px; max-width: 52ch; color: rgba(255, 255, 255, .88); }
.duo-item .duo-meta { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .64); }
.duo-item .link-arrow { margin-top: 22px; }
.duo-also { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: rgba(255, 255, 255, .8); }
.duo-also a { color: #fff; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.vision-line { max-width: 17em; margin-top: 22px; }
.is-zh .vision-line { max-width: 16em; }
.vision-note { max-width: 58ch; margin-top: 30px; }

/* Businesses overview: one wide row per business line, photo and text alternate sides */
.biz { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 88px; align-items: center; }
.biz + .biz { margin-top: 128px; }
/* the wide column follows the photo to the other side */
.biz.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.biz.flip .biz-photo { order: 2; }
.biz-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); }
.biz-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.03); }
.js .biz-photo.is-in img { transition: clip-path 1.3s cubic-bezier(.65, 0, .35, 1) .3s, transform 2.6s var(--ease) .3s, filter .9s var(--ease); }
.js .biz-photo.is-in:hover img { transform: scale(1.04); filter: none; transition-duration: 1.3s, 1.4s, .9s; transition-delay: 0s; }
.biz-text .display { margin-top: 14px; }
.biz-text p { max-width: 52ch; margin-top: 20px; }
.biz-text .label { margin-top: 0; }
.biz-text .biz-meta { margin-top: 10px; font-size: 14px; color: var(--muted); }
.biz-text .link-arrow { margin-top: 26px; }
.col .col-link { margin-top: 26px; }

/* Contact rows on a light background */
.rows.light .row-link, .rows.light .row-title, .rows.light .row-val, .rows.light .row-link svg { color: var(--ink); }
.rows.light .row-sub { color: var(--muted); }
.rows.light .row-link::before, .rows.light > :last-child .row-link::after { background: var(--line); }

/* ---------- Offices: list and map (navy) ---------- */
.om { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.om-group + .om-group { margin-top: 44px; }
.om-group h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; font-size: 14px; font-weight: 500; letter-spacing: .03em; color: rgba(255, 255, 255, .62); }
/* column label over the clocks */
.om-col { font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, .62); }
.office { position: relative; }
.office::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-dark); }
.om-group li:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-dark); }
.office-btn { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 0; text-align: left; color: #fff; }
.office-btn .city-name { position: relative; color: #fff; transition: padding-left .5s var(--ease); }
/* the selected city is marked with a small gold dot, the same gold as its pin */
.office-btn .city-name::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .5s var(--ease); }
.office.is-open .city-name, .office.is-hover .city-name, .office-btn:hover .city-name { padding-left: 18px; }
.office.is-open .city-name::before { transform: scale(1); }
.office-btn .clock { color: rgba(255, 255, 255, .62); }
/* 0fr -> 1fr animates the height without measuring it; hidden details stay out of the tab order */
.office-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.office-detail-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .6s; }
.office.is-open .office-detail, html:not(.js) .office-detail { grid-template-rows: 1fr; }
.office.is-open .office-detail-inner, html:not(.js) .office-detail-inner { visibility: visible; transition-delay: 0s; }
.office-detail dl { padding: 0 0 20px; }
.office-detail dl > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 7px 0; }
.office-detail dt { padding-top: 1px; font-size: 14px; color: rgba(255, 255, 255, .62); }
.office-detail dd { font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.office-detail dd a { color: #fff; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.office-detail dd a:hover { background-size: 100% 1px; }
/* touch screens have no hover: telephone numbers are underlined from the start, so they read as links */
@media (hover: none) { .office-detail dd a, .om-card-addr a { background-size: 100% 1px; } }
.om-note { margin-top: 26px; font-size: 13.5px; color: rgba(255, 255, 255, .56); }

.om-map { position: sticky; top: 104px; }
.om-stage { position: relative; margin-top: 14px; }
.om-stage .om-canvas { margin-top: 0; }
/* Address of the selected office, on the map. site.js writes it from the list and puts it in whichever
   corner covers no pin in the current view (data-pos); it is hidden while its city is outside that view. */
.om-card { position: absolute; top: 20px; right: 20px; z-index: 2; width: min(300px, 46%); padding: 18px 20px 20px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(7, 16, 31, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s; }
.om-card.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s 0s; }
.om-card[data-pos="tl"] { right: auto; left: 20px; }
.om-card[data-pos="br"] { top: auto; bottom: 20px; }
.om-card[data-pos="bl"] { top: auto; bottom: 20px; right: auto; left: 20px; }
.om-card.is-away { opacity: 0; visibility: hidden; }
/* two columns on a narrow window: the map is small, so the card is set tighter */
@media (min-width: 1081px) and (max-width: 1320px) {
  .om-card { top: 14px; right: 14px; padding: 14px 16px 15px; }
  .om-card[data-pos="tl"], .om-card[data-pos="bl"] { left: 14px; }
  .om-card[data-pos="br"], .om-card[data-pos="bl"] { bottom: 14px; }
  .om-card-city { font-size: 22px; }
  .is-zh .om-card-city { font-size: 21px; }
  .om-card-label { margin-top: 10px; }
  .om-card-addr { font-size: 14px; line-height: 1.5; }
  .om-card-more { margin-top: 7px; }
}
/* text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.om-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.om-card-city { position: relative; padding-left: 17px; font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.15; color: #fff; }
.is-zh .om-card-city { font-weight: 400; font-size: 24px; line-height: 1.25; }
.om-card-city::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--gold); }
.om-card-time { flex: none; font-size: 13px; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; white-space: nowrap; }
.om-card-time .clock { color: rgba(255, 255, 255, .86); }
.om-card-label { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.om-card-addr { margin-top: 3px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .94); }
.om-card-addr a { color: #fff; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.om-card-addr a:hover { background-size: 100% 1px; }
.om-card-more { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.om-card-note { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--gold); font-size: 13.5px; line-height: 1.6; color: var(--gold); }

/* Home page: the same list, shorter. Selecting a city shows its address on the map instead of opening it here. */
.om.compact .office-detail { display: none; }
/* without the script there is no map card: show the addresses in the list and drop the empty time column */
html:not(.js) .om.compact .office-detail { display: grid; }
html:not(.js) .om-col, html:not(.js) .office-btn .clock { display: none; }
.om.compact .office-btn { padding: 11px 0; }
.om.compact .city-name { font-size: 23px; }
.is-zh .om.compact .city-name { font-size: 21px; }
.om.compact .om-group + .om-group { margin-top: 30px; }

/* Contact page header: the photograph stays dim and runs into the navy section under it */
.hero.sub.dim::after { background: linear-gradient(180deg, rgba(8, 18, 42, .9) 0%, rgba(8, 18, 42, .72) 50%, rgba(10, 23, 48, .94) 86%, var(--navy-900) 100%); }
.hero-media img.pos-low { object-position: center 77%; }
.hero.sub.dim + .section.navy { padding-top: 56px; }
.om-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.om-tab { min-height: 36px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .28); font-size: 14px; color: rgba(255, 255, 255, .84); transition: background-color .35s, color .35s, border-color .35s; }
.om-tab:hover { border-color: #fff; color: #fff; }
.om-tab.is-active { background: #fff; border-color: #fff; color: var(--navy-900); }
/* the map fades into the section at its edges, so it has no frame */
.om-canvas { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: min(72vh, 700px); margin-top: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-composite: intersect; }
.om-svg { width: 100%; height: 100%; }
.om-land { fill: #17294f; stroke: rgba(255, 255, 255, .22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pin { cursor: pointer; }
.pin-hit { fill: transparent; }
.pin-dot { fill: #fff; stroke: var(--navy-900); stroke-width: 1.5; transition: fill .3s; }
.pin-ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.pin.is-active .pin-dot, .pin.is-hover .pin-dot { fill: var(--gold); }
.pin.is-active .pin-ring { animation: pin-pulse 2.8s var(--ease) infinite; }
@keyframes pin-pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3.8); opacity: 0; } }
.pin-label { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: #fff; stroke: var(--navy-900); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; opacity: 0; pointer-events: none; transition: opacity .35s; }
.pin.is-active .pin-label, .pin.is-hover .pin-label,
.om-svg[data-view="anz"] .pin[data-region="anz"] .pin-label,
.om-svg[data-view="cn"] .pin[data-region="cn"] .pin-label { opacity: 1; }

html:not(.js) .om-tabs { display: none; }

@media (max-width: 1080px) {
  .hero.sub.plain .hero-inner { padding-top: 140px; padding-bottom: 60px; }
  .keys { grid-template-columns: minmax(0, 1fr); }
  .key, .key + .key { padding: 24px 0 0; }
  .key + .key { margin-top: 30px; }
  .key + .key::after { display: none; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 48px 0; }
  .biz, .biz.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .biz.flip .biz-photo { order: 0; }
  .biz + .biz { margin-top: 88px; }
  /* stacked: the map comes first, then the list */
  .om { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .om-map { position: static; order: -1; }
  /* never taller than the screen (phones held sideways) */
  .om-canvas { max-height: 78vh; max-height: 78svh; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .hero.sub.plain .hero-inner { padding-top: 116px; padding-bottom: 48px; }
  .hero.sub.short { min-height: clamp(380px, 56vh, 520px); }
  .duo-photo { margin-bottom: 22px; }
  /* a narrower fade keeps edge labels readable on a small map */
  .om-canvas { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-composite: intersect; }
  .duo-also { margin-top: 48px; }
  .biz + .biz { margin-top: 64px; }
  .office-detail dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 0; }
  .om-tab { padding: 6px 11px; font-size: 13.5px; }
  /* on a phone the address sits under the map instead of on it */
  .om-card { position: static; width: auto; margin-top: 10px; transform: none; }
  .om-card:not(.is-shown), .om-card.is-away { display: none; }
  .hero.sub.dim + .section.navy { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .subnav, .sub-toggle svg, .office-detail, .office-btn .city-name, .office-btn .city-name::before, .pin-label, .om-card, .js .biz-photo.is-in img { transition: none; }
  .pin.is-active .pin-ring { animation: none; opacity: .9; transform: scale(2.2); }
}
@media print {
  .subnav, .sub-toggle, .om-tabs { display: none !important; }
  /* browsers drop backgrounds by default: keep the dark blocks dark so their light text stays readable */
  .hero, .band, .section.navy, .site-footer, .panel, .om-canvas { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .office-detail { grid-template-rows: 1fr !important; }
  .office-detail-inner { visibility: visible !important; }
  .om { grid-template-columns: minmax(0, 1fr); }
  .om-map { position: static; }
  .hero.sub.plain .hero-inner { padding-top: 110px; }
  .biz, .key, .duo-item, .office { break-inside: avoid; }
}
/* phones held sideways: a lower header leaves more of a short screen for the page */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { height: 60px; }
}

/* a phone on its side: the first screen is the headline and the four lines, nothing else */
@media (max-height: 520px) and (orientation: landscape) {
  .hero.home { min-height: max(100svh, 340px); }
  .hero.home .hero-inner { padding-top: 76px; padding-bottom: 18px; gap: 0; }
  .hero.home .hero-side p { display: none; }
  .hero.home h1 { margin-top: 8px; }
  .hero.home .d1, .is-zh .hero.home .d1 { font-size: 32px; }
  .hero.home .video-toggle { top: 70px; }
  .hero-lines { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-line, .hero-line:nth-child(n+3) { padding: 14px 16px 24px; background: none; }
  .hero-line:nth-child(odd) { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .16); }
  .hero-line:first-child { box-shadow: none; }
  .hl-name, .is-zh .hl-name { font-size: 19px; }
}
